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

Incorrect segmentation for styling initials #69

Closed
r12a opened this issue Feb 4, 2020 · 2 comments
Closed

Incorrect segmentation for styling initials #69

r12a opened this issue Feb 4, 2020 · 2 comments

Comments

@r12a
Copy link
Contributor

r12a commented Feb 4, 2020

Because of the problems associated with grapheme cluster boundaries (see above), first-letter selection in CSS doesn't work well for conjuncts. For example, chrome fails to style the whole conjunct in ব্রাউজার when using ::first-letter in a selector, and styles only the ব্ instead of ব্রা. Similar is the case of Internet Explorer, it only styles ব. This is problematic for many words in a script such as Bengali, and forces the content author to use explicit spans rather than the proper mechanism for selecting initial letter.

CSS uses the concept of 'typographic character unit', rather than grapheme cluster, in its specs with the explanation that these cases are beyond the scope of the grapheme cluster concept and that implementations should provide appropriate support. In addition, a modification to the concept of grapheme cluster is currently in development at the Unicode Consortium, which is likely to resolve the problem for a script like Bengali.

In addition, the alignment of styled initial-letter character glyphs with the rest of the text is not clearly specified or implemented.

See requirements at: Indic Layout Requirements

@r12a
Copy link
Contributor Author

r12a commented Feb 4, 2020

The first comment in this issue contains text that will automatically appear in the Bengali 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.

@r12a
Copy link
Contributor Author

r12a commented May 18, 2021

Closed in favour of #94

@r12a r12a closed this as completed May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant