Man page - wml_p7_htmlfix(1)
Packages contains this manual
- wml_p5_divert(1)
- wml::std::lang(3)
- wml::fmt::text(3)
- wml::std::all(3)
- wml::std::href(3)
- wml::des::rollover(3)
- wml_aux_htmlinfo(1)
- wml::fmt::sdf(3)
- wml_intro(7)
- wml_faq(7)
- wml::std::toc(3)
- wml::des::navbar(3)
- wml_p9_slice(1)
- wml::imp::fsview(3)
- wml(1)
- wml_macros(7)
- wml::sup::all(3)
- wml::sys::bootp4(3)
- wml::fmt::verbatim(3)
- wml_p1_ipp(1)
- wml::des::typography(3)
- wml::std::grid(3)
- wml::fmt::pod(3)
- wml::imp::csmap(3)
- wml_p7_htmlfix(1)
- wml_tags(7)
- wml::all(3)
- wml::std::info(3)
- wml::fmt::xtable(3)
- wml::fmt::url(3)
- wml::std::tags(3)
- wml::mod::version(3)
- wml::sys::all(3)
- wmd(1)
- wmb(1)
- wml::fmt::all(3)
- wml::sys::compat1(3)
- wml_tutorial(7)
- wml_aux_map2html(1)
- wml::std::logo(3)
- wml::fmt::isolatin(3)
- wml-params-conf(1)
- wmk(1)
- wml::des::preload(3)
- wml::des::all(3)
- wml::std::page(3)
- wml::des::lowsrc(3)
- wmd_missing(1)
- wml::std::label(3)
- wml::des::gfont(3)
- wml::std::box(3)
- wml::sup::path(3)
- wml::des::space(3)
- wml::std::case(3)
- wml::mod::all(3)
- wml_p6_asubst(1)
- wml::imp::all(3)
- wml::imp::generic(3)
- wml::des::imgbg(3)
- wml::sys::bootp3(3)
- wml::des::imgdot(3)
- wml::sup::hextriple(3)
- wml_p8_htmlstrip(1)
apt-get install wml
Manual
HTMLFIX
NAMESYNOPSIS
DESCRIPTION
OPTIONS
AUTHORS
NAME
htmlfix - Fixup HTML markup code
SYNOPSIS
htmlfix [ -o outputfile ] [ -F fixes ] [ -S fixes ] [ -v ] [ inputfile ]
DESCRIPTION
The
htmlfix
program reads
inputfile
or from
"stdin" and performs the following actions (name
of each fixup is within parentheses):
(
imgsize
) :
Adding
WIDTH
and
HEIGHT
attributes to
IMG
tags
For all "IMG" tags which donβt already have both "WIDTH" and "HEIGHT" attributes (matched case insensitive), the size of the image (taken from the "SRC" attribute) is determined and the missing ββ"width=X"ββ and/or ββ"height=Y"ββ is added to the list of attributes. The intention is to speedup the layouting of the final webpage.
Donβt intermix this with a size checker: htmlfix will only add missing width/height attributes and donβt adjust ones with wrong dimensions. This is because else the user woulnβt be able to scale images (used a lot by webdesigners via 1pt dot-images).
There is a special case: When the "WIDTH" or "HEIGHT" attribute already exists and has a value of ββ"*"ββ this asterisk is replaced by the physical value instead of appending a new attribute. Use when you want the attributes at a certain position, i.e. use this variant as a placeholder.
HTMLfix supports one additionl feature in conjunction with "WIDTH" and "HEIGHT": "SCALE=" factor and "SCALE=" percent "%". This can be used to scale the given or determined width and height values by multiplying with factor or multiplying with percent /100.
( imgalt ) : Adding ALT attribute to IMG tags
For all "IMG" tags which donβt already have a "ALT" tag an "ALT=""" attribute is added. The intention is to both make HTML checkers like weblint (1) happy and to demystify the final webpage for lynx (1) users.
( summary ) : Adding SUMMARY attribute to TABLE tags
This attribute helps non-visual rendering of tables by adding a hint on its contents, and it makes tidy (1) quiet.
( center ) : Changing proprietary CENTER tag to standard DIV tag
All proprietary (Netscape) "CENTER" tags are replaced by the HTML 3.2 conforming construct ββ"<DIV ALIGN=CENTER>"ββ.
( space ) : Fix trailing spaces in tags
Appendix C of the XHTML Specification recommends putting a space before closing simple tags to help rendering by old browsers. This space is automatically added when this fixup is used. On the other hand, all spaces before a right-angle bracker are suppressed.
( quotes ) : Adding missing quotes for attributes
All attributes of the form ββ"...=xyz"ββ are replaced by ββ"...="xyz""ββ. Furthermore all (color) attributes of the form ββ"...="XXYYZZ""ββ ( XX,YY,ZZ elements of set {0,..,9,a,..,f} are fixed to ββ"...="#XXYYZZ""ββ.
( indent ) : Indenting paragraphs
Paragraphs enclosed in "<indent [num=N] [size=S]>"..."</indent>" containers are indented by N*S spaces. When N=0 then the whitespace block in front of the paragraph is removed. Default is a 4 space indentation (N=1, S=4).
( comment ) : Out-commenting tags
Sometimes it is useful to temporarily out-comment a tag instead of completely removing it. This can be done by just adding a sharp (ββ"#"ββ) character directly to the end of the tagname. The result is that the complete tag is commented out. For container-tags you have to comment out the end-tag explicitly, too. Example: ββ<"a# href="..."">ββ.
( tagcase ) : Markup-code case-conversion
Some people like their HTML markup code either to be all uppercase or all lowercase. This tag case-conversion is supported by the internal "<tagconv case=...>"..."</tagconv>" container tag from HTMLfix. Use "case=upper" to translate the HTML tags in its body to uppercase (default) or "case=lower" to translate them to lowercase.
OPTIONS
-o outputfile
This redirects the output to outputfile . Usually the output will be send to "stdout" if no such option is specified or outputfile is ""-"".
-F fixes
This option specifies which specifix fixups are performed. Its argument is a comma separated list of fixup names, and by default all fixups are performed.
-S fixes
This option does the inverse job, it skips specified fixups.
|
-v |
This sets verbose mode where some processing information will be given on the console. |
AUTHORS
Ralf S.
Engelschall
rse@engelschall.com
www.engelschall.com
Denis Barbier
barbier@engelschall.com