detone

Crates.iodetone
lib.rsdetone
version1.0.1
sourcesrc
created_at2019-05-21 08:52:58.642245
updated_at2024-07-04 11:16:20.687381
descriptionDecompose Vietnamese tone marks
homepagehttps://docs.rs/detone/
repositoryhttps://github.com/hsivonen/detone
max_upload_size
id135782
size31,527
ulms (github:foxford:ulms)

documentation

https://docs.rs/detone/

README

detone

crates.io 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.
Commit count: 6

cargo fmt