ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Yue Wang" <yuleopen@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: MKII font-chi.tex bug fix
Date: Sat, 23 Feb 2008 17:06:04 +0800	[thread overview]
Message-ID: <68bfdc900802230106k109a2a4ayafb389aea4ea38ba@mail.gmail.com> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2008-02-23  9:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23  9:06 Yue Wang [this message]
2008-02-26 15:12 ` 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=68bfdc900802230106k109a2a4ayafb389aea4ea38ba@mail.gmail.com \
    --to=yuleopen@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).