1
\input texinfo @c -*-texinfo-*-
3
@setfilename eblook.info
8
@set UPDATED 25 February 2000
13
@dircategory CD-ROM Book Utilities
15
* eblook: (eblook). Interactive EB interface command.
18
This file documents eblook, an interactive EB interface command.
20
Copyright @copyright{} 1997,1998,1999,2000 Keisuke Nishida
21
Copyright @copyright{} 2000,2001 Satomi
22
Copyright @copyright{} 2000,2001 Kazuhiko
23
Copyright @copyright{} 2000,2001 NEMOTO Takashi
25
Permission is granted to make and distribute verbatim copies of this
26
manual provided the copyright notice and this permission notice are
27
preserved on all copies.
30
Permission is granted to process this file through TeX and print the
31
results, provided the printed document carries a copying permission
32
notice identical to this one except for the removal of this paragraph
33
(this paragraph not being relevant to the printed manual).
36
Permission is granted to copy and distribute modified versions of this
37
manual under the conditions for verbatim copying, provided that the
38
entire resulting derived work is distributed under the terms of a
39
permission notice identical to this one.
41
Permission is granted to copy and distribute translations of this manual
42
into another language, under the above conditions for modified versions,
43
except that this permission notice may be stated in a translation
44
approved by the Free Software Foundation.
49
@subtitle for eblook @value{VERSION}
50
@author Keisuke Nishida
53
@author NEMOTO Takashi
56
@vskip 0pt plus 1filll
57
Copyright @copyright{} 1997,1998,1999,2000 Keisuke Nishida
58
Copyright @copyright{} 2000,2001 Satomi
59
Copyright @copyright{} 2000,2001 Kazuhiko
60
Copyright @copyright{} 2000,2001 NEMOTO Takashi
62
Permission is granted to make and distribute verbatim copies of this
63
manual provided the copyright notice and this permission notice are
64
preserved on all copies.
66
Permission is granted to copy and distribute modified versions of this
67
manual under the conditions for verbatim copying, provided that the
68
entire resulting derived work is distributed under the terms of a
69
permission notice identical to this one.
71
Permission is granted to copy and distribute translations of this manual
72
into another language, under the above conditions for modified versions,
73
except that this permission notice may be stated in a translation
74
approved by the Free Software Foundation.
80
@c *********************************************************************
81
@node Top, Introduction, (dir), (dir)
84
eblook �ϡ�EB �饤�֥����Ѥ������÷����ŻҼ������ޥ�ɤǤ�����ñ��
85
����ȥ��ޥ�ɤˤ�� CD-ROM ���Ҥ����ѽ���ޤ���
87
�ܽ�� eblook @value{VERSION} �ˤĤ����������Ƥ��ޤ���
91
* Introduction:: �Ϥ����
92
* Overview:: ��ޤ��ʻȤ���
93
* Starting:: eblook �ε�ư
94
* Setting:: ��������������
96
* Information:: �Ƽ����
97
* Commands:: ���ޥ�ɰ���
99
* How To Get:: �ǿ����������
102
@c *********************************************************************
103
@node Introduction, Overview, Top, Top
106
eblook �ϡ�EB �饤�֥��(@inforef{Top, EB, eb})���Ѥ������÷����ŻҼ���
107
�������ޥ�ɤǤ�����ñ������ȥ��ޥ�ɤˤ�� CD-ROM ���Ҥ����ѽ���ޤ���
109
eblook �ϼ�ڤ���Ż뤷���ġ���Ǥ��ꡢ�桼�������������δ����ʤɡ��ͥ�
110
�ȥ�����Ѥ����ꤷ��ʣ���ʵ�ǽ�����Ƥ��ޤ����Τ褦����Ū�ˤ�
111
NDTPD �Ȥ������եȥ���������������Ƥ��ޤ��Τǡ������餬���Ѥˤʤ�ޤ���
112
(@url{http://www.sra.co.jp/people/m-kasahr/ndtpd/} ��)
114
eblook �ϥե�����եȥ������Ǥ������ʤ��ϡ�Free Software Foundation ��
115
��ɽ���� GNU General Public License (GNU ���̸�ͭ���ѵ���)�ΥС������ 2
116
���뤤�Ϥ���ʹߤγƥС��������椫�餤���줫���������ΥС������
117
������˽��ä� eblook ������ۤޤ����ѹ����뤳�Ȥ��Ǥ��ޤ���
119
eblook ��ͭ�ѤȤϻפ��ޤ��������ۤˤ����äƤϡ��Ծ����ڤ�������ŪŬ����
120
�ˤĤ��Ƥΰ��ۤ��ݾڤ�ޤ�ơ������ʤ��ݾڤ�Ԥʤ��ޤ��ܺ٤ˤĤ��Ƥ�
121
GNU General Public License ���ɤߤ���������
123
�ä��Ƥ��ʤ��ϡ�eblook �ȶ������Ѥ��� CD-ROM ���Ҥλ��ѵ�������ʤ���
124
�Фʤ�ޤ����Ҥ����Ѥ�������ʤ����ˤ� eblook ���Ѥ��뤳�Ȥϲ�ǽ��
125
�⤷��ޤ������Τ褦�ʾ��� eblook ���Ѥ��ƤϤʤ�ޤ���
127
@c *********************************************************************
128
@node Overview, Starting, Introduction, Top
131
����Τ���ǥ��쥯�ȥ������ˡ�eblook ���뤫�鵯ư���ޤ���
134
% @kbd{eblook /cdrom}
138
@code{help} �ǥ��ޥ�ɰ�����ɽ�����ޤ���
142
book [directory [appendix]] - Set a book directory
143
info - Show information of the selected book
144
list - List all dictionaries in the selected book
145
select subbook - Select a subbook
146
subinfo - Show information of the selected subbook
147
copyright - Show copyright of the selected subbook
148
menu - Show the menu of the selected subbook
149
search pattern [offset] - Search for a word
150
content entry [offset] - Display contents of entry
151
dump entry [offset] - Display dumps of entry
152
font [id] - Display the bitmap of gaiji
153
show [variable] - Show the value of variables
154
set variable value - Set a variable to the value
155
unset variable... - Unset variables
156
candidate - Show candidates for multi search
157
label [id] - Show label for multi search
158
help - Show this message
162
@code{list} �Ǽ��������ɽ�����ޤ���
170
@code{select} �Ǽ�������@code{search} �Ǹ������ޤ���
173
eblook> @kbd{select 2}
174
eblook> @kbd{search test}
178
@code{content} ������ɽ�����ޤ���
181
eblook> @kbd{content 1}
186
@code{quit} �ǽ�λ���ޤ���
193
@c *********************************************************************
194
@node Starting, Setting, Overview, Top
197
eblook �ε�ư��ˡ�ϼ����̤�Ǥ���
200
eblook [option...] [@var{book-directory} [@var{appendix-directory}]]
203
@var{book-directory} �Ͻ��ҤΤ���ǥ��쥯�ȥ����ꤷ�ޤ�����ά���줿��
204
��ϡ������ȥǥ��쥯�ȥ꤬���ҥǥ��쥯�ȥ�Ȥߤʤ���ޤ���
206
@var{appendix-directory} �ˤ� Appendix �Τ���ǥ��쥯�ȥ����ꤷ�ޤ���
207
��ά���줿���ϡ�Appendix �����Ѥ���ޤ���(@pxref{Appendix})
209
�����������ͤϡ��ɤ���ⵯư����ѹ����뤳�Ȥ����ޤ���
210
@pxref{Setting} �Ȥ��Ʋ�������
212
���ץ����ˤϼ��Τ�Τ�ͭ���Ǥ���
216
@itemx --encoding=NAME
217
ʸ�������ɤ���ꤷ�ޤ� (euc, sjis, jis, utf8)���ǥե���Ȥϼ�ưȽ�̡�
220
@itemx --no-init-file
221
������ե�����(@file{~/.eblookrc})���ɤ߹��ߤޤ���
225
���ޥ�ɤΥС�������ֹ��ɽ�����ƽ�λ���ޤ���
229
���ޥ�ɤΥإ�פ�ɽ�����ƽ�λ���ޤ���
232
@c *********************************************************************
233
@node Setting, Search, Starting, Top
234
@chapter ��������������
236
���ޥ�� @code{book} �ˤ����ҤΤ���ǥ��쥯�ȥ����ꤷ�ޤ���
239
eblook> @kbd{book} @file{/cdrom} @file{/usr/local/share/eb/appendix}
242
���ҥǥ��쥯�ȥ�˴ޤޤ�뼭��ΰ����ϡ����ޥ�� @code{list} �ˤ�긫��
251
����ϥ��ޥ�� @code{select} �ˤ�ꥻ�åȤ��뤳�Ȥǡ����Ѳ�ǽ�Ȥʤ�ޤ���
254
eblook> @kbd{select 1}
260
eblook> @kbd{select KOKUGO}
263
���ޥ�� @code{set} �ˤ�ꡢ���ץ��������꤬��ǽ�Ǥ����㤨�Хץ���ץ�
264
���ѹ�����ˤϡ����Τ褦�ˤ��ޤ���
267
eblook> @kbd{set prompt "eblook$ "}
271
��Τ褦�ˡ������˶����ޤ��ɬ�פ�������ˤϡ��ͤ���֥륯�����Ȥǰ�
274
�ѿ����ͤϥ��ޥ�� @code{show} �Ǹ��뤳�Ȥ�����ޤ���
275
�ͤ�̵���ˤ���ˤϥ��ޥ�� @code{unset} ������ޤ���
278
eblook$ @kbd{show prompt}
280
eblook$ @kbd{unset prompt}
288
���ꡦ���ȤǤ����ѿ��ΰ����� @ref{Variables} �Ȥ��Ʋ�������
290
@c *********************************************************************
291
@node Search, Information, Setting, Top
294
���ΥС������� eblook �Ǥϡ����������Ȥ���ñ�측��(����������������
295
������������������)�ȡ���˥塼�λ��Ȥ�Ԥʤ����Ȥ�����ޤ����ޤ���
299
* Word Search:: ñ�측��
300
* Keyword Search:: ��︡��
301
* Multiple Search:: ʣ�縡��
304
* Appendix:: �������ִ�
307
@c =====================================================================
308
@node Word Search, Keyword Search, Search, Search
311
���ޥ�� @code{search} �Ǹ�����Ԥʤ��ޤ������餫���Ἥ������Ƥ���
315
eblook> @kbd{select EIWA}
316
eblook> @kbd{search test}
320
�ѿ� @code{search-method} �ˤ�긡���������ѹ�����ޤ������ߡ����Τ�Τ�
321
�����ǽ�Ǥ���(�ǥե���Ȥ� @code{glob})
331
ʸ����ơ�����ˡ����ꤷ�ޤ��������줬 @samp{foo*} �ʤ�� @samp{foo}
332
����������������Ԥʤ���Ʊ�ͤ� @samp{*foo} �ʤ�и������������
333
����@samp{foo} �ʤ�д�����������Ԥʤ��ޤ���
337
eblook> @kbd{show search-method}
339
eblook> @kbd{search test*}
341
2. 2345:678 testament
342
eblook> @kbd{search *test}
345
eblook> @kbd{set search-method word}
346
eblook> @kbd{search test}
348
2. 2345:678 testament
351
���Ϥΰ���ܤϥ���ȥ���ֹ�ǡ�����ܤϥ���ȥ����ꤹ�뤿��Υ�������
352
��Ǥ��������줫�ޥ�� @code{content} ���Ϥ����Ȥǡ�����ȥ�����Ƥ�
353
���Ϥ���ޤ���(@pxref{Content})
355
�ѿ� @code{max-hits} �ˤ�ꡢ���Ϥ��븫�Ф���ο������½���ޤ���
358
eblook> @kbd{show max-hits}
360
eblook> @kbd{search t*}
368
³����ɽ������ˤϡ�@code{search} ������������Ϥ��Ʋ�������
371
eblook> @kbd{search t* 256}
372
256. 1336:32 tantalization
373
257. 1358:2ab tantalize
375
511. 14c6:233 tea shop
379
������ @code{max-hits} �� 0 ����ꤹ��ȡ����ƤΥ���ȥ꤬���Ϥ���ޤ���
381
@c =====================================================================
382
@node Keyword Search, Multiple Search, Word Search, Search
385
���ޥ�� @code{search} �Ǹ�����Ԥʤ��ݤ� @samp{=foo} �Τ褦�� @samp{=}
386
��³���ƥ�����ɤ���ꤹ��о�︡����Ԥ��ޤ���@samp{=foo=bar} �Τ褦
387
�ˡ�ʣ���Υ�����ɤ���ꤹ�뤳�Ȥ��Ǥ��ޤ���
390
eblook> @kbd{search =����=��}
391
1. 54a:56a �������������ۥ����ҥ�
392
2. 658:2ce ���줷�Ρ�����ڴ������
393
3. 129e:256 ����ƥ�����green tea��
394
4. 1577:166 ����������ڹ����
395
5. 28a9:bc ����Τۤ������ܡ�
396
6. 3323:29e �Ϥ֡�������������ۡť���
401
@c =====================================================================
402
@node Multiple Search, Menu, Keyword Search, Search
405
���ޥ�� @code{label} �ˤ�ꡢ���μ���Ǥ�ʣ�縡���Υ�٥������ɽ������
406
�����ֹ��ʣ�縡�� ID �Ǥ���@code{label 1} �Ȥ���ȡ������ֹ�� ID �Υ�
411
1. �ϰ�ʢ����ȡ�:����ʢ����ȡ�:�������:�������:
412
2. ��̾���ϰ�̾�ʢ����ȡ�:����̾�ʢ����ȡ�:�������:�������:
413
3. ��̾�ʤɡʢ����ȡ�:������ʢ����ȡ�:�������:�������:
414
4. ����ʢ����ȡ�:������ʢ����ȡ�:�������:�������:
417
���ޥ�� @code{candidate} �ˤ�ꡢʣ�縡���Υ�����ɤθ����ɽ�����ޤ���
420
eblook> @kbd{candidate}
433
candidates: not-exist
435
candidates: not-exist
437
label 1: ��̾���ϰ�̾�ʢ����ȡ�
442
�ºݤ�ʣ�縡����¹Ԥ���ˤϡ����ޥ�� @code{search} �Ǹ�����Ԥʤ��ݤ�
443
@samp{:���ī��:�ḽ��:�Ҥ�:*:} �Τ褦�� @samp{:} �Ƕ��ڤäƥ������
447
eblook> @kbd{search :���ī��:�ḽ��:�Ҥ�:*:}
448
1. 2fa:36 ���������Ĥաڰ�ã�ס�
449
2. 759:636 ��������������������<gaiji=ha169>���
450
3. 7a7:25e �������������ڲ���ݡۥ復��<gaiji=ha168>
451
4. 7ba:6ec ���������礦�ᤤ�������áۥ復�ƥ���
455
���ޥ�� @code{set multi-search-id 2} �ʤɤȤ���ȡ�ʣ�縡�� ID ���ڤ���
459
eblook> @kbd{set multi-search-id 2}
460
eblook> @kbd{label 2}
461
2. ��̾���ϰ�̾�ʢ����ȡ�:����̾�ʢ����ȡ�:�������:�������:
462
eblook> @kbd{search :����:�̳�ƻ:*:*:}
463
1. 7b:3ac �����Ӥ����ʿ��
464
2. 8b:218 ������ڰ�����
465
3. 8b:31a �������ڰ����С�
466
4. 8b:434 ����������Ĥ�������ڰ�����Ω����ۡ�<gaiji=ha169>��
472
@c =====================================================================
473
@node Menu, Content, Multiple Search, Search
476
����˥塼����ľ�硢���ޥ�� @code{menu} �ˤ����Ϥ���ޤ���
480
<reference>�ع�켭ŵ�٤ˤĤ���</reference=2a18:2>
481
<reference>����</reference=2a18:202>
484
�ѳ�̤˶��ޤ줿�����Τ�����@samp{/reference=} �ȤʤäƤ�����ʬ�θ����
485
��˥塼�����ƤȤʤäƤ��ꡢ���ޥ�� @code{content} �ˤ�ꤽ��������뤳
486
�Ȥ�����ޤ���(@pxref{Content})
489
eblook> @kbd{content 2a18:2}
492
19xxǯxx��xx�� ���������
495
@c =====================================================================
496
@node Content, Appendix, Menu, Search
499
���ޥ�� @code{content} �ˤ�ꡢ����ȥ�����Ƥ������ޤ���
502
eblook> @kbd{search test}
504
2. 2345:678 testament
505
eblook> @kbd{content 1}
508
eblook> @kbd{content 1234:567}
513
���Ƥ���ե������ľ�硢������ʬ����Υ�˥塼��Ʊ�������ˤ�ä�ɽ
516
@code{search} ��Ʊ�ͤˡ����Ϥ���Х��ȿ����ѿ� @code{max-text} �ˤ�ä�
517
Ĵ�����ޤ���³����������ˤ� @code{content} �����������Ϳ����Τ�Ʊ
518
���Ǥ���0 ��Ϳ����ȺǸ�ޤǽ��Ϥ���ޤ���
520
�������Ƥγ�����ʬ���̾�Υƥ�����ʸ�����֤������뤳�Ȥ��ǽ�Ǥ���
521
@ref{Appendix} �Ȥ��Ʋ�������
523
@c =====================================================================
524
@node Appendix, , Content, Search
527
EB �饤�֥��ε�ǽ�Ȥ��ơ�CD-ROM ���Ҥ˴ޤޤ���ü�ʳ������̾��ʸ����
528
���֤������뤳�Ȥ���ǽ�Ǥ������⤷�ʤ��ȡ������ϼ��Τ褦��ɽ�蘆��ޤ���
531
eblook> @kbd{content 1234:567}
532
test /t<gaiji=ha123>st/
533
<gaiji=ha234><gaiji=ha345> 1. �...
536
�����Ŭ����ʸ������֤�������ˤϡ�NDTPD �ȶ������ۤ���Ƥ��� Appendix
537
�ѥå����������ꤷ��Ŭ���ʥǥ��쥯�ȥ��Ÿ�����Ʋ�������
541
@url{http://www.sra.co.jp/people/m-kasahr/ndtpd/}
544
eblook ���ޥ�ɤ�������������⤷���ϥ��ޥ�� @code{book} ����������Ȥ�
545
�ƥǥ��쥯�ȥ����ꤹ��С��������֤��������Ԥʤ��ޤ���
549
eblook> @kbd{book /cdrom /usr/local/share/eb/appendix}
550
eblook> @kbd{content 1234:567}
556
���뤤�ϥ��ޥ�� @code{font} �ˤ�ꡢ�����Υǡ����� xbm �����Υӥåȥޥ�
557
�ץǡ����Ȥ������뤳�Ȥ����ޤ���
561
#define default_width 8
562
#define default_height 16
563
static unsigned char default_bits[] = @{
564
0x00, 0x30, 0x18, 0x00, 0x00, 0x00, 0x18, 0x24, 0x42, 0x7e, 0x02, 0x02,
565
0x44, 0x38, 0x00, 0x00@};
568
@c *********************************************************************
569
@node Information, Commands, Search, Top
572
���ޥ�� @code{info} �ˤ�ꡢ���Ҥξ����Ϥ���ޤ���
577
character code: JIS X 0208
578
the number of dictionaries: 4
581
���ޥ�� @code{subinfo} �ˤ�ꡢ���Ƥ��뼭��ξ����Ϥ���ޤ���
584
eblook> @kbd{select EIWA}
585
eblook> @kbd{subinfo}
588
search methods: word endword exact menu
589
font sizes: 16 24 30 48
590
widw font characters: 0xa123 -- 0xa456
593
���ޥ�� @code{copyright} �ˤ�ꡢ���Ƥ��뼭�����������Ϥ���
597
eblook> @kbd{copyright}
598
�ֱ��¼�ŵ�� Copyright (C) 1998 Keisuke Nishida
601
���ޥ�� @code{help} �ˤ�ꡢ���ޥ�ɤΰ��������Ϥ���ޤ���
603
@c *********************************************************************
604
@node Commands, Variables, Information, Top
608
@item book [@var{directory} [@var{appendix}]]
609
��������ޤ����������ˤϽ��ҤΤ���ǥ��쥯�ȥꡢ��������ˤ�
610
Appendix �Τ���ǥ��쥯�ȥ����ꤷ�ޤ������ƾ�ά�������ˤϡ����ߤ���
614
����Ƥ�����Ҥ˴ؤ���������Ϥ��ޤ���
617
����Ƥ�����Ҥμ����������Ϥ��ޤ���
619
@item select @var{dictionary}
620
��������ޤ������ꤹ�٤��ͤϡ�@code{list} ���ޥ�ɤν��Ϥ��������ޤ���
623
����Ƥ��뼭��˴ؤ���������Ϥ��ޤ���
626
����Ƥ��뼭�������������Ϥ��ޤ���
629
����Ƥ��뼭��˥塼����ľ�硢�������Ϥ��ޤ���(@pxref{Menu})
631
@item search @var{pattern} [@var{offset}]
632
������Ԥʤ��ޤ�����������Ͻ��Ϥγ��ϰ��֡�(@pxref{Search})
634
@item content @var{entry} [@var{offset}]
635
����ȥ�����Ƥ���Ϥ��ޤ�����������Ͻ��Ϥγ��ϰ��֡�(@pxref{Content})
637
@item font [@var{id}]
638
�����ǡ����� xbm �����ǽ��Ϥ��ޤ����������ά������硢���Ƥγ����ξ����
639
���Ϥ��ޤ��������ι⤵���ѿ� @code{font} �ˤ��Ϳ�����ޤ���
641
@item show [@var{variable}]
642
�ѿ����ͤ���Ϥ��ޤ����������ά������硢���٤Ƥ��ѿ��ΰ��������Ϥ���ޤ���
644
@item set @var{variable} @var{value}
647
@item unset @var{varialbe}...
651
���ޥ�ɤΰ�������Ϥ��ޤ���
657
@c *********************************************************************
658
@node Variables, How To Get, Commands, Top
663
@code{search} ���ޥ�ɤθ���ˡ��@code{exact}, @code{word},
664
@code{endword}, @code{glob} �Τ����줫����ǽ���ǥե���Ȥ� @code{glob}��
667
@code{search} ���ޥ�ɤ����Ϥ������ι��ܿ���0 �ΤȤ�̵���¡�
671
@code{content} ���ޥ�ɤ����Ϥ���ɽ���Х��ȿ�(���ܰ�)��0 �ΤȤ�̵���¡�
675
�����ǡ����ι⤵���ǥե���Ȥ� 16��
678
�����Ϥ�ʸ�������ɡ����������ͤ� @code{jis}, @code{sjis}, @code{euc},
679
@code{utf8}, @code{auto} �Τ����줫 (��ʸ������ʸ���ζ��̤ʤ�)��
682
�ƥ����Ƚ��Ϥν�λ�����ɡ�"set stop-code 0x1f090000" �Τ褦�˻��ꤷ�ޤ���
683
����ˤ�äƤϡ��������ꤷ�ʤ��Ƚ��Ϥ�Ŭ�ڤʸĽ�ǽ�λ���ޤ���
686
�ץ���ץȡ��ǥե���Ȥ� "eblook> "��
692
@c *********************************************************************
693
@node How To Get, , Variables, Top
694
@chapter �ǿ����������
696
�ǿ��� eblook �ϡ����ΤȤ������������ǽ�Ǥ���
700
@url{http://openlab.ring.gr.jp/edict/eblook/}
703
eblook �˴ؤ������ϡ�edict �� NDTPD �Υ��ꥹ�ȤˤƹԤ��
708
@url{http://openlab.ring.gr.jp/edict/}
710
@url{http://www.sra.co.jp/people/m-kasahr/ndtpd/}
713
eblook �� edict ��ȯ������ (@email{edict@@ring.gr.jp}) �ˤ�������
714
��Ƥ��ޤ���eblook �˴ؤ����䤤��碌�Ϥ�����ޤǤ��ꤤ���ޤ���