|
Packit Service |
a721b1 |
This directory tree holds version 1.8.0 of the m17n library. -*- text -*-
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
|
Packit Service |
a721b1 |
2012, 2013, 2014
|
|
Packit Service |
a721b1 |
National Institute of Advanced Industrial Science and Technology (AIST)
|
|
Packit Service |
a721b1 |
Registration Number H15PRO112
|
|
Packit Service |
a721b1 |
Copyright (C) 2015, 2016, 2017 K. Handa <handa@gnu.org>
|
|
Packit Service |
a721b1 |
See the end for copying conditions.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
The m17n library is a multilingual text processing library for the C
|
|
Packit Service |
a721b1 |
language.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
----- Table of contents ------
|
|
Packit Service |
a721b1 |
(1) INSTALLATION
|
|
Packit Service |
a721b1 |
(2) DATABASE
|
|
Packit Service |
a721b1 |
(3) DOCUMENTATION
|
|
Packit Service |
a721b1 |
(4) USAGE
|
|
Packit Service |
a721b1 |
(5) BUGS
|
|
Packit Service |
a721b1 |
------------------------------
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
(1) INSTALLATION
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
(1-1) From Git working directory.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
Run the script "bootstrap.sh" in this directory. It is tested that
|
|
Packit Service |
a721b1 |
the script runs successfully with these versions of tools.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
libtool automake autoconf gettext pkg-config
|
|
Packit Service |
a721b1 |
2.4.2 1.14.1 2.69 0.18.3 0.26
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
(*1) bootstrap.sh prints several warnings something like this:
|
|
Packit Service |
a721b1 |
------------------------------------------------------------
|
|
Packit Service |
a721b1 |
autoreconf: running: automake --add-missing --copy --force-missing
|
|
Packit Service |
a721b1 |
configure.ac:47: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
|
|
Packit Service |
a721b1 |
configure.ac:47: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
|
|
Packit Service |
a721b1 |
configure.ac:47: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
|
|
Packit Service |
a721b1 |
configure.ac:47: installing './config.sub'
|
|
Packit Service |
a721b1 |
configure.ac:28: installing './install-sh'
|
|
Packit Service |
a721b1 |
configure.ac:28: installing './missing'
|
|
Packit Service |
a721b1 |
Makefile.am: installing './INSTALL'
|
|
Packit Service |
a721b1 |
example/Makefile.am:35: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
|
|
Packit Service |
a721b1 |
------------------------------------------------------------
|
|
Packit Service |
a721b1 |
but, it seems that they can be just ignored.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
Then, proceed to the next step.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
(1-2) From the tarball.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
The m17n library utilizes these extra libraries. It is recommended to
|
|
Packit Service |
a721b1 |
install all of them before running the "configure" script. The script
|
|
Packit Service |
a721b1 |
will find out the existence of them automatically.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
libxml2 -- http://xmlsoft.org/
|
|
Packit Service |
a721b1 |
fribidi -- http://fribidi.sourceforge.net/
|
|
Packit Service |
a721b1 |
freetype -- http://www.freetype.org/
|
|
Packit Service |
a721b1 |
libotf -- http://www.m17n.org/libotf/
|
|
Packit Service |
a721b1 |
fontconfig -- http://freedesktop.org/Software/fontconfig
|
|
Packit Service |
a721b1 |
xft -- http://freedesktop.org/Software/Xft
|
|
Packit Service |
a721b1 |
gd -- http://www.boutell.com/gd/
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
In addition, for finding a word boundary in Thai text, "configure"
|
|
Packit Service |
a721b1 |
checks the existence of these libraries (libthai is preferred):
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
libthai -- http://sourceforge.net/projects/libthai
|
|
Packit Service |
a721b1 |
wordcut -- http://thaiwordseg.sourceforge.net/
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
The sample program m17n-edit utilizes this Japanese inputting system.
|
|
Packit Service |
a721b1 |
It is also recommended to install it.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
anthy -- http://anthy.sourceforge.jp/
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
Then, type the followings on the command line.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
% ./configure
|
|
Packit Service |
a721b1 |
% make
|
|
Packit Service |
a721b1 |
% make install
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
Note that this package assumes an ANSI C compiler such as gcc. It
|
|
Packit Service |
a721b1 |
will not compile with an old-style K&R compiler.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
The default installation path is "/usr/local".
|
|
Packit Service |
a721b1 |
Thus, these header files are installed in /usr/local/include:
|
|
Packit Service |
a721b1 |
m17n-core.h, m17n.h, m17n-gui.h, m17n-err.h, m17n-X.h, m17n-flt.h
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
These library files are installed in /usr/local/lib:
|
|
Packit Service |
a721b1 |
libm17n-core.{a,so*,la}
|
|
Packit Service |
a721b1 |
libm17n.{a,so*,la}
|
|
Packit Service |
a721b1 |
libm17n-gui.{a,so*,la}
|
|
Packit Service |
a721b1 |
libm17n-flt.{a,so*,la}
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
These modules are installed in /usr/local/lib/m17n/1.0:
|
|
Packit Service |
a721b1 |
libm17n-X.{a,so*,la}
|
|
Packit Service |
a721b1 |
libm17n-gd.{a,so*,la}
|
|
Packit Service |
a721b1 |
libimx-anthy.{a,so*,la},
|
|
Packit Service |
a721b1 |
libimx-ispell.{a,so*,la},
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
This shell script is installed in /usr/local/bin:
|
|
Packit Service |
a721b1 |
m17n-config
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
These pkgconfig metadata files are installed in
|
|
Packit Service |
a721b1 |
/usr/local/lib/pkgconfig:
|
|
Packit Service |
a721b1 |
m17n-core.pc, m17n-shell.pc, m17n-flt.pc, m17n-gui.pc
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
These sample programs are installed in /usr/local/bin too:
|
|
Packit Service |
a721b1 |
m17n-conv, m17n-date, m17n-view, m17n-dump, m17n-edit
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
If you don't need GUI libraries (libm17n-gui.so and etc.), you can
|
|
Packit Service |
a721b1 |
instruct the `configure' script not to build them as below:
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
% ./configure --without-gui
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
This file under `example' sub-directory is a Japanese resource file
|
|
Packit Service |
a721b1 |
for m17n-edit. It is not installed but useful in Japanese locale. Copy
|
|
Packit Service |
a721b1 |
it to your home directory (or, for instance,
|
|
Packit Service |
a721b1 |
/usr/X11R6/lib/X11/ja/app-defaults) and rename it to "M17NEdit" if you
|
|
Packit Service |
a721b1 |
want to see labels in Japanese:
|
|
Packit Service |
a721b1 |
M17NEdit.ja
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
These text files under `example' sub-directory are not installed but
|
|
Packit Service |
a721b1 |
useful for testing the rendering engine of the m17n library:
|
|
Packit Service |
a721b1 |
HELLO.utf8 HELLO.xml HELLO-ja.utf8 HELLO-ja.xml HELLO.html
|
|
Packit Service |
a721b1 |
XXX.xml are generated from XXX.utf8 by attaching text property
|
|
Packit Service |
a721b1 |
`language' and serializing.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
Please read also INSTALL for the generic installation instructions.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
(2) DATABASE
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
The m17n library utilizes the m17n database available at:
|
|
Packit Service |
a721b1 |
http://www.m17n.org/m17n-lib/m17n-db
|
|
Packit Service |
a721b1 |
Without this database, the m17n library loses half its value. Please
|
|
Packit Service |
a721b1 |
install it (Ver.1.4.0 or the later is required) too before you try the
|
|
Packit Service |
a721b1 |
above sample programs or develop a program that uses the m17n library.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
(3) DOCUMENTATION
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
This page has a link to full documentation of the m17n library:
|
|
Packit Service |
a721b1 |
http://www.m17n.org/m17n-lib
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
Actually, the documentation was generated by Doxygen using comments in
|
|
Packit Service |
a721b1 |
the source files. There are English and Japanese comments in
|
|
Packit Service |
a721b1 |
parallel.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
(4) USAGE
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
The library provides three levels of APIs, CORE, SHELL, and GUI. For
|
|
Packit Service |
a721b1 |
CORE API, include <m17n-core.h>, for SHELL API, include <m17n.h>, and
|
|
Packit Service |
a721b1 |
for GUI API, include <m17n-gui.h >. In addition, for those who need
|
|
Packit Service |
a721b1 |
only text shaping facility that uses FLT (Font Layout Table), the
|
|
Packit Service |
a721b1 |
library provides FLT API. To use it, include <m17n-flt.h>.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
See the documentation above, or the manual of m17nIntro(3) for more
|
|
Packit Service |
a721b1 |
detail.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
The shell script "m17n-config" helps compiling and linking of a
|
|
Packit Service |
a721b1 |
program that uses the m17n library. For instance this compiles PROG.c
|
|
Packit Service |
a721b1 |
that uses SHELL API and builds executable PROG.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
% gcc -o PROG `m17n-config --cflags` `m17n-config --libs` PROG.c
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
This compiles PROX.c that uses GUI API and builds executable PROX.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
% gcc -o PROX `m17n-config GUI --cflags` `m17n-config GUI --libs` PROX.c
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
(5) BUGS
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
Please email bug reports to m17n-list@nongnu.org.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
----------------------------------------------------------------------
|
|
Packit Service |
a721b1 |
Copyright information
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
|
Packit Service |
a721b1 |
2012, 2013, 2014
|
|
Packit Service |
a721b1 |
National Institute of Advanced Industrial Science and Technology (AIST)
|
|
Packit Service |
a721b1 |
Registration Number H15PRO112
|
|
Packit Service |
a721b1 |
Copyright (C) 2015, 2016, 2017 K. Handa <handa@gnu.org>
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
This file is part of the m17n library.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
The m17n library is free software; you can redistribute it and/or
|
|
Packit Service |
a721b1 |
modify it under the terms of the GNU Lesser General Public License
|
|
Packit Service |
a721b1 |
as published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
a721b1 |
the License, or (at your option) any later version.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
The m17n library is distributed in the hope that it will be useful,
|
|
Packit Service |
a721b1 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
a721b1 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
a721b1 |
Lesser General Public License for more details.
|
|
Packit Service |
a721b1 |
|
|
Packit Service |
a721b1 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
a721b1 |
License along with the m17n library; if not, write to the Free
|
|
Packit Service |
a721b1 |
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
Packit Service |
a721b1 |
Boston, MA 02110-1301, USA.
|