ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Adam Lindsay <atl@comp.lancs.ac.uk>
Subject: Re: Chinese
Date: Fri, 09 Dec 2005 14:43:07 +0000	[thread overview]
Message-ID: <439997FB.3000600@comp.lancs.ac.uk> (raw)
In-Reply-To: <43998EB1.8080609@net-b.de>

Tobias Burnus wrote:
> Hi,
> 
> Xiao Jianfeng wrote:
> 
>>> What would be needed to get UTF-8 input running with Chinese?
>>
>> If you use vim to edit your tex file, maybe you can try "set 
>> encoding=utf8", then save and compile.
>> As far as I know, GBK is compatible with unicode.
> 
> No, that does not work - that is the reason I started this mail thread.
> You get the wrong characters and you may get some TeX errors.
> (And that is the reason Lutz wrote a UTF-8 to GBK converted.)

Hmm, I suspect that some remix between my old (deprecated) Libertine in 
ConTeXt recipe and the ttf2tfm automatic unicode splitting would have 
some positive effects.

(I would discourage using that recipe for alphabetic (incl Roman) 
Unicode fonts because it blows away any kerning that would happen 
between unicode blocks. Is there less kerning among CJK fonts? I would 
expect so.)

Thinking aloud, you'd probably want to include some language-switching 
commands, to mediate between the calling of unicode fonts for un-named 
CJK glyphs (just raw conversion from Unicode to font switch + glyph 
number) to named roman (and other alphabetic) glyphs (conversion from 
UTF-8 to named glyphs to font+glyph, which retains kerning where it can).

I know it's sketchy and vague, but have a look inside font-uni. It's not 
the most complicated file in the distro.

adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
  Lancaster University, InfoLab21        +44(0)1524/510.514
  Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  parent reply	other threads:[~2005-12-09 14:43 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-05  7:36 strange behavior of startbackground Xiao Jianfeng
2005-12-05  7:43 ` Xiao Jianfeng
2005-12-05  9:07   ` Hans Hagen
2005-12-05 12:46     ` Xiao Jianfeng
2005-12-05 14:33       ` Hans Hagen
2005-12-06  2:04         ` Xiao Jianfeng
2005-12-06  2:29           ` Xiao Jianfeng
2005-12-08 12:36             ` Patrick Gundlach
2005-12-08 15:35               ` Chinese (was:Re: strange behavior of startbackground) Tobias Burnus
2005-12-08 20:26                 ` Chinese Tobias Burnus
2005-12-08 22:11                   ` Chinese Patrick Gundlach
2005-12-09  2:19                   ` Chinese Xiao Jianfeng
2005-12-09 10:53                     ` Chinese Tobias Burnus
2005-12-09 13:46                       ` Chinese Xiao Jianfeng
2005-12-09 14:03                         ` Chinese Tobias Burnus
2005-12-09 14:19                           ` Chinese Xiao Jianfeng
2005-12-09 14:24                           ` Chinese Xiao Jianfeng
2005-12-09 15:01                             ` Chinese Tobias Burnus
2005-12-09 15:24                             ` Chinese Richard Gabriel
2005-12-12 15:53                               ` Chinese Hans Hagen
2005-12-12 21:15                                 ` Chinese Tobias Burnus
2005-12-14 22:19                                   ` Chinese Hans Hagen
2005-12-13  9:14                                 ` Chinese Richard Gabriel
2005-12-13  9:55                                   ` Chinese Hans Hagen
2005-12-13 10:31                                   ` Chinese Xiao Jianfeng
2005-12-09 14:43                           ` Adam Lindsay [this message]
2005-12-09 15:30                             ` Chinese Tobias Burnus
2005-12-12 12:29                               ` Chinese Hans Hagen
2005-12-06  2:29           ` strange behavior of startbackground Xiao Jianfeng
2005-12-05  7:48 ` Xiao Jianfeng
2005-12-05  7:52 ` Xiao Jianfeng
2005-12-05  8:50 ` Taco Hoekwater
2005-12-05  9:05 ` Hans Hagen
2005-12-05 12:37   ` Xiao Jianfeng
2005-12-05 14:35     ` Hans Hagen
     [not found] <20051212173143.94765127FA@ronja.ntg.nl>
2005-12-13  8:07 ` Chinese Duncan Hothersall
     [not found] <20051209110003.CF289127DF@ronja.ntg.nl>
2005-12-09 11:06 ` Chinese Duncan Hothersall
  -- strict thread matches above, loose matches on Subject: below --
2002-05-18  0:42 chinese Jens-Uwe Morawski
2002-05-19 22:29 ` chinese Hans Hagen
     [not found]   ` <5.1.0.14.1.20020521085937.0405c110@server-1>
     [not found]     ` <001801c20415$4fe46e30$04c7fea9@wanglei>
2002-05-25 20:25       ` chinese Hans Hagen
2002-05-26 18:42         ` chinese Mr. Lei Wang
2002-05-26 19:28           ` chinese 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=439997FB.3000600@comp.lancs.ac.uk \
    --to=atl@comp.lancs.ac.uk \
    --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).