Re: [NTG-context] Typefile with Chinese, Korean or Japanase text
Dear Wolfgang, Two months ago, you suggested an example for typefile with korean. I just read it at that time and I try your sample today. Although there are Nanum Gothic and Nanum Gothic Coding in my system font, no output of korean for \ss and \tt. I run ‘mtxrun —script font —reload —force in the terminal, but the output is same. In the log file, it reads that selectfont > The requested fallback font 'Nanum Gothic' for typeface 'mainface' style 'ss' was ignored because no files where found. selectfont > The requested fallback font ‘Nanum Gothic Coding' for typeface 'mainface' style 'tt' was ignored because no files where found. Why ConTeXt couldn’t locate the font files? I am using Mac OSX 10.13 and latest beta. Thank you. Best regards, Dalyoung
2017. 12. 7. 오전 2:17, ntg-context-request@ntg.nl 작성:
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
On 02/19/2018 10:15 PM, Jeong Dal wrote:
Dear Wolfgang,
Two months ago, you suggested an example for typefile with korean. I just read it at that time and I try your sample today. Although there are Nanum Gothic and Nanum Gothic Coding in my system font, no output of korean for \ss and \tt. I run ‘mtxrun —script font —reload —force [...] Why ConTeXt couldn’t locate the font files?
I am using Mac OSX 10.13 and latest beta.
Hi Jeong, as far as I can remember, I experienced a similar problem with these fonts. I needed the first option to get the fonts embedded in the PDF document. Go to tex/texmf-cache and remove the directory luatex-cache. Run "mtxrun --generate" and compile the sample again. If that doesn’t work, try to copy those fonts to tex/texmf-fonts (and reload fonts with mxtrun).. I hope it helps, Pablo -- http://www.ousia.tk
participants (2)
-
Jeong Dal
-
Pablo Rodriguez