ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: dalyoung <haksan@me.com>
To: ntg-context@ntg.nl
Subject: Re: More CJK fall-back fonts (S Barmeier)
Date: Sat, 10 Mar 2012 21:32:26 +0900	[thread overview]
Message-ID: <DB3F18AF-84B8-4FA8-BE64-37DF8CD83C75@me.com> (raw)
In-Reply-To: <mailman.1.1331377202.6892.ntg-context@ntg.nl>

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
___________________________________________________________________________________


       reply	other threads:[~2012-03-10 12:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1331377202.6892.ntg-context@ntg.nl>
2012-03-10 12:32 ` dalyoung [this message]
     [not found] <mailman.2708.1331386188.4232.ntg-context@ntg.nl>
2012-03-11 11:54 ` dalyoung

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=DB3F18AF-84B8-4FA8-BE64-37DF8CD83C75@me.com \
    --to=haksan@me.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).