ConTeXt MKIV bug: Chinese left aligned does not work as should
Hi, Hans: It seems that left aligned (flushright) does not work for chinese. I attach the minimal test files in the mail. To test the file, please download the zhfonts.tex from http://code.google.com/p/ctxnotes/downloads/list, and the adobe Chinese fonts. (I also mailed you these files long ago for other problems) Yue Wang
Yue Wang wrote:
Hi, Hans:
It seems that left aligned (flushright) does not work for chinese. I attach the minimal test files in the mail. To test the file, please download the zhfonts.tex from http://code.google.com/p/ctxnotes/downloads/list, and the adobe Chinese fonts. (I also mailed you these files long ago for other problems)
taco and i looked into this it has to do with the fact that the intercharacter spacing has more stretch than the leftskip and since raggedright is achieved differently from raggedleft, there is no easy solution; we could make raggedright behave like raggedleft but that would influence hyphenation too much however, there is a way out ... \startbuffer 1中中中中中中中中中中中中中中中中中中中中中中中中中% 中中中中中中中中中中中中中中中中中中中中中中中中中% 中中中中中中中中中中中中中中中中中中中中中中中中中% 中中中中中中中中中中中中中中中中中中中中中中中中中% \stopbuffer \framedtext [align={broad,flushright},width=90mm] {\getbuffer} \framedtext [align={broad,flushleft},width=90mm] {\getbuffer} \framedtext [align=middle,width=90mm] {\getbuffer} some time in the future we can think of language specific defaults, like \let\raggedleft\veryraggedleft \let\raggedleft\veryraggedright for chinese but first we need to investigate to what extend we need such language specific defaults adapting the leftskip node in the nodelist is also an option, but that might have unwanted side effects so best is to keep it under user control make sure to wikify this ... Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi, Hans:
wikified in http://wiki.contextgarden.net/Chinese_Flush_Right
and I think Li Yanrui will put this into his ctxnote introduction:
http://code.google.com/p/ctxnotes/
And I hope there is a perfect solution soon (it is strange that LaTeX
left/right align works good).
Yue Wang
2008/11/10 Hans Hagen
Yue Wang wrote:
Hi, Hans:
It seems that left aligned (flushright) does not work for chinese. I attach the minimal test files in the mail. To test the file, please download the zhfonts.tex from http://code.google.com/p/ctxnotes/downloads/list, and the adobe Chinese fonts. (I also mailed you these files long ago for other problems)
taco and i looked into this
it has to do with the fact that the intercharacter spacing has more stretch than the leftskip and since raggedright is achieved differently from raggedleft, there is no easy solution; we could make raggedright behave like raggedleft but that would influence hyphenation too much
however, there is a way out ...
\startbuffer 1中中中中中中中中中中中中中中中中中中中中中中中中中% 中中中中中中中中中中中中中中中中中中中中中中中中中% 中中中中中中中中中中中中中中中中中中中中中中中中中% 中中中中中中中中中中中中中中中中中中中中中中中中中% \stopbuffer
\framedtext [align={broad,flushright},width=90mm] {\getbuffer}
\framedtext [align={broad,flushleft},width=90mm] {\getbuffer}
\framedtext [align=middle,width=90mm] {\getbuffer}
some time in the future we can think of language specific defaults, like
\let\raggedleft\veryraggedleft \let\raggedleft\veryraggedright
for chinese but first we need to investigate to what extend we need such language specific defaults
adapting the leftskip node in the nodelist is also an option, but that might have unwanted side effects so best is to keep it under user control
make sure to wikify this ...
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Yue Wang wrote:
adapting the leftskip node in the nodelist is also an option, but that might have unwanted side effects so best is to keep it under user control
well, it all depends on hwo one defined raggedleft and raggedright; it just happens that the context defaults are tuned differently i'm pretty sure that there are more differences between context and latex -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Yue Wang