From: Wim Neimeijer <wneimeijer@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Typefile with Chinese, Korean or Japanase text
Date: Wed, 6 Dec 2017 18:16:46 +0100 [thread overview]
Message-ID: <CACmST43=yMzDC7Vv_PTpbVNxoERVFX0kg9y2eyU+7FqgYzaP+g@mail.gmail.com> (raw)
In-Reply-To: <5A27CDBF.9010304@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 6652 bytes --]
@Wolfgang,
Ran your example (unsure about all these \definefontfamily commands), but
does not work, a lot of errors
======
mtx-context | warning: no (local) file './context_cjk', proceeding
mtx-context | run 1: luatex
--fmt="/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="context_cjk"
--lua="/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./context_cjk"
--c:input="./context_cjk" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev)
system commands enabled.
open source > 1 > 1 >
/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
ConTeXt ver: 2016.03.13 23:40 MKIV beta fmt: 2016.3.23 int:
english/english
system > 'cont-new.mkiv' loaded
open source > 2 > 2 >
/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
close source > 2 > 2 >
/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
system > files > jobname 'context_cjk', input './context_cjk',
result 'context_cjk'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > 2 > 3 > /home/icubic/download/wim/context_cjk.tex
fonts > otf loading > loading
'/opt/context/tex/texmf/fonts/truetype/public/dejavu/DejaVuSerif.ttf', hash
'dejavuserif'
otf reader > found cmaps:
otf reader > platform 0: unicode
otf reader > encoding 3: unicode 2.0 bmp
otf reader > formats: 4
otf reader > encoding 4: unicode 2.0 full (unsupported)
otf reader > formats: 12 (unsupported)
otf reader > platform 1: macintosh (unsupported)
otf reader > encoding 0: roman (unsupported)
otf reader > formats: 6 (unsupported)
otf reader > platform 3: windows
otf reader > encoding 1: unicode bmp
otf reader > formats: 4
otf reader > encoding 10: unicode ucs-4
otf reader > formats: 12
otf reader > cmap checked: platform 3 (windows), encoding 1 (unicode
bmp), format 4, new unicodes 3329
otf reader > cmap checked: platform 3 (windows), encoding 10 (unicode
ucs-4), format 12, new unicodes 55
otf reader > cmap checked: platform 0 (unicode), encoding 3 (unicode
2.0 bmp), format 4, new unicodes 0
otf reader > ignoring global kern table using gpos kern feature
otf reader > not unicoded: brailledot dlLtcaron
otf reader > 2809 bogus names removed (verbose unicode)
otf reader > 3357 base class tags removed (default is base)
fonts > otf loading > loading done
fonts > otf loading > saving
'/opt/context/tex/texmf/fonts/truetype/public/dejavu/DejaVuSerif.ttf' in
cache
system > lua > compiling
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/dejavuserif.tma'
into
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/dejavuserif.tmc'
system > lua > dumping
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/dejavuserif.tma'
into
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/dejavuserif.tmc'
stripped
fonts > otf loading > loading, optimizing, packing and caching
time 0.134
fonts > defining > font with asked name 'mainface-rm--fallback-1'
is not found using lookup 'file'
fonts > defining > unknown font 'mainface-rm--fallback-1',
loading aborted
fonts > defining > unable to define 'mainface-rm--fallback-1' as
'dummy--0'
fonts > defining > font with asked name 'mainface-rm--fallback-1'
is not found using lookup 'file'
fonts > defining > unknown font 'mainface-rm--fallback-1',
loading aborted
fonts > defining > unable to define 'mainface-rm--fallback-1' as
'dummy--0'
====
On Wed, Dec 6, 2017 at 12:00 PM, Wolfgang Schuster <
schuster.wolfgang@gmail.com> wrote:
>
> Wim Neimeijer <wneimeijer@gmail.com>
> 6. Dezember 2017 um 00:32
> The thing here is, I am not an ConText expert just an user. I am working
> on a manual (200+ pages) where including code snippets
> is just a small part of the document and not something isolated. Not sure
> what to do next as the wiki explains a lot
> but not this.
>
> You need fonts [1-3] which contains hangul characters (don’t forget to
> set a math font because it is used for the symbols in enumerations) and you
> have to enable linebreaking for korean with the \setscript command.
>
> %%%% begin example
> \definefallbackfamily [mainface] [rm] [Nanum Myeongjo]
> [preset=range:korean]
> \definefontfamily [mainface] [rm] [DejaVu Serif]
>
> \definefallbackfamily [mainface] [ss] [Nanum Gothic] [preset=range:korean]
> \definefontfamily [mainface] [ss] [DejaVu Sans]
>
> \definefallbackfamily [mainface] [tt] [Nanum Gothic Coding]
> [features=none,preset=range:korean]
> \definefontfamily [mainface] [tt] [DejaVu Sans Mono] [features=none]
>
> \definefontfamily [mainface] [mm] [DejaVu Math]
>
> \setupbodyfont[mainface]
>
> \setscript[hangul]
>
> \starttext
>
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
>
> {\ss 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.}
>
> \starttyping
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
> \stoptyping
>
> \stoptext
> %%%% end example
>
> [1] https://www.freekoreanfont.com/nanum-myeongjo-free-download/
> [2] https://www.freekoreanfont.com/nanum-gothic-free-download/
> [3] https://www.freekoreanfont.com/nanum-gothic-coding-free-download/
>
> Wolfgang
>
> ____________________________________________________________
> _______________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ____________________________________________________________
> _______________________
>
[-- Attachment #1.2: Type: text/html, Size: 10125 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2017-12-06 17:16 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-05 20:32 Wim Neimeijer
2017-12-05 20:43 ` luigi scarso
2017-12-05 22:10 ` Wim Neimeijer
2017-12-05 22:53 ` Hans Hagen
2017-12-05 23:32 ` Wim Neimeijer
2017-12-06 8:53 ` Hans Hagen
2017-12-06 9:14 ` luigi scarso
2017-12-06 9:02 ` Henning Hraban Ramm
2017-12-06 11:00 ` Wolfgang Schuster
2017-12-06 17:16 ` Wim Neimeijer [this message]
2017-12-06 18:13 ` Aditya Mahajan
2017-12-06 18:24 ` Wim Neimeijer
2017-12-06 19:07 ` Pablo Rodriguez
2017-12-06 19:20 ` Rik Kabel
2017-12-06 20:25 ` Hans Hagen
2017-12-06 21:01 ` Wim Neimeijer
2017-12-06 21:30 ` Wim Neimeijer
2017-12-06 22:32 ` Wolfgang Schuster
2017-12-06 22:54 ` Alan Braslau
2017-12-06 18:17 ` Pablo Rodriguez
[not found] <mailman.1646.1512595887.1988.ntg-context@ntg.nl>
2017-12-06 23:38 ` Jeong Dal
[not found] <mailman.1637.1512580660.1988.ntg-context@ntg.nl>
2018-02-19 21:15 ` Jeong Dal
2018-02-19 21:43 ` Pablo Rodriguez
2018-02-20 0:12 ` Jeong Dal
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='CACmST43=yMzDC7Vv_PTpbVNxoERVFX0kg9y2eyU+7FqgYzaP+g@mail.gmail.com' \
--to=wneimeijer@gmail.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).