Skip to content

Instantly share code, notes, and snippets.

@phi-gamma
Last active December 22, 2015 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phi-gamma/6488807 to your computer and use it in GitHub Desktop.
Save phi-gamma/6488807 to your computer and use it in GitHub Desktop.
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