Changes

Jump to navigation Jump to search
1,095 bytes added ,  02:11, 31 January 2022
The main macro to set up a transliteration is {{cmd|definetransliteration}}.
 
== IAST ==
 
{{todo|add details of some mappings}}
== A simple example ==
</texcode>
When both are defined, the latter overrides the former. Moreover, any derived transliteration instances also inherit the exceptions defined for the parent. So, if any exceptions are to be avoided/changed, they must be redefined for the derived instances.
 
== Source with transliterated version ==
Very often, one wants to typeset paragraphs in the original script ''accompanied'' by a transliterated version. This can be achieved using the <code>before<\code> key of {{cmd|definetransliteration}}. A simple example is as follows:
<texcode>
\usetransliteration[indic]
\setuplines[indenting={yes,small,even}]
\definebuffer
[padya]
\definetransliteration
[padyaPair]
[color=blue,
vector={deva to iast},
before={\startlines\getbuffer[padya]\par},
after=\stoplines]
 
\starttext
\startbuffer[padya]
कोऽतिभारः समर्थानां किं दूरं व्यवसायिनाम्।
को विदेशस्तु विदुषां कः परः प्रियवादिनाम्॥
\stopbuffer
 
\startpadyaPair
\getbuffer[padya]
\stoppadyaPair
\stoptext
 
In summary: one defines a buffer which contains the paragraph, a verse in this example, in the original script. Then, using the <code>before</code> and <code>after</code> keys of {{cmd|definetransliteration}}, a pair of verses may be easily typeset into lines.
</texcode>
107

edits

Navigation menu