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
utf8proc: add utf8proc_NFC normalisation wrapper #1420
Conversation
5c99d02
to
6f603dc
Compare
Converted to draft since I might need to add FFI wrappers for a few more utf8proc functions ( |
Useful since Lua doesn't do this natively, and KOReader plugins might need to be able to operate on utf8 strings using Lua's built in string matching which won't match un-normalised strings. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
6f603dc
to
7dd630a
Compare
I don't think any other UTF-8 wrappers are necessary at the moment. As mentioned in other PRs, I will take a look at a rework of the UTF-8 handling in KOReader (which will require a few more wrappers to be provided by koreader-base) but for the Japanese Plugin this is all that is strictly necessary. |
Useful since Lua doesn't do this natively, and KOReader plugins might need to be able to operate on utf8 strings using Lua's built in string matching which won't match un-normalised strings.
Useful since Lua doesn't do this natively, and KOReader plugins might
need to be able to operate on utf8 strings using Lua's built in string
matching which won't match un-normalised strings.
Useful for koreader/koreader#8312.
Signed-off-by: Aleksa Sarai cyphar@cyphar.com
This change is