Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: HTML beautifier



Jonathan Byrne - 3Web wrote:
 
I'm currently testing HTB (HTML Beautifier) from Tim Schramer. It does
parts of what you want to do but not everything.

<URL:http://www.digital-mines.com/htb/downloads.html> 

> 1) Convert all alphabetic characters following a < to uppercase, until a
> space or = sign is encountered.  It should not be spooked by double-byte
> characters, and of course, ignore all characters other than alphabetic
> ones, the = sign, or a space.

With HTB you can convert to lowercase or uppercase. Content is not being
touched unless you force to break every line that is longer than 80
characters. I never tried it on a Japanese page though)   

 
> 2) Convert all alphabetic characters between a set of quotation marks to
> lowercase.  Again, it should not be spooked by double-byte characters,
> and it should ignore all non-alphabetic characters in the string to be
> converted.

HTB doesn't touch the attribute values for reasons mentioned earlier in
this thread.
 
> 3) Do the whole document in one fell swoop.

HTB is a command line tool and does process the file in one swoop,
actually you don't have another choice.
Note: I had some trouble on my system lately with HTB spitting out
Segmentation Faults. All the supported platforms seem to work fine, but
Linux (and there is no source code available). :(

You might contact the author about the lower case attribute values. The
very first beta version did mess with my JavaScript and screwed
everything up, I contacted Tim and he changed it.

urs


-- 
u r s  r o e s c h             h a c h i o j i,  t o k y o
----------------------------------------------------------
e# urs@example.com                   aim# uru uru 71
w# http://www.digital-mines.com              icq# 13780972
--------------------------------------------------------------
Next Meeting: 8 August, Tokyo Station Yaesu central gate 12:30
featuring Linux on multiple platforms:
i386, Sparc, PA-Risc, Amiga, SGI, Alpha, PalmPilot, ...
Next Nomikai: September, 19:30 Tengu TokyoEkiMae 03-3275-3691
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links