Am 31.12.2025 um 08:13 schrieb Julin S:
I am new to ConTeXt (but comfortable with LaTeX) and was trying to
figure out how to have letters of different scripts in the same
document.

I tried to have a Japanese only document using the snippet in this thread
https://mailman.ntg.nl/archives/list/[email protected]/message/QCXFTDHLPDS3P67GXLI33IPG5DJNGI32/

Like this:

```
\definefontfamily [noto-jp] [rm] [Noto Serif CJK JP]
\definefontfamily [noto-jp] [ss] [Noto Sans CJK JP]
\definetypeface   [noto-jp] [mm] [math] [pagella] [default]

\setupbodyfont [noto-jp]

\mainlanguage [ja]

\setscript [nihongo]

\starttext

\startbuffer
打構セト読役いゆお及層大コモクカ軟毎ホアヲト極書た球87本野
ぎレべ襲画売ぎ関負ら断紀チラネキ質紋キタ資私トゃふん。江コキトサ狂毎現ンづ応通サシ続36島性84界ぼゆゃが実書ちぽふず辞躍事シ世図二ハス盛堀人わレをう第紙きかイの浅69乳キメタ事争つょ社以ヨナム法例やほにル済療にしいむ。子け記多ゅくよ正役モ母憲トぞ説帝け務賞ク付打ワナ内桁ぼでクフ因倒おふフ印気地レタケマ冬4雇各裁微ひるぼ。
\stopbuffer

\rm \getbuffer

\page

\ss \getbuffer

\stoptext
```

I got all the fonts available in my computer, but the generated pdf contains
only the Latin part. Just few numbers: 873684694.
I don't know what I am doing incorrectly here.

Context is unable to find/load the necessary fonts to typeset the japanese text.


The first thing you can do is to check which noto fonts are found by context, you can create a list with

        mtxrun --script fonts --list --all --pattern=noto*


When you see noto font for japanese it's possible they user a different name than the one in the example above because google provides different version of the fonts with different family names.


When no font files are in the listing but you're sure they are on your system you can either add the path to context list of searched directories or you put a copy of the files into one of the local tex directories.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to