eeditiones / tei-publisher-app

The main TEI Publisher app
https://teipublisher.com
GNU General Public License v3.0
65 stars 32 forks source link

Wrong offset for tags after a tag with extent-attribute. #192

Open jnphilipp opened 1 year ago

jnphilipp commented 1 year ago

When annotating for example a gap with an extent attribute the following tags are misplaced (have a positive offset to the actual position). This happens with app, person and hi.

Bildschirmaufzeichnung vom 2023-07-13, 09-57-37.webm

tuurma commented 1 year ago

@jnphilipp thanks for reporting

After running some tests, it's clear that this problem affects the gap element, if and only if it is having an @extent attribute. Incorrect selection is longer than expected by the length of the value of @extent. Presence of other attributes does not have any further ill effects.

image
nquenouille commented 11 months ago

There is also a wrong offset after an <unclear> element which contains a <note>. This seems to apply to all tags that are inserted after the unclear elements with a note in them. If the <unclear> element does not contain a note, everything seems to be fine, though.

Leipbniz_1 Leibniz_2