chchch / upama

A PHP library for comparing two or more Sanskrit TEI XML files and generating an apparatus with variants
GNU General Public License v2.0
10 stars 1 forks source link

Bilingual note #25

Open ppasedach opened 2 years ago

ppasedach commented 2 years ago

How to encode a note that contains two languages, such as Sanskrit and English?

Selection_226 Selection_225

<lg type="verse" xml:id="HV_03_6">
<l>134 dhruvam anekarasābhyavahārataḥ <lb/> kṛtarasāyana<app><lem>saṃgraha-susthitā</lem>
    <rdg wit="#Ed">śobhanam āsthitā</rdg></app> |</l>
<l>madhulihām asukhāyata saṃhati-<lb/>r nṛtimatīti-m atītya kṛtasthitiḥ ||6||</l>
</lg>

Plus, I had to include "Ed" to the witness list. Which seems not quite the right thing to do. Firstly, while it might be metrically possible for śobhanam āsthitā to be a variant reading, it is more likely a gloss for susthitā, which the editor (Ed.) has extracted from Alaka's commentary. It does not follow his usual convention of first giving the sigla, then their reading. I tried something like <app><note n="1" place="bottom margin">śobhanam āsthitā <div xml:lang="en">Ed.</div></note><app>, but the note was displayed in the running text instead of the apparatus. Oh, and one would probably also want a way for the footnote numbers to be displayed.

chchch commented 2 years ago

So one thing you could do is use <note place="foot">, which will give you an asterisk and a pop-up note.

Or you could use the <ab type="apparatus"> approach:

<lg type="verse" xml:id="HV_03_6">
  <l>...saṃgraha-sususthitā<anchor n="HV_03_6_n1"/></l>
  <l>...</l>
</lg>
<ab type="apparatus" corresp="#HV_03_6">
  <list type="notes">
    <item corresp="#HV_03_6_n1">1. śobhanam āsthitā <term xml:lang="en">Ed.</term></item>
  </list>
</ab>