From: dalyoung <haksan@me.com>
To: ntg-context@ntg.nl
Subject: Re: Asian Language Support
Date: Tue, 08 May 2012 22:48:09 +0900 [thread overview]
Message-ID: <FDD4330F-6730-47AB-9E52-157FEDB64BAB@me.com> (raw)
In-Reply-To: <mailman.3.1336471202.23349.ntg-context@ntg.nl>
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
>
> Just a remark: for cjk one can best use the mkiv feature to combine
> fonts; there are probably some examples of korean fonts mixed with e.g.
> palatino or times in the email archive.
Here is a sample typescript file for mixed Korean and English fonts suggested by Hans.
Using this file, I can use Korean font for Korean and Palatino for English.
It works well.
You can modify this file for your purpose.
Good luck!
Best regards,
Dalyoung
[-- Attachment #2: type-imp-unfonts.mkiv --]
[-- Type: application/octet-stream, Size: 7449 bytes --]
%D \module
%D [ file=type-imp-unfonts,
%D version=2012.03.11,
%D title=\CONTEXT\ Typescript Macros,
%D subtitle=UnFonts,
%D author=...,
%D date=\currentdate,
%D copyright=...]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\loadtypescriptfile[texgyre]
\loadtypescriptfile[xits]
\definefontfeature
[kr-default]
[mode=node,script=hang,lang=kor]
\definefontfeature
[kr-slanted]
[mode=node,script=hang,lang=kor,slant=.2]
\definefontfeature
[kr-latin-default]
[default]
\definefontfeature
[kr-latin-slanted]
[krlatindefault]
[slant=.2]
\definefontfeature
[kr-latin-slanted-mono]
[slant=.2]
\definefontfeature
[kr-latin-smallcaps]
[krlatindefault]
[smcp=yes]
\definefontfeature
[kr-latin-smallcaps-mono]
[cmcp=yes]
\definefontfallback[kr-serif] [texgyrepagella-regular*kr-latin-default] [0x0000-0x0400][force=yes]
\definefontfallback[kr-serifbold] [texgyrepagella-bold*kr-latin-default] [0x0000-0x0400][force=yes]
\definefontfallback[kr-serifitalic] [texgyrepagella-italic*kr-latin-default] [0x0000-0x0400][force=yes]
\definefontfallback[kr-serifbolditalic] [texgyrepagella-bolditalic*kr-latin-default] [0x0000-0x0400][force=yes]
\definefontfallback[kr-serifslanted] [texgyrepagella-regular*kr-latin-slanted] [0x0000-0x0400][force=yes]
\definefontfallback[kr-serifboldslanted][texgyrepagella-bold*kr-latin-slanted] [0x0000-0x0400][force=yes]
\definefontfallback[kr-serifcaps] [texgyrepagella-regular*kr-latin-smallcaps] [0x0000-0x0400][force=yes]
\definefontfallback[kr-sans] [texgyreheros-regular*kr-latin-default] [0x0000-0x0400][force=yes]
\definefontfallback[kr-sansbold] [texgyreheros-bold*kr-latin-default] [0x0000-0x0400][force=yes]
\definefontfallback[kr-sansitalic] [texgyreheros-italic*kr-latin-default] [0x0000-0x0400][force=yes]
\definefontfallback[kr-sansbolditalic] [texgyreheros-bolditalic*kr-latin-default] [0x0000-0x0400][force=yes]
\definefontfallback[kr-sansslanted] [texgyreheros-regular*kr-latin-slanted] [0x0000-0x0400][force=yes]
\definefontfallback[kr-sansboldslanted] [texgyreheros-bold*kr-latin-slanted] [0x0000-0x0400][force=yes]
\definefontfallback[kr-sanscaps] [texgyreheros-regular*kr-latin-smallcaps] [0x0000-0x0400][force=yes]
\definefontfallback[kr-mono] [texgyrecursor-regular] [0x0000-0x0400][force=yes]
\definefontfallback[kr-monobold] [texgyrecursor-bold] [0x0000-0x0400][force=yes]
\definefontfallback[kr-monoitalic] [texgyrecursor-italic] [0x0000-0x0400][force=yes]
\definefontfallback[kr-monobolditalic] [texgyrecursor-bolditalic] [0x0000-0x0400][force=yes]
\definefontfallback[kr-monoslanted] [texgyrecursor-regular*kr-latin-slanted-mono] [0x0000-0x0400][force=yes]
\definefontfallback[kr-monoboldslanted] [texgyrecursor-bold*kr-latin-slanted-mono] [0x0000-0x0400][force=yes]
\definefontfallback[kr-monocaps] [texgyrecursor-regular*kr-latin-smallcaps-mono][0x0000-0x0400][force=yes]
\starttypescriptcollection[unfonts]
\starttypescript [serif] [unbatang]
\definefontsynonym [unbatang] [file:unbatang] [features=kr-default,fallbacks=kr-serif]
\definefontsynonym [unbatangbold] [file:unbatangbold][features=kr-default,fallbacks=kr-serifbold]
\definefontsynonym [unbatangitalic] [file:unbatang] [features=kr-slanted,fallbacks=kr-serifitalic]
\definefontsynonym [unbatangbolditalic] [file:unbatangbold][features=kr-slanted,fallbacks=kr-serifbolditalic]
\definefontsynonym [unbatangslanted] [file:unbatang] [features=kr-slanted,fallbacks=kr-serifslanted]
\definefontsynonym [unbatangboldslanted][file:unbatangbold][features=kr-slanted,fallbacks=kr-serifboldslanted]
\definefontsynonym [unbatangcaps] [file:unbatang] [features=kr-default,fallbacks=kr-serifcaps]
\stoptypescript
\starttypescript [sans] [undotum]
\definefontsynonym[undotum] [file:undotum] [features=kr-default,fallbacks=kr-sans]
\definefontsynonym[undotumbold] [file:undotumbold] [features=kr-default,fallbacks=kr-sansbold]
\definefontsynonym[undotumitalic] [file:undotum] [features=kr-slanted,fallbacks=kr-sansitalic]
\definefontsynonym[undotumbolditalic] [file:undotumbold] [features=kr-slanted,fallbacks=kr-sansbolditalic]
\definefontsynonym[undotumslanted] [file:undotum] [features=kr-slanted,fallbacks=kr-sansslanted]
\definefontsynonym[undotumboldslanted] [file:undotumbold] [features=kr-slanted,fallbacks=kr-sansboldslanted]
\definefontsynonym[undotumcaps] [file:undotum] [features=kr-default,fallbacks=kr-sanscaps]
\stoptypescript
\starttypescript [mono] [untype]
\definefontsynonym[untype] [file:untaza] [features=kr-default,fallbacks=kr-mono]
\definefontsynonym[untypebold] [file:untaza] [features=kr-default,fallbacks=kr-monobold]
\definefontsynonym[untypeitalic] [file:untaza] [features=kr-slanted,fallbacks=kr-monoitalic]
\definefontsynonym[untypebolditalic] [file:untaza] [features=kr-slanted,fallbacks=kr-monobolditalic]
\definefontsynonym[untypeslanted] [file:untaza] [features=kr-slanted,fallbacks=kr-monoslanted]
\definefontsynonym[untypeboldslanted] [file:untaza] [features=kr-slanted,fallbacks=kr-monoboldslanted]
\definefontsynonym[untypecaps] [file:untaza] [features=kr-default,fallbacks=kr-monocaps]
\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] [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] [name]
\definefontsynonym[Mono] [untype]
\definefontsynonym[MonoBold] [untypebold]
\definefontsynonym[MonoItalic] [untypeitalic]
\definefontsynonym[MonoBoldItalic] [untypebolditalic]
\definefontsynonym[MonoSlanted] [untypeslanted]
\definefontsynonym[MonoBoldSlanted] [untypeboldslanted]
\definefontsynonym[MonoCaps] [untypecaps]
\stoptypescript
% xits might get replaced with a texgyre times
\starttypescript[unfonts]
\definetypeface [unfonts] [rm] [serif] [unbatang]
\definetypeface [unfonts] [ss] [sans] [undotum]
\definetypeface [unfonts] [tt] [mono] [untype]
\definetypeface [unfonts] [mm] [math] [xits]
\stoptypescript
\stoptypescriptcollection
[-- Attachment #3: Type: text/plain, Size: 3 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next parent reply other threads:[~2012-05-08 13:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3.1336471202.23349.ntg-context@ntg.nl>
2012-05-08 13:48 ` dalyoung [this message]
2012-05-07 10:43 hwitloc
2012-05-07 13:12 ` S Barmeier
2012-05-07 22:07 ` Hans Hagen
2012-05-07 22:33 ` KUROKI Yusuke
2012-05-08 15:03 ` KUROKI Yusuke
2012-05-08 15:41 ` Hans Hagen
2012-05-07 13:17 ` KUROKI Yusuke
2012-05-07 12:54 ` [***SPAM***] " d.henman
2012-05-07 14:17 ` KUROKI Yusuke
2012-05-08 8:41 ` ABE Noriyuki
2012-05-08 14:11 ` hwitloc
2012-05-07 13:56 ` S Barmeier
2012-05-07 15:54 ` Hans Hagen
2012-05-08 10:39 ` KUROKI Yusuke
2012-05-09 13:37 ` KUROKI Yusuke
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=FDD4330F-6730-47AB-9E52-157FEDB64BAB@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).