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

Slow down the speed of delete word #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

graphemecluster
Copy link
Member

Do you prefer faster or slower (iOS-like)?

@alex-the-man
Copy link
Collaborator

I prefer iOS-like. Thank you.

@graphemecluster
Copy link
Member Author

It seems that iOS deletes 2 words (2 English words or averagely 3 Chinese characters) per time. So I'm thinking about modifying the deleteBackwardWord() method.

@graphemecluster
Copy link
Member Author

More precisely, the international standard: Unicode Text Segmentation algorithm should be adopted if possible.

@graphemecluster graphemecluster marked this pull request as draft November 18, 2021 08:52
@graphemecluster graphemecluster marked this pull request as ready for review November 25, 2021 13:40
@graphemecluster
Copy link
Member Author

Altered the Character Extension to conform with the Unicode Standard.

@graphemecluster
Copy link
Member Author

Ayaka's https://ayaka.shn.hk/hanregex/ should help you understand the code.

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

Successfully merging this pull request may close these issues.

None yet

2 participants