wallyqs-org-ruby 0.6.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 (123) hide show
  1. data/.bnsignore +18 -0
  2. data/.gitignore +2 -0
  3. data/Gemfile +7 -0
  4. data/Gemfile.lock +36 -0
  5. data/History.txt +112 -0
  6. data/README.rdoc +67 -0
  7. data/Rakefile +33 -0
  8. data/TAGS +167 -0
  9. data/announcement.txt +24 -0
  10. data/bin/org-ruby +45 -0
  11. data/lib/org-ruby.rb +55 -0
  12. data/lib/org-ruby/headline.rb +110 -0
  13. data/lib/org-ruby/html_output_buffer.rb +273 -0
  14. data/lib/org-ruby/html_symbol_replace.rb +345 -0
  15. data/lib/org-ruby/line.rb +244 -0
  16. data/lib/org-ruby/output_buffer.rb +237 -0
  17. data/lib/org-ruby/parser.rb +366 -0
  18. data/lib/org-ruby/regexp_helper.rb +192 -0
  19. data/lib/org-ruby/textile_output_buffer.rb +102 -0
  20. data/lib/org-ruby/textile_symbol_replace.rb +346 -0
  21. data/lib/org-ruby/tilt.rb +29 -0
  22. data/org-ruby.gemspec +40 -0
  23. data/spec/data/freeform-example.org +113 -0
  24. data/spec/data/freeform.org +111 -0
  25. data/spec/data/hyp-planning.org +335 -0
  26. data/spec/data/remember.org +53 -0
  27. data/spec/headline_spec.rb +65 -0
  28. data/spec/html_examples/advanced-code.html +81 -0
  29. data/spec/html_examples/advanced-code.org +106 -0
  30. data/spec/html_examples/advanced-lists.html +31 -0
  31. data/spec/html_examples/advanced-lists.org +31 -0
  32. data/spec/html_examples/block_code.html +28 -0
  33. data/spec/html_examples/block_code.org +35 -0
  34. data/spec/html_examples/blockcomment.html +3 -0
  35. data/spec/html_examples/blockcomment.org +15 -0
  36. data/spec/html_examples/blockquote.html +7 -0
  37. data/spec/html_examples/blockquote.org +13 -0
  38. data/spec/html_examples/center.html +6 -0
  39. data/spec/html_examples/center.org +7 -0
  40. data/spec/html_examples/code-comment.html +18 -0
  41. data/spec/html_examples/code-comment.org +22 -0
  42. data/spec/html_examples/code-syntax.html +98 -0
  43. data/spec/html_examples/code-syntax.org +99 -0
  44. data/spec/html_examples/comment-trees.html +4 -0
  45. data/spec/html_examples/comment-trees.org +13 -0
  46. data/spec/html_examples/custom-seq-todo.html +15 -0
  47. data/spec/html_examples/custom-seq-todo.org +24 -0
  48. data/spec/html_examples/custom-todo.html +15 -0
  49. data/spec/html_examples/custom-todo.org +24 -0
  50. data/spec/html_examples/custom-typ-todo.html +15 -0
  51. data/spec/html_examples/custom-typ-todo.org +24 -0
  52. data/spec/html_examples/deflist.html +6 -0
  53. data/spec/html_examples/deflist.org +6 -0
  54. data/spec/html_examples/entities.html +4 -0
  55. data/spec/html_examples/entities.org +11 -0
  56. data/spec/html_examples/escape-pre.html +6 -0
  57. data/spec/html_examples/escape-pre.org +6 -0
  58. data/spec/html_examples/export-exclude-only.html +13 -0
  59. data/spec/html_examples/export-exclude-only.org +81 -0
  60. data/spec/html_examples/export-keywords.html +4 -0
  61. data/spec/html_examples/export-keywords.org +18 -0
  62. data/spec/html_examples/export-tags.html +8 -0
  63. data/spec/html_examples/export-tags.org +82 -0
  64. data/spec/html_examples/export-title.html +2 -0
  65. data/spec/html_examples/export-title.org +4 -0
  66. data/spec/html_examples/footnotes.html +10 -0
  67. data/spec/html_examples/footnotes.org +7 -0
  68. data/spec/html_examples/html-literal.html +2 -0
  69. data/spec/html_examples/html-literal.org +6 -0
  70. data/spec/html_examples/inline-formatting.html +20 -0
  71. data/spec/html_examples/inline-formatting.org +33 -0
  72. data/spec/html_examples/inline-images.html +10 -0
  73. data/spec/html_examples/inline-images.org +15 -0
  74. data/spec/html_examples/link-features.html +8 -0
  75. data/spec/html_examples/link-features.org +19 -0
  76. data/spec/html_examples/lists.html +23 -0
  77. data/spec/html_examples/lists.org +47 -0
  78. data/spec/html_examples/metadata-comment.html +27 -0
  79. data/spec/html_examples/metadata-comment.org +30 -0
  80. data/spec/html_examples/only-list.html +5 -0
  81. data/spec/html_examples/only-list.org +3 -0
  82. data/spec/html_examples/only-table.html +6 -0
  83. data/spec/html_examples/only-table.org +5 -0
  84. data/spec/html_examples/skip-header.html +3 -0
  85. data/spec/html_examples/skip-header.org +28 -0
  86. data/spec/html_examples/skip-table.html +4 -0
  87. data/spec/html_examples/skip-table.org +19 -0
  88. data/spec/html_examples/subsupscript-nil.html +3 -0
  89. data/spec/html_examples/subsupscript-nil.org +6 -0
  90. data/spec/html_examples/subsupscript.html +3 -0
  91. data/spec/html_examples/subsupscript.org +5 -0
  92. data/spec/html_examples/tables.html +35 -0
  93. data/spec/html_examples/tables.org +50 -0
  94. data/spec/html_examples/text.html +2 -0
  95. data/spec/html_examples/text.org +16 -0
  96. data/spec/line_spec.rb +155 -0
  97. data/spec/output_buffer_spec.rb +19 -0
  98. data/spec/parser_spec.rb +152 -0
  99. data/spec/regexp_helper_spec.rb +57 -0
  100. data/spec/spec_helper.rb +20 -0
  101. data/spec/textile_examples/block_code.org +35 -0
  102. data/spec/textile_examples/block_code.textile +29 -0
  103. data/spec/textile_examples/blockquote.org +13 -0
  104. data/spec/textile_examples/blockquote.textile +11 -0
  105. data/spec/textile_examples/center.org +7 -0
  106. data/spec/textile_examples/center.textile +6 -0
  107. data/spec/textile_examples/footnotes.org +7 -0
  108. data/spec/textile_examples/footnotes.textile +8 -0
  109. data/spec/textile_examples/keywords.org +13 -0
  110. data/spec/textile_examples/keywords.textile +11 -0
  111. data/spec/textile_examples/links.org +11 -0
  112. data/spec/textile_examples/links.textile +10 -0
  113. data/spec/textile_examples/lists.org +36 -0
  114. data/spec/textile_examples/lists.textile +20 -0
  115. data/spec/textile_examples/single-space-plain-list.org +13 -0
  116. data/spec/textile_examples/single-space-plain-list.textile +10 -0
  117. data/spec/textile_examples/tables.org +50 -0
  118. data/spec/textile_examples/tables.textile +40 -0
  119. data/spec/textile_output_buffer_spec.rb +21 -0
  120. data/tasks/test_case.rake +49 -0
  121. data/test/test_orgmode_parser.rb +0 -0
  122. data/util/gen-special-replace.el +37 -0
  123. metadata +244 -0
