Questo ti servirà successivamente, quando inserirai il testo traslitterato con lo schema di Velthuis direttamente nel tuo sorgente LaTeX. Quest’ultimo deve essere salvato con il nome documento.dn. Esso conterrà delle porzioni di testo traslitterato e di testo da rendere in caratteri sanscriti. Ad esempio:
`Il mantra \textit{Om tatsat} viene reso in caratteri Dev\={a}anagar\={\i} così: {\dn .o tatsat}
`
Il file documento.dn andrà dato in pasto al programma devnag. Ne otterrai documento.tex da compilare con pdflatex.Ciao,
Agostino
Intanto grazie ancora perché sto cominciando a divertirmi sul serio… eheheh
Vorrei approfondire due questioni.
Dopo essermi divertito un po’ con devnag ho provato a fare lo stesso con un altro preprocessore skt.c.
Ho seguito queste indicazioni dal manuale
The Pre-processor: skt.c
This ANSI C program processes the source text file (with a default .skt
filename extension) to produce a file suitable for LATEX2″ (with a default
.tex extension). For example, the command skt test will convert test.skt
to test.tex; fuller filenames may be used, e.g. skt foo.bar will produce
foo.tex, and skt foo.bar far.boo will produce far.boo from foo.bar. If
no filename is specified, you will be prompted for input and output filenames.
The program passes the text from the input file to the output file unaltered,
until it finds the string ‘{\skt’. It then checks the following character(s) for
the acceptable modifiers b f s bs fs x X i I t T u or U, and this must
be followed by a space character: if this test fails it reports an error, otherwise
the program converts the following input text to devan¯agar¯ı or transliteration
format as required, until the matching ‘}’. The cycle is then repeated.
Within the skt text, the following punctuation characters will be passed to
the output as roman:
(
Mi pare di aver capito come funziona un preprocessore ma nonostante segua la traccia indicata da Agostino non riesco a preprocessare il file.skt perchè mi dice che skt non è riconosciuto come comando interno o esterno, un programma eseguibile o un file batch.
Qual è il problema? Non funzionano tutti allo stesso modo?
Grazie!
Pietro