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
Highlighting problem in Chinese ebook related with punctuation #9219
Comments
Then I want to reproduce this problem under version 2022.03.01, but it is OK. |
See #6217, #6268, #6473, #8857, #9169, #9198. We only include words, non-punctuation, when you do the text selection. Please check the recent fix is also OK with Chinese and tell us. |
Check this using v2022.06. Chinese text selection becomes weird. I don't need the punctuation, but selected automatically. I want it, but the next character is selected also. I think the intelligent selection should can be disabled, the punctuation can be treated like a normal character. Rollback to v2022.03.01. |
You wanted it in the first post, you don't want it in your last post :)
Nope, punctuation is not candidate when you make the text selection: this is quite involved in the code, and we won't change that. It's also what most people expect (and I don't see why it would be different with Chinese). When you want to include it or remove it, you tap on the highlight just made and you fix it with long-press on the arrows.
Not until we get some other feedback about this. local CreDocument = require("document/credocument")
CreDocument.extendXPointersToSentenceSegment = function() return end |
Issue
When highlighting text, the last punctuation mark cannot be selected. If selected, the first word after the punctuation mark will be selected also. Appears in Chinese books, English books do not have this problem.
Steps to reproduce
Highlighting Chinese ebook paragraph.
The text was updated successfully, but these errors were encountered: