File: migemo.ja.html

package info (click to toggle)
migemo 0.32-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,764 kB
  • ctags: 123
  • sloc: ruby: 971; sh: 541; makefile: 113
file content (86 lines) | stat: -rw-r--r-- 4,065 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
<?xml version="1.0" ?>
<!DOCTYPE html 
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>migemo.ja.rd</title>
</head>
<body>
<h1><a name="label:0" id="label:0">Ruby/Migemo: ޻Τޤܸ򥤥󥯥󥿥븡 RubyѤΥ饤֥</a></h1><!-- RDLabel: "Ruby/Migemo: ޻Τޤܸ򥤥󥯥󥿥븡 RubyѤΥ饤֥" -->
<p>Ruby/Migemo ϥ޻Τޤܸ򥤥󥯥󥿥븡
Υ饤֥Ǥ</p>
<p>ǿǤ <a href="http://migemo.namazu.org/">&lt;URL:http://migemo.namazu.org/&gt;</a> ǽ
</p>
<h2><a name="label:1" id="label:1">ʸ</a></h2><!-- RDLabel: "ʸ" -->
<p>Ruby ʸɤ EUC-JP ꤷޤ $KCODE="e"</p>
<h3><a name="label:2" id="label:2"></a></h3><!-- RDLabel: "" -->
<pre>% cat sample.rb
$KCODE="e"
require 'migemo'

dict = MigemoStaticDict.new("migemo-dict")
dict_cache  = MigemoDictCache.new("migemo-dict" + ".cache")
user_dict = MigemoUserDict.new("user-dict")

while line = gets
  pattern = line.chomp
  migemo = Migemo.new(dict, pattern)
  migemo.optimization = 3
  migemo.dict_cache = dict_cache
  migemo.user_dict = user_dict
  migemo.type = "ruby"
  puts migemo.regex
end</pre>
<h2><a name="label:3" id="label:3">API</a></h2><!-- RDLabel: "API" -->
<dl>
<dt><a name="label:4" id="label:4"><code>MigemoStaticDict#new(<var>filename</var>)</code></a></dt><!-- RDLabel: "MigemoStaticDict#new" -->
<dd>
<p>ŪʼΥ֥Ȥ</p></dd>
<dt><a name="label:5" id="label:5"><code>MigemoDictCache#new(<var>filename</var>)</code></a></dt><!-- RDLabel: "MigemoDictCache#new" -->
<dd>
<p>ŪʼΥåΥ֥Ȥ</p></dd>
<dt><a name="label:6" id="label:6"><code>MigemoUserDict#new(<var>filename</var>)</code></a></dt><!-- RDLabel: "MigemoUserDict#new" -->
<dd>
<p>桼Υ֥Ȥ</p></dd>
<dt><a name="label:7" id="label:7"><code>MigemoRegexDict#new(<var>filename</var>)</code></a></dt><!-- RDLabel: "MigemoRegexDict#new" -->
<dd>
<p>ɽΥ֥Ȥ</p></dd>
<dt><a name="label:8" id="label:8"><code>Migemo#new(<var>dict</var>, <var>pattern</var>)</code></a></dt><!-- RDLabel: "Migemo#new" -->
<dd>
<p>Migemo֥Ȥ롣dict ˤ
MigemoStaticDict ֥Ȥpattern ˤϸѥ
Ϳ</p></dd>
<dt><a name="label:9" id="label:9"><code>Migemo#regex</code></a></dt><!-- RDLabel: "Migemo#regex" -->
<dd>
<p>ѥŸɽʸ֤</p></dd>
<dt><a name="label:10" id="label:10"><code>Migemo#type</code></a></dt><!-- RDLabel: "Migemo#type" -->
<dd>
<p>ɽμ (emacs, ruby, perl) ꤹ accessor[ruby]</p></dd>
<dt><a name="label:11" id="label:11"><code>Migemo#dict_cache</code></a></dt><!-- RDLabel: "Migemo#dict_cache" -->
<dd>
<p>ŪΥåꤹ accessor</p></dd>
<dt><a name="label:12" id="label:12"><code>Migemo#usr_dict</code></a></dt><!-- RDLabel: "Migemo#usr_dict" -->
<dd>
<p>桼Υ֥Ȥꤹ accessor</p></dd>
<dt><a name="label:13" id="label:13"><code>Migemo#regex_dict</code></a></dt><!-- RDLabel: "Migemo#regex_dict" -->
<dd>
<p>ɽΥ֥Ȥꤹ accessor</p></dd>
<dt><a name="label:14" id="label:14"><code>Migemo#insertion</code></a></dt><!-- RDLabel: "Migemo#insertion" -->
<dd>
<p>1ʸȤ˶ʸꤹ accessor</p></dd>
<dt><a name="label:15" id="label:15"><code>Migemo#optimization</code></a></dt><!-- RDLabel: "Migemo#optimization" -->
<dd>
<p>ɽΥѥȲΥ٥ (0-3) ꤹ accessor[3]</p></dd>
</dl>
<h3><a name="label:16" id="label:16"></a></h3><!-- RDLabel: "" -->
<p>GPL ˽äե꡼եȥȤƸޤ̵ݾ
Ǥ</p>
<ul>
<li><a href="http://migemo.namazu.org/migemo-0.3.tar.gz">&lt;URL:http://migemo.namazu.org/migemo-0.3.tar.gz&gt;</a></li>
<li><a href="http://cvs.namazu.org/migemo/">&lt;URL:http://cvs.namazu.org/migemo/&gt;</a></li>
</ul>
<p>satoru@namazu.org</p>

</body>
</html>