docgenerator 1.0.4 → 1.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 (231) hide show
  1. data/lib/creole/creole2doc.rb +777 -0
  2. data/lib/creole/creole_inclusion_and_plugins.rb +236 -0
  3. data/lib/creole/creole_placeholder.rb +74 -0
  4. data/lib/creole/creole_tabular.rb +170 -0
  5. data/lib/docgenerator.rb +15 -6
  6. data/lib/docgenerator_attribute.rb +2 -2
  7. data/lib/docgenerator_characters.rb +20 -4
  8. data/lib/docgenerator_document.rb +132 -42
  9. data/lib/docgenerator_element.rb +531 -524
  10. data/lib/docgenerator_elements.rb +408 -399
  11. data/lib/docgenerator_environments.rb +28 -2
  12. data/lib/docgenerator_footnote.rb +72 -79
  13. data/lib/docgenerator_sections.rb +1 -1
  14. data/lib/docgenerator_tabular.rb +8 -3
  15. data/lib/packages/docgenerator_beamer.rb +253 -0
  16. data/lib/packages/docgenerator_scrlettr2.rb +53 -9
  17. data/lib/templates/docgenerator_template_css.rb +4 -0
  18. data/lib/wiki2doc/wiki2docgenerator.rb +1087 -970
  19. data/lib/yaml2presentation/yaml2presentation.rb +1091 -0
  20. data/self_docgenerator.rb +8 -6
  21. data/unittest/Red_Flower.jpg +0 -0
  22. data/unittest/creole1.0test.txt +128 -0
  23. data/unittest/expected/beamer_01_doc.html +1 -1
  24. data/unittest/expected/beamer_02_doc.html +1 -1
  25. data/unittest/expected/beamer_doc_html_overview_with_detailpic_and_text_doc.html +34 -0
  26. data/unittest/expected/beamer_doc_html_overview_with_detailpic_doc.html +34 -0
  27. data/unittest/expected/beamer_doc_key_doc.html +1 -1
  28. data/unittest/expected/beamer_doc_note_doc.html +1 -1
  29. data/unittest/expected/beamer_doc_pic_bottom_doc.html +1 -1
  30. data/unittest/expected/beamer_doc_pic_doc.html +1 -1
  31. data/unittest/expected/beamer_doc_pic_left_doc.html +1 -1
  32. data/unittest/expected/beamer_doc_pic_right_doc.html +1 -1
  33. data/unittest/expected/beamer_doc_pic_top_doc.html +1 -1
  34. data/unittest/expected/test_footnote.html +2 -2
  35. data/unittest/expected/test_footnote.latex +1 -1
  36. data/unittest/expected/test_footnote_group.html +3 -3
  37. data/unittest/expected/test_footnote_group.latex +2 -2
  38. data/unittest/expected_creole/test_creole.html +3 -0
  39. data/unittest/expected_creole/test_creole_characters_all.html +10 -0
  40. data/unittest/expected_creole/test_creole_characters_all.latex +20 -0
  41. data/unittest/expected_creole/test_creole_characters_special.html +10 -0
  42. data/unittest/expected_creole/test_creole_characters_special.latex +18 -0
  43. data/unittest/expected_creole/test_creole_countdown.html +3 -0
  44. data/unittest/expected_creole/test_creole_countdown.latex +4 -0
  45. data/unittest/expected_creole/test_creole_creole1.0test.html +182 -0
  46. data/unittest/expected_creole/test_creole_creole1.0test.latex +253 -0
  47. data/unittest/expected_creole/test_creole_creole1.0test.text +160 -0
  48. data/unittest/expected_creole/test_creole_footnotes.html +9 -0
  49. data/unittest/expected_creole/test_creole_footnotes.latex +14 -0
  50. data/unittest/expected_creole/test_creole_footnotes_label.html +9 -0
  51. data/unittest/expected_creole/test_creole_headings.html +17 -0
  52. data/unittest/expected_creole/test_creole_headings.latex +19 -0
  53. data/unittest/expected_creole/test_creole_headings.text +48 -0
  54. data/unittest/expected_creole/test_creole_headings.wiki +37 -0
  55. data/unittest/expected_creole/test_creole_hr.html +7 -0
  56. data/unittest/expected_creole/test_creole_hr.latex +9 -0
  57. data/unittest/expected_creole/test_creole_hr.text +4 -0
  58. data/unittest/expected_creole/test_creole_inline.html +3 -0
  59. data/unittest/expected_creole/test_creole_inline.latex +4 -0
  60. data/unittest/expected_creole/test_creole_inline.text +2 -0
  61. data/unittest/expected_creole/test_creole_inline_ruby.html +12 -0
  62. data/unittest/expected_creole/test_creole_inline_ruby.latex +20 -0
  63. data/unittest/expected_creole/test_creole_inline_ruby_raw.html +6 -0
  64. data/unittest/expected_creole/test_creole_inline_ruby_raw.latex +8 -0
  65. data/unittest/expected_creole/test_creole_input.normsource +23 -0
  66. data/unittest/expected_creole/test_creole_label.html +12 -0
  67. data/unittest/expected_creole/test_creole_label.latex +15 -0
  68. data/unittest/expected_creole/test_creole_line_break.html +6 -0
  69. data/unittest/expected_creole/test_creole_line_break.latex +8 -0
  70. data/unittest/expected_creole/test_creole_links_explicit_internal.html +6 -0
  71. data/unittest/expected_creole/test_creole_links_explicit_internal.text +4 -0
  72. data/unittest/expected_creole/test_creole_links_explicit_with_em.html +3 -0
  73. data/unittest/expected_creole/test_creole_links_explicit_with_em.latex +4 -0
  74. data/unittest/expected_creole/test_creole_links_explicit_with_em.text +2 -0
  75. data/unittest/expected_creole/test_creole_links_external.html +6 -0
  76. data/unittest/expected_creole/test_creole_links_external.latex +8 -0
  77. data/unittest/expected_creole/test_creole_links_external.text +4 -0
  78. data/unittest/expected_creole/test_creole_links_external_implicit.html +9 -0
  79. data/unittest/expected_creole/test_creole_links_external_implicit.latex +12 -0
  80. data/unittest/expected_creole/test_creole_links_external_implicit.text +6 -0
  81. data/unittest/expected_creole/test_creole_links_file.html +6 -0
  82. data/unittest/expected_creole/test_creole_links_file.latex +8 -0
  83. data/unittest/expected_creole/test_creole_links_file.text +4 -0
  84. data/unittest/expected_creole/test_creole_list_ol.html +12 -0
  85. data/unittest/expected_creole/test_creole_list_ol.latex +22 -0
  86. data/unittest/expected_creole/test_creole_list_ol_after_ul.html +12 -0
  87. data/unittest/expected_creole/test_creole_list_ol_after_ul.latex +20 -0
  88. data/unittest/expected_creole/test_creole_list_ol_after_ul.text +6 -0
  89. data/unittest/expected_creole/test_creole_list_ol_ul.html +15 -0
  90. data/unittest/expected_creole/test_creole_list_ol_ul.latex +26 -0
  91. data/unittest/expected_creole/test_creole_list_ul.html +22 -0
  92. data/unittest/expected_creole/test_creole_list_ul.latex +40 -0
  93. data/unittest/expected_creole/test_creole_list_ul.normsource +83 -0
  94. data/unittest/expected_creole/test_creole_list_ul_too_much.html +24 -0
  95. data/unittest/expected_creole/test_creole_list_ul_too_much.latex +44 -0
  96. data/unittest/expected_creole/test_creole_newline.html +9 -0
  97. data/unittest/expected_creole/test_creole_newline.latex +11 -0
  98. data/unittest/expected_creole/test_creole_newline.text +7 -0
  99. data/unittest/expected_creole/test_creole_paragraphs.html +6 -0
  100. data/unittest/expected_creole/test_creole_paragraphs.latex +8 -0
  101. data/unittest/expected_creole/test_creole_paragraphs.normsource +27 -0
  102. data/unittest/expected_creole/test_creole_paragraphs.text +4 -0
  103. data/unittest/expected_creole/test_creole_paragraphs.wiki +4 -0
  104. data/unittest/expected_creole/test_creole_paragraphs_wrap.html +5 -0
  105. data/unittest/expected_creole/test_creole_paragraphs_wrap.latex +6 -0
  106. data/unittest/expected_creole/test_creole_paragraphs_wrap.text +4 -0
  107. data/unittest/expected_creole/test_creole_paragraphs_wrap.wiki +4 -0
  108. data/unittest/expected_creole/test_creole_paragraphs_wrap0.html +9 -0
  109. data/unittest/expected_creole/test_creole_paragraphs_wrap0.latex +11 -0
  110. data/unittest/expected_creole/test_creole_paragraphs_wrap0.text +7 -0
  111. data/unittest/expected_creole/test_creole_paragraphs_wrap0.wiki +7 -0
  112. data/unittest/expected_creole/test_creole_paragraphs_wrap60.html +5 -0
  113. data/unittest/expected_creole/test_creole_paragraphs_wrap60.latex +6 -0
  114. data/unittest/expected_creole/test_creole_paragraphs_wrap60.text +4 -0
  115. data/unittest/expected_creole/test_creole_paragraphs_wrap60.wiki +4 -0
  116. data/unittest/expected_creole/test_creole_picture_link.html +6 -0
  117. data/unittest/expected_creole/test_creole_pictures.html +10 -0
  118. data/unittest/expected_creole/test_creole_pictures.latex +13 -0
  119. data/unittest/expected_creole/test_creole_pictures_css.html +3 -0
  120. data/unittest/expected_creole/test_creole_pictures_css.latex +4 -0
  121. data/unittest/expected_creole/test_creole_pictures_imgclass.html +6 -0
  122. data/unittest/expected_creole/test_creole_pictures_imgclass.latex +8 -0
  123. data/unittest/expected_creole/test_creole_placeholders_html.html +7 -0
  124. data/unittest/expected_creole/test_creole_placeholders_html.latex +8 -0
  125. data/unittest/expected_creole/test_creole_placeholders_html.text +4 -0
  126. data/unittest/expected_creole/test_creole_placeholders_latex.html +6 -0
  127. data/unittest/expected_creole/test_creole_placeholders_latex.latex +9 -0
  128. data/unittest/expected_creole/test_creole_placeholders_latex.text +4 -0
  129. data/unittest/expected_creole/test_creole_tabular.html +20 -0
  130. data/unittest/expected_creole/test_creole_tabular.latex +22 -0
  131. data/unittest/expected_creole/test_creole_tabular_creole.html +18 -0
  132. data/unittest/expected_creole/test_creole_tabular_creole.latex +19 -0
  133. data/unittest/expected_creole/test_creole_tabular_css.html +20 -0
  134. data/unittest/expected_creole/test_creole_tabular_css.latex +22 -0
  135. data/unittest/expected_creole/test_creole_toc.html +11 -0
  136. data/unittest/expected_creole/test_creole_toc.latex +22 -0
  137. data/unittest/expected_creole/test_creole_toc.text +4 -0
  138. data/unittest/expected_creole/test_creole_toc_text.html +5 -0
  139. data/unittest/expected_creole/test_creole_toc_text.latex +5 -0
  140. data/unittest/expected_creole/test_creole_ul_multiple_line.html +7 -0
  141. data/unittest/expected_creole/test_creole_ul_multiple_line.latex +14 -0
  142. data/unittest/expected_creole/test_creole_ul_with_blank.html +11 -0
  143. data/unittest/expected_creole/test_creole_ul_with_blank.latex +20 -0
  144. data/unittest/expected_creole/test_creole_ul_with_bold.creole +0 -0
  145. data/unittest/expected_creole/test_creole_ul_with_bold.html +11 -0
  146. data/unittest/expected_creole/test_creole_ul_with_bold.latex +18 -0
  147. data/unittest/expected_creole/test_creole_ul_with_bold.text +7 -0
  148. data/unittest/expected_creole/test_creole_verbatim.html +25 -0
  149. data/unittest/expected_creole/test_creole_verbatim.latex +33 -0
  150. data/unittest/expected_creole/test_creole_verbatim.text +17 -0
  151. data/unittest/expected_creole/test_creole_verbatim_inline.html +6 -0
  152. data/unittest/expected_creole/test_creole_verbatim_inline.latex +8 -0
  153. data/unittest/expected_creole/test_creole_verbatim_inline_at_start.html +6 -0
  154. data/unittest/expected_creole/test_creole_verbatim_inline_at_start.latex +8 -0
  155. data/unittest/expected_privat/test_creole_test_document.html +6 -0
  156. data/unittest/{expected → expected_wiki}/test_wiki.html +0 -0
  157. data/unittest/{expected → expected_wiki}/test_wiki.latex +0 -0
  158. data/unittest/{expected → expected_wiki}/test_wiki.text +0 -0
  159. data/unittest/{expected → expected_wiki}/test_wiki.wiki +0 -0
  160. data/unittest/{expected → expected_wiki}/test_wiki_amazon.html +0 -0
  161. data/unittest/{expected → expected_wiki}/test_wiki_description.html +0 -0
  162. data/unittest/{expected → expected_wiki}/test_wiki_description.latex +0 -0
  163. data/unittest/{expected → expected_wiki}/test_wiki_description.text +0 -0
  164. data/unittest/{expected → expected_wiki}/test_wiki_description.wiki +0 -0
  165. data/unittest/expected_wiki/test_wiki_footnote.html +8 -0
  166. data/unittest/expected_wiki/test_wiki_footnote.latex +17 -0
  167. data/unittest/{expected → expected_wiki}/test_wiki_footnote.text +2 -4
  168. data/unittest/expected_wiki/test_wiki_footnote.wiki +10 -0
  169. data/unittest/expected_wiki/test_wiki_footnote_2.html +8 -0
  170. data/unittest/expected_wiki/test_wiki_footnote_groupid.html +21 -0
  171. data/unittest/{expected → expected_wiki}/test_wiki_html_code.html +0 -0
  172. data/unittest/{expected → expected_wiki}/test_wiki_html_code.latex +0 -0
  173. data/unittest/{expected → expected_wiki}/test_wiki_html_code.text +0 -0
  174. data/unittest/{expected → expected_wiki}/test_wiki_html_code.wiki +0 -0
  175. data/unittest/{expected → expected_wiki}/test_wiki_inline.html +0 -0
  176. data/unittest/{expected → expected_wiki}/test_wiki_inline.latex +0 -0
  177. data/unittest/{expected → expected_wiki}/test_wiki_inline.text +0 -0
  178. data/unittest/{expected → expected_wiki}/test_wiki_inline.wiki +0 -0
  179. data/unittest/{expected → expected_wiki}/test_wiki_label.html +0 -0
  180. data/unittest/{expected → expected_wiki}/test_wiki_link.html +0 -0
  181. data/unittest/{expected → expected_wiki}/test_wiki_link.latex +0 -0
  182. data/unittest/{expected → expected_wiki}/test_wiki_link.log +0 -0
  183. data/unittest/{expected → expected_wiki}/test_wiki_link.wiki +0 -0
  184. data/unittest/{expected → expected_wiki}/test_wiki_list_ol.html +0 -0
  185. data/unittest/{expected → expected_wiki}/test_wiki_list_ol.latex +0 -0
  186. data/unittest/{expected → expected_wiki}/test_wiki_list_ol.text +0 -0
  187. data/unittest/{expected → expected_wiki}/test_wiki_list_ol.wiki +0 -0
  188. data/unittest/{expected → expected_wiki}/test_wiki_list_ol_after_ul.html +0 -0
  189. data/unittest/{expected → expected_wiki}/test_wiki_list_ol_after_ul.latex +0 -0
  190. data/unittest/{expected → expected_wiki}/test_wiki_list_ol_after_ul.text +0 -0
  191. data/unittest/{expected → expected_wiki}/test_wiki_list_ol_after_ul.wiki +0 -0
  192. data/unittest/{expected → expected_wiki}/test_wiki_list_ol_ul.html +0 -0
  193. data/unittest/{expected → expected_wiki}/test_wiki_list_ol_ul.latex +0 -0
  194. data/unittest/{expected → expected_wiki}/test_wiki_list_ol_ul.text +0 -0
  195. data/unittest/{expected → expected_wiki}/test_wiki_list_ol_ul.wiki +0 -0
  196. data/unittest/{expected → expected_wiki}/test_wiki_list_ul.html +0 -0
  197. data/unittest/{expected → expected_wiki}/test_wiki_list_ul.latex +0 -0
  198. data/unittest/{expected → expected_wiki}/test_wiki_list_ul.text +0 -0
  199. data/unittest/{expected → expected_wiki}/test_wiki_list_ul.wiki +0 -0
  200. data/unittest/{expected → expected_wiki}/test_wiki_list_ul_too_much.html +0 -0
  201. data/unittest/{expected → expected_wiki}/test_wiki_list_ul_too_much.latex +0 -0
  202. data/unittest/{expected → expected_wiki}/test_wiki_list_ul_too_much.text +0 -0
  203. data/unittest/{expected → expected_wiki}/test_wiki_list_ul_too_much.wiki +0 -0
  204. data/unittest/{expected → expected_wiki}/test_wiki_picture.html +0 -0
  205. data/unittest/{expected → expected_wiki}/test_wiki_picture.latex +0 -0
  206. data/unittest/{expected → expected_wiki}/test_wiki_picture_thumb.html +0 -0
  207. data/unittest/{expected → expected_wiki}/test_wiki_tab1.html +0 -0
  208. data/unittest/{expected → expected_wiki}/test_wiki_tab1.latex +0 -0
  209. data/unittest/{expected → expected_wiki}/test_wiki_tab1.wiki +0 -0
  210. data/unittest/{expected → expected_wiki}/test_wiki_textformatting.html +0 -0
  211. data/unittest/{expected → expected_wiki}/test_wiki_textformatting.latex +0 -0
  212. data/unittest/{expected → expected_wiki}/test_wiki_textformatting.text +0 -0
  213. data/unittest/{expected → expected_wiki}/test_wiki_textformatting.wiki +0 -0
  214. data/unittest/{expected → expected_wiki}/test_wiki_toc.html +0 -0
  215. data/unittest/{expected → expected_wiki}/test_wiki_toc.latex +0 -0
  216. data/unittest/{expected → expected_wiki}/test_wiki_toc.text +0 -0
  217. data/unittest/{expected → expected_wiki}/test_wiki_toc.wiki +0 -0
  218. data/unittest/{expected → expected_wiki}/test_wiki_ul_multiple_line.html +0 -0
  219. data/unittest/{expected → expected_wiki}/test_wiki_ul_multiple_line.latex +0 -0
  220. data/unittest/{expected → expected_wiki}/test_wiki_ul_multiple_line.text +0 -0
  221. data/unittest/{expected → expected_wiki}/test_wiki_ul_multiple_line.wiki +0 -0
  222. data/unittest/test_docgenerator.rb +1 -2
  223. data/unittest/unittest_creole2doc.rb +1024 -0
  224. data/unittest/unittest_docgenerator.rb +17 -8
  225. data/unittest/unittest_wiki2doc.rb +92 -88
  226. data/unittest/unittest_yaml2pres.rb +336 -0
  227. metadata +202 -70
  228. data/unittest/expected/test_wiki_footnote.html +0 -8
  229. data/unittest/expected/test_wiki_footnote.latex +0 -15
  230. data/unittest/expected/test_wiki_footnote.wiki +0 -12
  231. data/unittest/expected/test_wiki_footnote_groupid.html +0 -21
