ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MKII font-chi.tex bug fix
@ 2008-02-23  9:06 Yue Wang
  2008-02-26 15:12 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Yue Wang @ 2008-02-23  9:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi, there

I am still using MKII to do Chinese typesetting.
As I mentioned before, User should use this in their source files to
produce correct spaces between the chinese characters and english
words
中文English\ 中文
instead of
中文 English 中文
or
中文English中文
which is quite annoying.
In order to remove this constraint,
here is what I have found out:
Uncomment line 248 and line 267 of font-chi.tex will do.

--- font-chi.tex.orig   2008-02-23 11:32:55.000000000 +0800
+++ font-chi.tex        2008-02-23 11:30:48.000000000 +0800
@@ -245,7 +245,6 @@
       \insertchineseglyph
       \ifcase\chineseAstatus\relax
         \hskip\chineseinterglyphskip    % unknown
-         \hskip\chinesesurroundskip
         \ifcase\chineseSstatus
           \hskip\chineseSsignal
         \or
@@ -264,7 +263,6 @@
         \hskip\chineseRsignal
       \or
         \hskip\chineseinterglyphskip    % space
-         \hskip\chinesesurroundskip
         \hskip\chineseSsignal
       \fi
     \or % left

This patch works pretty good on most of the cases if you use 中文 English 中文.
however, 中文English中文 makes no space between chinese and English.
and changing the \chinesesurroundskip will only affect the space after English.
But it works now. I hope this information helpful.
Maybe ConTeXt experts can make more improvements in the future and
test from ConTeXt users are helpful.


Yue Wang
___________________________________________________________________________________
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] 2+ messages in thread

* Re: MKII font-chi.tex bug fix
  2008-02-23  9:06 MKII font-chi.tex bug fix Yue Wang
@ 2008-02-26 15:12 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2008-02-26 15:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Yue Wang wrote:
> Hi, there
> 
> I am still using MKII to do Chinese typesetting.
> As I mentioned before, User should use this in their source files to
> produce correct spaces between the chinese characters and english
> words
> 中文English\ 中文
> instead of
> 中文 English 中文
> or
> 中文English中文
> which is quite annoying.
> In order to remove this constraint,
> here is what I have found out:
> Uncomment line 248 and line 267 of font-chi.tex will do.

the problem is that tex cannot look back or forward with respect to
glyphs; chinese chars are active in mkii but regular latin is not and
cannot be active, so ther ei sno robust solution possible

in mkiv we can try to deal with it (given clear rules)

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] 2+ messages in thread

end of thread, other threads:[~2008-02-26 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23  9:06 MKII font-chi.tex bug fix Yue Wang
2008-02-26 15:12 ` 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).