w3c / hlreq

Hebrew script layout requirements
Other
8 stars 9 forks source link

Difficulties in highlighting diacritics #16

Open r12a opened 3 years ago

r12a commented 3 years ago

It is occasionally useful to give the diacritics a different color, for example for the purpose of teaching. For an example of how it would appear, see the Hebrew Wikipedia article Holam, which shows diacritics in a different color using images. Because of the diacritics' combining nature, it's a bit complicated to insert them between separate tags, but possible by writing HTML entities instead of explicit characters. The bigger problem is that modern browsers either ignore this formatting or show it incorrectly.

A test can be found at this js fiddle, which displays different diacritics.

r12a commented 3 years ago

The first comment in this issue contains text that will automatically appear in the Hebrew gap-analysis document as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the document. Proposals for changes or discussion of the content can be made in comments below this point. The initial text of that comment was provided by Amir Aharoni.