erc-dharma / tfd-nusantara-philology

DHARMA project, task force D
Creative Commons Attribution 4.0 International
3 stars 1 forks source link

Encoding of interpolated stanza in metrical text #138

Open andreaacri opened 8 months ago

andreaacri commented 8 months ago

I am trying to encode an interpolated stanza in the PYñ (https://erc-dharma.github.io/tfd-nusantara-philology/output/critical-edition/html/DHARMA_CritEdKakavinParthayajna.html). To do so I am following the model provided in the Encoding Guide for Critical Editions, under 5.6.1 Extraneous text block with @type="interpolation", where the following example is provided:

<div type="dyad" n="54">[...]</div> <div type="interpolation"> <app><lem wit="#L"><p>ya tapva ahutaṅ, pinet kinuṅkuṅ ta ya de pradhana, ... </p> <p>kunəṅ pvekaṅ tan tinuron, ḍaṇḍa kaṅ sinambat vrat iṅ apadu.</p></lem> <note type="altLem">ya tapva ahutaṅ, ..., ḍaṇḍa kaṅ sinambat vrat iṅ apadu.</note> <note>These paragraphs are absent in <ptr target="#K"/> and seem extraneous to our text.</note> </app></div>

I have adapted the code to my text as follows:

`

nṛpatisuta tumiṅhal riṅ lambaṅ ləṅəṅ alaləh
                <l n="b">paṅikət ika hana vvaṅ miṅgat mvaṅ kalulut ika</l>
                <l n="c">rinasa-rasanireṅ tvas rəsrəsniṅ vahu hatəmu</l>
                <l n="d">sapada hana cinəṅgan cihnanyālara cinarik</l>
            </lg>
            <div type="interpolation">
tan ucapən ikaṅ i jro rāmyākveh səkar avaṅi ri harəp ika mahān cən kapvārjjā tulis arəṇika hana patani kasimpar lor vetan ləṅəṅ aṅuṅaṅ ya ta dunuṅanirān ton rāmyānyān rəcəp alaṅə̄<\lem> ri harəp ika, ..., rəcəp alaṅə. This stanza is absent in and seems extraneous to our text.
` I get the following error : System ID: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/editions/DHARMA_CritEdKakavinParthayajna.xml Main validation file: /Users/andreaacri81/ERC Dharma repositories/tfd-nusantara-philology/editions/DHARMA_CritEdKakavinParthayajna.xml Schema: https://raw.githubusercontent.com/erc-dharma/project-documentation/master/schema/latest/DHARMA_CritEdSQF.sch Engine name: ISO Schematron Severity: error Description: Line verses should be wrapped into lg element Start location: 3003:29 And many others following that. If I change the `` etc. to `

`, I still get several other errors. Any solutions?
michaelnmmeyer commented 8 months ago

The message just means that all <l> elements must have an <lg> as parent. So, in this case, you should have:

<app>
   <lem wit="#T">
      <lg n="...">
          <l n="a">tan ucapən ikaṅ i jro rāmyākveh səkar avaṅi</l>
          ...
          <l n="d">ya ta dunuṅanirān ton rāmyānyān rəcəp alaṅə̄</l>
      </lg>
   </lem>
   ...
</app>

By the way, beware of the <\lem> (should be </lem>).

andreaacri commented 8 months ago

Thanks! I have now corrected the code to the following:

<lg xml:id="kakavin_13.05" n="5"> <l n="a">hana ta kapi matambak salvāniṅ pasir inusī</l> <l n="b">bañunika kadi molah mīnānūt ryak aṅicipir</l> <l n="c">aruñu-ruñu kadi lvirniṅ byaktān vənaṅ alapən</l> <l n="d">təkapiṅ aṅukir āpan kīrṇa nyāsanika ləyəp.</l> </lg> <listApp type="apparatus"> <app loc="b"><lem wit="#EdSSA #EdZ">mīnānūt ryak</lem><rdg wit="#L #P">mīnānūt yryak</rdg><rdg wit="#T">minanūt yyak</rdg></app> <app loc="c"><lem wit="#T">byaktān</lem><rdg wit="#EdSSA #EdZ #L #P">byaktā</rdg></app> </listApp> <div type="interpolation"> <app><lem wit="#T"><lg n="5"> <l n="a">tan ucapən ikaṅ i jro rāmyākveh səkar avaṅi</l> <l n="b">ri harəp ika mahān cən kapvārjjā tulis arəṇika</l> <l n="c">hana patani kasimpar lor vetan ləṅəṅ aṅuṅaṅ</l> <l n="d">ya ta dunuṅanirān ton rāmyānyān rəcəp alaṅə̄</l> </lg> </lem> <note type="altLem">ri harəp ika, ..., rəcəp alaṅə.</note> <note>This stanza is absent in <ptr target="#L"/> and seems extraneous to our text.</note> </app></div>

This leads to the following validation errors:

element "lg" not allowed here; expected the element end-tag or element "anchor", "app", "certainty", "div", "gap", "join", "lb", "note", "pb", "space", "span" or "witDetail"

(in the following stanza:] element "listApp" not allowed here; expected the element end-tag or element "anchor", "app", "certainty", "div", "gap", "join", "lb", "note", "pb", "space", "span" or "witDetail"

(in the following stanza:] element "lg" not allowed here; expected the element end-tag or element "anchor", "app", "certainty", "div", "gap", "join", "lb", "note", "pb", "space", "span" or "witDetail"

michaelnmmeyer commented 8 months ago

Looking at the relevant section of the EGC (p. 102), I am not sure how this is supposed to be represented.

@arlogriffiths Do you have some input about this?

arlogriffiths commented 8 months ago

I fear Axelle and I may not have foreseen this scenario. The only cocnrete case of interpolation that came up during our years of working on EGC was the one from Svayambhu used for the example, anmd the structure of that text is very different. The first question we have to look at is how <div type="interpolation"> interacts with the global <div> structure of Andrea's edition. I will need Michaël's help. But allow me to focus on preparing for Andrea's HDR the coming days.