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

Visualization problem with special characters #254

Open
ChiaraB4 opened this issue Oct 28, 2024 · 3 comments
Open

Visualization problem with special characters #254

ChiaraB4 opened this issue Oct 28, 2024 · 3 comments

Comments

@ChiaraB4
Copy link

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
Copy link
Collaborator

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
Copy link
Member

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:

  • support on browsers is not homogeneous, the MEDIUM-HIGH OVERLINE WITH FIXED HEIGHT composed characters are those with the worse rendering (none at all in the HTML version, apparently, see-saw effect in EVT 3 on Firefox);
  • depending on the width of the letter, there is a break of the line, you never have a true continuous line;
  • the "pure HTML" version doesn't seem to be better than the TEI on EVT one, actually worse when looking at the position (slight displacement on the right on Firefox) or the medium-high overlines mentioned above (not there at all).

@ChiaraB4
Copy link
Author

ChiaraB4 commented Nov 8, 2024

Thank you for the help. Do you recommend to avoid using the MEDIUM-HIGH OVERLINE WITH FIXED HEIGHT at the moment? Or is it better to wait and see if the problem can be solved?

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

3 participants