Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
test for Devanagari in Context MkIV (ad http://tex.stackexchange.com/q/132228/14066)
\definefont [DevaOne] [file:chandas.ttf*devanagari-one at 18pt]
\definefont [DevaTwo] [file:uttara.ttf*devanagari-two at 18pt]
\def \devanagaritest #1{%
\detokenize {#1}:\crlf
\bgroup#1
श्रेयो हि ज्ञानमभ्यासाज्ज्ञानाद्ध्यानं विशिष्यते । \crlf
ध्यानात्कर्मफलत्यागस्त्यागाच्छन्तिरनन्तरम् ॥
\egroup
\endgraf
\blank [2*line]
}
\starttext
\devanagaritest \DevaOne
\devanagaritest \DevaTwo
\stoptext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.