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

Two texts in one manuscript to be represented by two different sigla #41

Open ppasedach opened 2 years ago

ppasedach commented 2 years ago

Some manuscripts transmit both the root text as well as a commentary. Is there any way, apart from transcribing them into separate TEI files, of assigning different sigla to the manuscript, depending on whether one collates the root text or the commentary?

chchch commented 2 years ago

Hmm... so if you have unique @xml:ids for each verse/paragraph, then it you should be able to collate it against manuscripts containing only the root text or only the commentary. It would still have the same siglum though. Is it important for there to be two different sigla?

ppasedach commented 2 years ago

Yes, the collation works, there's no problem. The question is only about the possibility of different sigla, mostly in order to be able to stick to my own old conventions in that regard. If that is not anything that's already possible or easily implemented I can change my convention, no problem.

wujastyk commented 2 years ago

It's not quite the same issue, but I thought I'd mention it, since it's a little bit similar. We are collating against manuscripts and a printed edition. For the LaTeX printout, we want two layers of variant notes, one for the MS variants, and a separate one for the edition variants. So we just manipulated the LaTeX file, creating a \Dfootnote for the printed ed. variants and doing a careful search-and-replace. The results are good.

The drawback of working on the LaTeX output file directly is that if you add or change data to the files at Saktumiva, you would have to do the LaTeX manipulation all over again.

E.g.:

image

ppasedach commented 2 years ago

Yes, right, that's somewhat related. In the LaTeX output I too would like to have the apparatus for the commentaries, and I currently have up to three commentaries that I'd want to edit together with the root text, in different registers.