PeterHost.ru - Надежный хостинг

Easy Neatly - Accurate tables of cascade styles CSS ( Utility of transformation CSS for the WEB-masters).

About the program Easy Neatly

Easy NeatlyThe program is intended for facilitation of a transactions of the WEB-masters of acceleration of their activity and improving of quality created CSS of a code. The program name bears in itself two main operations and pieces of foreign exchange Easy and Neatly. Easy - Means a simple compact code of cascade styles optimized for a loading browser of the user. Neatly - Means a code, extended and taken apart in semantic group. In a Simple code CSS all superfluous signs: gaps, last numeral ";" in the selector, the superfluous line foldings are deleted. In an accurate code the whole table cascade is teared in accurate stairs, which are easy for reading and is divided by the comments on section (simple tags, links, tables, addition(appendix) - common, colors, hacks) on certain indications. I.e. the code conversion works in both legs both in simplification and in reorganization. Any code is sorted, altitude of the letters is formatted. How it works? Our program follows the standards and knows the standards - CSS Level 1 and CSS Level 2. Main that yours of CSS the code was valid. To check up validate yours of CSS you can navigate to web-site http://jigsaw.w3.org/css-validator/. Anyone valid CSS file is assorted without problems in structures, of which on templates are formed or simple compact code, or structured formatted stairs and code, divided on sections. Hacks like *, though are not considered valid CSS by a code, are normally assorted and are selected in separate section HACKS. The code is assorted on Rules (Rules [charset; font-face; import; media; page]) and Selectors. The Rules and Selectors are assorted on properties and their values. All names of properties, will be transformed to a lowercase. Color as #RRGBB are transformed to the uppercase, the standard names of colors Red, Green etc. will be transformed to a lowercase with the first capital letter. The additional function - quantization of color allows optimum with the help of linear approximation to reduce length of color of color is reduced from (7) seven numerals up to (4) four. All selectors for simple tags without definition of the name of a class or ID are selected in section MAIN (body, p, h1 …), all links with classes are selected in section LINKS, all elements of tables are selected in section GRIDS, all selectors containing only one from properties - color or background-color are selected in section COLORS, all selectors containing only one property but not colour concern in group COMMON. All stayed selectors are ranked as group LAYOUT. All names of properties of selectors are sorted in the alphabetic order. The names of selectors and names of their properties will be transformed to a lowercase, are formatted of color. Further obtained structure is formatted on a certain template or it is a template Easy for a compact code, or it is a template Neatly for accurate and divided CSS. The template of a compact code deletes all comments, the template of an accurate code leaves the comments and also them formats.



Examples of a code before and after transformations.



Code, poorly formatted and not ordered

Code, poorly formatted and not ordered
Click to zoom in image.


Code, formatted by a rule --easy

Code, formatted by a rule --easy
Click to zoom in image.


Code, formatted by a rule --neatly

Code, formatted by a rule --neatly
Click to zoom in image.


14-Jul-2007 (22:20) - No Buen Hombre

How to use.

Keys from commandline for EasyNeatly

The program is the console application. Start-up from commandline:

-f--filefile name for refine
-p--patternname of the file of templates without the extension
-i--indexpatternindex of section in the file of templates
-r--regmenuautomatic register context menu
-s--menurusregister context menu for Russian language
-g--menuengregister context menu for English language
-?--helphelp screen
-e--easyTo simplify a code CSS
to remove all superfluous signs and comments
-n--neatlyTo create the accurately formatted code CSS
divided on semantic group.
-q--quantTo quantize of color
is long of color is reduced from (7) seven numerals up to (4) four.
#easyneatly.exe "path and filename.css" -e :: Rule Easy
#easyneatly.exe "path and filename.css" -n :: Rule Neatly
#easynetly.exe --neatly;quant;file=C:style.css :: Rule Neatly with quantize of colors.
#easynetly.exe --quant;file=C:style.css --easy :: Rule Easy with quantize of colors.


Example start-up under Wine in Linux

#wine easyneatly.exe -f=/myweb/site1/style.css -nq

Result printed by programm in console

Input/Output File : /myweb/site1/style.css
Backup File : /myweb/site1/style.backup(1).css
Original Size : 6524
Refined Size : 8076


Context-menu of Windows

Also is integrated in the context-menu of WindowsTM Explorer.

Easy Neatly

Also it is possible to apply rules simplly by opening the context-menu to yours of CSS of the file.



Testing.

Tested under WindowsXP and Linux Fedora 7 MoonShine - under Wine 0.9.36.



The plans for the future.

At present kernel of an analysis of a code and the templates of transformation are firmware immediately in exe file. We plan to select the kernel in separate of Plug-in and to create a series Plug-in for other languages (html, php, asp, js, pascal, c, c ++). Rather CSS the transformer - it is planned to make function of optimization of a code for association of set of the developed properties of selectors in one group, elimination of doubles of a code and the Heuristic analyzer creating new classes optimizing previous - thus will have to change HTML a code, but quality CSS will be considerably above.

1-Sep-2007 (22:20) - Kuipa Cuip

Help to the project.

If it is interesting to you you can support the project by your ideas, about that what functions would be to you necessary, or by informing us about our errors. Write to us the letters KUIPACUIP or No Buen Hombre or leave the message in the guest book.



Donate.

You can sacrifice money to development of the projects

Yandex Money
through a system Yandex-Money.
Number of our purse:
4-1001-7067-5788.

Web Money
through a system WebMoney,
Our purses:
E299-159-428-708
R394-608-273-039
U244-722-471-350
Z891-637-007-807

14-Jul-2007 (22:20) - No Buen Hombre

Advertise

Look at Us

Current Page

Today 3
Previous 7 from 2008-9-7
Total 3339

All Website

Today 223
Previous 381
Total 154575

Board File

Started 11-Mar-2007
Today 8-Sep-2008
In Way 1 year 5 monthes 28 days
Valid XHTML 1.0 TransitionalValid CSS!