hikiutils 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/abst/#testhiki# +0 -0
  3. data/abst/.DS_Store +0 -0
  4. data/abst/out2.pdf +0 -0
  5. data/abst/out3.aux +15 -0
  6. data/abst/out3.log +224 -0
  7. data/abst/out3.pdf +0 -0
  8. data/abst/out3.synctex.gz +0 -0
  9. data/abst/out3.tex +106 -0
  10. data/abst/out4.aux +15 -0
  11. data/abst/out4.log +187 -0
  12. data/abst/out4.pdf +0 -0
  13. data/abst/out4.synctex.gz +0 -0
  14. data/abst/out4.tex +81 -0
  15. data/abst/testhiki +26 -0
  16. data/abst/testhiki2 +106 -0
  17. data/abst/yamane_abst.pdf +0 -0
  18. data/abst/yamane_abst.tex +59 -0
  19. data/abst/yamane_abst_new.pdf +0 -0
  20. data/abst/yamane_powerpoint.key +0 -0
  21. data/abst/yamane_powerpoint.pptx/Data/PresetImageFill0-1.jpg +0 -0
  22. data/abst/yamane_powerpoint.pptx/Data/PresetImageFill1-2.jpg +0 -0
  23. data/abst/yamane_powerpoint.pptx/Data/PresetImageFill2-3.jpg +0 -0
  24. data/abst/yamane_powerpoint.pptx/Data/PresetImageFill3-4.jpg +0 -0
  25. data/abst/yamane_powerpoint.pptx/Data/PresetImageFill4-5.jpg +0 -0
  26. data/abst/yamane_powerpoint.pptx/Data/PresetImageFill5-6.jpg +0 -0
  27. data/abst/yamane_powerpoint.pptx/Data/image1-12.png +0 -0
  28. data/abst/yamane_powerpoint.pptx/Data/image1-9.png +0 -0
  29. data/abst/yamane_powerpoint.pptx/Data/mt0@2x-13.jpg +0 -0
  30. data/abst/yamane_powerpoint.pptx/Data/mt10@2x-22.jpg +0 -0
  31. data/abst/yamane_powerpoint.pptx/Data/mt1@2x-14.jpg +0 -0
  32. data/abst/yamane_powerpoint.pptx/Data/mt2@2x-15.jpg +0 -0
  33. data/abst/yamane_powerpoint.pptx/Data/mt3@2x-16.jpg +0 -0
  34. data/abst/yamane_powerpoint.pptx/Data/mt4@2x-17.png +0 -0
  35. data/abst/yamane_powerpoint.pptx/Data/mt5@2x-18.jpg +0 -0
  36. data/abst/yamane_powerpoint.pptx/Data/mt6@2x-19.jpg +0 -0
  37. data/abst/yamane_powerpoint.pptx/Data/mt7@2x-20.png +0 -0
  38. data/abst/yamane_powerpoint.pptx/Data/mt8@2x-21.jpg +0 -0
  39. data/abst/yamane_powerpoint.pptx/Data/st0-23.jpg +0 -0
  40. data/abst/yamane_powerpoint.pptx/Data/st1-24.jpg +0 -0
  41. data/abst/yamane_powerpoint.pptx/Data/st2-25.jpg +0 -0
  42. data/abst/yamane_powerpoint.pptx/Data/st3-26.jpg +0 -0
  43. data/abst/yamane_powerpoint.pptx/Data/st4-276.jpg +0 -0
  44. data/abst/yamane_powerpoint.pptx/Data/st5-279.jpg +0 -0
  45. data/abst/yamane_powerpoint.pptx/Index.zip +0 -0
  46. data/abst/yamane_powerpoint.pptx/Metadata/BuildVersionHistory.plist +8 -0
  47. data/abst/yamane_powerpoint.pptx/Metadata/DocumentIdentifier +1 -0
  48. data/abst/yamane_powerpoint.pptx/Metadata/Properties.plist +0 -0
  49. data/abst/yamane_powerpoint.pptx/preview-micro.jpg +0 -0
  50. data/abst/yamane_powerpoint.pptx/preview-web.jpg +0 -0
  51. data/abst/yamane_powerpoint.pptx/preview.jpg +0 -0
  52. data/lib/hikiutils/version.rb +1 -1
  53. data/lib/hikiutils.rb +38 -2
  54. data/lib/templates/Rakefile_hiki_sync +61 -0
  55. data/lib/templates/hik_help.yml +61 -0
  56. data/lib/templates/hiki_help.yml +29 -0
  57. metadata +55 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17379498dead55aa4e6aaa9b0d490b5403f1a156
4
- data.tar.gz: 55d2e74114673f91520109b600e940978b6754a1
3
+ metadata.gz: 33c07102bf1780d15c581c527f94c1b8cd6b669a
4
+ data.tar.gz: ec11aaf32510e96bc9d85d53769279f8586039e2
5
5
  SHA512:
