From: "Yue Wang" <yuleopen@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>,
"Yanrui Li" <liyanrui.m2@gmail.com>
Subject: Re: ConTeXt MKIV bug: Chinese left aligned does not work as should
Date: Mon, 10 Nov 2008 18:03:10 +0800 [thread overview]
Message-ID: <68bfdc900811100203p5db34c54pf3fa695c835ea0be@mail.gmail.com> (raw)
In-Reply-To: <4917FDE3.3080200@wxs.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 <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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-11-10 10:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-09 12:31 Yue Wang
2008-11-10 9:24 ` Hans Hagen
2008-11-10 10:03 ` Yue Wang [this message]
2008-11-10 10:40 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=68bfdc900811100203p5db34c54pf3fa695c835ea0be@mail.gmail.com \
--to=yuleopen@gmail.com \
--cc=liyanrui.m2@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).