@@ -0,0 +1,7 @@
1
+ <p class="title">BLOCKQUOTE</p>
2
+ <p>Testing that I can have block quotes:</p>
3
+ <blockquote>
4
+ <p><i>Example:</i></p>
5
+ <p>This is blockquote text.</p>
6
+ </blockquote>
7
+ <p>And now I&#8217;m back to normal text!</p>
@@ -0,0 +1,13 @@
1
+ BLOCKQUOTE
2
+
3
+ Testing that I can have block quotes:
4
+
5
+ #+BEGIN_QUOTE
6
+
7
+ /Example:/
8
+
9
+ This is blockquote text.
10
+
11
+ #+END_QUOTE
12
+
13
+ And now I'm back to normal text!
@@ -0,0 +1,6 @@
1
+ <p class="title">Fou</p>
2
+ <p>not center</p>
3
+ <div style="text-align: center">
4
+ <p>center</p>
5
+ </div>
6
+ <p>not center, again</p>
@@ -0,0 +1,7 @@
1
+ #+TITLE: Fou
2
+
3
+ not center
4
+ #+BEGIN_CENTER
5
+ center
6
+ #+END_CENTER
7
+ not center, again
@@ -0,0 +1,18 @@
1
+ <h1 class="title">Code Comment</h1>
2
+ <p>I need to be able to export things that look like org-mode comments inside of code blocks, like this:</p>
3
+ <pre class="example">
4
+ #+TITLE: orgmode_parser.org
5
+ #+AUTHOR:
6
+ #+EMAIL: brian@BRIAN-DESK
7
+ #+DATE: 2009-12-29 Tue
8
+ #+DESCRIPTION:
9
+ #+KEYWORDS:
10
+ #+LANGUAGE: en
11
+ #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t &lt;:t
12
+ #+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
13
+ #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
14
+ #+EXPORT_SELECT_TAGS: export
15
+ #+EXPORT_EXCLUDE_TAGS: noexport
16
+ #+LINK_UP:
17
+ #+LINK_HOME:
18
+ </pre>
@@ -0,0 +1,22 @@
1
+ * Code Comment
2
+
3
+ I need to be able to export things that look like org-mode comments
4
+ inside of code blocks, like this:
5
+
6
+ #+BEGIN_EXAMPLE
7
+ #+TITLE: orgmode_parser.org
8
+ #+AUTHOR:
9
+ #+EMAIL: brian@BRIAN-DESK
10
+ #+DATE: 2009-12-29 Tue
11
+ #+DESCRIPTION:
12
+ #+KEYWORDS:
13
+ #+LANGUAGE: en
14
+ #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
15
+ #+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
16
+ #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
17
+ #+EXPORT_SELECT_TAGS: export
18
+ #+EXPORT_EXCLUDE_TAGS: noexport
19
+ #+LINK_UP:
20
+ #+LINK_HOME:
21
+ #+END_EXAMPLE
22
+
@@ -0,0 +1,98 @@
1
+ <h1 class="title">Code syntax</h1>
2
+ <h2>No language selected</h2>
3
+ <pre class="src">
4
+ <code class="">
5
+ Nothing to see here
6
+ </code>
7
+ </pre>
8
+ <h2>CSS example</h2>
9
+ <pre class="src">
10
+ <code class="css">
11
+ <span style="color:#339;font-weight:bold">*</span> {
12
+ <span style="color:#777">/* apply a natural box layout model to all elements */</span>
13
+ <span style="color:#339;font-weight:bold">box-sizing</span>: <span style="color:#339;font-weight:bold">border-box</span>;
14
+ <span style="color:#339;font-weight:bold">-moz-box-sizing</span>: <span style="color:#339;font-weight:bold">border-box</span>;
15
+ <span style="color:#339;font-weight:bold">-webkit-box-sizing</span>: <span style="color:#339;font-weight:bold">border-box</span>;
16
+ }
17
+ </code>
18
+ </pre>
19
+ <h2>HTML example</h2>
20
+ <pre class="src">
21
+ <code class="html">
22
+ <span style="color:#070">&lt;html&gt;</span>
23
+ <span style="color:#070">&lt;head&gt;</span>
24
+ <span style="color:#070">&lt;title&gt;</span>Hello<span style="color:#070">&lt;/title&gt;</span>
25
+ <span style="color:#070">&lt;/head&gt;</span>
26
+ <span style="color:#070">&lt;body&gt;</span>
27
+ <span style="color:#070">&lt;h1&gt;</span>Hello<span style="color:#070">&lt;/h1&gt;</span>
28
+
29
+
30
+ <span style="color:#070">&lt;/body&gt;</span>
31
+ <span style="color:#070">&lt;/html&gt;</span>
32
+ </code>
33
+ </pre>
34
+ <h2>Ruby example</h2>
35
+ <pre class="src">
36
+ <code class="ruby">
37
+ <span style="color:#080;font-weight:bold">class</span> <span style="color:#B06;font-weight:bold">Post</span> &lt;&lt; <span style="color:#036;font-weight:bold">ActiveRecord</span>::<span style="color:#036;font-weight:bold">Base</span>
38
+ <span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">print_title</span>
39
+ puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="background-color:hsla(0,0%,0%,0.07);color:black"><span style="font-weight:bold;color:#666">#{</span><span style="color:#069">self</span>.title<span style="font-weight:bold;color:#666">}</span></span><span style="color:#710">&quot;</span></span>
40
+ <span style="color:#080;font-weight:bold">end</span>
41
+ <span style="color:#080;font-weight:bold">end</span>
42
+ </code>
43
+ </pre>
44
+ <h2>Python example</h2>
45
+ <pre class="src">
46
+ <code class="python">
47
+ <span style="color:#080;font-weight:bold">import</span> <span style="color:#B44;font-weight:bold">mapnik</span>
48
+
49
+ m = mapnik.Map(<span style="color:#00D">600</span>, <span style="color:#00D">800</span>)
50
+ m.background = Map.Color(<span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">'</span><span style="color:#D20">steelblue</span><span style="color:#710">'</span></span>)
51
+ </code>
52
+ </pre>
53
+ <h2>Javascript example</h2>
54
+ <pre class="src">
55
+ <code class="javascript">
56
+ exports = <span style="color:#963">this</span>;
57
+
58
+ (<span style="color:#080;font-weight:bold">function</span>(<span style="color:#369;font-weight:bold">$</span>){
59
+
60
+ <span style="color:#080;font-weight:bold">var</span> Posts = {};
61
+
62
+ Posts.<span style="color:#06B;font-weight:bold">index</span> = <span style="color:#080;font-weight:bold">function</span>(){
63
+ <span style="color:#777">// TODO</span>
64
+ };
65
+
66
+ })(jQuery);
67
+ </code>
68
+ </pre>
69
+ <h2>JSON example</h2>
70
+ <pre class="src">
71
+ <code class="json">
72
+ { <span style="color:#F00;background-color:#FAA">n</span><span style="color:#F00;background-color:#FAA">a</span><span style="color:#F00;background-color:#FAA">m</span><span style="color:#F00;background-color:#FAA">e</span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Waldemar</span><span style="color:#710">&quot;</span></span>
73
+ , <span style="color:#F00;background-color:#FAA">s</span><span style="color:#F00;background-color:#FAA">u</span><span style="color:#F00;background-color:#FAA">r</span><span style="color:#F00;background-color:#FAA">n</span><span style="color:#F00;background-color:#FAA">a</span><span style="color:#F00;background-color:#FAA">m</span><span style="color:#F00;background-color:#FAA">e</span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Quevedo</span><span style="color:#710">&quot;</span></span>
74
+ }
75
+ </code>
76
+ </pre>
77
+ <h2>PHP example</h2>
78
+ <pre class="src">
79
+ <code class="php">
80
+ <span style="color:#369;font-weight:bold">echo</span> <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Hello</span><span style="color:#710">&quot;</span></span>;
81
+ <span style="color:#369;font-weight:bold">phpinfo</span>();
82
+ <span style="color:#369;font-weight:bold">var_dump</span>(some_var);
83
+ </code>
84
+ </pre>
85
+ <h2>Elisp example</h2>
86
+ <pre class="src">
87
+ <code class="scheme">
88
+ (defun hello()
89
+ (interactive)
90
+ (message &quot;hello&quot;))
91
+ </code>
92
+ </pre>
93
+ <h2>Not supported language example</h2>
94
+ <pre class="src">
95
+ <code class="notsupported">
96
+ !+!+++!++!++!++!+
97
+ </code>
98
+ </pre>
@@ -0,0 +1,99 @@
1
+ * Code syntax
2
+
3
+ ** No language selected
4
+
5
+ #+BEGIN_SRC
6
+ Nothing to see here
7
+ #+END_SRC
8
+
9
+ ** CSS example
10
+
11
+ #+BEGIN_SRC css
12
+ * {
13
+ /* apply a natural box layout model to all elements */
14
+ box-sizing: border-box;
15
+ -moz-box-sizing: border-box;
16
+ -webkit-box-sizing: border-box;
17
+ }
18
+ #+END_SRC
19
+
20
+ ** HTML example
21
+
22
+ #+BEGIN_SRC html
23
+ <html>
24
+ <head>
25
+ <title>Hello</title>
26
+ </head>
27
+ <body>
28
+ <h1>Hello</h1>
29
+
30
+
31
+ </body>
32
+ </html>
33
+ #+END_SRC
34
+
35
+ ** Ruby example
36
+
37
+ #+BEGIN_SRC ruby
38
+ class Post << ActiveRecord::Base
39
+ def print_title
40
+ puts "#{self.title}"
41
+ end
42
+ end
43
+ #+END_SRC
44
+
45
+ ** Python example
46
+
47
+ #+BEGIN_SRC python
48
+ import mapnik
49
+
50
+ m = mapnik.Map(600, 800)
51
+ m.background = Map.Color('steelblue')
52
+ #+END_SRC
53
+
54
+ ** Javascript example
55
+
56
+ #+BEGIN_SRC javascript
57
+ exports = this;
58
+
59
+ (function($){
60
+
61
+ var Posts = {};
62
+
63
+ Posts.index = function(){
64
+ // TODO
65
+ };
66
+
67
+ })(jQuery);
68
+ #+END_SRC
69
+
70
+ ** JSON example
71
+
72
+ #+BEGIN_SRC json
73
+ { name: "Waldemar"
74
+ , surname: "Quevedo"
75
+ }
76
+ #+END_SRC
77
+
78
+ ** PHP example
79
+
80
+ #+BEGIN_SRC php
81
+ echo "Hello";
82
+ phpinfo();
83
+ var_dump(some_var);
84
+ #+END_SRC
85
+
86
+ ** Elisp example
87
+
88
+ #+BEGIN_SRC scheme
89
+ (defun hello()
90
+ (interactive)
91
+ (message "hello"))
92
+ #+END_SRC
93
+
94
+ ** Not supported language example
95
+
96
+ #+BEGIN_SRC notsupported
97
+ !+!+++!++!++!++!+
98
+ #+END_SRC
99
+
@@ -0,0 +1,4 @@
1
+ <h1 class="title">This headline is in the output</h1>
2
+ <h1>This is in the output</h1>
3
+ <h2>Yet, this is in the output</h2>
4
+ <p>and this is also part of the output</p>
@@ -0,0 +1,13 @@
1
+ * This headline is in the output
2
+ * COMMENT Commented headline should not be in the output
3
+ This should not be in the output either.
4
+ ** This should not be in the output.
5
+ *** Neither this
6
+ **** nor this
7
+ ** Not in the output
8
+ * This is in the output
9
+ ** COMMENT But this is not
10
+ This is not in the output
11
+ *** Neither is this
12
+ ** Yet, this is in the output
13
+ and this is also part of the output
@@ -0,0 +1,15 @@
1
+ <p class="title">custom-todo.org</p>
2
+ <p>I copied this todo sequence from Worg. It shows a lot of power of the built-in todo functionality. Now, let&#8217;s make sure all of these are recognized (and therefore NOT exported.)</p>
3
+ <h1><span class="todo-keyword TODO">TODO </span>Sample</h1>
4
+ <ul>
5
+ <li>State &#8220;CANCELED&#8221; from &#8220;INPROGRESS&#8221; [2009-12-29 Tue 22:26] &#92; I gave up.</li>
6
+ <li>State &#8220;WAITING&#8221; from &#8220;&#8221; [2009-12-29 Tue 22:25] &#92; huh?</li>
7
+ </ul>
8
+ <h1><span class="todo-keyword INPROGRESS">INPROGRESS </span>this one&#8217;s in progress</h1>
9
+ <h1><span class="todo-keyword WAITING">WAITING </span>who am I waiting on?</h1>
10
+ <h1><span class="todo-keyword DONE">DONE </span>Finished this one!</h1>
11
+ <h1><span class="todo-keyword CANCELED">CANCELED </span>I gave up here.</h1>
12
+ <h1>DONT be fooled by just a random word in all caps.</h1>
13
+ <h1>todo &lt;== this word doesn&#8217;t match because the case doesn&#8217;t match.</h1>
14
+ <h1>TODOX</h1>
15
+ <p>don&#8217;t be fooled by the initial substring above!</p>
@@ -0,0 +1,24 @@
1
+ #+TITLE: custom-todo.org
2
+ #+DESCRIPTION: Makes sure I can handle custom todo entries
3
+ #+SEQ_TODO: TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
4
+ #+OPTIONS: todo:t
5
+
6
+ I copied this todo sequence from Worg. It shows a lot of power of the
7
+ built-in todo functionality. Now, let's make sure all of these are
8
+ recognized (and therefore NOT exported.)
9
+
10
+ * TODO Sample
11
+
12
+ - State "CANCELED" from "INPROGRESS" [2009-12-29 Tue 22:26] \\
13
+ I gave up.
14
+ - State "WAITING" from "" [2009-12-29 Tue 22:25] \\
15
+ huh?
16
+
17
+ * INPROGRESS this one's in progress
18
+ * WAITING who am I waiting on?
19
+ * DONE Finished this one!
20
+ * CANCELED I gave up here.
21
+ * DONT be fooled by just a random word in all caps.
22
+ * todo <== this word doesn't match because the case doesn't match.
23
+ * TODOX
24
+ don't be fooled by the initial substring above!
@@ -0,0 +1,15 @@
1
+ <p class="title">custom-todo.org</p>
2
+ <p>I copied this todo sequence from Worg. It shows a lot of power of the built-in todo functionality. Now, let&#8217;s make sure all of these are recognized (and therefore NOT exported.)</p>
3
+ <h1><span class="todo-keyword TODO">TODO </span>Sample</h1>
4
+ <ul>
5
+ <li>State &#8220;CANCELED&#8221; from &#8220;INPROGRESS&#8221; [2009-12-29 Tue 22:26] &#92; I gave up.</li>
6
+ <li>State &#8220;WAITING&#8221; from &#8220;&#8221; [2009-12-29 Tue 22:25] &#92; huh?</li>
7
+ </ul>
8
+ <h1><span class="todo-keyword INPROGRESS">INPROGRESS </span>this one&#8217;s in progress</h1>
9
+ <h1><span class="todo-keyword WAITING">WAITING </span>who am I waiting on?</h1>
10
+ <h1><span class="todo-keyword DONE">DONE </span>Finished this one!</h1>
11
+ <h1><span class="todo-keyword CANCELED">CANCELED </span>I gave up here.</h1>
12
+ <h1>DONT be fooled by just a random word in all caps.</h1>
13
+ <h1>todo &lt;== this word doesn&#8217;t match because the case doesn&#8217;t match.</h1>
14
+ <h1>TODOX</h1>
15
+ <p>don&#8217;t be fooled by the initial substring above!</p>
@@ -0,0 +1,24 @@
1
+ #+TITLE: custom-todo.org
2
+ #+DESCRIPTION: Makes sure I can handle custom todo entries
3
+ #+TODO: TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
4
+ #+OPTIONS: todo:t
5
+
6
+ I copied this todo sequence from Worg. It shows a lot of power of the
7
+ built-in todo functionality. Now, let's make sure all of these are
8
+ recognized (and therefore NOT exported.)
9
+
10
+ * TODO Sample
11
+
12
+ - State "CANCELED" from "INPROGRESS" [2009-12-29 Tue 22:26] \\
13
+ I gave up.
14
+ - State "WAITING" from "" [2009-12-29 Tue 22:25] \\
15
+ huh?
16
+
17
+ * INPROGRESS this one's in progress
18
+ * WAITING who am I waiting on?
19
+ * DONE Finished this one!
20
+ * CANCELED I gave up here.
21
+ * DONT be fooled by just a random word in all caps.
22
+ * todo <== this word doesn't match because the case doesn't match.
23
+ * TODOX
24
+ don't be fooled by the initial substring above!
@@ -0,0 +1,15 @@
1
+ <p class="title">custom-todo.org</p>
2
+ <p>I copied this todo sequence from Worg. It shows a lot of power of the built-in todo functionality. Now, let&#8217;s make sure all of these are recognized (and therefore NOT exported.)</p>
3
+ <h1><span class="todo-keyword TODO">TODO </span>Sample</h1>
4
+ <ul>
5
+ <li>State &#8220;CANCELED&#8221; from &#8220;INPROGRESS&#8221; [2009-12-29 Tue 22:26] &#92; I gave up.</li>
6
+ <li>State &#8220;WAITING&#8221; from &#8220;&#8221; [2009-12-29 Tue 22:25] &#92; huh?</li>
7
+ </ul>
8
+ <h1><span class="todo-keyword INPROGRESS">INPROGRESS </span>this one&#8217;s in progress</h1>
9
+ <h1><span class="todo-keyword WAITING">WAITING </span>who am I waiting on?</h1>
10
+ <h1><span class="todo-keyword DONE">DONE </span>Finished this one!</h1>
11
+ <h1><span class="todo-keyword CANCELED">CANCELED </span>I gave up here.</h1>
12
+ <h1>DONT be fooled by just a random word in all caps.</h1>
13
+ <h1>todo &lt;== this word doesn&#8217;t match because the case doesn&#8217;t match.</h1>
14
+ <h1>TODOX</h1>
15
+ <p>don&#8217;t be fooled by the initial substring above!</p>
@@ -0,0 +1,24 @@
1
+ #+TITLE: custom-todo.org
2
+ #+DESCRIPTION: Makes sure I can handle custom todo entries
3
+ #+TYP_TODO: TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
4
+ #+OPTIONS: todo:t
5
+
6
+ I copied this todo sequence from Worg. It shows a lot of power of the
7
+ built-in todo functionality. Now, let's make sure all of these are
8
+ recognized (and therefore NOT exported.)
9
+
10
+ * TODO Sample
11
+
12
+ - State "CANCELED" from "INPROGRESS" [2009-12-29 Tue 22:26] \\
13
+ I gave up.
14
+ - State "WAITING" from "" [2009-12-29 Tue 22:25] \\
15
+ huh?
16
+
17
+ * INPROGRESS this one's in progress
18
+ * WAITING who am I waiting on?
19
+ * DONE Finished this one!
20
+ * CANCELED I gave up here.
21
+ * DONT be fooled by just a random word in all caps.
22
+ * todo <== this word doesn't match because the case doesn't match.
23
+ * TODOX
24
+ don't be fooled by the initial substring above!
@@ -0,0 +1,6 @@
1
+ <p class="title">Hallo</p>
2
+ <dl>
3
+ <dt>a</dt><dd>hello</dd>
4
+ <dt>b</dt><dd>world</dd>
5
+ </dl>
6
+ <p>Text</p>
@@ -0,0 +1,6 @@
1
+ #+TITLE: Hallo
2
+
3
+ - a :: hello
4
+ - b :: world
5
+
6
+ Text
@@ -0,0 +1,4 @@
1
+ <p class="title">ENTITIES</p>
2
+ <p><code>Org-ruby</code> supports &#8220;smart double quotes,&#8221; &#8216;smart single quotes,&#8217; apostrophes for contractions like won&#8217;t and can&#8217;t, and other things&#8230; like elipses. Oh &#8211; and dashes.</p>
3
+ <p>Question: What does org-mode do for ampersands, like R&amp;R? or &amp;lt;? Answer: Those get escaped, too.</p>
4
+ <h1>&lt;Even in headlines! funner &amp; funner!&gt;</h1>