6
- metadata.gz: 9bb6cf4a55624b2133cee02a7d041314da60568f0f7fab65d5df6324a9db9ac8257222c73f5e0b0732bf2cb43c1e1ebe28d6c37c5415c898876f812b8dc3d646
7
- data.tar.gz: 1c3a7dde61f79c729b4e6f65af2c3d05aa60e82a97b5f9b3bff956e2ccf8d607edfb70c8209553d2a7f46359c711dd47442dd1a7c2a479f16cedb4d35ef59376
6
+ metadata.gz: 366af89e6261ed389c5a5434311ef583a07d94c291b1b01dddec50dba88dd8e2c69acb73fb97ebc576941d3b1658fb03dde6222d2e53625a4737051718fb50dd
7
+ data.tar.gz: 405743baaf3740ed695cd89d1e047f4ee48031e8709b1d16b78440613d57e3007b3b7b4b6c03e77e179264ebf3c9186c84ada62d1d821167d563d9dcafb0aa77
data/abst/#testhiki# ADDED
File without changes
data/abst/.DS_Store ADDED
Binary file
data/abst/out2.pdf ADDED
Binary file
data/abst/out3.aux ADDED
@@ -0,0 +1,15 @@
1
+ \relax
2
+ \citation{hiki}
3
+ \citation{gem}
4
+ \citation{opt}
5
+ \citation{PerfectRuby}
6
+ \@writefile{toc}{\contentsline {section}{\numberline {1}目的}{1}}
7
+ \@writefile{toc}{\contentsline {section}{\numberline {2}システムについて}{1}}
8
+ \@writefile{toc}{\contentsline {subsection}{\numberline {2.1}hikiについて}{1}}
9
+ \@writefile{toc}{\contentsline {subsection}{\numberline {2.2}hikiutilsについて}{1}}
10
+ \@writefile{toc}{\contentsline {section}{\numberline {3}手法}{1}}
11
+ \@writefile{toc}{\contentsline {section}{\numberline {4}考察}{1}}
12
+ \bibcite{hiki}{1}
13
+ \bibcite{gem}{2}
14
+ \bibcite{opt}{3}
15
+ \bibcite{PerfectRuby}{4}
data/abst/out3.log ADDED
@@ -0,0 +1,224 @@
1
+ This is e-pTeX, Version 3.14159265-p3.6-141210-2.6 (utf8.euc) (TeX Live 2015) (preloaded format=platex 2015.7.31) 3 SEP 2016 16:28
2
+ entering extended mode
3
+ restricted \write18 enabled.
4
+ file:line:error style messages enabled.
5
+ %&-line parsing enabled.
6
+ **out3
7
+ (./out3.tex
8
+ pLaTeX2e <2006/11/10> (based on LaTeX2e <2015/01/01> patch level 0)
9
+ Babel <3.9l> and hyphenation patterns for 79 languages loaded.
10
+ (/usr/local/texlive/2015/texmf-dist/tex/platex/jsclasses/jsarticle.cls
11
+ Document Class: jsarticle 2014/02/07 okumura
12
+ LaTeX Info: Redefining \rmfamily on input line 352.
13
+ LaTeX Info: Redefining \sffamily on input line 355.
14
+ LaTeX Info: Redefining \ttfamily on input line 358.
15
+ \symmincho=\mathgroup4
16
+ LaTeX Font Info: Overwriting symbol font `mincho' in version `bold'
17
+ (Font) JY1/mc/m/n --> JY1/gt/m/n on input line 423.
18
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
19
+ (Font) scaled to size 9.60999pt on input line 613.
20
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
21
+ (Font) scaled to size 9.60999pt on input line 613.
22
+ \fullwidth=\dimen118
23
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
24
+ (Font) scaled to size 7.68799pt on input line 760.
25
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
26
+ (Font) scaled to size 7.68799pt on input line 760.
27
+ \c@part=\count81
28
+ \c@section=\count82
29
+ \c@subsection=\count83
30
+ \c@subsubsection=\count84
31
+ \c@paragraph=\count85
32
+ \c@subparagraph=\count86
33
+ \@abstractbox=\box41
34
+ \c@figure=\count87
35
+ \c@table=\count88
36
+ \abovecaptionskip=\skip41
37
+ \belowcaptionskip=\skip42
38
+ \js@tocl@width=\dimen119
39
+ \@lnumwidth=\dimen120
40
+ \bibindent=\dimen121
41
+ LaTeX Info: Redefining \TeX on input line 1731.
42
+ LaTeX Info: Redefining \LaTeX on input line 1757.
43
+ LaTeX Info: Redefining \LaTeXe on input line 1782.
44
+ \heisei=\count89
45
+ ) (/usr/local/texlive/2015/texmf-dist/tex/latex/subfigure/subfigure.sty
46
+ Package: subfigure 2002/03/15 v2.1.5 subfigure package
47
+ \subfigtopskip=\skip43
48
+ \subfigcapskip=\skip44
49
+ \subfigcaptopadj=\dimen122
50
+ \subfigbottomskip=\skip45
51
+ \subfigcapmargin=\dimen123
52
+ \subfiglabelskip=\skip46
53
+ \c@subfigure=\count90
54
+ \c@lofdepth=\count91
55
+ \c@subtable=\count92
56
+ \c@lotdepth=\count93
57
+
58
+ ****************************************
59
+ * Local config file subfigure.cfg used *
60
+ ****************************************
61
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/subfigure/subfigure.cfg)
62
+ \subfig@top=\skip47
63
+ \subfig@bottom=\skip48
64
+ )
65
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty
66
+ Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
67
+
68
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty
69
+ Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
70
+ \KV@toks@=\toks15
71
+ )
72
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty
73
+ Package: graphics 2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)
74
+
75
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/trig.sty
76
+ Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
77
+ )
78
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/graphics.cfg
79
+ File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
80
+ )
81
+ Package graphics Info: Driver file: dvipdfmx.def on input line 94.
82
+
83
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
84
+ File: dvipdfmx.def 2015/03/26 v4.04 LaTeX color/graphics driver for dvipdfmx (T
85
+ eX Live/ChoF)
86
+ ))
87
+ \Gin@req@height=\dimen124
88
+ \Gin@req@width=\dimen125
89
+ )
90
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/url/url.sty
91
+ \Urlmuskip=\muskip10
92
+ Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
93
+ )
94
+ No file out3.aux.
95
+ \openout1 = `out3.aux'.
96
+
97
+ LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 16.
98
+ LaTeX Font Info: ... okay on input line 16.
99
+ LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 16.
100
+ LaTeX Font Info: ... okay on input line 16.
101
+ LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 16.
102
+ LaTeX Font Info: ... okay on input line 16.
103
+ LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 16.
104
+ LaTeX Font Info: ... okay on input line 16.
105
+ LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 16.
106
+ LaTeX Font Info: ... okay on input line 16.
107
+ LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 16.
108
+ LaTeX Font Info: ... okay on input line 16.
109
+ LaTeX Font Info: Checking defaults for JY1/mc/m/n on input line 16.
110
+ LaTeX Font Info: ... okay on input line 16.
111
+ LaTeX Font Info: Checking defaults for JT1/mc/m/n on input line 16.
112
+ LaTeX Font Info: ... okay on input line 16.
113
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
114
+ (Font) scaled to size 16.60605pt on input line 20.
115
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
116
+ (Font) scaled to size 16.60605pt on input line 20.
117
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
118
+ (Font) scaled to size 11.53198pt on input line 20.
119
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
120
+ (Font) scaled to size 11.53198pt on input line 20.
121
+ LaTeX Font Info: External font `cmex10' loaded for size
122
+ (Font) <12> on input line 20.
123
+ LaTeX Font Info: External font `cmex10' loaded for size
124
+ (Font) <8> on input line 20.
125
+ LaTeX Font Info: External font `cmex10' loaded for size
126
+ (Font) <6> on input line 20.
127
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
128
+ (Font) scaled to size 5.76599pt on input line 20.
129
+ LaTeX Font Info: Font shape `JT1/gt/m/n' will be
130
+ (Font) scaled to size 11.53198pt on input line 21.
131
+ LaTeX Font Info: Font shape `JY1/gt/m/n' will be
132
+ (Font) scaled to size 11.53198pt on input line 21.
133
+ LaTeX Font Info: Font shape `JT1/gt/m/n' will be
134
+ (Font) scaled to size 9.60999pt on input line 37.
135
+ LaTeX Font Info: Font shape `JY1/gt/m/n' will be
136
+ (Font) scaled to size 9.60999pt on input line 37.
137
+ LaTeX Font Info: Try loading font information for OMS+cmr on input line 41.
138
+ (/usr/local/texlive/2015/texmf-dist/tex/latex/base/omscmr.fd
139
+ File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
140
+ )
141
+ LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available
142
+ (Font) Font shape `OMS/cmsy/m/n' tried instead on input line 41.
143
+ LaTeX Font Info: Font shape `JT1/mc/bx/n' in size <10> not available
144
+ (Font) Font shape `JT1/gt/m/n' tried instead on input line 51.
145
+ LaTeX Font Info: Font shape `JT1/gt/m/n' will be
146
+ (Font) scaled to size 9.60999pt on input line 51.
147
+ LaTeX Font Info: Font shape `JY1/mc/bx/n' in size <10> not available
148
+ (Font) Font shape `JY1/gt/m/n' tried instead on input line 51.
149
+ LaTeX Font Info: Font shape `JY1/gt/m/n' will be
150
+ (Font) scaled to size 9.60999pt on input line 51.
151
+
152
+
153
+ LaTeX Warning: Citation `hiki' on page 1 undefined on input line 51.
154
+
155
+
156
+ LaTeX Warning: Citation `gem' on page 1 undefined on input line 56.
157
+
158
+
159
+ LaTeX Warning: Citation `opt' on page 1 undefined on input line 58.
160
+
161
+
162
+ Underfull \vbox (badness 10000) has occurred while \output is active []
163
+
164
+
165
+
166
+ LaTeX Warning: Citation `PerfectRuby' on page 1 undefined on input line 62.
167
+
168
+
169
+ Underfull \hbox (badness 1629) in paragraph at lines 62--64
170
+ \JY1/mc/m/n/10 ドは \OT1/cmr/m/n/10 ilb/todo/command.rb \JY1/mc/m/n/10 で判断さ
171
+ れることにより
172
+ []
173
+
174
+
175
+ Overfull \hbox (29.55641pt too wide) in paragraph at lines 95--95
176
+ []\OT1/cmtt/m/n/10 hikiutils: provide utilities for helping hiki editing.[]
177
+ []
178
+
179
+
180
+ Overfull \hbox (13.80655pt too wide) in paragraph at lines 95--95
181
+ [] \OT1/cmtt/m/n/10 --display FILE display converted hikifile[]
182
+ []
183
+
184
+
185
+ Underfull \vbox (badness 10000) has occurred while \output is active []
186
+
187
+ [1
188
+
189
+
190
+ ]
191
+ LaTeX Font Info: External font `cmex10' loaded for size
192
+ (Font) <7> on input line 102.
193
+ LaTeX Font Info: External font `cmex10' loaded for size
194
+ (Font) <5> on input line 102.
195
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
196
+ (Font) scaled to size 6.72699pt on input line 102.
197
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
198
+ (Font) scaled to size 4.805pt on input line 102.
199
+
200
+ Underfull \hbox (badness 10000) in paragraph at lines 102--103
201
+ []\JY1/mc/m/n/10 「\OT1/cmr/m/n/10 Rubygems-Wikipedia\JY1/mc/m/n/10 」 \OT1/cmr
202
+ /m/n/10 ,$\OT1/cmtt/m/n/10 ja . wikipedia . org / wiki /
203
+ []
204
+
205
+ [2
206
+
207
+ ] (./out3.aux)
208
+
209
+ LaTeX Warning: There were undefined references.
210
+
211
+
212
+ LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
213
+
214
+ )
215
+ Here is how much of TeX's memory you used:
216
+ 1004 strings out of 493777
217
+ 12114 string characters out of 6151334
218
+ 76479 words of memory out of 5000000
219
+ 4532 multiletter control sequences out of 15000+600000
220
+ 13604 words of font info for 60 fonts, out of 8000000 for 9000
221
+ 934 hyphenation exceptions out of 8191
222
+ 25i,7n,24p,439b,293s stack positions out of 5000i,500n,10000p,200000b,80000s
223
+
224
+ Output written on out3.dvi (2 pages, 8300 bytes).
data/abst/out3.pdf ADDED
Binary file
Binary file
data/abst/out3.tex ADDED
@@ -0,0 +1,106 @@
1
+ \documentclass[a4j,twocolumn]{jsarticle}
2
+ \usepackage{subfigure}
3
+
4
+ \def\Vec#1{\mbox{\boldmath $#1$}}
5
+ \usepackage[dvipdfmx]{graphicx}
6
+ \usepackage{url}
7
+
8
+
9
+ \setlength{\textheight}{275mm}
10
+ \headheight 5mm
11
+ \topmargin -30mm
12
+ \textwidth 185mm
13
+ \oddsidemargin -15mm
14
+ \evensidemargin -15mm
15
+ \pagestyle{empty}
16
+ \begin{document}
17
+ \title{hiki編集作業を容易にするツールの開発}
18
+ \author{情報科学科 西谷研究室 3554 山根 亮太}
19
+ \date{}
20
+ \maketitle
21
+ \section{目的}
22
+
23
+ hikiはwiki cloneとして便利.
24
+
25
+ hikiは,通常web上で編集しているが,なにが不便?
26
+
27
+ GUIとCUIが混在してしまい,操作が不便である.
28
+ そこで,編集操作がCUIで完結するために,hikiutilsが開発された.
29
+ しかしそのユーザインターフェースに問題がある.
30
+ 現在hikiでコマンドを入力する際,ユーザーは瞬間的にそのコマンドの機能や意味を判断することが難しく迷いが生じてしまうことがある.
31
+
32
+ 具体的な作業は,hikiのコマンド名をshell風にすることで瞬時にコマンドの機能を判断し使用することができるようにすることである.
33
+
34
+ しかし,この開発をすることでユーザーはコマンド入力の際にそのコマンドの機能が分からなくなって入力に迷ったり,コマンド自体を忘れたりすることがなくなりより簡単に入力ができ,時間短縮にも繋がる.そのため,hikiのコマンド名をshell風に書き換えることでこの問題を解決したい.
35
+
36
+ \section{システムについて}
37
+ \subsection{hikiについて}
38
+ hikiとはwikiエンジンの1つとされており,プログラミング言語Rubyを用いられることで作られたwikiクローンである.
39
+ hikiの主な特徴として
40
+ \begin{itemize}
41
+ \item オリジナルwikiに似たシンプルな書式
42
+ \item プラグインによる機能拡張
43
+ \item 出力するHTMLを柔軟に変更可能
44
+ \item ページにカテゴリ付けできる
45
+ \item CSSを使ったテーマ機能
46
+ \item 携帯端末可能
47
+ \item InterWikiのサポート
48
+ \item HikiFarmに対応
49
+ \item ページの追加,編集がしやすい
50
+ \end{itemize}
51
+ 等がある\cite{hiki}.
52
+
53
+ \subsection{hikiutilsについて}
54
+ hikiutilsは,hikiの編集作業を容易に行うことができるようにするツール群である.
55
+ よって,今回の研究はhikiutilsのプログラムを編集することで瞬時にコマンドの機能や意味を理解できるコマンド名を考え編集を行う.
56
+ hikiutilsはプログラミング言語Rubyのライブラリであるgemによって提供されている\cite{gem}.
57
+ hikiutilsはCLI(Command Line Interface)で提供されているため,
58
+ プログラミング言語Ruby版のコマンドラインのオプション解析を行いコマンドを標準化にするoptparseが利用されている\cite{opt}.
59
+ そのため,CLIのoptparseを簡単に扱うためにRubyにはいくつかのlibraryが用意されている.
60
+
61
+ \section{手法}
62
+ このようなCLIの階層的なコマンド実装を示したcodeとしてTodoというgemアプリケーションがある\cite{PerfectRuby}.
63
+ このプログラムではlib/todo/command/options.rbにサブコマンド用の定義があり,入力されたコマンドはilb/todo/command.rbで判断されることによりlib/todo/command/options.rb内で実行される.hikiutilsのプログラムの構造はTodoアプリケーションのプログラムの構造と似たものでありhikiの編集を容易にするためのツール群のため,この部分の編集を行うことでコマンド名を書き換える.
64
+
65
+ \section{考察}
66
+
67
+ 他の視点から言えない? が見れない?
68
+
69
+ todoのコードを追いかけて.
70
+
71
+ 直感的なコマンドname? shell風,git風, help?
72
+
73
+ 似たようなソフトに何がある?
74
+
75
+ 似たようなアプリに何がある?
76
+
77
+ \begin{verbatim}
78
+ hikiutils: provide utilities for helping hiki editing.
79
+ "open -a mi"
80
+ Usage: hiki [options]
81
+ -v, --version show program Version.
82
+ -s, --show show sources
83
+ -a, --add add sources info
84
+ -t, --target VAL set target id
85
+ -e, --edit FILE open file
86
+ -l, --list [FILE] list files
87
+ -u, --update FILE update file
88
+ -r, --rsync rsync files
89
+ --database FILE read database file
90
+ --display FILE display converted hikifile
91
+ -c, --checkdb check database file
92
+ --remove FILE remove file
93
+ --move FILES move file1,file2
94
+ --euc FILE translate file to euc
95
+ \end{verbatim}
96
+
97
+
98
+ 現在Todoアプリケーションのコードを追いかけて,プログラムの構造を理解している.しかし,hikiのコマンド名の変更や直感的なコマンド名を考えることは現在できていない.今後の課題としては,まず初めにTodoアプリケーションの構造を理解することでhikiutilsの構造を理解する.また,誰が見ても機能が判断できるコマンド名を考え,実際にhikiutils内でそのコマンドの編集を行って実装し,そのコマンドが分かりやすいものであるかどうかを試してもらう必要がある.
99
+
100
+ \begin{thebibliography}{9}
101
+ \bibitem{hiki}「hiki」,hikiwiki.org/ja/about.html,2016/9/2 アクセス.
102
+ \bibitem{gem}「Rubygems-Wikipedia」,\url{ja.wikipedia.org/wiki/RubyGems},2016/9/2 アクセス.
103
+ \bibitem{opt}「optparseの使い方」,\url{dharry.hatenablog.com/entry/20081008/1223490673},2016/9/2 アクセス.
104
+ \bibitem{PerfectRuby}「パーフェクトRuby」,Rubyサポーターズ(技術評論社 2013).
105
+ \end{thebibliography}
106
+ \end{document}
data/abst/out4.aux ADDED
@@ -0,0 +1,15 @@
1
+ \relax
2
+ \citation{hiki}
3
+ \citation{gem}
4
+ \citation{opt_ranking}
5
+ \citation{PerfectRuby}
6
+ \bibcite{hiki}{1}
7
+ \bibcite{gem}{2}
8
+ \bibcite{opt_ranking}{3}
9
+ \bibcite{PerfectRuby}{4}
10
+ \@writefile{toc}{\contentsline {section}{\numberline {1}目的}{1}}
11
+ \@writefile{toc}{\contentsline {section}{\numberline {2}システムについて}{1}}
12
+ \@writefile{toc}{\contentsline {subsection}{\numberline {2.1}hikiについて}{1}}
13
+ \@writefile{toc}{\contentsline {subsection}{\numberline {2.2}hikiutilsについて}{1}}
14
+ \@writefile{toc}{\contentsline {section}{\numberline {3}手法}{1}}
15
+ \@writefile{toc}{\contentsline {section}{\numberline {4}現状}{1}}
data/abst/out4.log ADDED
@@ -0,0 +1,187 @@
1
+ This is pTeXk, Version 3.141592-p3.1.11 (utf8.euc) (Web2C 7.5.4) (format=platex 2011.7.24) 9 SEP 2016 12:59
2
+ file:line:error style messages enabled.
3
+ **out4
4
+ (./out4.tex
5
+ pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2003/12/01> patch level 0)
6
+ (/Applications/UpTeX.app/teTeX/share/texmf/ptex/platex/jsclasses/jsarticle.cls
7
+ Document Class: jsarticle 2009/02/22 okumura
8
+ LaTeX Info: Redefining \rmfamily on input line 332.
9
+ LaTeX Info: Redefining \sffamily on input line 335.
10
+ LaTeX Info: Redefining \ttfamily on input line 338.
11
+ \symmincho=\mathgroup4
12
+ LaTeX Font Info: Overwriting symbol font `mincho' in version `bold'
13
+ (Font) JY1/mc/m/n --> JY1/gt/m/n on input line 403.
14
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
15
+ (Font) scaled to size 9.60999pt on input line 601.
16
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
17
+ (Font) scaled to size 9.60999pt on input line 601.
18
+ \fullwidth=\dimen118
19
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
20
+ (Font) scaled to size 7.68799pt on input line 748.
21
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
22
+ (Font) scaled to size 7.68799pt on input line 748.
23
+ \c@part=\count81
24
+ \c@section=\count82
25
+ \c@subsection=\count83
26
+ \c@subsubsection=\count84
27
+ \c@paragraph=\count85
28
+ \c@subparagraph=\count86
29
+ \@abstractbox=\box41
30
+ \c@figure=\count87
31
+ \c@table=\count88
32
+ \abovecaptionskip=\skip41
33
+ \belowcaptionskip=\skip42
34
+ \@lnumwidth=\dimen119
35
+ \bibindent=\dimen120
36
+ LaTeX Info: Redefining \TeX on input line 1702.
37
+ LaTeX Info: Redefining \LaTeX on input line 1728.
38
+ LaTeX Info: Redefining \LaTeXe on input line 1753.
39
+ \heisei=\count89
40
+ )
41
+ (/Applications/UpTeX.app/teTeX/share/texmf-dist/tex/latex/subfigure/subfigure.s
42
+ ty
43
+ Package: subfigure 2002/07/30 v2.1.4 subfigure package
44
+ \subfigtopskip=\skip43
45
+ \subfigcapskip=\skip44
46
+ \subfigcaptopadj=\dimen121
47
+ \subfigbottomskip=\skip45
48
+ \subfigcapmargin=\dimen122
49
+ \subfiglabelskip=\skip46
50
+ \c@subfigure=\count90
51
+ \c@lofdepth=\count91
52
+ \c@subtable=\count92
53
+ \c@lotdepth=\count93
54
+
55
+ ****************************************
56
+ * Local config file subfigure.cfg used *
57
+ ****************************************
58
+
59
+ (/Applications/UpTeX.app/teTeX/share/texmf-dist/tex/latex/subfigure/subfigure.c
60
+ fg)
61
+ \subfig@top=\skip47
62
+ \subfig@bottom=\skip48
63
+ ) (/Applications/UpTeX.app/teTeX/share/texmf/ptex/latex/url/url.sty
64
+ \Urlmuskip=\muskip10
65
+ Package: url 2004/03/15 ver 3.1 Verb mode for urls, etc.
66
+ )
67
+ (/Applications/UpTeX.app/teTeX/share/texmf-dist/tex/latex/graphics/graphicx.sty
68
+ Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
69
+ (/Applications/UpTeX.app/teTeX/share/texmf-dist/tex/latex/graphics/keyval.sty
70
+ Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
71
+ \KV@toks@=\toks15
72
+ )
73
+ (/Applications/UpTeX.app/teTeX/share/texmf/tex/latex/graphics/dvipdfmx-contrib-
74
+ latex/graphics.sty
75
+ Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
76
+
77
+ (/Applications/UpTeX.app/teTeX/share/texmf-dist/tex/latex/graphics/trig.sty
78
+ Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
79
+ )
80
+ (/Applications/UpTeX.app/teTeX/share/texmf-dist/tex/latex/graphics/graphics.cfg
81
+ File: graphics.cfg 2005/02/03 v1.3 graphics configuration of teTeX/TeXLive
82
+ )
83
+ Package graphics Info: Driver file: dvipdfmx.def on input line 81.
84
+
85
+ (/Applications/UpTeX.app/teTeX/share/texmf/tex/latex/graphics/dvipdfmx-contrib-
86
+ latex/dvipdfmx.def
87
+ File: dvipdfmx.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
88
+ ))
89
+ \Gin@req@height=\dimen123
90
+ \Gin@req@width=\dimen124
91
+ ) (./out4.aux)
92
+ \openout1 = `out4.aux'.
93
+
94
+ LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 16.
95
+ LaTeX Font Info: ... okay on input line 16.
96
+ LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 16.
97
+ LaTeX Font Info: ... okay on input line 16.
98
+ LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 16.
99
+ LaTeX Font Info: ... okay on input line 16.
100
+ LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 16.
101
+ LaTeX Font Info: ... okay on input line 16.
102
+ LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 16.
103
+ LaTeX Font Info: ... okay on input line 16.
104
+ LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 16.
105
+ LaTeX Font Info: ... okay on input line 16.
106
+ LaTeX Font Info: Checking defaults for JY1/mc/m/n on input line 16.
107
+ LaTeX Font Info: ... okay on input line 16.
108
+ LaTeX Font Info: Checking defaults for JT1/mc/m/n on input line 16.
109
+ LaTeX Font Info: ... okay on input line 16.
110
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
111
+ (Font) scaled to size 16.60605pt on input line 20.
112
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
113
+ (Font) scaled to size 16.60605pt on input line 20.
114
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
115
+ (Font) scaled to size 11.53198pt on input line 20.
116
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
117
+ (Font) scaled to size 11.53198pt on input line 20.
118
+ LaTeX Font Info: External font `cmex10' loaded for size
119
+ (Font) <12> on input line 20.
120
+ LaTeX Font Info: External font `cmex10' loaded for size
121
+ (Font) <8> on input line 20.
122
+ LaTeX Font Info: External font `cmex10' loaded for size
123
+ (Font) <6> on input line 20.
124
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
125
+ (Font) scaled to size 5.76599pt on input line 20.
126
+ LaTeX Font Info: Font shape `JT1/gt/m/n' will be
127
+ (Font) scaled to size 11.53198pt on input line 21.
128
+ LaTeX Font Info: Font shape `JY1/gt/m/n' will be
129
+ (Font) scaled to size 11.53198pt on input line 21.
130
+ LaTeX Font Info: Font shape `JT1/gt/m/n' will be
131
+ (Font) scaled to size 9.60999pt on input line 25.
132
+ LaTeX Font Info: Font shape `JY1/gt/m/n' will be
133
+ (Font) scaled to size 9.60999pt on input line 25.
134
+ LaTeX Font Info: Try loading font information for OMS+cmr on input line 29.
135
+
136
+ (/Applications/UpTeX.app/teTeX/share/texmf-dist/tex/latex/base/omscmr.fd
137
+ File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
138
+ )
139
+ LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available
140
+ (Font) Font shape `OMS/cmsy/m/n' tried instead on input line 29.
141
+
142
+ Underfull \hbox (badness 1629) in paragraph at lines 50--52
143
+ \JY1/mc/m/n/10 ドは \OT1/cmr/m/n/10 ilb/todo/command.rb \JY1/mc/m/n/10 で判断さ
144
+ れることにより
145
+ []
146
+
147
+
148
+ Underfull \vbox (badness 10000) has occurred while \output is active []
149
+
150
+ LaTeX Font Info: External font `cmex10' loaded for size
151
+ (Font) <7> on input line 76.
152
+ LaTeX Font Info: External font `cmex10' loaded for size
153
+ (Font) <5> on input line 76.
154
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
155
+ (Font) scaled to size 6.72699pt on input line 76.
156
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
157
+ (Font) scaled to size 4.805pt on input line 76.
158
+
159
+ Underfull \hbox (badness 10000) in paragraph at lines 77--78
160
+ []\OT1/cmr/m/n/10 hikiutils, $\OT1/cmtt/m/n/10 https : / / rubygems . org / gem
161
+ s /
162
+ []
163
+
164
+
165
+ Underfull \hbox (badness 10000) in paragraph at lines 78--79
166
+ []\OT1/cmr/m/n/10 The Ruby Tool-box, CLI Op-tion Parsers,
167
+ []
168
+
169
+
170
+ Underfull \hbox (badness 10000) in paragraph at lines 78--79
171
+ \OT1/cmtt/m/n/10 https : / / www . ruby-[]toolbox . com / categories /
172
+ []
173
+
174
+ [1
175
+
176
+
177
+ ] (./out4.aux) )
178
+ Here is how much of TeX's memory you used:
179
+ 958 strings out of 94681
180
+ 11893 string characters out of 1174371
181
+ 66979 words of memory out of 1500000
182
+ 4282 multiletter control sequences out of 10000+50000
183
+ 13288 words of font info for 59 fonts, out of 1200000 for 2000
184
+ 571 hyphenation exceptions out of 8191
185
+ 25i,7n,24p,472b,355s stack positions out of 5000i,500n,6000p,200000b,5000s
186
+
187
+ Output written on out4.dvi (1 page, 6708 bytes).
data/abst/out4.pdf ADDED
Binary file
Binary file
data/abst/out4.tex ADDED
@@ -0,0 +1,81 @@
1
+ \documentclass[a4j,twocolumn]{jsarticle}
2
+ \usepackage{subfigure}
3
+ \usepackage{url}
4
+
5
+ \def\Vec#1{\mbox{\boldmath $#1$}}
6
+ \usepackage[dvipdfmx]{graphicx}
7
+ \usepackage{url}
8
+
9
+ \setlength{\textheight}{275mm}
10
+ \headheight 5mm
11
+ \topmargin -30mm
12
+ \textwidth 185mm
13
+ \oddsidemargin -15mm
14
+ \evensidemargin -15mm
15
+ \pagestyle{empty}
16
+ \begin{document}
17
+ \title{hiki編集作業を容易にするツールの開発}
18
+ \author{情報科学科 西谷研究室 3554 山根 亮太}
19
+ \date{}
20
+ \maketitle
21
+ \section{目的}
22
+ 本研究の目的は,hikiの編集作業をより容易にするためのツールを開発することである.hikiは通常web上で編集を行っているが,GUIとCUIが混在しており,操作に不便な点がある.そこで,編集操作がCUIで完結するために開発をされたのがhikiutilsである.しかし,そのユーザインタフェースには問題がある.現在hikiでコマンドを入力する際,ユーザーは瞬間的にそのコマンドの機能や意味を判断することが難しく迷いが生じてしまうことがある.なので.この部分を開発することによりこの問題を解決したい.
23
+
24
+ \section{システムについて}
25
+ \subsection{hikiについて}
26
+ hikiとはwikiエンジンの1つとされており,プログラミング言語Rubyを用いられることで作られたwikiクローンである.
27
+ hikiの主な特徴として
28
+ \begin{itemize}
29
+ \item オリジナルwikiに似たシンプルな書式
30
+ \item プラグインによる機能拡張
31
+ \item 出力するHTMLを柔軟に変更可能
32
+ \item ページにカテゴリ付けできる
33
+ \item CSSを使ったテーマ機能
34
+ \item 携帯端末可能
35
+ \item InterWikiのサポート
36
+ \item HikiFarmに対応
37
+ \item ページの追加,編集がしやすい
38
+ \end{itemize}
39
+ 等がある\cite{hiki}.
40
+
41
+ \subsection{hikiutilsについて}
42
+ hikiutilsはhikiの編集作業を容易に行うことができるようにするツール群であり,
43
+ プログラミング言語Rubyのライブラリであるgemフォーマットに従って提供されている\cite{gem}.
44
+ hikiutilsはCLI(Command Line Interface)で操作するため,オプション解析をおこなう必要がある.
45
+ gemには,この用途に利用できるライブラリがいくつも提供されている\cite{opt_ranking}.
46
+ この中で,あまり利用頻度は高くないが古くから開発され,
47
+ 使用例が広く紹介されているoptparseを利用している.
48
+
49
+ \section{手法}
50
+ このようなCLIの階層的なコマンド実装を示したcodeとしてTodoというgemアプリケーションがある\cite{PerfectRuby}.
51
+ このプログラムではlib/todo/command/options.rbにサブコマンド用の定義があり,入力されたコマンドはilb/todo/command.rbで判断されることによりlib/todo/command/options.rb内で実行される.hikiutilsのプログラムの構造はTodoアプリケーションのプログラムの構造と似たアプリケーションでありhikiの編集を容易にするためのツール群のため,この部分の編集を行うことでコマンド名を書き換える.
52
+
53
+ \section{現状}
54
+ 現在Todoアプリケーションのコードを追いかけて,プログラムの構造を理解している.
55
+ また,直感的なコマンドとして以下のようなものを考えた.
56
+ \begin{verbatim}
57
+ version show program Version.
58
+ show show sources
59
+ add add sources info
60
+ set VAL set target id
61
+ open FILE open file
62
+ list FILE list files
63
+ update FILE update file
64
+ rsync rsync files
65
+ read db FILE read database file
66
+ display FILE display converted hikifile
67
+ check db FILE check database file
68
+ remove FILE remove file
69
+ move file1 file2 move file1,file2
70
+ euc FILE translate file to euc
71
+ \end{verbatim}
72
+ 上記のコマンドはgit風のコマンド名に変更してみた.
73
+ 今後の課題としては,実際にhikiutils内でそのコマンドの編集を行って実装し,そのコマンドが分かりやすいものであるかどうかを検討する必要がある.
74
+
75
+ \begin{thebibliography}{9}
76
+ \bibitem{hiki}「hiki」,\url{hikiwiki.org/ja/about.html},2016/9/2 アクセス.
77
+ \bibitem{gem} hikiutils, \url{https://rubygems.org/gems/hikiutils},2016/9/2 アクセス.
78
+ \bibitem{opt_ranking} The Ruby Toolbox, CLI Option Parsers, \url{https://www.ruby-toolbox.com/categories/CLI_Option_Parsers},2016/9/2 アクセス.
79
+ \bibitem{PerfectRuby}「パーフェクトRuby」,Rubyサポーターズ(技術評論社 2013).
80
+ \end{thebibliography}
81
+ \end{document}