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

Unwanted line breaks associated with <seg type="parallel"> #130

Open aewingate opened 11 months ago

aewingate commented 11 months ago

Looking at newton-devel, the <seg type="parallel"> elements used to mark parallel passages in 3973 and 3975 appear to be causing unwanted line breaks in 3973 (ALCH00109) and presumably 3975 (ALCH00110).

For example, here on 19r, "same" and "precipitate" belong to different <seg> and there is an unwanted line break between them: image

The TEI behind this: image

tubesoft commented 11 months ago

I found that my previous XSLT programming had a bunch of defects. Now, I created a new javascript to deal with this mouse hover event. Actually, this javascript will reduce and simplify TEI coding for <seg type="parallel"> too. You will not have to use @rend to indicate where the passage is located in a paragraph. (e.g., rend="p-end") Also, @fuinction, which I discussed in #129, will not have to be used. So, you can forget what I said in #129. (See below)

image