2 stable releases

new 1.0.1 Jul 4, 2024
1.0.0 May 21, 2019

#288 in Text processing

Download history 5634/week @ 2024-03-13 5518/week @ 2024-03-20 5912/week @ 2024-03-27 4684/week @ 2024-04-03 7536/week @ 2024-04-10 8564/week @ 2024-04-17 4467/week @ 2024-04-24 5205/week @ 2024-05-01 3479/week @ 2024-05-08 4020/week @ 2024-05-15 7452/week @ 2024-05-22 7361/week @ 2024-05-29 6460/week @ 2024-06-05 7007/week @ 2024-06-12 7101/week @ 2024-06-19 6718/week @ 2024-06-26

28,405 downloads per month
Used in 2 crates

Apache-2.0 OR MIT

18KB
269 lines

detone

docs.rs Apache 2 / MIT dual-licensed

An iterator adapter that takes an iterator over char yielding a sequence of chars in Normalization Form C (this precondition is not checked!) and yields chars either such that tone marks that wouldn't otherwise fit into windows-1258 are decomposed or such that text is decomposed into orthographic units.

Use cases include preprocessing before encoding Vietnamese text into windows-1258 or converting precomposed Vietnamese text into a form that looks like it was written with the (non-IME) Vietnamese keyboard layout (e.g. for machine learning training or benchmarking purposes).

Licensing

Please see the file named COPYRIGHT.

Documentation

Generated API documentation is available online.

MSRV

1.60 to use, 1.67 to run tests. Pin version 1.0.0 of this crate if you need an even lower MSRV; there are no non-test changes.

Release Notes

1.0.1

  • Updated metadata, internal documentation, and the dev dependency.
  • No non-test code changes.

1.0.0

  • Initial release.

No runtime deps