Re: tidy -utf8 wrapping wacko on wide chars
Dan Jacobson <[email protected]> Thu, 30 Mar 2006 07:12:32 +0800
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <[email protected]> |
All I know is in my fixed width world of editing HTML files, these two lines look exactly the same length, 1234567890 1234567890 1234567890 12345678901234567890 12345678901234567890 12345678901234567890 (On e.g., Linux) please do $ a=12345 b=67890 $ for i in $a $b "$a $b"; do perl -wle "print q($i ) x 20"|tidy -utf8 -q; done and tell me if tidy -utf8 doesn't miscalculate where to wrap -- the point of the wrap column being to fit things on the screen! I give it ample space characters to break at. Only with pure ASCII does it get it right. You must admit that there are some lines from the above that stick out way farther than the ASCII ones... off the screen. B> I think this is a new feature, however. Emacs seems to know double width characters are double width. B> So what's wrong with, say, -wrap 50? Once tried it for 3 minutes. Anyway, it's either ASCII paragraphs way to short, wide character paragraphs way too long. And mixed paragraphs mixed... B> Did you have a look at the pretty printer code and could tell B> what's needed there? Please give exact modem small download URL or email me... But I am lately getting rather dull headed so may not be able to figure it out. ------------------------------------------------------- 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&kid0944&bid$1720&dat1642