I am trying to produce a critical edition of a Sanskrit text, where
the publisher needs Devanāgarī
script for the main text, but roman for the variants in the footnotes.
The text had already been
prepared in roman and the critical edition setup worked very well.
Since the main book in is
English, and the numbering with the edition should be in roman, I
thought that it would be better
to keep the main language English and switch to Devanāgarī.
But there are two problems:
In the example below (just seach for %%
to jump to the problematic lines) you can see three identical verses
and a bit of prose.
The first verse is typeset by using \skt{} for switching to
Devanāgarī, the second by
using \startsanskrit ... \stopsanskrit.
In the first verse the linespacing between the third and the fourth
line is wrong, perhaps
the baseline is not set by this command, but why does it show in the
fourth line?
Anyway, this is just for reference, for the method with \startsanskrit
... \stopsanskrit, works,
but I cannot find a way to switch to roman in the footnote \var{}.
Is there an elegant way to keep the footnotes roman? In the definition
of \var?
\definepapersize[IeT][width=155mm, height=220mm]
\setuppapersize[IeT][IeT]
\setuplayout[height=200mm,width=120mm,header=14pt,marking=on,backspace=13mm,topspace=15mm,
headerdistance=4mm,bottomdistance=2pt,location=doublesided]
\setupheader[leftwidth=.8\hsize,rightwidth=.8\hsize,style=\tfx]
\setuppagenumbering[alternative=doublesided,location={header,right}]
\setupheadertexts[prathama
upadeśaḥ][pagenumber][pagenumber][Haṭhapradīpikājyotsnā]
\mainlanguage[english]
\setupbodyfontenvironment [default][em=italic]
\definefontfeature[default][default][fakecombining=yes,compose=yes,itlc=yes,protrusion=quality,expansion=quality,onum=yes]
\definefallbackfamily [Roman] [rm] [Adishila San]
[range=devanagari,features=devanagari-one]
\definefontfamily [Roman] [rm] [Minion Pro]
\setupbodyfont [Roman]
\definefontfamily [nagari] [rm] [Adishila San]
[features=devanagari-one,rscale=1.6]
\usetransliteration[indic]
\definetransliteration [MyDeva] [lang=sa,vector={iast to deva}]
\startsetups [sanskrit]
\settransliteration[MyDeva]
\switchtobodyfont[nagari]
\stopsetups
\setuplanguage [sa] [setups=sanskrit]
\definestartstop [sanskrit] [style={\language[sa]}]
\define[1]\skt{\start\language[sa]#1\stop}
\setupbodyfont[xcharter,10pt]
% Critical Edition Setup: Prose with two layers of apparatus
\setupnotations[alternative=serried]
\setuplinenumbering[step=5,method=page,style=\tfx,location=outer,align=outer]
\definelinenote[var][paragraph=yes]
\definelinenote[comment][paragraph=yes]
\definelines[sloka][][indenting={yes, small},
before=\blank\startnarrower,after=\stopnarrower\blank]
\definelines[bsloka][][indenting={yes, small},
before=\blank,after=\blank]
\setupalign[hz,vz,hanging,tolerant]
\setupinterlinespace[line=2ex]
\clubpenalty=10000 \widowpenalty=10000
\setuptolerance[horizontal,tolerant]
\setuptolerance[vertical,tolerant]
\setupwhitespace[small]
\setupindenting[yes,1em]
\setupblank[big]
\def\lem{\kern0em{}]\enskip}
% Manuscript sigla
\def\Wthree{W\low{3} } \def\Wthreeplus{W\low{3}}
\def\Wthreeac{W\low{3}\high{ac}\ } \def\Wthreepc{W\low{3}\high{pc}\ }
\def\Tue{Tue\ } \def\Tueplus{Tue} \def\Tueac{Tue\high{ac}\ }
\def\Tuepc{Tue\high{pc}\ }
\def\Msix{Bo\low{3}\ }
\def\Peighteen{\P\low{18}}
\def\Pnt{P\low{19}\ } \def\Pntplus{P\low{19}}
\def\Pntac{P\low{19}\high{ac}\ } \def\Pntpc{P\low{19}\high{pc}\ }
\def\Pntohne{P\low{19}}
\def\EdMu{Ed\low{Mu}\ } \def\emend{em.\ }
\def\EdLo{Ed\low{Lon}\ } \def\EdAd{Ed\low{Adyar}\ }
\def\om{om.}
\starttext
\setupheader [state=stop]
\startalignment[center]
{\tfb \skt{haṭhapradīpikājyotsnā}}
\blank[7mm]
{\tfa\skt{prathama upadeśaḥ}}
\stopalignment
\blank[7mm]
\startlinenumbering
%\begin{vsid}{hp01_001}
\startsloka
\skt{śrīādināthāya namo'stu tasmai
\ \ yenopadiṣṭā haṭhayogavidyā
vibhrājate pronnatarājayoga- %% problem: this line and the next are
too narrow
\ \ māroḍhumicchoradhirohiṇīva}
\stopsloka
\startsanskrit
\startsloka
śrīādināthāya namo'stu tasmai
\ \ yenopadiṣṭā haṭhayogavidyā
vibhrājate pronnatarājayoga- %% no problem here
\ \ māroḍhumicchoradhirohiṇīva
\stopsloka
\stopsanskrit
\startsanskrit
\startsloka
śrīādināthāya namo'stu tasmai
\ \ yenopadiṣṭā haṭhayogavidyā\var{text \lem variant.} %% But the
variant text does not appear.
vibhrājate pronnatarājayoga-
\ \ māroḍhumicchoradhirohiṇīva
\stopsloka
\stopsanskrit
\blank
\noindent
\skt{mumukṣujanahitārthaṃ rājayogadvārā kaivalyaphalāṃ haṭhapradīpikāṃ
vidhitsuḥ paramakāruṇikaḥ
svātmārāmayogīndrastatpratyūhanivṛttaye
haṭhayogapravartakaśrīmadādināthanamaskāralakṣaṇaṃ}\var{lakṣaṇaṃ~\lem
rūpaṃ \Pnt} \skt{maṅgalaṃ
tāvadācarati}
\stoplinenumbering\stoptext
---
Prof. Dr. Juergen Hanneder
Philipps-Universitaet Marburg
FG Indologie u. Tibetologie
Deutschhausstr.12
35032 Marburg
Germany
Tel. 0049-6421-28-24930
[email protected]
___________________________________________________________________________________
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
___________________________________________________________________________________