Skip to content

Handle (remove) zero-width-space #43

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

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

Conversation

jaggzh
Copy link

@jaggzh jaggzh commented Dec 25, 2024

We currently end up converting zero-width-space (zws) U+200B / \xe2\x8\x8b
to an invalid sequence (FD BF BF BD A3 AC). We (chatgpt and I) added code to just remove these, (in the same place that we swap the non-breaking space with space).

…\x8b

to an invalid sequence (FD BF BF BD A3 AC). We (chatgpt and I) added code to
just remove these.
@eafer
Copy link
Owner

eafer commented May 11, 2025

Hi, sorry for the delay. I'm not sure I understand the patch, you are saying there is a bug in the handling of zws somewhere else, so to work around it you get rid of all zws early on? Do you have a link or some other reproducer for the issue?

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.

2 participants