From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31926 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: please add support for Korean language in unic-cjk.tex Date: Wed, 22 Nov 2006 11:02:28 +0100 Message-ID: <45642034.1060909@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164189768 19501 80.91.229.2 (22 Nov 2006 10:02:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 10:02:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 22 11:02:42 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmowC-0007Ff-AX for gctc-ntg-context-518@m.gmane.org; Wed, 22 Nov 2006 11:02:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BD46C1FE0F; Wed, 22 Nov 2006 11:01:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31025-08-5; Wed, 22 Nov 2006 11:01:28 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EC0BE1FC14; Wed, 22 Nov 2006 11:01:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 435B51FC14 for ; Wed, 22 Nov 2006 11:01:26 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31025-08-4 for ; Wed, 22 Nov 2006 11:01:24 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id 347661FC07 for ; Wed, 22 Nov 2006 11:01:24 +0100 (CET) Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 19552 for ; Wed, 22 Nov 2006 11:02:28 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: mailing list for ConTeXt users In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31926 Archived-At: Dohyun Kim wrote: > Hi. > > Recently I have tried to support typesetting UTF-8 Korean language > along with context-beta. I have uploaded related files > to a temporary server for your reference (3.5Mb): > > http://210.94.201.157/~nomos/KTUG/context-korean-test.tar.gz > > But as the current unic-cjk.tex does not cover > Korean Hangul Syllables area and CJK Compatibility Ideographs area, > I have to edit that file every time I upgrade context. > It is so an annoying thing to do it every time > that I suggest adding those areas in unic-cjk.tex file, like this: > > %%% Hangul Syllables > \dostepwiserecurse{172}{215}{1}{\expanded{\defineunicodecommand > {\recurselevel}} {\lookaheaduchar}} > %%% CJK Compatibility Ideographs > \dostepwiserecurse{249}{250}{1}{\expanded{\defineunicodecommand > {\recurselevel}} {\lookaheaduchar}} > > ok, done > Additionally, I here report some possible bugs of context-beta > related to CJK (especially Korean language) support. > > First, unintended space is inserted when I change font family. > This disappears if I add a comment sign in \enableunicodefont > command in font-uni.tex. > > \def\enableunicodefont#1% > {\definefontsynonym[\s!Unicode][\getvalue{\??uc#1\c!file}]% > \def\unicodescale {\getvalue{\??uc#1\c!scale}}% > \def\unicodeheight {\getvalue{\??uc#1\c!height}}% > \def\unicodedepth {\getvalue{\??uc#1\c!depth}}% > \def\unicodedigits {\getvalue{\??uc#1\c!conversion}}% > \def\handleunicodeglyph {\getvalue{\??uc#1\c!command}}% > \doifnot\currentregime{utf}{\enableregime[unicode]}% > % the following \relax's are realy needed > \doifvalue{\??uc#1\c!interlinespace}\v!yes > \setupinterlinespace\relax > \doifvalue{\??uc#1\c!strut}\v!yes > {\setunicodestrut\unicodeheight\unicodedepth}% <- HERE > {\resetunicodestrut}% > \getvalue{\??uc#1\c!commands}\relax} > > ah, it's actually someting else that's wrong: \doifvalue -> \doifelsevalue \doifelsevalue{\??uc#1\c!strut}\v!yes {\setunicodestrut\unicodeheight\unicodedepth} {\resetunicodestrut}% in the wrong case indeed the space is visible, else not; this bug went unnoticed because the reset is grouped in the wrong case > Secondly, to deal with special commands in pdf bookmarks, > "\simplifycommands" should be added to \sanitizePDFuniencoding > command in spec-tst.tex. > > \long\def\sanitizePDFuniencoding#1\to#2% > {\enablePDFunicrlf > \simplifycommands % <- HERE > \let\unicodechar\relax % prevent further expansion > \retainlccodes\lccode32=255 % slooow > \lowercasestring\PDFunicodetrigger#1\to#2% > \edef#2{\expandafter\doPDFuni#2\empty\empty}} % slooow > > ok, remind me to clean this up when mkiv comes around > Thirdly, "\definefileinsertion{tpd}{mps}" in spec-dpx.tex > seems to be a typo. I think this should be corrected as follows: > > \definefileinsertion{dpx}{mps} > > ok > In fact, as an unsubscribed user I have posted a similar message > to the context mailinglist a few weeks ago . But I did not obtain > any response then. Now being subscribed, I repost it. > > and it gets read -) i'll make a new current release that you can test in an hour from now 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 -----------------------------------------------------------------