Re: Bug#354640: tidy -utf8 -raw or else wrapping wacko on wide chars

Dan Jacobson <[email protected]> Fri, 03 Mar 2006 06:24:32 +0800
Newsgroups gmane.comp.web.html-tidy.devel
Message-ID <[email protected]>
Bug confirmed in version 20051018-1 too. For now using worrisome workaround:
$ tidy -utf8 Chinese.html|
perl -nwe 'BEGIN{use Text::Wrap; $Text::Wrap::huge="overflow";
$Text::Wrap::unexpand=0} if(/<pre>/../<\/pre>/){print;next}
$l=$_; s/[^[:ascii:]]{3}/12/g; if(length>80){
print wrap(""," ",$l)}else{print $l}'
#Text::WrapI18N has no $huge, fold(1) same. Yes not using perl -C.


-------------------------------------------------------
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