0
|
1 .\"
|
|
2 .\" $Id: xwnmo.man,v 1.1.1.1 2000/01/16 05:07:58 ura Exp $
|
|
3 .\"
|
|
4
|
|
5 .\" FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
6 .\" This file is part of FreeWnn.
|
|
7 .\"
|
|
8 .\" Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
9 .\" Copyright 1992, 1992 by Massachusetts Institute of Technology
|
|
10 .\"
|
|
11 .\" Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
|
|
12 .\"
|
|
13 .\" This program is free software; you can redistribute it and/or modify
|
|
14 .\" it under the terms of the GNU General Public License as published by
|
|
15 .\" the Free Software Foundation; either version 2, or (at your option)
|
|
16 .\" any later version.
|
|
17 .\"
|
|
18 .\" This program is distributed in the hope that it will be useful,
|
|
19 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
20 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
21 .\" GNU General Public License for more details.
|
|
22 .\"
|
|
23 .\" You should have received a copy of the GNU General Public License
|
|
24 .\" along with GNU Emacs; see the file COPYING. If not, write to the
|
|
25 .\" Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
26 .\"
|
|
27 .\" Commentary:
|
|
28 .\"
|
|
29 .\" Change log:
|
|
30 .\"
|
|
31 .\" Last modified date: 8,Feb.1999
|
|
32 .\"
|
|
33
|
|
34 .TH XWNMO 1 "Release 5" "X Version 11"
|
|
35 .SH NAME
|
|
36 xwnmo \- Input Manager of the X Window System Version 11
|
|
37 .SH SYNOPSIS
|
|
38 .B xwnmo
|
|
39 [\-\fIoption\fP ...]
|
|
40 .SH DESCRIPTION
|
|
41 The \fIxwnmo\fP is a input manager for Input Method of X Window System.
|
|
42 It is based on [\fIX Window System, Version 11 Input Method Specifications\fP].
|
|
43 It provides a multi-language input environment for multiple clients in the
|
|
44 X Window System Version 11. Clients can connect to it by using XIM library.
|
|
45 .PP
|
|
46 \fIxwnmo\fP supports multi-screen environment. \fIxwnmo\fP creates
|
|
47 one window for \fIRoot-mode\fP on each screen.
|
|
48 .PP
|
|
49 The conversion engine \fIxwnmo\fP use is the internationalized Wnn.
|
|
50 It selects conversion server in accordance with language of clients.
|
|
51 How many languages \fIxwnmo\fP supports depend on the configuration
|
|
52 file (\fIximconf\fP). Please refer the manual of \fIximconf\fP.
|
|
53 .PP
|
|
54 .TP 8
|
|
55 \fIXwnmo\fP supports the following inputstyles:
|
|
56 ( XIMPreeditArea | XIMStatusArea )
|
|
57 .br
|
|
58 ( XIMPreeditPosition | XIMStatusArea )
|
|
59 .br
|
|
60 ( XIMPreeditNothing | XIMStatusNothing )
|
|
61 .br
|
|
62 ( XIMPreeditCallbacks | XIMStatusArea )
|
|
63 .br
|
|
64 ( XIMPreeditArea | XIMStatusCallbacks )
|
|
65 .br
|
|
66 ( XIMPreeditPosition | XIMStatusCallbacks )
|
|
67 .br
|
|
68 ( XIMPreeditCallbacks | XIMStatusCallbacks )
|
|
69 .PP
|
|
70 If you attempt to connect \fIxwnmo\fP by using XIM library, You must
|
|
71 set modifiers \fI_XWNMO\fP.
|
|
72 .TP 8
|
|
73 Concretely,
|
|
74 XSetLocaleModifiers("@im=_XWNMO");
|
|
75 .br
|
|
76 or
|
|
77 .br
|
|
78 set environment
|
|
79 \fBXMODIFIERS\fP=@im=_XWNMO and XSetLocaleModifiers("");.
|
|
80 .PP
|
|
81 For feather information about XIM library, please see the chapter 13 of
|
|
82 Xdoc or [\fIX Window System, Version 11 Input Method Specifications\fP].
|
|
83 .PP
|
|
84 .SH XML
|
|
85 According to \fIInput Method Specifications\fP, the locale which input method
|
|
86 use is only one and static locale. Thence \fIxwnmo\fP provides only
|
|
87 one languange environment which depends on the current locale of
|
|
88 \fIXOpenIM\fP(). And you could not change this environment.
|
|
89 But if libX11.a was compiled with
|
|
90 .B XML
|
|
91 define, clients can use multi locale
|
|
92 environment. In other words, you can change current languange environment
|
|
93 on the fly by changing current locale. The way to use its environment
|
|
94 is the following:
|
|
95 .PP
|
|
96 .TP 8
|
|
97 .B Creating environment
|
|
98 Call \fIXmlOpenIM()\fP instead of XOpenIM() ,set
|
|
99 .B XNCurrentLanguage
|
|
100 argument of XIC and call \fIXCreateIC\fP(). So \fIxwnmo\fP attempts to
|
|
101 create as many language environment as possible and set current environment
|
|
102 to the locale set XNCurrentLanguage. If you don't set XNCurrentLanguage
|
|
103 current environment is the first environment \fIxwnmo\fP created.
|
|
104 A syntax of XNCurrentLanguage follows.
|
|
105 .br
|
|
106 .br
|
|
107 current_language = <language>'_'<territory>
|
|
108 .TP 8
|
|
109 .B Changing environment
|
|
110 If you want to change current languange environment, set
|
|
111 .B XNCurrentLanguage
|
|
112 argument and call \fIXSetICValues()\fP.
|
|
113 .PP
|
|
114 \fIXwnmo\fP accept that
|
|
115 .B XML
|
|
116 clients and
|
|
117 .B NON_XML
|
|
118 clients connect \fIxwnmo\fP at the same time.
|
|
119 .SH CHANGING LOCALE
|
|
120 \fIXwnmo\fP has two interfaces for changing current languange environment.
|
|
121 One is \fIchange_locale_ct\fP function. This function is good only when current
|
|
122 locale is \fIwr_WR.ct\fP. You can write it in \fIuumkey-file\fP.
|
|
123 A syntax of change_locale_ct follows.
|
|
124 .PP
|
|
125 change_locale_ct <key> [ <key> ... ]
|
|
126 .PP
|
|
127 Other is \fIchange_locale\fP function. You can write it in \fIuumkey-file\fP.
|
|
128 A syntax of change_locale follows.
|
|
129 .PP
|
|
130 change_locale <key> [ <key> ... ]
|
|
131 .PP
|
|
132 This function is good only when you
|
|
133 set
|
|
134 .B XNChangeLocaleCB
|
|
135 argument. The value of this argument is a pointer of callback function.
|
|
136 This function will be call by input method when you change current languange
|
|
137 environment of \fIxwnmo\fP. A interface of this function follows.
|
|
138 .PP
|
|
139 void ChangeLocaleCB(char *locale)
|
|
140 .PP
|
|
141 .SH XJp
|
|
142 \fIXwnmo\fP is able to support XJp protocol. If You compile \fIxwnmo\fP
|
|
143 with \fBXJP\fP define, it supports "Communication Kit" part of XJp protocol.
|
|
144 And if You compile \fIxwnmo\fP with \fBXJP\fP and \fBXJP_DIRECT\fP define,
|
|
145 it supports "Direct Interface" part of XJp protocol.
|
|
146 .PP
|
|
147 .SH SEP
|
|
148 \fIXwnmo\fP is able to support SEP(SpotLocation Extended Protocol).
|
|
149 If You compile \fIxwnmo\fP with \fBSPOT\fP define, it supports SEP.
|
|
150 And please use \fI_XipChangeSpot()\fP function. it's interface follows.
|
|
151 .PP
|
|
152 .TP 4
|
|
153 int \fB_XipChangeSpot\fP(\fIic\fP, \fIspot_x\fP, \fIspot_y\fP)
|
|
154 XIC ic;
|
|
155 .br
|
|
156 short spot_x, spot_y;
|
|
157 .PP
|
|
158 ic: Specifies the input context.
|
|
159 .br
|
|
160 spot_x, spot_y: Specifies the coordinates of the ``spot''.
|
|
161 .PP
|
|
162 .SH OPTIONS
|
|
163 \fIXwnmo\fP accepts the following options:
|
|
164 .TP 8
|
|
165 .B \-D \fIserver-name\fP
|
|
166 This option specifies the machine name of conversion server.
|
|
167 If this isn't set, first \fIJSERVER\fP environment is referred. And if it
|
|
168 isn't set, \fIxwnmo\fP attempts to connect "\fIjserver\fP" machine.
|
|
169 And if it's connect failed, \fIxwnmo\fP attempts to connect local machine.
|
|
170 .TP 8
|
|
171 .B \-n \fIuser-name\fP
|
|
172 This option specifies the user name which is used as env-name of Wnn.
|
|
173 If this isn't set, first \fIWNNUSER\fP environment is referred. And if it
|
|
174 isn't set, the user name of process is referred.
|
|
175 .TP 8
|
|
176 .B \-lc \fIlanguage-name\fP
|
|
177 This option specifies the \fIlanguage name\fP which is referred as the
|
|
178 language environment of \fIRoot-mode\fP. If this isn't set, first
|
|
179 \fILANG\fP environment is referred. And if it isn't set, the default
|
|
180 is \fIja_JP\fP.
|
|
181 A syntax of language-name follows.
|
|
182 .br
|
|
183 .br
|
|
184 language = <language>'_'<territory>
|
|
185 .TP 8
|
|
186 .B \-k \fIuumkey-file-name\fP
|
|
187 This option specifies the path name of \fIuumkey-file\fP. For feather
|
|
188 information about \fIuumkey-file\fP, please see Wnn manual.
|
|
189 .TP 8
|
|
190 .B \-r \fIromkan-file-name\fP
|
|
191 This option specifies the directory name of \fIromkan-file\fP. For feather
|
|
192 information about \fIromkan-file\fP, please see Wnn manual.
|
|
193 .TP 8
|
|
194 .B \-X \fIconvert-key-file-name\fP
|
|
195 This option specifies the path name of \fIconvert-key-file\fP. The
|
|
196 \fIconvert-key-file\fP contains the relation between keys of X
|
|
197 and keys of Wnn. The default is "/usr/local/lib/wnn/cvt_xim_tbl".
|
|
198 For feather information about \fIconvert-key-file\fP, please see
|
|
199 the manual of \fIcvt_xim_tbl\fP.
|
|
200 .TP 8
|
|
201 .B \-F \fIconvert-function-file-name\fP
|
|
202 This option specifies the path name of \fIconvert-function-file\fP. The
|
|
203 \fIconvert-function-file\fP contains the relation between function keys of X
|
|
204 and keys of Wnn. This file is only for older version \fIxwnmo\fP.
|
|
205 Please use \fIcvt_xim_tbl\fP as much as possible.
|
|
206 For feather information about \fIconvert-function-file\fP, please see
|
|
207 the manual of \fIcvt_fun_tbl\fP.
|
|
208 .TP 8
|
|
209 .B \-M \fIconvert-meta-file-name\fP
|
|
210 This option specifies the path name of \fIconvert-meta-file\fP. The
|
|
211 \fIconvert-meta-file\fP contains the relation between meta keys of X and
|
|
212 keys of Wnn. This file is only for older version \fIxwnmo\fP.
|
|
213 Please use \fIcvt_xim_tbl\fP as much as possible.
|
|
214 For feather information about \fIconvert-meta-file\fP, please see
|
|
215 the manual of \fIcvt_meta_tbl\fP.
|
|
216 .TP 8
|
|
217 .B \-display \fIdisplay\fP
|
|
218 This option specifies the X server to connect; see \fIX(1)\fP.
|
|
219 .TP 8
|
|
220 .B \-help
|
|
221 This causes \fIxwnmo\fP to print out a verbose message describing its options.
|
|
222 .TP 8
|
|
223 .B \-ju \fIxjtuil-name\fP
|
|
224 This option specifies the path name of \fIxjutil\fP which is
|
|
225 \fIthe dictionary utility manager\fP.
|
|
226 The default is "/usr/bin/X11/xjutil".
|
|
227 .TP
|
|
228 .B \-EM
|
|
229 This causes that the menu for exit is available when a mouse pointer
|
|
230 is pushed on \fIRoot-mode\fP window.
|
|
231 The default is available.
|
|
232 .TP
|
|
233 .B \+EM
|
|
234 This causes that the menu for exit is disable.
|
|
235 Please use killxwnmo for exit.
|
|
236 .TP
|
|
237 .B \-SU
|
|
238 This causes that all windows xwnmo creates have SaveUnder attribute.
|
|
239 The default is those don't have.
|
|
240 .\"
|
|
241 .PP
|
|
242 The following options affects windows for \fIRoot-mode\fP on
|
|
243 all screens.
|
|
244 .\"
|
|
245 .TP 8
|
|
246 .B \-fs \fIfont-name-list\fP
|
|
247 This option specifies the list of font name. The fontset of \fIRoot-mode\fP
|
|
248 window is created from this list. The default is depend on the locale.
|
|
249 A syntax of this list follows.
|
|
250 .br
|
|
251 .br
|
|
252 font-name-list = <fontname>{','fontname}
|
|
253 .TP 8
|
|
254 .B \-geometry \fIgeometry\fP
|
|
255 This option specifies the preferred size and position of \fIRoot-mode\fP
|
|
256 window.
|
|
257 see \fIX(1)\fP
|
|
258 .TP 8
|
|
259 .B \-fg \fIcolor\fP
|
|
260 This option specifies the color to use for displaying text of \fIRoot-mode\fP
|
|
261 window. The default is ``black.''
|
|
262 .TP 8
|
|
263 .B \-bg \fIcolor\fP
|
|
264 This option specifies the color to use for the background of \fIRoot-mode\fP
|
|
265 window.
|
|
266 The default is ``white.''
|
|
267 .TP 8
|
|
268 .B \-bd \fIcolor\fP
|
|
269 This option specifies the color to use for the border of \fIRoot-mode\fP
|
|
270 window.
|
|
271 The default is ``black.''
|
|
272 .TP 8
|
|
273 .B \-bw \fInumber\fP
|
|
274 This option specifies the width in pixels of the border surrounding
|
|
275 \fIRoot-mode\fP window.
|
|
276 .TP 8
|
|
277 .B \-iconic
|
|
278 This option indicates that \fIxwnmo\fP should ask the window manager to
|
|
279 start it as an icon rather than as the normal window.
|
|
280 If the \-RV option is specified or "rootVisible" resource is specified
|
|
281 as ``True'', this option becomes void.
|
|
282 .TP 8
|
|
283 .B #\fIgeom\fP
|
|
284 This option specifies the preferred position of the icon window.
|
|
285 It is shorthand for specifying the ``\fI*iconGeometry\fP'' resource.
|
|
286 .TP 8
|
|
287 .B \-h
|
|
288 This causes \fIxwnmo\fP to wake up in conversion \fIoff\fP mode.
|
|
289 .TP 8
|
|
290 .B \-H
|
|
291 This causes \fIxwnmo\fP to wake up in conversion \fIon\fP mode.
|
|
292 The default is off mode.
|
|
293 .TP 8
|
|
294 .B \-RV
|
|
295 This causes \fIxwnmo\fP to unmap \fIRoot-mode\fP window
|
|
296 when henkan mode is off or no client uses \fIRoot-mode\fP.
|
|
297 This option make \-iconic option void and set "iconic"
|
|
298 resource as ``False''.
|
|
299 .SH RESOURCES
|
|
300 \fIXwnmo\fP accepts the following resource names and classes:
|
|
301 .TP 8
|
|
302 .B "serverName (\fPclass\fB ServerName)"
|
|
303 This option specifies the machine name of conversion server.
|
|
304 If this isn't set, first \fIJSERVER\fP environment is referred. And if it
|
|
305 isn't set, \fIxwnmo\fP attempts to connect "\fIjserver\fP" machine.
|
|
306 And if it's connect failed, \fIxwnmo\fP attempts to connect local machine.
|
|
307 .TP 8
|
|
308 .B "userName (\fPclass\fB UserName)"
|
|
309 Specifies the user name which is used as env-name of Wnn.
|
|
310 If this isn't set, first \fIWNNUSER\fP environment is referred. And if it
|
|
311 isn't set, the user name of process is referred.
|
|
312 .TP 8
|
|
313 .B "ximrcName (\fPclass\fB XimrcName)"
|
|
314 Specifies the path name of \fIximrc-file\fP which is a start up file of
|
|
315 \fIxwnmo\fP.
|
|
316 If this isn't set or there is not it, first \fI$HOME/.ximrc\fP is referred.
|
|
317 And if it doesn't
|
|
318 exist, the default is "/usr/local/lib/wnn/ximrc".
|
|
319 For feather information about \fIximrc-file\fP, please see the manual of
|
|
320 \fIximrc-file\fP.
|
|
321 .TP 8
|
|
322 .B "cvtximName (\fPclass\fB CvtximName)"
|
|
323 Specifies the path name \fIconvert-key-file\fP. The
|
|
324 \fIconvert-key-file\fP contains the relation between function keys of X
|
|
325 and keys of Wnn. The default is "/usr/local/lib/wnn/cvt_xim_tbl".
|
|
326 For feather information about \fIconvert-key-file\fP, please see
|
|
327 the manual of cvt_xim_tbl.
|
|
328 .TP 8
|
|
329 .B "cvtfunName (\fPclass\fB CvtfunName)"
|
|
330 Specifies the path name \fIconvert-function-file\fP. The
|
|
331 \fIconvert-function-file\fP contains the relation between function keys of X
|
|
332 and keys of Wnn. This file is only for older version \fIxwnmo\fP.
|
|
333 Please use \fIcvt_xim_tbl\fP as much as possible.
|
|
334 For feather information about \fIconvert-function-file\fP, please see
|
|
335 the manual of cvt_fun_tbl.
|
|
336 .TP 8
|
|
337 .B "cvtmetaName (\fPclass\fB CvtmetaName)"
|
|
338 Specifies the path name of \fIconvert-meta-file\fP. The
|
|
339 \fIconvert-meta-file\fP contains the relation between meta keys of X and
|
|
340 keys of Wnn. This file is only for older version \fIxwnmo\fP.
|
|
341 Please use \fIcvt_xim_tbl\fP as much as possible.
|
|
342 For feather information about \fIconvert-meta-file\fP, please see
|
|
343 the manual of cvt_meta_tbl.
|
|
344 .\".TP 8
|
|
345 .\".B "display (\fPclass\fB Display)"
|
|
346 .\"Specifies the X server to connect.
|
|
347 .TP 8
|
|
348 .B "xjutilName (\fPclass\fB XjutilName)"
|
|
349 Specifies the path name of \fIxjutil\fP which is \fIthe dictionary utility
|
|
350 manager\fP.
|
|
351 The default is "/usr/bin/X11/xjutil".
|
|
352 .TP 8
|
|
353 .B "langName (\fPclass\fB LangName)"
|
|
354 Specifies the \fIlocale name\fP which is referred as the
|
|
355 language environment of \fIRoot-mode\fP. If this isn't set, first
|
|
356 \fILANG\fP environment is referred. And if it isn't set, the default
|
|
357 is \fIja_JP\fP.
|
|
358 A syntax of language-name follows.
|
|
359 .br
|
|
360 .br
|
|
361 language = <language>'_'<territory>
|
|
362 .TP 8
|
|
363 .B "exitMenu (\fPclass\fB ExitMenu)"
|
|
364 Indicates that the menu for exit is available when a mouse pointer
|
|
365 is pushed on \fIRoot-mode\fP window.
|
|
366 The default is ``True''.
|
|
367 .TP
|
|
368 .B "saveUnder (\fPclass\fB SaveUnder)"
|
|
369 Indicates that all windows xwnmo creates have SaveUnder attribute.
|
|
370 The default is those don't have.
|
|
371 .\"
|
|
372 .PP
|
|
373 The following options can be specified for the window for
|
|
374 \fIRoot-mode\fP on each screen separately. the sub-name and sub-class
|
|
375 of each screen are \fBscreenN\fP and \fBScreenN\fP. Then \fBN\fP are
|
|
376 specified the number of screen.
|
|
377 .\"
|
|
378 .TP 8
|
|
379 .B "foreground (\fPclass\fB Foreground)"
|
|
380 Specifies the color to use for displaying text of \fIRoot-mode\fP window.
|
|
381 The default is ``black''.
|
|
382 .TP 8
|
|
383 .B "background (\fPclass\fB Background)"
|
|
384 Specifies the color to use for the background of \fIRoot-mode\fP window.
|
|
385 The default is ``white''.
|
|
386 .TP 8
|
|
387 .B "borderColor (\fPclass\fB BorderColor)"
|
|
388 Specifies the color to use for the border of \fIRoot-mode\fP window.
|
|
389 The default is ``black''.
|
|
390 .TP 8
|
|
391 .B "iconic (\fPclass\fB Iconic)"
|
|
392 Indicates that \fIxwnmo\fP should ask the window manager to
|
|
393 start it as an icon rather than as the normal window.
|
|
394 If the \-RV option is specified or "rootVisible" resource is specified
|
|
395 as ``True'', this resource is specified as ``False''.
|
|
396 The default is ``False''.
|
|
397 .TP 8
|
|
398 .B "geometry (\fPclass\fB Geometry)"
|
|
399 Specifies the preferred size and position of \fIRoot-mode\fP window.
|
|
400 .TP 8
|
|
401 .B "iconGeometry (\fPclass\fB IconGeometry)"
|
|
402 Specifies the preferred position of the icon window.
|
|
403 .TP 8
|
|
404 .B "borderWidth (\fPclass\fB BorderWidth)"
|
|
405 Specifies the width in pixels of the border surrounding \fIRoot-mode\fP window.
|
|
406 .TP 8
|
|
407 .B "fontSet (\fPclass\fB FontSet)"
|
|
408 Specifies the list of font name. The fontset of \fIRoot-mode\fP window
|
|
409 is created from this list. The default is depend on the locale.
|
|
410 A syntax of this list follows.
|
|
411 .br
|
|
412 .br
|
|
413 font-name-list = <fontname>{','fontname}
|
|
414 .TP 8
|
|
415 .B "rootVisible (\fPclass\fB RootVisible)"
|
|
416 Indicates that \fIxwnmo\fP should unmap \fIRoot-mode\fP window
|
|
417 when henkan mode is off or no client uses \fIRoot-mode\fP.
|
|
418 The default is ``False''.
|
|
419 This resource make \-iconic option void and set "iconic"
|
|
420 resource as ``False''.
|
|
421 .SH "SEE ALSO"
|
|
422 killxwnmo(1X), ximrc(4X), cvt_xim_tbl(4X), cvt_fun_tbl(4X), cvt_meta_tbl(4X)
|
|
423 .br
|
|
424 \fIWnn Manual\fP (in the Wnn source directory)
|
|
425 .SH COPYRIGHT
|
|
426 Copyright 1992, 1992 by OMRON Corporation
|
|
427 .br
|
|
428 Copyright 1992, 1992 by Massachusetts Institute of Technology
|
|
429 .SH AUTHOR
|
|
430 Seiji Kuwari (OMRON Corporation)
|