Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post-processing XSLT stage 2 #13

Open
2 tasks
ebeshero opened this issue Jan 3, 2023 · 0 comments
Open
2 tasks

Post-processing XSLT stage 2 #13

ebeshero opened this issue Jan 3, 2023 · 0 comments

Comments

@ebeshero
Copy link
Member

ebeshero commented Jan 3, 2023

The current postprocessing XSLT functions well to migrate "orphaned" solitary <rdg> elements to the next following <app> element, and to migrate orphaned deleted passages aligned against empty (markup-only) rdgs, also to the next following <app>. We have a few more improvements we can process but handling it all in the same stylesheet causes difficulties with writing templates that don't collide / disrupt each other. So it will be better to do more pre-processing in a second stage XSLT. In this, we should try to handle:

  • Deletions (or longTokens) aligned only with other deletions (or longTokens)

    Here's an example from C-13. It may be rare, but it seems like a predictable pattern. This is the first time I've seen a case where we should move a special passage to an immediately preceding app. It may sometimes happen with longToken passages or delstart....delend passages. Because Thomas AND fMS are involved in two separate <rdgGrp> elements, this problem wouldn't be picked up as a loner <rdgGrp>, and leaving it alone (as two deleted passages runs the risk of being invisible in the Variorum viewer unless moved.

        <app>
      <rdgGrp n="['']">
         <rdg wit="fThomas">&lt;pb xml:id="F1818_v1_163" n="151"/&gt; </rdg>
         <rdg wit="fMS">&lt;sga-add eID="c56-0084__main__d5e18134"/&gt; </rdg>
      </rdgGrp>
      <rdgGrp n="['and then']">
         <rdg wit="f1831">&lt;longToken&gt;And then&lt;/longToken&gt; </rdg>
      </rdgGrp>
      <rdgGrp n="['besides,']">
         <rdg wit="f1818">&lt;pb xml:id="F1818_v1_163" n="151"/&gt;Besides, </rdg>
         <rdg wit="f1823">Besides, </rdg>
      </rdgGrp>
   </app>
   <app>
      <rdgGrp n="['&lt;delstart/&gt;besides&lt;delend/&gt;', '&lt;addedthomas-start/&gt;and&lt;addedthomas-end/&gt;', ',']">
         <rdg wit="fThomas">&lt;del rend="strikethrough"&gt;Besides&lt;/del&gt; &lt;add place="margin"&gt;And&lt;/add&gt; , </rdg>
      </rdgGrp>
      <rdgGrp n="['–', '&lt;delstart/&gt;the com&lt;delend/&gt;', 'mon', 'people', 'would', 'believe', 'it', 'to', 'be', 'a', 'real', 'devil', 'and', 'who', 'could', 'attempt', 'besides']">
         <rdg wit="fMS">– &lt;del rend="strikethrough" xml:id="c56-0084__main__d5e18152"&gt;the com&lt;/del&gt; &lt;lb n="c56-0085__main__1"/&gt;mon people would believe it to &lt;lb n="c56-0085__main__2"/&gt;be a real devil and who could attempt &lt;lb n="c56-0085__left_margin__1"/&gt;Besides </rdg>
      </rdgGrp>
   </app>
  • Stranded deleted passages

where the contents of the deletion are mostly represented in the next following-sibling::app.

	<app>
		<rdgGrp n="['&lt;delstart/&gt;our father looks so sorrowful:', '            this dreadful event seems to have revived in his mind his grief on the death of mamma.', '            poor elizabeth also is quite inconsolable.&quot;&lt;delend/&gt;', '&lt;addedthomas-start/&gt;the sense of our misfortune is yet unalleviated; the silence of our father is uninterrupted, and there is something more distressing than tears in his unaltered sadness—while poor elizabeth, seeking solitude and for ever weeping, already begins to feel the effects of incessant grief—for her colour is gone, and her eyes are hollow and lustreless&lt;addedthomas-end/&gt;']">
			<rdg wit="fThomas">&lt;del rend=&quot;strikethrough&quot;&gt;Our father looks so sorrowful:             this dreadful event seems to have revived in his mind his grief on the death of Mamma.             Poor Elizabeth also is quite inconsolable.”&lt;/del&gt; &lt;add&gt;the sense of our misfortune is yet unalleviated; the silence of our father is uninterrupted, and there is something more distressing than tears in his unaltered sadness—while poor Elizabeth, seeking solitude and for ever weeping, already begins to feel the effects of incessant grief—for her colour is gone, and her eyes are hollow &amp;amp; lustreless&lt;/add&gt; </rdg>
		</rdgGrp>
		<rdgGrp n="['our']">
			<rdg wit="f1818">Our </rdg>
			<rdg wit="f1823">Our </rdg>
			<rdg wit="fMS">&lt;sga-add eID=&quot;c56-0086__main__d5e18427&quot;/&gt;&lt;sga-add place=&quot;superlinear&quot; sID=&quot;c56-0086__main__d5e18433&quot;/&gt;our </rdg>
		</rdgGrp>
	</app>
	<app>
		<rdgGrp n="['', 'father looks so sorrowful', 'and', 'it']">
			<rdg wit="fMS">&lt;sga-add eID=&quot;c56-0086__main__d5e18433&quot;/&gt; &lt;longToken&gt;father looks so sorrowful&lt;/longToken&gt; and it </rdg>
		</rdgGrp>
		<rdgGrp n="['father looks so sorrowful:', 'this', 'dreadful', 'event']">
			<rdg wit="f1818">&lt;longToken&gt;father looks so sorrowful:&lt;/longToken&gt; this dreadful event </rdg>
			<rdg wit="f1823">&lt;longToken&gt;father looks so sorrowful:&lt;/longToken&gt; this dreadful event </rdg>
		</rdgGrp>
	</app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant