* ConTeXt MKIV bug: Chinese left aligned does not work as should
@ 2008-11-09 12:31 Yue Wang
2008-11-10 9:24 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Yue Wang @ 2008-11-09 12:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 327 bytes --]
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
[-- Attachment #2: chi.pdf --]
[-- Type: application/pdf, Size: 4596 bytes --]
[-- Attachment #3: chi.tex --]
[-- Type: application/x-tex, Size: 502 bytes --]
[-- Attachment #4: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ConTeXt MKIV bug: Chinese left aligned does not work as should
2008-11-09 12:31 ConTeXt MKIV bug: Chinese left aligned does not work as should Yue Wang
@ 2008-11-10 9:24 ` Hans Hagen
2008-11-10 10:03 ` Yue Wang
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2008-11-10 9:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ConTeXt MKIV bug: Chinese left aligned does not work as should
2008-11-10 9:24 ` Hans Hagen
@ 2008-11-10 10:03 ` Yue Wang
2008-11-10 10:40 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Yue Wang @ 2008-11-10 10:03 UTC (permalink / raw)
To: mailing list for ConTeXt users, Yanrui Li
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 <pragma@wxs.nl>:
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ConTeXt MKIV bug: Chinese left aligned does not work as should
2008-11-10 10:03 ` Yue Wang
@ 2008-11-10 10:40 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2008-11-10 10:40 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Yanrui Li
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-11-10 10:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-09 12:31 ConTeXt MKIV bug: Chinese left aligned does not work as should Yue Wang
2008-11-10 9:24 ` Hans Hagen
2008-11-10 10:03 ` Yue Wang
2008-11-10 10:40 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).