package uunf
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=386bc5b4ba3b19f11a0c7548afe7d211df7a1fb9fe0cd322c89bb0fbcae8d13b
md5=019a0f195dc59f1a9befb2857544e16a
README.md.html
Uunf — Unicode text normalization for OCaml
Release 1.0.0
Uunf is an OCaml library for normalizing Unicode text. It supports all Unicode normalization forms. The library is independent from any IO mechanism or Unicode text data structure and it can process text without a complete in-memory representation.
Uunf has no dependency. It may optionally depend on Uutf for support on OCaml UTF-X encoded strings. It is distributed under the BSD3 license.
Home page: http://erratique.ch/software/uunf
Contact: Daniel Bünzli <daniel.buenzl i@erratique.ch>
Installation
Uunf can be installed with opam
:
opam install uunf
opam install uutf uunf # for support on OCaml UTF-X encoded strings
If you don't use opam
consult the opam
file for build instructions and a complete specification of the dependencies.
Documentation
The documentation and API reference is automatically generated by ocamldoc
from the interfaces. It can be consulted online and there is a generated version in the doc
directory of the distribution.
Sample programs
Sample programs are located in the test
directory of the distribution. They can be built with:
ocamlbuild -use-ocamlfind test/tests.otarget
The resulting binaries are in _build/test
:
test.native
tests the library with the Unicode Normalization Test file available from:http://www.unicode.org/Public/%%UNICODEVERSION%%/ucd/NormalizationTest.txt
Nothing should fail.
test_string.native
tests the UTF-X OCaml string support.unftrip.native
inputs Unicode text onstdin
and rewrites it onstdout
in a given normalization form. Invoke with-help
for more information. Depends onuutf
.