ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: S Barmeier <severinbarmeier@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: ntg-context Digest, Vol 93, Issue 36
Date: Sun, 11 Mar 2012 12:44:44 +0530	[thread overview]
Message-ID: <4F5C50E4.1020701@googlemail.com> (raw)
In-Reply-To: <mailman.2708.1331386188.4232.ntg-context@ntg.nl>

> 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

Thank you. I tried to adapt this (see below), but I'm not sure how to
invoke this typescript. There are \usetypescript \setupbodyfont and
\setmainfont from the simplefonts module, none of which seem to do what
I want... Could you enlighten me?

Many thanks,
Severin

\definefontfeature[jpdefault][mode=node,script=hang,lang=jap]
\def\mydefaultfeatures{kern=yes;liga=yes;tlig=yes;trep=yes}
\def\mysmallcapsfeatures{\mydefaultfeatures;smcp=yes}
% Font fallbacks for Latin alphabet
\definefontfallback[serifwhatever][gentium:\mydefaultfeatures][0x0000-0x0400][force=yes]
\definefontfallback[serifboldwhatever][gentiumbasicbold:\mydefaultfeatures][0x0000-0x0400][force=yes]
\definefontfallback[serifitalicwhatever][gentiumitalic:\mydefaultfeatures][0x0000-0x0400][force=yes]
\definefontfallback[serifbolditalicwhatever][gentiumbasicbolditalic:\mydefaultfeatures][0x0000-0x0400][force=yes]
\definefontfallback[serifboldslantedwhatever][gentiumbasicbold:\myslantfeatures][0x0000-0x0400][force=yes]
\definefontfallback[serifcapswhatever][gentium:\mysmallcapsfeatures][0x0000-0x0400][force=yes]
\definefontfallback[sanswhatever][andikabasic:\mydefaultfeatures][0x0000-0x0400][force=yes]
% IPA Fonts
\starttypescript[serif][IPAexMincho]
\definefontsynonym[ipaexmincho][ipaexm.ttf][features=jpdefault,fallbacks=serifwhatever]
\stoptypescript
\starttypescript[serif][IPAexMincho][name]
\definefontsynonym[Serif][ipaexmincho]
\stoptypescript
\starttypescript[sans][IPAexGothic]
\definefontsynonym[ipaexgothic][ipaexg.ttf][features=jpdefault,fallbacks=sanswhatever]
\stoptypescript
\starttypescript[sans][IPAexGothic][name]
\definefontsynonym[Sans][ipaexgothic]
\stoptypescript
\starttypescript[mono][KanjiStrokeOrders]
\definefontsynonym[kanjistrokeorders][KanjiStrokeOrders_v2.015.ttf][features=jpdefault,fallbacks=monowhatever]
\stoptypescript
\starttypescript[mono][KanjiStrokeOrders][name]
\definefontsynonym[Mono][kanjistrokeorders]
\stoptypescript
\starttypescript[MyIPAex]
\definetypeface[Myface][rm][serif][IPAexMincho]
\definetypeface[Myface][ss][sans] [IPAexGothic]
\definetypeface[Myface][tt][mono] [KanjiStrokeOrders]
\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
___________________________________________________________________________________


  parent reply	other threads:[~2012-03-11  7:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2708.1331386188.4232.ntg-context@ntg.nl>
2012-03-10 20:32 ` ruby for vertical layout S Barmeier
2012-03-11  8:51   ` Wolfgang Schuster
2012-03-11  8:57     ` S Barmeier
2012-03-11  9:05       ` Wolfgang Schuster
2012-03-11  9:18         ` S Barmeier
2012-03-11  9:28           ` Wolfgang Schuster
2012-03-11  9:35             ` S Barmeier
2012-03-10 20:52 ` hyphenation of hyphenated words S Barmeier
2012-03-10 20:56   ` Marco Pessotto
2012-03-11 14:00   ` Hans Hagen
     [not found]     ` <4F5CBC0E.4040107@googlemail.com>
     [not found]       ` <4F5DB3AC.4060403@wxs.nl>
2012-03-13  4:28         ` S Barmeier
2012-03-11  7:14 ` S Barmeier [this message]
2012-03-11 11:54 ` More CJK fall-back fonts (S Barmeier) dalyoung
2012-03-13  5:01   ` More CJK fall-back fonts S Barmeier

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=4F5C50E4.1020701@googlemail.com \
    --to=severinbarmeier@googlemail.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).