evt-project / evt-viewer-angular

Edition Visualization Technology version 3
GNU Affero General Public License v3.0
26 stars 17 forks source link

Visualization problem with special characters #254

Open ChiaraB4 opened 1 week ago

ChiaraB4 commented 1 week ago

I am realizing a digital edition with both diplomatic and interpretative edition levels. Many times, in the diplomatic transcription I have to enter abbreviated words that use a continuous horizontal line over several letters as an abbreviation sign. To realize this, I encoded special characters in the element using combining overline (U+0305), combining medium-high overline with fixed height (U+F00D) and combining high overline with fixed height (U+F00C) above the different letters. There is a visualization problem: for some combinations of letters it works and the line appears continuous, while for other combinations it does not: either the line appears all broken up, with a broken line above each letter, or, if for example it should be present on three letters, on two of them the line appears continuous, and on the third one it appears broken up. The same problem occurs in the pop-ups that appear when, while displaying the interpretative edition level of my document, I place de cursor over a word to see the corresponding abbreviated word shown in the pop-up.

1 2

The same problem occurs when using the different combining macrons and combining overlines provided by Unicode and MUFI-PUA. Is there any chance to solve the problem? I attach a small sample of the edition. edition.xml.zip

RenatoCaenaro commented 2 days ago

Hi @ChiaraB4, i'm able to reproduce your issue. It seems to be a problem with the rendering of contiguous combined characters. I am not sure if it can be solved. We will check in the next few days whether something can be done about it.

RobertoRDT commented 1 day ago

I have done some tests with the TEI document and after converting it into HTML (only special characters with upper horizontal line were added), these are the results:

TEI on EVT 2 using Chrome: EVT 2 - Chrome

TEI on EVT 3 using Chrome: EVT 3 - Chrome

TEI on EVT 3 using Firefox: EVT 3 - Firefox

HTML on Chrome: HTML - Chrome

HTML on Firefox: HTML - Firefox

What we can see here: