Wim Neimeijer <mailto:wneimei...@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
___________________________________________________________________________________