From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74999 Path: news.gmane.org!not-for-mail From: dalyoung Newsgroups: gmane.comp.tex.context Subject: Re: More CJK fall-back fonts (S Barmeier) Date: Sat, 10 Mar 2012 21:32:26 +0900 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1331382786 26762 80.91.229.3 (10 Mar 2012 12:33:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2012 12:33:06 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 10 13:33:05 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S6LTs-0007mD-8f for gctc-ntg-context-518@m.gmane.org; Sat, 10 Mar 2012 13:33:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7CDF5CB2D2; Sat, 10 Mar 2012 13:33:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0i6OjHAWXdjJ; Sat, 10 Mar 2012 13:33:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA22BCB2D5; Sat, 10 Mar 2012 13:33:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7D4EDCB2D5 for ; Sat, 10 Mar 2012 13:32:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SI0ny-IGH9Gt for ; Sat, 10 Mar 2012 13:32:57 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 92D12CB2D2 for ; Sat, 10 Mar 2012 13:32:57 +0100 (CET) Original-Received: from asmtpout020.mac.com (asmtpout020.mac.com [17.148.16.95]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2ACWtiY011050 for ; Sat, 10 Mar 2012 13:32:56 +0100 Original-Received: from [10.0.1.4] ([1.235.87.66]) by asmtp020.mac.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0M0O00CVB5I34440@asmtp020.mac.com> for ntg-context@ntg.nl; Sat, 10 Mar 2012 12:32:32 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7498,1.0.260,0.0.0000 definitions=2012-03-10_04:2012-03-09, 2012-03-10, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1203100076 In-reply-to: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=17.148.16.95; country=US; region=CA; city=Cupertino; postalcode=95014; latitude=37.3042; longitude=-122.0946; metrocode=807; areacode=408; http://maps.google.com/maps?q=37.3042,-122.0946&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VGHMwTXU - 2eefafefe371 - 20120310 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74999 Archived-At: Dear Severin, I use a Korean unfont as main fonts and an English fonts as fallback font using the following type script file which is made by the help of Hans and D.H. Kim. You may set fonts similarly. Korean fonts contained Chinese glyph(not all of them) and Japanese glyph, we don't have any problem to use them. I hope that it may help you to find a solution of your problem. Best regards, Dalyoung P.S. Any comments on the following script file are appreciated. ******************** \definefontfeature[krdefault][mode=node,script=hang,lang=kor] \definefontfeature[krslanted][mode=node,script=hang,lang=kor,slant=.2] \def\mydefaultfeatures{kern=yes;liga=yes;tlig=yes;trep=yes} \def\mysmallcapsfeatures{\mydefaultfeatures;smcp=yes} \def\myslantfeatures{\mydefaultfeatures;slant=.2} %%% fallbacks for english \definefontfallback[serifwhatever] [texgyrepagella-regular:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifboldwhatever] [texgyrepagella-bold:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifitalicwhatever] [texgyrepagella-italic:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifbolditalicwhatever] [texgyrepagella-bolditalic:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifslantedwhatever] [texgyrepagella-regular:\myslantfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifboldslantedwhatever] [texgyrepagella-bold:\myslantfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifcapswhatever] [texgyrepagella-regular:\mysmallcapsfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sanswhatever] [texgyreheros-regular:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansboldwhatever] [texgyreheros-bold:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansitalicwhatever] [texgyreheros-italic:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansbolditalicwhatever] [texgyreheros-bolditalic:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansslantedwhatever] [texgyreheros-regular:\myslantfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansboldslantedwhatever] [texgyreheros-bold:\myslantfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sanscapswhatever] [texgyreheros-regular:\mysmallcapsfeatures] [0x0000-0x0400][force=yes] \definefontfallback[monowhatever] [texgyrecursor-regular] [0x0000-0x0400][force=yes] \definefontfallback[monoboldwhatever] [texgyrecursor-bold] [0x0000-0x0400][force=yes] \definefontfallback[monoitalicwhatever] [texgyrecursor-italic] [0x0000-0x0400][force=yes] \definefontfallback[monobolditalicwhatever] [texgyrecursor-bolditalic] [0x0000-0x0400][force=yes] \definefontfallback[monoslantedwhatever] [texgyrecursor-regular:slant=.2] [0x0000-0x0400][force=yes] \definefontfallback[monoboldslantedwhatever] [texgyrecursor-bold:slant=.2] [0x0000-0x0400][force=yes] \definefontfallback[monocapswhatever] [texgyrecursor-regular:smcp=yes] [0x0000-0x0400][force=yes] \starttypescript [math] [stix] [name] \definefontsynonym[MathRoman][file:stixmath-regular.otf] [features=math] \stoptypescript \starttypescript [math] [xits] [name] \definefontsynonym[MathRoman][file:xits-math.otf] [features=math] \stoptypescript %%%%%% UnFonts \starttypescript [serif] [unBatang] \definefontsynonym [unbatang] [UnBatang.ttf] [features=krdefault,fallbacks=serifwhatever] \definefontsynonym [unbatangbold] [UnBatangBold.ttf] [features=krdefault,fallbacks=serifboldwhatever] \definefontsynonym [unbatangitalic] [UnBatang.ttf] [features=krslanted,fallbacks=serifitalicwhatever] \definefontsynonym [unbatangbolditalic] [UnBatangBold.ttf] [features=krslanted,fallbacks=serifbolditalicwhatever] \definefontsynonym [unbatangslanted] [UnBatang.ttf] [features=krslanted,fallbacks=serifslantedwhatever] \definefontsynonym [unbatangboldslanted] [UnBatangBold.ttf] [features=krslanted,fallbacks=serifboldslantedwhatever] \definefontsynonym [unbatangcaps] [UnBatang.ttf] [features=krdefault,fallbacks=serifcapswhatever] \stoptypescript \starttypescript [serif][unBatang][name] \definefontsynonym[Serif] [unbatang] \definefontsynonym[SerifBold] [unbatangbold] \definefontsynonym[SerifItalic] [unbatangitalic] \definefontsynonym[SerifBoldItalic] [unbatangbolditalic] \definefontsynonym[SerifSlanted] [unbatangslanted] \definefontsynonym[SerifBoldSlanted] [unbatangboldslanted] \definefontsynonym[SerifCaps] [unbatangcaps] \stoptypescript \starttypescript[sans][unDotum] \definefontsynonym[undotum] [UnDotum.ttf] [features=krdefault,fallbacks=sanswhatever] \definefontsynonym[undotumbold] [UnDotumBold.ttf] [features=krdefault,fallbacks=sansboldwhatever] \definefontsynonym[undotumitalic] [UnDotum.ttf] [features=krslanted,fallbacks=sansitalicwhatever] \definefontsynonym[undotumbolditalic] [UnDotumBold.ttf] [features=krslanted,fallbacks=sansbolditalicwhatever] \definefontsynonym[undotumslanted] [UnDotum.ttf] [features=krslanted,fallbacks=sansslantedwhatever] \definefontsynonym[undotumboldslanted] [UnDotumBold.ttf] [features=krslanted,fallbacks=sansboldslantedwhatever] \definefontsynonym[undotumcaps] [UnDotum.ttf] [features=krdefault,fallbacks=sanscapswhatever] \stoptypescript \starttypescript[sans][unDotum][name] \definefontsynonym[Sans] [undotum] \definefontsynonym[SansBold] [undotumbold] \definefontsynonym[SansItalic] [undotumitalic] \definefontsynonym[SansBoldItalic] [undotumbolditalic] \definefontsynonym[SansSlanted] [undotumslanted] \definefontsynonym[SansBoldSlanted] [undotumboldslanted] \definefontsynonym[SansCaps] [undotumcaps] \stoptypescript \starttypescript[mono][unType] \definefontsynonym[untype] [UnTaza.ttf] [features=krdefault,fallbacks=monowhatever] \definefontsynonym[untypebold] [UnTaza.ttf] [features=krdefault,fallbacks=monoboldwhatever] \definefontsynonym[untypeitalic] [UnTaza.ttf] [features=krslanted,fallbacks=monoitalicwhatever] \definefontsynonym[untypebolditalic] [UnTaza.ttf] [features=krslanted,fallbacks=monobolditalicwhatever] \definefontsynonym[untypeslanted] [UnTaza.ttf] [features=krslanted,fallbacks=monoslantedwhatever] \definefontsynonym[untypeboldslanted] [UnTaza.ttf] [features=krslanted,fallbacks=monoboldslantedwhatever] \definefontsynonym[untypecaps] [UnTaza.ttf] [features=krdefault,fallbacks=monocapswhatever] \stoptypescript \starttypescript[mono][unType][name] \definefontsynonym[Mono] [untype] \definefontsynonym[MonoBold] [untypebold] \definefontsynonym[MonoItalic] [untypeitalic] \definefontsynonym[MonoBoldItalic] [untypebolditalic] \definefontsynonym[MonoSlanted] [untypeslanted] \definefontsynonym[MonoBoldSlanted] [untypeboldslanted] \definefontsynonym[MonoCaps] [untypecaps] \stoptypescript \starttypescript[unFonts] \definetypeface[Myface][rm][serif][unBatang] \definetypeface[Myface][ss][sans] [unDotum] \definetypeface[Myface][tt][mono] [unType] % \definetypeface [Myface][mm][math] [modern] [modern] \definetypeface [Myface][mm][math] [xits] \stoptypescript ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________