1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
Camomile 0.7.2:
This is a beta release of Camomile library package. Camomile is a
comprehensive Unicode library for ocaml. Camomile provides Unicode
character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from
about 200 encodings, collation and locale-sensitive case mappings, and
more.
Copyright 2001, 2002, 2003, 2004, 2005, 2006 Yamagata Yoriyuki
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
As a special exception to the GNU Library General Public License, you
may link, statically or dynamically, a "work that uses this library"
with a publicly distributed version of this library to produce an
executable file containing portions of this library, and distribute
that executable file under terms of your choice, without any of the
additional requirements listed in clause 6 of the GNU Library General
Public License. By "a publicly distributed version of this library", we
mean either the unmodified Library as distributed by INRIA, or a
modified version of this library that is distributed under the
conditions defined in clause 3 of the GNU Library General Public
License. This exception does not however invalidate any other reasons
why the executable file might be covered by the GNU Library General
Public License.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
The GNU Lesser General Public Licence (LGPL) is contained in the file COPYING.
The following files are authored by different persons. For their
licenses, see the relevant notice of each file or directory.
configure.in Makefile.in : Jean-Christophe FILLIATRE
Licensed by LGPL
locales : International Business Machines :
derived from the ICU package. see locales/licence.html
mappings : Free Software Foundation :
derived from glibc. Licensed by LGPL
(CP932 has a different origin. See the premable of the file CP932)
unidata : Unicode Inc. : see unidata/README
1. Installation
The library is designed to work all platform supported by ocaml,
but currently the build procedure requires GNU tools. (GNU Make, grep,
and sh command for run the configure, cpp for code generation.)
In the top of the source directory, do the following.
$ ./configure
$ make
Become root and do the following.
# make install
The installation directories depend on whether you have findlib, which
is automatically detected. If you do not have findlib, Library files
(camomile.cma, camomile.cmxa and other auxiliary files) and
interface files (camomileLibrary.cmi) are installed to ocaml standard
library directory. If you have findlib, these files are governed by
findlib and installed as a package named "camomile". For either
cases, data files are put under /usr/local/share/camomile by default.
If you give the configure option as
$ ./configure --datadir=XXXX
data files are placed under XXXX/camomile. Also, programs
"camomilecharmap.(byte or opt)" and "camomilelocaledef.(byte or opt)"
are installed to {bindir} (a directory specified by configure).
Running commands with --help option display their usage.
You can uninstall the library by
# make uninstall
If you have ocamldoc,
$ make dochtml
creates dochtml directory in the source directory, and HTML
documentation. Similarly,
$ make doclatex
$ make doctexi
$ make man
creates LaTeX, Texi, man documentation respectively.
2. Using libraries
2.1 Packing
All module are packed to CamomileLibrary module, i.e. have names as
CamomileLibrary.<module name>.
2.2 Configuration
You can specify the location of data files used by camomile. This
functionality is useful, for example, if you plan to use compiled
binary with Camomile on machines with different directory structures.
"make install" automatically installs all data files into the default
locations, which are specified by CamomileDefaultConfig module. If
you just wanted to use default configuration, you can use
Main.Camomile module. Main.Camomile module has *almost* same
interface to Camomile 0.6.X
To configure individual module, you have to pass a module containing
configuration values to Make or Configuration functor. Or, you can
use Main module which defines Main.Make functor. Main.Make functor
returns a module which contains all modules which are properly
configured. ConfigInt.Type module type specifies what values should
be defined.
2.3 Individual modules.
See *.mli files.
2.4 Migration from 0.6.X
Replace all references to Camomile with
CamomileLibrary.Default.Camomile. CamomileLibrary.Default.Camomile
have the *almost* same interface with the previous Camomile.
3. Author
You can contact the author by yori@sourceforge.net
4. Acknowledgement
Peter Jolly provided CP932 conversion table. Kawakami Shigenobu
contributed findlib support. Alain Frisch, Peter Jolly, Kawakami
Shigenobu provided several bug fixes.
|