org-parse 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. data/.document +5 -0
  2. data/.gitignore +23 -0
  3. data/ChangeLog +4 -0
  4. data/LICENSE +20 -0
  5. data/README.rdoc +68 -0
  6. data/Rakefile +54 -0
  7. data/VERSION.yml +5 -0
  8. data/bin/org-parse +51 -0
  9. data/bin/org-test +74 -0
  10. data/doc/images/org-parse-struct_1ffae50f0c5eb867f9418df6800f40a5cc3d1751.png +0 -0
  11. data/doc/org-parse.html +203 -0
  12. data/doc/org-parse.org +71 -0
  13. data/doc/struct.dot +10 -0
  14. data/doc/struct.png +0 -0
  15. data/examples/body-only.html.erb +1 -0
  16. data/examples/dot.org-parse-rc +21 -0
  17. data/lib/org-parse/inline-parser.output +945 -0
  18. data/lib/org-parse/inline-parser.rb +219 -0
  19. data/lib/org-parse/inline-parser.ry +77 -0
  20. data/lib/org-parse/inline-parser.tab.rb +411 -0
  21. data/lib/org-parse/node.rb +329 -0
  22. data/lib/org-parse/struct-parser.output +1019 -0
  23. data/lib/org-parse/struct-parser.rb +78 -0
  24. data/lib/org-parse/struct-parser.ry +125 -0
  25. data/lib/org-parse/struct-parser.tab.rb +608 -0
  26. data/lib/org-parse/struct-scanner.rb +272 -0
  27. data/lib/org-parse/templates/single.html.erb +118 -0
  28. data/lib/org-parse/textile-visitor.rb +296 -0
  29. data/lib/org-parse/utils.rb +15 -0
  30. data/lib/org-parse/visitor.rb +542 -0
  31. data/lib/org-parse.rb +46 -0
  32. data/org-parse.gemspec +113 -0
  33. data/rakelib/racc.rake +16 -0
  34. data/test/data/blocks.org +67 -0
  35. data/test/data/emphasis.org +7 -0
  36. data/test/data/footnote.html +136 -0
  37. data/test/data/footnote.org +8 -0
  38. data/test/data/html-export.html +1062 -0
  39. data/test/data/html-export.org +342 -0
  40. data/test/data/images.html +179 -0
  41. data/test/data/images.org +30 -0
  42. data/test/data/index.org +242 -0
  43. data/test/data/lily20100228.jpg +0 -0
  44. data/test/data/lily20100228t.jpg +0 -0
  45. data/test/data/link.org +7 -0
  46. data/test/data/list_before_1st_headline.html +119 -0
  47. data/test/data/list_before_1st_headline.org +7 -0
  48. data/test/data/lists.html +284 -0
  49. data/test/data/lists.org +78 -0
  50. data/test/data/no-headline.org +6 -0
  51. data/test/data/one-headline.org +2 -0
  52. data/test/data/paragraph.org +13 -0
  53. data/test/data/quote.org +15 -0
  54. data/test/data/sections.html +173 -0
  55. data/test/data/sections.org +9 -0
  56. data/test/data/simple-list.org +6 -0
  57. data/test/data/skip_t.org +3 -0
  58. data/test/data/structure.org +53 -0
  59. data/test/data/table.org +14 -0
  60. data/test/data/test-list.org +12 -0
  61. data/test/data/text-bef-hl.org +5 -0
  62. data/test/data/text.org +6 -0
  63. data/test/data/title.html +88 -0
  64. data/test/data/title.org +6 -0
  65. data/test/data/verse.org +48 -0
  66. data/test/helper.rb +31 -0
  67. data/test/test_org-parse.rb +148 -0
  68. metadata +134 -0