data/self_docgenerator.rb CHANGED
@@ -109,7 +109,7 @@ class DocElement
109
109
  )
110
110
  doc.body << nav
111
111
  doc.body << descr
112
- at_exit{ doc.save("#{TARGETDIR}/#{@key}.html", true) }
112
+ at_exit{ doc.save("#{TARGETDIR}/#{@key}.html") }
113
113
  return "#{@key}.html"
114
114
  end
115
115
  end
@@ -124,7 +124,7 @@ doc = Document.new(
124
124
  )
125
125
  #~ doc.body << element(:tableofcontents).cr
126
126
  wiki = Wikitext.new(:content => <<wiki
127
- ==Command-Overview for docgenerator.rb, version #{Gem.loaded_specs['docgenerator'].version}==
127
+ ==Element-Overview for docgenerator.rb, version #{Gem.loaded_specs['docgenerator'].version}==
128
128
  This overview is generated by #{__FILE__}.
129
129
 
130
130
  .
@@ -133,15 +133,17 @@ wiki
133
133
  #Index to all elements
134
134
  index = {}
135
135
  nav = element(:ul)
136
+ letters = []
136
137
  DocElement.each{|o|
137
138
  odoc = o.mk_doc( nav )
138
139
  o.el_object.ids.each{|id|
139
140
  index[id] = element(:href, { :href => "#{odoc}" }, id )
141
+ letters << id.to_s[0,1]
140
142
  }
141
143
  }
142
- #Prepare lettere
143
- 'A'.upto('Z'){|letter| wiki << "[[##{letter}|#{letter}]] " }
144
- 'a'.upto('z'){|letter| wiki << "[[##{letter}|#{letter}]] " }
144
+ #Prepare letters
145
+ 'A'.upto('Z'){|letter| wiki << "[[##{letter}|#{letter}]] " if letters.include?(letter)}
146
+ 'a'.upto('z'){|letter| wiki << "[[##{letter}|#{letter}]] " if letters.include?(letter)}
145
147
 
146
148
  doc.body << wiki
147
149
  doc.body << element(:h1,{},"Index")
@@ -158,4 +160,4 @@ index.sort_by{|id, entry| id.to_s }.map{|id, entry|
158
160
  nav << element(:li,{:style => CSS.new(:display => 'inline') }, [ entry, ' - '] )
159
161
  }
160
162
 
161
- doc.save("#{TARGETDIR}/_command_overview.html", true )
163
+ doc.save("#{TARGETDIR}/_command_overview.html" )
Binary file
@@ -0,0 +1,128 @@
1
+ = Top-level heading (1)
2
+ == This a test for creole 0.1 (2)
3
+ === This is a Subheading (3)
4
+ ==== Subsub (4)
5
+ ===== Subsubsub (5)
6
+
7
+ The ending equal signs should not be displayed:
8
+
9
+ = Top-level heading (1) =
10
+ == This a test for creole 0.1 (2) ==
11
+ === This is a Subheading (3) ===
12
+ ==== Subsub (4) ====
13
+ ===== Subsubsub (5) =====
14
+
15
+
16
+ You can make things **bold** or //italic// or **//both//** or //**both**//.
17
+
18
+ Character formatting extends across line breaks: **bold,
19
+ this is still bold. This line deliberately does not end in star-star.
20
+
21
+ Not bold. Character formatting does not cross paragraph boundaries.
22
+
23
+ You can use [[internal links]] or [[http://www.wikicreole.org|external links]],
24
+ give the link a [[internal links|different]] name.
25
+
26
+ Here's another sentence: This wisdom is taken from [[Ward Cunningham's]]
27
+ [[http://www.c2.com/doc/wikisym/WikiSym2006.pdf|Presentation at the Wikisym 06]].
28
+
29
+ Here's a external link without a description: [[http://www.wikicreole.org]]
30
+
31
+ Be careful that italic links are rendered properly: //[[http://my.book.example/|My Book Title]]//
32
+
33
+ Free links without braces should be rendered as well, like http://www.wikicreole.org/ and http://www.wikicreole.org/users/~example.
34
+
35
+ Creole1.0 specifies that http://bar and ftp://bar should not render italic,
36
+ something like foo://bar should render as italic.
37
+
38
+ You can use this to draw a line to separate the page:
39
+ ----
40
+
41
+ You can use lists, start it at the first column for now, please...
42
+
43
+ unnumbered lists are like
44
+ * item a
45
+ * item b
46
+ * **bold item c**
47
+
48
+ blank space is also permitted before lists like:
49
+ * item a
50
+ * item b
51
+ * item c
52
+ ** item c.a
53
+
54
+ or you can number them
55
+ # [[item 1]]
56
+ # item 2
57
+ # // italic item 3 //
58
+ ## item 3.1
59
+ ## item 3.2
60
+
61
+ up to five levels
62
+ * 1
63
+ ** 2
64
+ *** 3
65
+ **** 4
66
+ ***** 5
67
+
68
+ * You can have
69
+ multiline list items
70
+ * this is a second multiline
71
+ list item
72
+
73
+ You can use nowiki syntax if you would like do stuff like this:
74
+
75
+ {{{
76
+ Guitar Chord C:
77
+
78
+ ||---|---|---|
79
+ ||-0-|---|---|
80
+ ||---|---|---|
81
+ ||---|-0-|---|
82
+ ||---|---|-0-|
83
+ ||---|---|---|
84
+ }}}
85
+
86
+ You can also use it inline nowiki {{{ in a sentence }}} like this.
87
+
88
+ = Escapes =
89
+ Normal Link: http://wikicreole.org/ - now same link, but escaped: ~http://wikicreole.org/
90
+
91
+ Normal asterisks: ~**not bold~**
92
+
93
+ a tilde alone: ~
94
+
95
+ a tilde escapes itself: ~~xxx
96
+
97
+ === Creole 0.2 ===
98
+
99
+ This should be a flower with the ALT text "this is a flower" if your wiki supports ALT text on images:
100
+
101
+ {{Red_Flower.jpg|here is a red flower}}
102
+
103
+ === Creole 0.4 ===
104
+
105
+ Tables are done like this:
106
+
107
+ |=header col1|=header col2|
108
+ |col1|col2|
109
+ |you |can |
110
+ |also |align\\ it. |
111
+
112
+ You can format an address by simply forcing linebreaks:
113
+
114
+ My contact dates:\\
115
+ Phone: xyz\\
116
+ Fax: +45\\
117
+ Mobile: abc
118
+
119
+ === Creole 0.5 ===
120
+
121
+ |= Header title |= Another header title |
122
+ | {{{ //not italic text// }}} | {{{ **not bold text** }}} |
123
+ | //italic text// | ** bold text ** |
124
+
125
+ === Creole 1.0 ===
126
+
127
+ If interwiki links are setup in your wiki, this links to the WikiCreole page about Creole 1.0 test cases: [[WikiCreole:Creole1.0TestCases]].
128
+
@@ -5,9 +5,9 @@
5
5
  <html>
6
6
  <head >
7
7
  <title>Title</title>
8
+ <meta name = "shorttitle" content = "Short title" />
8
9
  <meta name="author" content="Knut Lickert">
9
10
  <meta name="creation-date" content="2008-05-15">
10
- <meta name = "shorttitle" content = "Short title" />
11
11
  </head>
12
12
  <body ></body>
13
13
  </html>
@@ -5,9 +5,9 @@
5
5
  <html>
6
6
  <head >
7
7
  <title>Title</title>
8
+ <meta name = "shorttitle" content = "Short title" />
8
9
  <meta name="author" content="Knut Lickert">
9
10
  <meta name="creation-date" content="2008-05-15">
10
- <meta name = "shorttitle" content = "Short title" />
11
11
  </head>
12
12
  <body ><h1 >Sectiontitle</h1>
13
13
  <h2 >Subectiontitle</h2>
@@ -0,0 +1,34 @@
1
+ <!--
2
+ <<prefix>>
3
+ -->
4
+ <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
5
+ <html>
6
+ <head >
7
+ <title>Title</title>
8
+ <meta name = "shorttitle" content = "Short title" />
9
+ <meta name="author" content="Knut Lickert">
10
+ <meta name="creation-date" content="2008-05-15">
11
+ </head>
12
+ <body >
13
+ <div class = "frame" >
14
+ <p class = "frametitle">Title</p>
15
+
16
+ <div align = "center" >
17
+ <img src = "test.png" />
18
+ </div>
19
+ <p >remark: You can make notes
20
+ </p>
21
+ <p class = "note">
22
+ <ul >
23
+ <li >
24
+ This is a note
25
+ </li>
26
+ <li >
27
+ Notes are wiki-enabled
28
+ </li>
29
+ </ul>
30
+ </p>
31
+ </div>
32
+ <br clear = "all" />
33
+ </body>
34
+ </html>
@@ -0,0 +1,34 @@
1
+ <!--
2
+ <<prefix>>
3
+ -->
4
+ <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
5
+ <html>
6
+ <head >
7
+ <title>Title</title>
8
+ <meta name = "shorttitle" content = "Short title" />
9
+ <meta name="author" content="Knut Lickert">
10
+ <meta name="creation-date" content="2008-05-15">
11
+ </head>
12
+ <body >
13
+ <div class = "frame" >
14
+ <p class = "frametitle">Title</p>
15
+
16
+ <div align = "center" >
17
+ <img src = "test.png" />
18
+ </div>
19
+ <p >remark: You can make notes
20
+ </p>
21
+ <p class = "note">
22
+ <ul >
23
+ <li >
24
+ This is a note
25
+ </li>
26
+ <li >
27
+ Notes are wiki-enabled
28
+ </li>
29
+ </ul>
30
+ </p>
31
+ </div>
32
+ <br clear = "all" />
33
+ </body>
34
+ </html>
@@ -5,9 +5,9 @@
5
5
  <html>
6
6
  <head >
7
7
  <title>Title</title>
8
+ <meta name = "shorttitle" content = "Short title" />
8
9
  <meta name="author" content="Knut Lickert">
9
10
  <meta name="creation-date" content="2008-05-15">
10
- <meta name = "shorttitle" content = "Short title" />
11
11
  </head>
12
12
  <body >
13
13
  <div id = "key" class = "frame" >
@@ -5,9 +5,9 @@
5
5
  <html>
6
6
  <head >
7
7
  <title>Title</title>
8
+ <meta name = "shorttitle" content = "Short title" />
8
9
  <meta name="author" content="Knut Lickert">
9
10
  <meta name="creation-date" content="2008-05-15">
10
- <meta name = "shorttitle" content = "Short title" />
11
11
  </head>
12
12
  <body >
13
13
  <div class = "frame" >
@@ -5,9 +5,9 @@
5
5
  <html>
6
6
  <head >
7
7
  <title>Picture at bottom</title>
8
+ <meta name = "shorttitle" content = "Short title" />
8
9
  <meta name="author" content="Knut Lickert">
9
10
  <meta name="creation-date" content="2008-05-15">
10
- <meta name = "shorttitle" content = "Short title" />
11
11
  </head>
12
12
  <body >
13
13
  <div class = "frame" >
@@ -5,9 +5,9 @@
5
5
  <html>
6
6
  <head >
7
7
  <title>Presentation with picture</title>
8
+ <meta name = "shorttitle" content = "Short title" />
8
9
  <meta name="author" content="Knut Lickert">
9
10
  <meta name="creation-date" content="2008-05-15">
10
- <meta name = "shorttitle" content = "Short title" />
11
11
  </head>
12
12
  <body >
13
13
  <div class = "frame" >
@@ -5,9 +5,9 @@
5
5
  <html>
6
6
  <head >
7
7
  <title>Title</title>
8
+ <meta name = "shorttitle" content = "Short title" />
8
9
  <meta name="author" content="Knut Lickert">
9
10
  <meta name="creation-date" content="2008-05-15">
10
- <meta name = "shorttitle" content = "Short title" />
11
11
  </head>
12
12
  <body >
13
13
  <div class = "frame" >
@@ -5,9 +5,9 @@
5
5
  <html>
6
6
  <head >
7
7
  <title>Title</title>
8
+ <meta name = "shorttitle" content = "Short title" />
8
9
  <meta name="author" content="Knut Lickert">
9
10
  <meta name="creation-date" content="2008-05-15">
10
- <meta name = "shorttitle" content = "Short title" />
11
11
  </head>
12
12
  <body >
13
13
  <div class = "frame" >
@@ -5,9 +5,9 @@
5
5
  <html>
6
6
  <head >
7
7
  <title>Picture on top</title>
8
+ <meta name = "shorttitle" content = "Short title" />
8
9
  <meta name="author" content="Knut Lickert">
9
10
  <meta name="creation-date" content="2008-05-15">
10
- <meta name = "shorttitle" content = "Short title" />
11
11
  </head>
12
12
  <body >
13
13
  <div class = "frame" >
@@ -1,5 +1,5 @@
1
1
  <h1 >Abschnitt 1</h1>
2
- <p >Text zu Abschnitt 1<sup><a href="#foot1">1</a></sup>Weiterer Text</p>
2
+ <p >Text zu Abschnitt 1<sup><a href="#footnote-1">1</a></sup>Weiterer Text</p>
3
3
  <h2 >Fu�noten</h2>
4
- <p ><sup ><a name="foot1">1</a></sup>Fu� eins<br />
4
+ <p ><sup ><a name="footnote-1">1</a></sup>Fu� eins<br />
5
5
  </p>
@@ -6,6 +6,6 @@ Text zu Abschnitt 1\footnote{Fu
6
6
  \subsection{Fu�noten}
7
7
 
8
8
 
9
- \textsuperscript{\label{foot1}\hypertarget{foot1}{1}}Fu� eins\newline
9
+ \textsuperscript{\label{footnote-1}\hypertarget{footnote-1}{1}}Fu� eins\newline
10
10
 
11
11
 
@@ -1,8 +1,8 @@
1
1
  <h1 >Abschnitt 1</h1>
2
- <p >Text zu Abschnitt 1<sup><a href="#footg1-1">1</a></sup>Weiterer Text<sup><a href="#foot1">1</a></sup></p>
2
+ <p >Text zu Abschnitt 1<sup><a href="#g2-1">1</a></sup>Weiterer Text<sup><a href="#footnote-1">1</a></sup></p>
3
3
  <h2 >Fu�noten</h2>
4
- <p ><sup ><a name="foot1">1</a></sup>Noch ne Fu�note<br />
4
+ <p ><sup ><a name="footnote-1">1</a></sup>Noch ne Fu�note<br />
5
5
  </p>
6
6
  <h3 >Fu�noten g1</h3>
7
- <p ><sup ><a name="footg1-1">1</a></sup>Fu� eins (g1)<br />
7
+ <p ><sup ><a name="g2-1">1</a></sup>Fu� eins (g1)<br />
8
8
  </p>
@@ -6,12 +6,12 @@ Text zu Abschnitt 1\footnote{Fu
6
6
  \subsection{Fu�noten}
7
7
 
8
8
 
9
- \textsuperscript{\label{foot1}\hypertarget{foot1}{1}}Noch ne Fu�note\newline
9
+ \textsuperscript{\label{footnote-1}\hypertarget{footnote-1}{1}}Noch ne Fu�note\newline
10
10
 
11
11
 
12
12
  \subsubsection{Fu�noten g1}
13
13
 
14
14
 
15
- \textsuperscript{\label{footg1-1}\hypertarget{footg1-1}{1}}Fu� eins (g1)\newline
15
+ \textsuperscript{\label{g2-1}\hypertarget{g2-1}{1}}Fu� eins (g1)\newline
16
16
 
17
17
 
@@ -0,0 +1,3 @@
1
+ <h2 >Titel 1</h2>
2
+ <p >Text, mehr Text</p>
3
+ <p >Neuer Absatz</p>
@@ -0,0 +1,10 @@
1
+ <ul >
2
+ <li >&lArr; </li>
3
+ <li >&rArr; </li>
4
+ <li >$ </li>
5
+ <li >% </li>
6
+ <li >&larr; </li>
7
+ <li >&rarr; </li>
8
+ <li >&amp; </li>
9
+ <li >_</li>
10
+ </ul>
@@ -0,0 +1,20 @@
1
+
2
+ \begin{itemize}
3
+
4
+ \item \ensuremath{\Lefttarrow}
5
+
6
+ \item \ensuremath{\Rightarrow}
7
+
8
+ \item \$
9
+
10
+ \item \%
11
+
12
+ \item \ensuremath{\leftarrow}
13
+
14
+ \item \ensuremath{\rightarrow}
15
+
16
+ \item \&
17
+
18
+ \item \_
19
+ \end{itemize}
20
+
@@ -0,0 +1,10 @@
1
+ <p >
2
+ Special Characters:
3
+ </p>
4
+ <ul >
5
+ <li >$ - Dollar </li>
6
+ <li >% - Percent </li>
7
+ <li >&rArr; Rightarrow </li>
8
+ <li >&rarr; rightarrow </li>
9
+ <li >_ Underscore </li>
10
+ </ul>
@@ -0,0 +1,18 @@
1
+
2
+
3
+ Special Characters:
4
+
5
+
6
+ \begin{itemize}
7
+
8
+ \item $ - Dollar
9
+
10
+ \item \% - Percent
11
+
12
+ \item \ensuremath{\Rightarrow} Rightarrow
13
+
14
+ \item \ensuremath{\rightarrow} rightarrow
15
+
16
+ \item \_ Underscore
17
+ \end{itemize}
18
+
@@ -0,0 +1,3 @@
1
+ <p >
2
+ Countdown: 10-9-8-7-6-5-4-3-2-1
3
+ </p>
@@ -0,0 +1,4 @@
1
+
2
+
3
+ Countdown: 10-9-8-7-6-5-4-3-2-1
4
+
@@ -0,0 +1,182 @@
1
+ <h1 > Top-level heading (1)</h1>
2
+ <h2 > This a test for creole 0.1 (2)</h2>
3
+ <h3 > This is a Subheading (3)</h3>
4
+ <h4 > Subsub (4)</h4>
5
+ <h5 > Subsubsub (5)</h5>
6
+ <p >
7
+ The ending equal signs should not be displayed:
8
+ </p>
9
+ <h1 > Top-level heading (1) </h1>
10
+ <h2 > This a test for creole 0.1 (2) </h2>
11
+ <h3 > This is a Subheading (3) </h3>
12
+ <h4 > Subsub (4) </h4>
13
+ <h5 > Subsubsub (5) </h5>
14
+ <p >
15
+ You can make things <strong >bold</strong> or <em >italic</em> or <strong ><em >both</em></strong> or <em ><strong >both</strong></em>.
16
+ </p>
17
+ <p >
18
+ Character formatting extends across line breaks: <strong >bold,this is still bold. This line deliberately does not end in star-star. </strong>
19
+ </p>
20
+ <p >
21
+ Not bold. Character formatting does not cross paragraph boundaries.
22
+ </p>
23
+ <p >
24
+ You can use <a href = "internal links" >internal links</a> or <a href = "http://www.wikicreole.org" >external links</a>, give the link a <a href = "internal links" >different</a> name.
25
+ </p>
26
+ <p >
27
+ Here's another sentence: This wisdom is taken from <a href = "Ward Cunningham's" >Ward Cunningham's</a> <a href = "http://www.c2.com/doc/wikisym/WikiSym2006.pdf" >Presentation at the Wikisym 06</a>.
28
+ </p>
29
+ <p >
30
+ Here's a external link without a description: <a href = "http://www.wikicreole.org" >http://www.wikicreole.org</a>
31
+ </p>
32
+ <p >
33
+ Be careful that italic links are rendered properly: <em ><a href = "http://my.book.example/" >My Book Title</a></em>
34
+ </p>
35
+ <p >
36
+ Free links without braces should be rendered as well, like <a href = "http://www.wikicreole.org/" >http://www.wikicreole.org/</a> and <a href = "http://www.wikicreole.org/users/~example." >http://www.wikicreole.org/users/~example.</a>
37
+ </p>
38
+ <p >
39
+ Creole1.0 specifies that <a href = "http://bar" >http://bar</a> and ftp:<em >bar should not render italic,something like foo:</em>bar should render as italic.
40
+ </p>
41
+ <p >
42
+ You can use this to draw a line to separate the page:
43
+ </p>
44
+ <hr />
45
+ <p >
46
+ You can use lists, start it at the first column for now, please...
47
+ </p>
48
+ <p >
49
+ unnumbered lists are like
50
+ </p>
51
+ <ul >
52
+ <li > item a </li>
53
+ <li > item b </li>
54
+ <li > <strong >bold item c</strong> </li>
55
+ </ul>
56
+ <p >
57
+ blank space is also permitted before lists like:
58
+ </p>
59
+ <ul >
60
+ <li > item a </li>
61
+ <li > item b </li>
62
+ <li > item c <ul >
63
+ <li > item c.a </li>
64
+ </ul>
65
+ </li>
66
+ </ul>
67
+ <p >
68
+ or you can number them
69
+ </p>
70
+ <ol >
71
+ <li > <a href = "item 1" >item 1</a> </li>
72
+ <li > item 2 </li>
73
+ <li > <em >italic item 3 </em> <ol >
74
+ <li > item 3.1 </li>
75
+ <li > item 3.2 </li>
76
+ </ol>
77
+ </li>
78
+ </ol>
79
+ <p >
80
+ up to five levels
81
+ </p>
82
+ <ul >
83
+ <li > 1 <ul >
84
+ <li > 2 <ul >
85
+ <li > 3 <ul >
86
+ <li > 4 <ul >
87
+ <li > 5 </li>
88
+ </ul>
89
+ </li>
90
+ </ul>
91
+ </li>
92
+ </ul>
93
+ </li>
94
+ </ul>
95
+ </li>
96
+ </ul>
97
+ <ul >
98
+ <li > You can have multiline list items </li>
99
+ <li > this is a second multiline list item </li>
100
+ </ul>
101
+ <p >
102
+ You can use nowiki syntax if you would like do stuff like this:
103
+ </p>
104
+ <pre>
105
+ Guitar Chord C:
106
+
107
+ ||---|---|---|
108
+ ||-0-|---|---|
109
+ ||---|---|---|
110
+ ||---|-0-|---|
111
+ ||---|---|-0-|
112
+ ||---|---|---|
113
+ </pre>
114
+ <p >
115
+ You can also use it inline nowiki <span style = "display: inline;white-space:pre;font-family:monospace"> in a sentence </span> like this.
116
+ </p>
117
+ <h1 > Escapes </h1>
118
+ <p >
119
+ Normal Link: <a href = "http://wikicreole.org/" >http://wikicreole.org/</a> - now same link, but escaped: ~<a href = "http://wikicreole.org/" >http://wikicreole.org/</a>
120
+ </p>
121
+ <p >
122
+ Normal asterisks: ~<strong >not bold~</strong>
123
+ </p>
124
+ <p >
125
+ a tilde alone: ~
126
+ </p>
127
+ <p >
128
+ a tilde escapes itself: ~~xxx
129
+ </p>
130
+ <h3 > Creole 0.2 </h3>
131
+ <p >
132
+ This should be a flower with the ALT text "this is a flower" if your wiki
133
+ supports ALT text on images:
134
+ </p>
135
+ <p >
136
+ <img src = "Red_Flower.jpg" alt = "here is a red flower" />
137
+ </p>
138
+ <h3 > Creole 0.4 </h3>
139
+ <p >
140
+ Tables are done like this:
141
+ </p>
142
+ <table >
143
+ <tr ><th >header col1</th>
144
+ <th >header col2</th>
145
+ </tr>
146
+ <tr ><td >col1</td>
147
+ <td >col2</td>
148
+ </tr>
149
+ <tr ><td >you</td>
150
+ <td >can</td>
151
+ </tr>
152
+ <tr ><td >also</td>
153
+ <td >align<br />
154
+ it.</td>
155
+ </tr>
156
+ </table>
157
+ <p >
158
+ You can format an address by simply forcing linebreaks:
159
+ </p>
160
+ <p >
161
+ My contact dates:<br />
162
+ Phone: xyz<br />
163
+ Fax: +45<br />
164
+ Mobile: abc
165
+ </p>
166
+ <h3 > Creole 0.5 </h3>
167
+ <table >
168
+ <tr ><th >Header title</th>
169
+ <th >Another header title</th>
170
+ </tr>
171
+ <tr ><td ><span style = "display: inline;white-space:pre;font-family:monospace"> //not italic text// </span></td>
172
+ <td ><span style = "display: inline;white-space:pre;font-family:monospace"> **not bold text** </span></td>
173
+ </tr>
174
+ <tr ><td ><em >italic text</em></td>
175
+ <td ><strong >bold text </strong></td>
176
+ </tr>
177
+ </table>
178
+ <h3 > Creole 1.0 </h3>
179
+ <p >
180
+ If interwiki links are setup in your wiki, this links to the WikiCreole
181
+ page about Creole 1.0 test cases: <a href = "WikiCreole:Creole1.0TestCases" >WikiCreole:Creole1.0TestCases</a>.
182
+ </p>