package uunf
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=204d923d4e8d910318180c15087fe53d98d8ec0a8d3c3f6c54219e5e09ee5c5bdf57585e5570d895f8d90647c4eeaa45d9e6e75d58edeb9febee053e0dd47fbc
Description
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 ISC license.
Home page: http://erratique.ch/software/uunf
README
Uunf — Unicode text normalization for OCaml
v15.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 ISC license.
Home page: http://erratique.ch/software/uunf
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 can be consulted online or via odig doc uunf
.
Sample programs
If you installed Uuseg with opam
sample programs are located in the directory opam config var uuseg:doc
.
A few test programs are in the test
directory of the distribution.
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
andcmdliner
.
Dependencies (4)
-
topkg
build & >= "1.0.3"
-
ocamlbuild
build
-
ocamlfind
build
-
ocaml
>= "4.03.0"
Dev Dependencies (1)
-
uucd
dev & >= "15.0.0" & < "15.1.0"