File: README

package info (click to toggle)
m17n-lib 1.6.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,532 kB
  • ctags: 4,388
  • sloc: ansic: 46,837; sh: 11,312; makefile: 646; yacc: 288; xml: 148; sed: 16
file content (170 lines) | stat: -rw-r--r-- 5,907 bytes parent folder | download
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
This directory tree holds version 1.6.1 of the m17n library.	-*- text -*-

Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
  National Institute of Advanced Industrial Science and Technology (AIST)
  Registration Number H15PRO112
See the end for copying conditions.

The m17n library is a multilingual text processing library for the C
language.


(1) INSTALLATION

(1-1) From CVS working directory.

Run the script "bootstrap.sh" in this directory.  It is tested that
the script runs successfully with these versions of tools.

	        libtool automake autoconf pkg-config
  Debian Lenny   1.5.26   1.10.1     2.61       0.22
  Ubunto 9.10     2.2.4    1.9.6     2.61       0.22
  Fedra 12       2.2.6b   1.11.1     2.63       0.23

Then, proceed to the next step.

(1-2) From the tarball.

The m17n library utilizes these extra libraries.  It is recommended to
install all of them before running the "configure" script.  The script
will find out the existence of them automatically.

	libxml2		-- http://xmlsoft.org/
	fribidi	  	-- http://fribidi.sourceforge.net/
	freetype	-- http://www.freetype.org/
	libotf		-- http://www.m17n.org/libotf/
	fontconfig	-- http://freedesktop.org/Software/fontconfig
	xft		-- http://freedesktop.org/Software/Xft
	gd		-- http://www.boutell.com/gd/

In addition, for finding a word boundary in Thai text, "configure"
checks the existence of these libraries (libthai is preferred):

	libthai		-- http://sourceforge.net/projects/libthai
	wordcut		-- http://thaiwordseg.sourceforge.net/

The sample program m17n-edit utilizes this Japanese inputting system.
It is also recommended to install it.

	anthy		-- http://anthy.sourceforge.jp/

Then, type the followings on the command line.

	% ./configure
	% make
	% make install

Note that this package assumes an ANSI C compiler such as gcc.  It
will not compile with an old-style K&R compiler.

The default installation path is "/usr/local".
Thus, these header files are installed in /usr/local/include:
	m17n-core.h, m17n.h, m17n-gui.h, m17n-err.h, m17n-X.h, m17n-flt.h

These library files are installed in /usr/local/lib:
	libm17n-core.{a,so*,la}
	libm17n.{a,so*,la}
	libm17n-gui.{a,so*,la}
	libm17n-flt.{a,so*,la}

These modules are installed in /usr/local/lib/m17n/1.0:
	libm17n-X.{a,so*,la}
	libm17n-gd.{a,so*,la}
	libimx-anthy.{a,so*,la},
	libimx-ispell.{a,so*,la},

This shell script is installed in /usr/local/bin:
	m17n-config

These pkgconfig metadata files are installed in
/usr/local/lib/pkgconfig:
	m17n-core.pc, m17n-shell.pc, m17n-flt.pc, m17n-gui.pc

These sample programs are installed in /usr/local/bin too:
	m17n-conv, m17n-date, m17n-view, m17n-dump, m17n-edit

If you don't need GUI libraries (libm17n-gui.so and etc.), you can
instruct the `configure' script not to build them as below:

	% ./configure --without-gui

This file under `example' sub-directory is a Japanese resource file
for m17n-edit.  It is not installed but useful in Japanese locale.  Copy
it to your home directory (or, for instance,
/usr/X11R6/lib/X11/ja/app-defaults) and rename it to "M17NEdit" if you
want to see labels in Japanese:
	M17NEdit.ja

These text files under `example' sub-directory are not installed but
useful for testing the rendering engine of the m17n library:
	HELLO.utf8 HELLO.xml HELLO-ja.utf8 HELLO-ja.xml HELLO.html
XXX.xml are generated from XXX.utf8 by attaching text property
`language' and serializing.

Please read also INSTALL for the generic installation instructions.


(2) DATABASE

The m17n library utilizes the m17n database available at:
	http://www.m17n.org/m17n-lib/m17n-db
Without this database, the m17n library loses half its value.  Please
install it (Ver.1.4.0 or the later is required) too before you try the
above sample programs or develop a program that uses the m17n library.


(3) DOCUMENTATION

This page has a link to full documentation of the m17n library:
	http://www.m17n.org/m17n-lib

Actually, the documentation was generated by Doxygen using comments in
the source files.  There are English and Japanese comments in
parallel.


(4) USAGE

The library provides three levels of APIs, CORE, SHELL, and GUI.  For
CORE API, include <m17n-core.h>, for SHELL API, include <m17n.h>, and
for GUI API, include <m17n-gui.h >.  In addition, for those who need
only text shaping facility that uses FLT (Font Layout Table), the
library provides FLT API.  To use it, include <m17n-flt.h>.

See the documentation above, or the manual of m17nIntro(3) for more
detail.

The shell script "m17n-config" helps compiling and linking of a
program that uses the m17n library.  For instance this compiles PROG.c
that uses SHELL API and builds executable PROG.

	% gcc -o PROG `m17n-config --cflags` `m17n-config --libs` PROG.c

This compiles PROX.c that uses GUI API and builds executable PROX.

	% gcc -o PROX `m17n-config GUI --cflags` `m17n-config GUI --libs` PROX.c


----------------------------------------------------------------------
Copyright information

Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
  National Institute of Advanced Industrial Science and Technology (AIST)
  Registration Number H15PRO112

This file is part of the m17n library.

The m17n 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.1 of
the License, or (at your option) any later version.

The m17n 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.

You should have received a copy of the GNU Lesser General Public
License along with the m17n library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.