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

Tlsa/ucs4 normalize #88

Merged
merged 2 commits into from Nov 21, 2016

Conversation

Projects
None yet
2 participants
@tlsa
Copy link
Contributor

tlsa commented Nov 20, 2016

This exposes the functionality to perform the following options on a UTF-32 sequences, that was already present in utf8proc_reencode:

  • UTF8PROC_NLF2LS
  • UTF8PROC_NLF2PS
  • UTF8PROC_NLF2LF
  • UTF8PROC_STRIPCC
  • UTF8PROC_COMPOSE
  • UTF8PROC_STABLE

Does this look reasonable? It would let the NetSurf project (http://ns-b.org/) drop its fork, and use upstream utf8proc.

tlsa added some commits Nov 20, 2016

Split codepoint sequence normalisation out into separate function.
This creates utf8proc_normalize_utf32() which takes and returns
a UTF-32 string, applying the following options:

- UTF8PROC_NLF2LS
- UTF8PROC_NLF2PS
- UTF8PROC_NLF2LF
- UTF8PROC_STRIPCC
- UTF8PROC_COMPOSE
- UTF8PROC_STABLE

The utf8proc_reencode() function has been updated to call the
new utf8proc_normalize_utf32().

@stevengj stevengj merged commit 70bbed8 into JuliaStrings:master Nov 21, 2016

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@tlsa tlsa deleted the tlsa:tlsa/ucs4-normalize branch Nov 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.