wallyqs-org-ruby 0.6.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/History.txt +41 -11
  2. data/README.rdoc +55 -50
  3. data/bin/org-ruby +11 -5
  4. data/lib/org-ruby.rb +20 -27
  5. data/lib/org-ruby/headline.rb +0 -10
  6. data/lib/org-ruby/html_output_buffer.rb +224 -143
  7. data/lib/org-ruby/html_symbol_replace.rb +359 -340
  8. data/lib/org-ruby/line.rb +91 -30
  9. data/lib/org-ruby/output_buffer.rb +147 -139
  10. data/lib/org-ruby/parser.rb +45 -111
  11. data/lib/org-ruby/regexp_helper.rb +52 -57
  12. data/lib/org-ruby/textile_output_buffer.rb +90 -37
  13. data/lib/org-ruby/textile_symbol_replace.rb +360 -341
  14. metadata +39 -200
  15. data/.bnsignore +0 -18
  16. data/.gitignore +0 -2
  17. data/Gemfile +0 -7
  18. data/Gemfile.lock +0 -36
  19. data/Rakefile +0 -33
  20. data/TAGS +0 -167
  21. data/announcement.txt +0 -24
  22. data/org-ruby.gemspec +0 -40
  23. data/spec/data/freeform-example.org +0 -113
  24. data/spec/data/freeform.org +0 -111
  25. data/spec/data/hyp-planning.org +0 -335
  26. data/spec/data/remember.org +0 -53
  27. data/spec/headline_spec.rb +0 -65
  28. data/spec/html_examples/advanced-code.html +0 -81
  29. data/spec/html_examples/advanced-code.org +0 -106
  30. data/spec/html_examples/advanced-lists.html +0 -31
  31. data/spec/html_examples/advanced-lists.org +0 -31
  32. data/spec/html_examples/block_code.html +0 -28
  33. data/spec/html_examples/block_code.org +0 -35
  34. data/spec/html_examples/blockcomment.html +0 -3
  35. data/spec/html_examples/blockcomment.org +0 -15
  36. data/spec/html_examples/blockquote.html +0 -7
  37. data/spec/html_examples/blockquote.org +0 -13
  38. data/spec/html_examples/center.html +0 -6
  39. data/spec/html_examples/center.org +0 -7
  40. data/spec/html_examples/code-comment.html +0 -18
  41. data/spec/html_examples/code-comment.org +0 -22
  42. data/spec/html_examples/code-syntax.html +0 -98
  43. data/spec/html_examples/code-syntax.org +0 -99
  44. data/spec/html_examples/comment-trees.html +0 -4
  45. data/spec/html_examples/comment-trees.org +0 -13
  46. data/spec/html_examples/custom-seq-todo.html +0 -15
  47. data/spec/html_examples/custom-seq-todo.org +0 -24
  48. data/spec/html_examples/custom-todo.html +0 -15
  49. data/spec/html_examples/custom-todo.org +0 -24
  50. data/spec/html_examples/custom-typ-todo.html +0 -15
  51. data/spec/html_examples/custom-typ-todo.org +0 -24
  52. data/spec/html_examples/deflist.html +0 -6
  53. data/spec/html_examples/deflist.org +0 -6
  54. data/spec/html_examples/entities.html +0 -4
  55. data/spec/html_examples/entities.org +0 -11
  56. data/spec/html_examples/escape-pre.html +0 -6
  57. data/spec/html_examples/escape-pre.org +0 -6
  58. data/spec/html_examples/export-exclude-only.html +0 -13
  59. data/spec/html_examples/export-exclude-only.org +0 -81
  60. data/spec/html_examples/export-keywords.html +0 -4
  61. data/spec/html_examples/export-keywords.org +0 -18
  62. data/spec/html_examples/export-tags.html +0 -8
  63. data/spec/html_examples/export-tags.org +0 -82
  64. data/spec/html_examples/export-title.html +0 -2
  65. data/spec/html_examples/export-title.org +0 -4
  66. data/spec/html_examples/footnotes.html +0 -10
  67. data/spec/html_examples/footnotes.org +0 -7
  68. data/spec/html_examples/html-literal.html +0 -2
  69. data/spec/html_examples/html-literal.org +0 -6
  70. data/spec/html_examples/inline-formatting.html +0 -20
  71. data/spec/html_examples/inline-formatting.org +0 -33
  72. data/spec/html_examples/inline-images.html +0 -10
  73. data/spec/html_examples/inline-images.org +0 -15
  74. data/spec/html_examples/link-features.html +0 -8
  75. data/spec/html_examples/link-features.org +0 -19
  76. data/spec/html_examples/lists.html +0 -23
  77. data/spec/html_examples/lists.org +0 -47
  78. data/spec/html_examples/metadata-comment.html +0 -27
  79. data/spec/html_examples/metadata-comment.org +0 -30
  80. data/spec/html_examples/only-list.html +0 -5
  81. data/spec/html_examples/only-list.org +0 -3
  82. data/spec/html_examples/only-table.html +0 -6
  83. data/spec/html_examples/only-table.org +0 -5
  84. data/spec/html_examples/skip-header.html +0 -3
  85. data/spec/html_examples/skip-header.org +0 -28
  86. data/spec/html_examples/skip-table.html +0 -4
  87. data/spec/html_examples/skip-table.org +0 -19
  88. data/spec/html_examples/subsupscript-nil.html +0 -3
  89. data/spec/html_examples/subsupscript-nil.org +0 -6
  90. data/spec/html_examples/subsupscript.html +0 -3
  91. data/spec/html_examples/subsupscript.org +0 -5
  92. data/spec/html_examples/tables.html +0 -35
  93. data/spec/html_examples/tables.org +0 -50
  94. data/spec/html_examples/text.html +0 -2
  95. data/spec/html_examples/text.org +0 -16
  96. data/spec/line_spec.rb +0 -155
  97. data/spec/output_buffer_spec.rb +0 -19
  98. data/spec/parser_spec.rb +0 -152
  99. data/spec/regexp_helper_spec.rb +0 -57
  100. data/spec/spec_helper.rb +0 -20
  101. data/spec/textile_examples/block_code.org +0 -35
  102. data/spec/textile_examples/block_code.textile +0 -29
  103. data/spec/textile_examples/blockquote.org +0 -13
  104. data/spec/textile_examples/blockquote.textile +0 -11
  105. data/spec/textile_examples/center.org +0 -7
  106. data/spec/textile_examples/center.textile +0 -6
  107. data/spec/textile_examples/footnotes.org +0 -7
  108. data/spec/textile_examples/footnotes.textile +0 -8
  109. data/spec/textile_examples/keywords.org +0 -13
  110. data/spec/textile_examples/keywords.textile +0 -11
  111. data/spec/textile_examples/links.org +0 -11
  112. data/spec/textile_examples/links.textile +0 -10
  113. data/spec/textile_examples/lists.org +0 -36
  114. data/spec/textile_examples/lists.textile +0 -20
  115. data/spec/textile_examples/single-space-plain-list.org +0 -13
  116. data/spec/textile_examples/single-space-plain-list.textile +0 -10
  117. data/spec/textile_examples/tables.org +0 -50
  118. data/spec/textile_examples/tables.textile +0 -40
  119. data/spec/textile_output_buffer_spec.rb +0 -21
  120. data/tasks/test_case.rake +0 -49
  121. data/test/test_orgmode_parser.rb +0 -0
  122. data/util/gen-special-replace.el +0 -37
@@ -1,7 +0,0 @@
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>
@@ -1,13 +0,0 @@
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!
@@ -1,6 +0,0 @@
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>
@@ -1,7 +0,0 @@
1
- #+TITLE: Fou
2
-
3
- not center
4
- #+BEGIN_CENTER
5
- center
6
- #+END_CENTER
7
- not center, again
@@ -1,18 +0,0 @@
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>
@@ -1,22 +0,0 @@
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
-
@@ -1,98 +0,0 @@
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>
@@ -1,99 +0,0 @@
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
-
@@ -1,4 +0,0 @@
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>
@@ -1,13 +0,0 @@
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
@@ -1,15 +0,0 @@
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>
@@ -1,24 +0,0 @@
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!
@@ -1,15 +0,0 @@
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>
@@ -1,24 +0,0 @@
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!
@@ -1,15 +0,0 @@
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>
@@ -1,24 +0,0 @@
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!
@@ -1,6 +0,0 @@
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>
@@ -1,6 +0,0 @@
1
- #+TITLE: Hallo
2
-
3
- - a :: hello
4
- - b :: world
5
-
6
- Text
@@ -1,4 +0,0 @@
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>