Re: tidy -utf8 wrapping wacko on wide chars
Bjoern Hoehrmann <[email protected]> Sun, 26 Mar 2006 05:45:08 +0200
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <[email protected]> |
* Dan Jacobson wrote: >All Chinese characters are two ASCII characters wide upon display. This may be true on your system, on my system, when I load the page you suggest in Visual Studio, they are about 1.5 times the width as "ASCII" characters; 1.0 times in Notepad, varying size when not using a fixed width font, and so on. I don't disagree that more sophisticated options to control this would make for a good feature though. I think this is a new feature, however. >The challenge: download e.g., http://jidanni.org/me/index.html . >Note how it fits nicely in your 80 column wide UTF-8 capable editor. >Now dare to run tidy -utf8 on it. Disaster. Many lines now go way off the >edge of the editor. So what's wrong with, say, -wrap 50? I see that this might make some lines too short... Did you have a look at the pretty printer code and could tell what's needed there? I'm not sure this is easy to add given the current design of it. -- Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642