w3c / iip

Documenting gaps and requirements for support of Indic languages on the Web and in eBooks.
https://w3c.github.io/iip/
8 stars 15 forks source link

Spans around partial orthographic syllables #17

Open r12a opened 6 years ago

r12a commented 6 years ago

2.8.3 Spans around partial orthographic syllables https://w3c.github.io/iip/gap-analysis/beng-gap.html#spanned_conjuncts

If you put a span around the ব first character of the two character syllable বি in বিভাগের (eg. in order to color or otherwise style it), the vowel-sign no longer appears at the start of the word, but looks like incorrect inputting at the wrong place.

I created a test for this at https://w3c.github.io/iip/gap-analysis/bengali-tests/highlighting-base-001

Results on my Mac running High Sierra and the default fonts for the latest browser versions are: Firefox works ok unless part of the vowel sign appears to the left of the base. Safari and Chrome both highlight only the base, but render the vowel sign as if there was no base preceding it (ie. the span breaks the connection).

On Windows 10, Edge fails to separate base and vowel sign in all positions tested, and paints both blue in each case.

It might be interesting also to create a test that highlights the vowel sign rather than the base, but that's for another day.

akshatsj commented 6 years ago

Richard, I guess the passing criterion for the test needs to be extended to say that "Test passes if: only the character ব is blue and the dotted circle is not explicitly visible" (i.e. The ব is highlighted in blue while remaining as a part of valid akshar syllable).

On windows 10 in Chrome 68.0.3440.106, I could see the ব in blue, but the syllable was broken, which is not desired. untitled

r12a commented 6 years ago

thanks @akshatsj, i made that change.