Open andreaacri opened 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>
).
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"
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?
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.
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:
`