@@ -0,0 +1,342 @@
1
+ OrgParse HTML export specification
2
+
3
+ * texts before 1st headline
4
+ ** default
5
+ 最初のテキストラインが、待った無しでタイトルになり、
6
+ 残りの部分は、普通にHTMLに変換される。
7
+ : title
8
+ :
9
+ : xxxx
10
+ : * 1st headline
11
+ の場合、
12
+ : <h1>title</h1>
13
+ :
14
+ : xxxx
15
+ : <h2>1st headline</h2>
16
+ の様に変換。[fn::実際はセクションヘッダには<div>やら何やらくっつく]
17
+ ヘッドラインから始まる場合は、ファイル名(StructParser の引数で指定されたテキスト)がタイトルになる。
18
+ ** #+TITLE: xxxx
19
+ : #+TITLE: xxxx
20
+ が指定されている場合は、xxxx がタイトルになる。
21
+
22
+ ** Options: skip:t
23
+ : #+OPTIONS: skip:t
24
+ が指定されていると、最初のセクション以前のテキストは捨てられる。
25
+ タイトルには、ファイル名(StructParser に渡された値) が使われる。
26
+
27
+ この場合も、
28
+ : #+TITLE: xxxx
29
+ で、タイトルを指定出来る。
30
+ ** #+TEXT: xxxx
31
+ skip: t が指定されている場合、
32
+ : #+TEXT: xxxx
33
+ : #+TEXT: xxxx
34
+ の様に、書くと、それが、最初のセクションの前に挿入される。
35
+ ** Mark up
36
+ タイトルに対してもインライン要素としての解釈は実行される
37
+ * sections
38
+ #+BEGIN_VERSE
39
+ セクション 1
40
+ セクション 1.1
41
+ セクション 2
42
+ #+END_VERSE
43
+ の様に、下位レベルのセクションは、上位レベルのセクションに含まれる
44
+
45
+ セクションのタイトルは、'*' -> <h2> から始まり、'****' 以降は、UL
46
+ として出力される。
47
+ <h> と <ul> の閾値は、#+OPTIONS: H:n で指定出来る。
48
+ (デフォルトは、n=3)
49
+ ** paragraphs
50
+ セクションは、パラグラフから始まる?
51
+
52
+ paragraph 1
53
+
54
+ paragraph 2
55
+ indent deeper
56
+ indent shallower
57
+
58
+ paragraph 3
59
+ ** list
60
+ ** blocks
61
+ ** Verse
62
+ verse ブロック内では、改行が保存される。\\
63
+ <p class="verse"> 〜 </p> でくくる。\\
64
+
65
+ インデントは、ブロック指定行のインデントを基準に、
66
+ 各行のインデント * 2 の &nbsp; に置き換わる。
67
+ #+begin_Verse
68
+ verse line1
69
+ verse line2
70
+ verse line3
71
+ verse line4
72
+ #+end_verse
73
+ ** Example
74
+ example ブロックは、<pre class="example"></pre>でくくる
75
+
76
+ インデントは、 *ブロック* 先頭行のインデント位置からの
77
+ インデントに変換される。[[blocks.html]]
78
+ #+begin_example
79
+ # *非破壊的*
80
+ def expand_tab( str )
81
+ str.gsub(/([^\t]{8})|([^\t]*)\t/n) { [$+].pack("A8") }
82
+ end
83
+
84
+ ** example の内部は、解釈されないわけね
85
+
86
+ # 破壊的 [[link]]
87
+ def expand_tab!( str )
88
+ 1 while str.sub!(/(^[^\t]*)\t(\t*)/) { $1 + ' ' * (8-$1.size%8+8*$2.size) }
89
+ end
90
+
91
+ # 破壊的 (2)
92
+ def expand_tab!( str )
93
+ 1 while str.sub!(/\t(\t*)/) {' ' * (8-$~.begin(0)%8+8*$1.size) }
94
+ end
95
+ #+end_example
96
+
97
+ #+BEGIN_EXAMPLE -t -w 40
98
+ (defun org-xor (a b)
99
+ "Exclusive or."
100
+ (if a (not b) b))
101
+ #+END_EXAMPLE
102
+
103
+
104
+ ** Quote
105
+ #+BEGIN_QUOTE
106
+ blockquote も書ける
107
+ #+END_QUOTE
108
+ ** section 3
109
+ - list1
110
+ - list1-1
111
+ - list2
112
+
113
+ * options
114
+ - H: set the number of headline levels for export
115
+ - num: turn on/off section-numbers
116
+ - toc: turn on/off table of contents, or set level limit (integer)
117
+ - \n: turn on/off line-break-preservation (DOES NOT WORK)
118
+ - @: turn on/off quoted HTML tags
119
+ - :: turn on/off fixed-width sections
120
+ - |: turn on/off tables
121
+ - ^: turn on/off TeX-like syntax for sub- and superscripts. If
122
+ you write "^:{}", a_{b} will be interpreted, but
123
+ the simple a_b will be left as it is.
124
+ - -: turn on/off conversion of special strings.
125
+ - f: turn on/off footnotes like this[1].
126
+ - todo: turn on/off inclusion of TODO keywords into exported text
127
+ - pri: turn on/off priority cookies
128
+ - tags: turn on/off inclusion of tags, may also be not-in-toc
129
+ - <: turn on/off inclusion of any time/date stamps like DEADLINES
130
+ - *: turn on/off emphasized text (bold, italic, underlined)
131
+ - TeX: turn on/off simple TeX macros in plain text
132
+ - LaTeX: turn on/off LaTeX fragments
133
+ - skip: turn on/off skipping the text before the first heading
134
+ - author: turn on/off inclusion of author name/email into exported file
135
+ - creator: turn on/off inclusion of creator info into exported file
136
+ - timestamp: turn on/off inclusion creation time into exported file
137
+ - d: turn on/off inclusion of drawers
138
+ * footnote
139
+ [[./footnote.org]]
140
+ * Section node
141
+ Section node は、Headline から始まり、次のHeadline(又は文末)の直前までを、
142
+ 子要素に含むノードである。
143
+
144
+ #+BEGIN_EXAMPLE
145
+ Section node
146
+ Headline
147
+ some other nodes
148
+ #+END_EXAMPLE
149
+
150
+ COMMENT から始まるヘッドラインを持つ Section は、全体をコメントとして扱う。
151
+
152
+ * Brock nodes
153
+ 行単位の範囲を持つ要素。
154
+
155
+ ** Headline node
156
+ /^\*+ / から始まる行。'*' の数がセクションのレベルを表す。
157
+
158
+ セクションの開始を示す。
159
+ *** Tags
160
+ ヘッドラインには、TAGを付けることが出来る。
161
+ ** Paragraph node
162
+ ヘッドラインの次の行から始まり、セクションの最後か、1行以上の空行で終わる部分は、
163
+ 段落として扱う。段落中で、改行させたい場合には、行末に"\\"を置く。
164
+
165
+ : #+BEGIN_VERSE 〜 #+END_VERSE
166
+ で囲われた部分は、改行が保存される。
167
+ [[file:./verse.org][verse example]] [[./verse.html][html]]
168
+
169
+ #+BEGIN_EXAMPLE
170
+ <p class="verse">
171
+ ...<br/>
172
+ &nbsp;&nbsp;...<br/>
173
+ </p>
174
+ #+END_EXAMPLE
175
+
176
+ の様に、展開される様だ。
177
+
178
+ ** Whiteline node
179
+ 空行のノード。
180
+ パラグラフや、その他のブロックの終端を示す。
181
+
182
+ インデントのチェックが必要か?
183
+
184
+ ** Block nodes
185
+ #+begin 〜 #+end ブロック。
186
+ *** EXAMPLE
187
+ #+BEGIN_EXAMPLE
188
+ : #+BEGIN_EXMPLE
189
+ : ...
190
+ : #+END_EXAMPLE
191
+ #+END_EXAMPLE
192
+
193
+ you can also start the example lines with a colon followed by a space.
194
+ There may also be additional whitespace before the colon:
195
+
196
+ : : example
197
+
198
+ EXAMPL ブロックは、<pre> タグに変換される
199
+ *** SRC
200
+ #+BEGIN_SRC emacs-lisp eiffel
201
+ (+ 1 2)
202
+ #+END_SRC
203
+
204
+ #+BEGIN_COMMENT
205
+ ここは、コメントブロックだよ
206
+ #+END_COMMENT
207
+ *** VERSE
208
+ #+begin_verse
209
+ このブロック内では、改行が
210
+ 保存される。
211
+
212
+ 行頭のインデントは、html の場合、&&nbsp; に変換される
213
+ #+end_verse
214
+
215
+ 行頭のインデントは、~#+BEGIN_VERSE~ のインデント + 1 をベースとして、
216
+ (各行のインデント - ベース) * 2 = &nbsp; の数となる。
217
+
218
+ *** HTML
219
+ [[Quote HTML]]
220
+
221
+ #+HTML: <literal html code>
222
+
223
+ #+BEGIN_HTML
224
+ <h2> ここには、自由に</h2>
225
+ <p>HTML tag が書ける。</p>
226
+ #+END_HTML
227
+
228
+ ** Plain Lists
229
+ [[./lists.org][lists.org]] [[./lists.html][html]]
230
+
231
+ *** Unordered list
232
+ 先頭が[-+*]で始まる行は、順序無リストアイテムの開始を示し、
233
+ これに続く、インデントが開始マークより大きい行、又は、空行は
234
+ このアイテムに含まれる。
235
+
236
+ リストは、ネスト出来る。
237
+
238
+ 空行のインデントは、チェックされない。
239
+ *** Ordered list
240
+ 先頭が、"数字." 又は "数字)" で始まる行は、番号付きリストを表す。
241
+ *** Description list
242
+ : - XXXX :: mmmmm
243
+ の形式の行は、説明付きリストを表す。
244
+
245
+ ** Comment line
246
+ #+ これは、コメント行
247
+ # これもコメント行
248
+ だけど、
249
+ # これは、コメント行では無い。 でも、 #+ ここからは? やっぱり地の文。
250
+ ** COMMENT comment block
251
+ このセクションは、全体がコメントとして扱われる。
252
+ (出力には含まれない)
253
+
254
+ ** Option node
255
+ : #+TITLE
256
+ 等の、オプション設定を行う行
257
+ *** #+ATTR_HTML
258
+ If you want to specify attributes for links,
259
+ you can do so using a special #+ATTR_HTML line
260
+ to define attributes
261
+ that will be added to the <a> or <img> tags.
262
+
263
+ Here is an example that sets title and style attributes for a link:
264
+ : #+ATTR_HTML: title="The Org-mode homepage" style="color:red;"
265
+ : [[http://orgmode.org]]
266
+
267
+
268
+ ** Horizontal line
269
+ ------
270
+ '-'が5個以上のみの行は、<hr/> に変換される
271
+ * Inline nodes
272
+ 行内で完結している諸要素
273
+ ** Footnotes
274
+ ** Emphasis and monospace
275
+ - *bold*
276
+ - /italic/
277
+ - _underlined_
278
+ - =code=
279
+ - ~verbatim~
280
+ - +strike through+
281
+ *bold and /italic/* _underlined and *bold*_ ~verbatim without *bold*~
282
+ =code without *bold*=
283
+ *bold [[link][link]]* =code is [[link][link]] allowed= *bold =code* code=
284
+ *bold in *bold* is* not bold *1234*
285
+ *bold [[link]]*, [[link][ *bold* ]]
286
+
287
+ ** Quoting HTML tags
288
+ [[Quote HTML]]
289
+ @<br/> @<b>bold@</b> の様にすることが出来る
290
+ ** Linkとイメージ
291
+ リンクの、拡張子が画像ファイルの場合、<img>タグに展開される
292
+
293
+ - [ [image file] ] の場合、<img src="image file"> に展開される
294
+ - [ [link][image file] ] の場合、<a href="link"><img src="image file"></a> に展開される
295
+ - img を表示する際に、#+CAPTION: xxxx が指定されている場合、\\
296
+ #+BEGIN_VERSE
297
+ <div class="figure">
298
+ <p><img src="lily20100228t.jpg" alt="lily20100228t.jpg"></p>
299
+ <p>寝起きのリリー君</p>
300
+ </div>
301
+ #+END_VERSE
302
+ に展開される
303
+ - [ [xxx][yyy] ] の場合、<a href="xxx">yyy</a> に展開される
304
+
305
+ *** Link format
306
+ : [[link][description]] or [[link]]
307
+
308
+ [[index.html][desc *bold* ]] <- description part は修飾出来る。
309
+
310
+ *** Internal links
311
+ *** External links
312
+ 外部へのリンク
313
+ * http://www.astro.uva.nl/~dominik on the web
314
+ * file:/home/dominik/images/jupiter.jpg file, absolute path
315
+ * /home/dominik/images/jupiter.jpg same as above
316
+ * file:papers/last.pdf file, relative path
317
+ * ./papers/last.pdf same as above
318
+
319
+ *** Images
320
+ [[file:images.org]] [[file:images.html]]
321
+ **** そのままの大きさで表示
322
+ : [[lily20100228t.jpg]]
323
+ [[lily20100228t.jpg]]
324
+ **** サムネールとリンク
325
+ : [[lily20100228.jpg][lily20100228t.jpg]]
326
+ [[file:lily20100228.jpg][lily20100228t.jpg]]
327
+
328
+ * Table of contents
329
+ サポートは後回しにするかね。
330
+
331
+ * OPTIONS
332
+ :#+OPTIONS: skip:t
333
+ #+OPTIONS: H:4
334
+ : #+TEXT: head block
335
+ : #+TEXT: this area is <b> *literal* </b>
336
+ : #+TITLE: sample dayo
337
+ #+AUTHOR: knb
338
+ #+EMAIL: knb@artif.org
339
+ #+STYLE: <link rel="stylesheet" type="text/css" href="css/eiffel.css" />
340
+ * test files
341
+ - [[texts before 1st headline]] [[file:text-bef-hl.org]] [[text-bef-hl.html][html]]
342
+ - [[#+TITLE: xxxx]] [[file:title.org]] [[file:title.html][html]]
@@ -0,0 +1,179 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml"
5
+ lang="en" xml:lang="en">
6
+ <head>
7
+ <title>images</title>
8
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
9
+ <meta name="generator" content="Org-mode"/>
10
+ <meta name="generated" content="2010-03-11 16:03:23 JST"/>
11
+ <meta name="author" content="Kensei Nakamura"/>
12
+ <meta name="description" content=""/>
13
+ <meta name="keywords" content=""/>
14
+ <style type="text/css">
15
+ <!--/*--><![CDATA[/*><!--*/
16
+ html { font-family: Times, serif; font-size: 12pt; }
17
+ .title { text-align: center; }
18
+ .todo { color: red; }
19
+ .done { color: green; }
20
+ .tag { background-color: #add8e6; font-weight:normal }
21
+ .target { }
22
+ .timestamp { color: #bebebe; }
23
+ .timestamp-kwd { color: #5f9ea0; }
24
+ p.verse { margin-left: 3% }
25
+ pre {
26
+ border: 1pt solid #AEBDCC;
27
+ background-color: #F3F5F7;
28
+ padding: 5pt;
29
+ font-family: courier, monospace;
30
+ font-size: 90%;
31
+ overflow:auto;
32
+ }
33
+ table { border-collapse: collapse; }
34
+ td, th { vertical-align: top; }
35
+ dt { font-weight: bold; }
36
+ div.figure { padding: 0.5em; }
37
+ div.figure p { text-align: center; }
38
+ .linenr { font-size:smaller }
39
+ .code-highlighted {background-color:#ffff00;}
40
+ .org-info-js_info-navigation { border-style:none; }
41
+ #org-info-js_console-label { font-size:10px; font-weight:bold;
42
+ white-space:nowrap; }
43
+ .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
44
+ font-weight:bold; }
45
+ /*]]>*/-->
46
+ </style>
47
+ <script type="text/javascript">
48
+ <!--/*--><![CDATA[/*><!--*/
49
+ function CodeHighlightOn(elem, id)
50
+ {
51
+ var target = document.getElementById(id);
52
+ if(null != target) {
53
+ elem.cacheClassElem = elem.className;
54
+ elem.cacheClassTarget = target.className;
55
+ target.className = "code-highlighted";
56
+ elem.className = "code-highlighted";
57
+ }
58
+ }
59
+ function CodeHighlightOff(elem, id)
60
+ {
61
+ var target = document.getElementById(id);
62
+ if(elem.cacheClassElem)
63
+ elem.className = elem.cacheClassElem;
64
+ if(elem.cacheClassTarget)
65
+ target.className = elem.cacheClassTarget;
66
+ }
67
+ /*]]>*///-->
68
+ </script>
69
+ </head>
70
+ <body>
71
+ <div id="content">
72
+
73
+ <h1 class="title">images</h1>
74
+
75
+
76
+ <div id="table-of-contents">
77
+ <h2>Table of Contents</h2>
78
+ <div id="text-table-of-contents">
79
+ <ul>
80
+ <li><a href="#sec-1">1 そのままの大きさで表示 </a>
81
+ <ul>
82
+ <li><a href="#sec-1.1">1.1 サムネールとリンク </a></li>
83
+ <li><a href="#sec-1.2">1.2 属性の指定 </a></li>
84
+ <li><a href="#sec-1.3">1.3 Image とリンク </a></li>
85
+ <li><a href="#sec-1.4">1.4 Image と デスクリプション </a></li>
86
+ </ul>
87
+ </li>
88
+ </ul>
89
+ </div>
90
+ </div>
91
+
92
+ <div id="outline-container-1" class="outline-2">
93
+ <h2 id="sec-1"><span class="section-number-2">1</span> そのままの大きさで表示 </h2>
94
+ <div class="outline-text-2" id="text-1">
95
+
96
+ <pre class="example">
97
+ [[file:lily20100228t.jpg]]
98
+ </pre>
99
+
100
+ <p><a href="#sec-1"><img src="lily20100228t.jpg"/></a>
101
+ </p>
102
+ </div>
103
+
104
+ <div id="outline-container-1.1" class="outline-3">
105
+ <h3 id="sec-1.1"><span class="section-number-3">1.1</span> サムネールとリンク </h3>
106
+ <div class="outline-text-3" id="text-1.1">
107
+
108
+ <pre class="example">
109
+ [[lily20100228.jpg][lily20100228t.jpg]]
110
+ </pre>
111
+
112
+ <p><a href="lily20100228.jpg"><img src="lily20100228t.jpg"/></a>
113
+ </p></div>
114
+
115
+ </div>
116
+
117
+ <div id="outline-container-1.2" class="outline-3">
118
+ <h3 id="sec-1.2"><span class="section-number-3">1.2</span> 属性の指定 </h3>
119
+ <div class="outline-text-3" id="text-1.2">
120
+
121
+ <pre class="example">
122
+ #+CAPTION: 寝起きのリリー君
123
+ [[file:lily20100228t.jpg]]
124
+ </pre>
125
+
126
+
127
+ <div class="figure">
128
+ <p><img src="lily20100228t.jpg" alt="lily20100228t.jpg" /></p>
129
+ <p>寝起きのリリー君</p>
130
+ </div>
131
+ <pre class="example">
132
+ #+ATTR_HTML: alt="寝起きのリリー君の写真" title="起きて!" align="right"
133
+ [[file:lily20100228.jpg][file:lily20100228t.jpg]]
134
+ </pre>
135
+
136
+ <p><a href="lily20100228.jpg"><img src="lily20100228t.jpg" align="right" alt="寝起きのリリー君の写真" title="起きて!" /> </a>
137
+ テキストは、右側に回りこみ。
138
+ </p>
139
+ <pre class="example">
140
+ #+ATTR_HTML: alt="寝起きのリリー君の写真" title="起きて!" align="right" size="75x100"
141
+ [[file:lily20100228.jpg]]
142
+ </pre>
143
+
144
+ <p><img src="lily20100228.jpg" alt="寝起きのリリー君の写真" title="起きて!" width="30" height="40" />
145
+ </p></div>
146
+
147
+ </div>
148
+
149
+ <div id="outline-container-1.3" class="outline-3">
150
+ <h3 id="sec-1.3"><span class="section-number-3">1.3</span> Image とリンク </h3>
151
+ <div class="outline-text-3" id="text-1.3">
152
+
153
+ <p><a href="./index.html"><img src="lily20100228t.jpg"/></a>
154
+ </p></div>
155
+
156
+ </div>
157
+
158
+ <div id="outline-container-1.4" class="outline-3">
159
+ <h3 id="sec-1.4"><span class="section-number-3">1.4</span> Image と デスクリプション </h3>
160
+ <div class="outline-text-3" id="text-1.4">
161
+
162
+ <pre class="example">
163
+ [[lily20100228t.jpg][リリー君]]
164
+ </pre>
165
+
166
+ <p><a href="#sec-1">リリー君</a>
167
+ </p></div>
168
+ </div>
169
+ </div>
170
+ <div id="postamble">
171
+ <p class="author"> Author: Kensei Nakamura
172
+ <a href="mailto:kensei@dalmore.artifarm.com">&lt;kensei@dalmore.artifarm.com&gt;</a>
173
+ </p>
174
+ <p class="date"> Date: 2010-03-11 16:03:23 JST</p>
175
+ <p class="creator">HTML generated by org-mode 6.34c in emacs 23</p>
176
+ </div>
177
+ </div>
178
+ </body>
179
+ </html>
@@ -0,0 +1,30 @@
1
+ images
2
+
3
+ * そのままの大きさで表示
4
+ : [[file:lily20100228t.jpg]]
5
+ [[lily20100228t.jpg]]
6
+ ** サムネールとリンク
7
+ : [[lily20100228.jpg][lily20100228t.jpg]]
8
+ [[file:lily20100228.jpg][lily20100228t.jpg]]
9
+ ** 属性の指定
10
+ : #+CAPTION: 寝起きのリリー君
11
+ : [[file:lily20100228t.jpg]]
12
+ #+CAPTION: 寝起きのリリー君
13
+ [[file:lily20100228t.jpg]]
14
+ : #+ATTR_HTML: alt="寝起きのリリー君の写真" title="起きて!" align="right"
15
+ : [[file:lily20100228.jpg][file:lily20100228t.jpg]]
16
+ #+ATTR_HTML: alt="寝起きのリリー君の写真" title="起きて!" align="right"
17
+ [[file:lily20100228.jpg][file:lily20100228t.jpg]]
18
+ 写真は右寄せ。
19
+ 右寄せの解除は、<br clear="both"/>
20
+ @<br clear="both"/>
21
+ : #+ATTR_HTML: alt="寝起きのリリー君の写真" title="起きて!" width="30" height="40"
22
+ : [[file:lily20100228.jpg]]
23
+ #+ATTR_HTML: alt="寝起きのリリー君の写真" title="起きて!" width="30" height="40"
24
+ [[file:lily20100228.jpg]]
25
+ 小さく表示
26
+ ** Image とリンク
27
+ [[./index.html][file:lily20100228t.jpg]]
28
+ ** Image と デスクリプション
29
+ : [[lily20100228t.jpg][リリー君]]
30
+ [[lily20100228t.jpg][リリー君]]