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

Inconsistent deletion behaviour #97

Open
r12a opened this issue Feb 5, 2020 · 2 comments
Open

Inconsistent deletion behaviour #97

r12a opened this issue Feb 5, 2020 · 2 comments
Labels
doc:guru gap i:segmentation Grapheme/word segmentation & selection l:pa Punjabi, Gurmukhi script p:basic s:guru Gurmukhi script x:guru

Comments

@r12a
Copy link
Contributor

r12a commented Feb 5, 2020

This behavior varies even between different applications within macOS. Apple Pages seems to delete / select / cursor by Vowel+Consonant cluster. TextEdit seems to delete by code point, but cursor / select is by Vowel + Consonant cluster. In general, the TextEdit behavior seems favorable.

Gurmukhi has only three commonly used half/subjoined consonants for ਹ ਵ and ਰ. Most Gurmukhi readers are not familiar with the concept of Halant / Virama and thus deleting behavior should delete the full half-character.

@r12a r12a added i:segmentation Grapheme/word segmentation & selection gap p:basic doc:guru labels Feb 5, 2020
@r12a
Copy link
Contributor Author

r12a commented Feb 5, 2020

The first comment in this issue contains text that will automatically appear in the Gurmukhi 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 r12a added the x:guru label May 18, 2021
@r12a
Copy link
Contributor Author

r12a commented Feb 6, 2023

cc @kulpreetchilana

Gurmukhi, like other indic scripts (and in fact Unicode text generally), deletes text in different ways for backwards and forwards spacing.

Gurmukhi seems to be less problematic in approach than some other indic scripts. On Mac and Windows all browsers remove single code points during backwards deletion. During forward deletion, however, Firefox deletes one grapheme cluster at a time, whereas Chrome & Safari swallow up whole orthographic syllables with each bite. See https://r12a.github.io/scripts/guru/pa.html#webSegmentation

The divergence between Gecko and Blink/WebKit engines for forward deletion may need to be looked at, but i don't think the difference between forward vs backward deletion is problematic. One code point at a time deletion (backwards delete) can be very useful for indic scripts when you want to delete just one component of a complex akshara without having to reconstruct the whole thing again. I'm not yet convinced about the confusion factor, given that (a) people writing Gurmukhi generally have to insert a virama to create the stacks, and (b) i think people will quickly get used to deleting the virama.

@r12a r12a added the l:pa Punjabi, Gurmukhi script label May 1, 2024
@r12a r12a added the s:guru Gurmukhi script label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc:guru gap i:segmentation Grapheme/word segmentation & selection l:pa Punjabi, Gurmukhi script p:basic s:guru Gurmukhi script x:guru
Projects
Status: Issue identified, needing investigation
Development

No branches or pull requests

1 participant