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.
- data/.bnsignore +18 -0
- data/.gitignore +2 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +36 -0
- data/History.txt +112 -0
- data/README.rdoc +67 -0
- data/Rakefile +33 -0
- data/TAGS +167 -0
- data/announcement.txt +24 -0
- data/bin/org-ruby +45 -0
- data/lib/org-ruby.rb +55 -0
- data/lib/org-ruby/headline.rb +110 -0
- data/lib/org-ruby/html_output_buffer.rb +273 -0
- data/lib/org-ruby/html_symbol_replace.rb +345 -0
- data/lib/org-ruby/line.rb +244 -0
- data/lib/org-ruby/output_buffer.rb +237 -0
- data/lib/org-ruby/parser.rb +366 -0
- data/lib/org-ruby/regexp_helper.rb +192 -0
- data/lib/org-ruby/textile_output_buffer.rb +102 -0
- data/lib/org-ruby/textile_symbol_replace.rb +346 -0
- data/lib/org-ruby/tilt.rb +29 -0
- data/org-ruby.gemspec +40 -0
- data/spec/data/freeform-example.org +113 -0
- data/spec/data/freeform.org +111 -0
- data/spec/data/hyp-planning.org +335 -0
- data/spec/data/remember.org +53 -0
- data/spec/headline_spec.rb +65 -0
- data/spec/html_examples/advanced-code.html +81 -0
- data/spec/html_examples/advanced-code.org +106 -0
- data/spec/html_examples/advanced-lists.html +31 -0
- data/spec/html_examples/advanced-lists.org +31 -0
- data/spec/html_examples/block_code.html +28 -0
- data/spec/html_examples/block_code.org +35 -0
- data/spec/html_examples/blockcomment.html +3 -0
- data/spec/html_examples/blockcomment.org +15 -0
- data/spec/html_examples/blockquote.html +7 -0
- data/spec/html_examples/blockquote.org +13 -0
- data/spec/html_examples/center.html +6 -0
- data/spec/html_examples/center.org +7 -0
- data/spec/html_examples/code-comment.html +18 -0
- data/spec/html_examples/code-comment.org +22 -0
- data/spec/html_examples/code-syntax.html +98 -0
- data/spec/html_examples/code-syntax.org +99 -0
- data/spec/html_examples/comment-trees.html +4 -0
- data/spec/html_examples/comment-trees.org +13 -0
- data/spec/html_examples/custom-seq-todo.html +15 -0
- data/spec/html_examples/custom-seq-todo.org +24 -0
- data/spec/html_examples/custom-todo.html +15 -0
- data/spec/html_examples/custom-todo.org +24 -0
- data/spec/html_examples/custom-typ-todo.html +15 -0
- data/spec/html_examples/custom-typ-todo.org +24 -0
- data/spec/html_examples/deflist.html +6 -0
- data/spec/html_examples/deflist.org +6 -0
- data/spec/html_examples/entities.html +4 -0
- data/spec/html_examples/entities.org +11 -0
- data/spec/html_examples/escape-pre.html +6 -0
- data/spec/html_examples/escape-pre.org +6 -0
- data/spec/html_examples/export-exclude-only.html +13 -0
- data/spec/html_examples/export-exclude-only.org +81 -0
- data/spec/html_examples/export-keywords.html +4 -0
- data/spec/html_examples/export-keywords.org +18 -0
- data/spec/html_examples/export-tags.html +8 -0
- data/spec/html_examples/export-tags.org +82 -0
- data/spec/html_examples/export-title.html +2 -0
- data/spec/html_examples/export-title.org +4 -0
- data/spec/html_examples/footnotes.html +10 -0
- data/spec/html_examples/footnotes.org +7 -0
- data/spec/html_examples/html-literal.html +2 -0
- data/spec/html_examples/html-literal.org +6 -0
- data/spec/html_examples/inline-formatting.html +20 -0
- data/spec/html_examples/inline-formatting.org +33 -0
- data/spec/html_examples/inline-images.html +10 -0
- data/spec/html_examples/inline-images.org +15 -0
- data/spec/html_examples/link-features.html +8 -0
- data/spec/html_examples/link-features.org +19 -0
- data/spec/html_examples/lists.html +23 -0
- data/spec/html_examples/lists.org +47 -0
- data/spec/html_examples/metadata-comment.html +27 -0
- data/spec/html_examples/metadata-comment.org +30 -0
- data/spec/html_examples/only-list.html +5 -0
- data/spec/html_examples/only-list.org +3 -0
- data/spec/html_examples/only-table.html +6 -0
- data/spec/html_examples/only-table.org +5 -0
- data/spec/html_examples/skip-header.html +3 -0
- data/spec/html_examples/skip-header.org +28 -0
- data/spec/html_examples/skip-table.html +4 -0
- data/spec/html_examples/skip-table.org +19 -0
- data/spec/html_examples/subsupscript-nil.html +3 -0
- data/spec/html_examples/subsupscript-nil.org +6 -0
- data/spec/html_examples/subsupscript.html +3 -0
- data/spec/html_examples/subsupscript.org +5 -0
- data/spec/html_examples/tables.html +35 -0
- data/spec/html_examples/tables.org +50 -0
- data/spec/html_examples/text.html +2 -0
- data/spec/html_examples/text.org +16 -0
- data/spec/line_spec.rb +155 -0
- data/spec/output_buffer_spec.rb +19 -0
- data/spec/parser_spec.rb +152 -0
- data/spec/regexp_helper_spec.rb +57 -0
- data/spec/spec_helper.rb +20 -0
- data/spec/textile_examples/block_code.org +35 -0
- data/spec/textile_examples/block_code.textile +29 -0
- data/spec/textile_examples/blockquote.org +13 -0
- data/spec/textile_examples/blockquote.textile +11 -0
- data/spec/textile_examples/center.org +7 -0
- data/spec/textile_examples/center.textile +6 -0
- data/spec/textile_examples/footnotes.org +7 -0
- data/spec/textile_examples/footnotes.textile +8 -0
- data/spec/textile_examples/keywords.org +13 -0
- data/spec/textile_examples/keywords.textile +11 -0
- data/spec/textile_examples/links.org +11 -0
- data/spec/textile_examples/links.textile +10 -0
- data/spec/textile_examples/lists.org +36 -0
- data/spec/textile_examples/lists.textile +20 -0
- data/spec/textile_examples/single-space-plain-list.org +13 -0
- data/spec/textile_examples/single-space-plain-list.textile +10 -0
- data/spec/textile_examples/tables.org +50 -0
- data/spec/textile_examples/tables.textile +40 -0
- data/spec/textile_output_buffer_spec.rb +21 -0
- data/tasks/test_case.rake +49 -0
- data/test/test_orgmode_parser.rb +0 -0
- data/util/gen-special-replace.el +37 -0
- metadata +244 -0
|
@@ -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 <: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"><html></span>
|
|
23
|
+
<span style="color:#070"><head></span>
|
|
24
|
+
<span style="color:#070"><title></span>Hello<span style="color:#070"></title></span>
|
|
25
|
+
<span style="color:#070"></head></span>
|
|
26
|
+
<span style="color:#070"><body></span>
|
|
27
|
+
<span style="color:#070"><h1></span>Hello<span style="color:#070"></h1></span>
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
<span style="color:#070"></body></span>
|
|
31
|
+
<span style="color:#070"></html></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> << <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">"</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">"</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">"</span><span style="color:#D20">Waldemar</span><span style="color:#710">"</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">"</span><span style="color:#D20">Quevedo</span><span style="color:#710">"</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">"</span><span style="color:#D20">Hello</span><span style="color:#710">"</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 "hello"))
|
|
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,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’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 “CANCELED” from “INPROGRESS” [2009-12-29 Tue 22:26] \ I gave up.</li>
|
|
6
|
+
<li>State “WAITING” from “” [2009-12-29 Tue 22:25] \ huh?</li>
|
|
7
|
+
</ul>
|
|
8
|
+
<h1><span class="todo-keyword INPROGRESS">INPROGRESS </span>this one’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 <== this word doesn’t match because the case doesn’t match.</h1>
|
|
14
|
+
<h1>TODOX</h1>
|
|
15
|
+
<p>don’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’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 “CANCELED” from “INPROGRESS” [2009-12-29 Tue 22:26] \ I gave up.</li>
|
|
6
|
+
<li>State “WAITING” from “” [2009-12-29 Tue 22:25] \ huh?</li>
|
|
7
|
+
</ul>
|
|
8
|
+
<h1><span class="todo-keyword INPROGRESS">INPROGRESS </span>this one’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 <== this word doesn’t match because the case doesn’t match.</h1>
|
|
14
|
+
<h1>TODOX</h1>
|
|
15
|
+
<p>don’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’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 “CANCELED” from “INPROGRESS” [2009-12-29 Tue 22:26] \ I gave up.</li>
|
|
6
|
+
<li>State “WAITING” from “” [2009-12-29 Tue 22:25] \ huh?</li>
|
|
7
|
+
</ul>
|
|
8
|
+
<h1><span class="todo-keyword INPROGRESS">INPROGRESS </span>this one’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 <== this word doesn’t match because the case doesn’t match.</h1>
|
|
14
|
+
<h1>TODOX</h1>
|
|
15
|
+
<p>don’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,4 @@
|
|
|
1
|
+
<p class="title">ENTITIES</p>
|
|
2
|
+
<p><code>Org-ruby</code> supports “smart double quotes,” ‘smart single quotes,’ apostrophes for contractions like won’t and can’t, and other things… like elipses. Oh – and dashes.</p>
|
|
3
|
+
<p>Question: What does org-mode do for ampersands, like R&R? or &lt;? Answer: Those get escaped, too.</p>
|
|
4
|
+
<h1><Even in headlines! funner & funner!></h1>
|