IUBLibTech / newton_chymistry

New version of 'The Chymistry of Isaac Newton', using XProc pipelines to generate a website based on TEI XML encodings of Newton's alchemical manuscripts, and Apache Solr as a search engine.
2 stars 0 forks source link

The page break location gets wrong if we try to use linked <seg type+"parallel"> elements in multiple pages #129

Open tubesoft opened 11 months ago

tubesoft commented 11 months ago

The page break part (i.e., the folio number and icon to the preview) appears in the wrong location. For example, The page break has to go to the line before the line begins with "up nothing." (See the image below)

image
tubesoft commented 11 months ago

If we stick to using only CSS for the configuration of the appearance, technically, it seems to be impossible to highlight the two parts separated by the page break through hovering on the reference icon. Thus, my fix so far is just making another reference icon after the page break to highlight the part after the page break. (See the image below) If the two parts need to be highlighted together, I would need to think about it further.

image
tubesoft commented 11 months ago

I forgot to add that even if we do so, we need to add a new attribute to show the segment is on another page. <seg type="parallel" rend="p-middle" function="page-2" next="#02-next-g1-04-to-ALCH00110-55v" xml:id="next-03-g1-04-to-ALCH00110-55v">

In this case, tentatively, I added function="page-2". This additional attribute is needed from the second page and after.

Although this makes it more complicated to write the code, I could not find a workaround other than that.