maruku 0.6.1 → 0.7.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/MIT-LICENSE.txt +20 -0
- data/bin/maruku +153 -152
- data/bin/marutex +2 -29
- data/data/entities.xml +261 -0
- data/docs/math.md +14 -18
- data/lib/maruku.rb +65 -77
- data/lib/maruku/attributes.rb +109 -214
- data/lib/maruku/defaults.rb +45 -67
- data/lib/maruku/document.rb +43 -0
- data/lib/maruku/element.rb +112 -0
- data/lib/maruku/errors.rb +71 -0
- data/lib/maruku/ext/div.rb +105 -113
- data/lib/maruku/ext/fenced_code.rb +97 -0
- data/lib/maruku/ext/math.rb +22 -26
- data/lib/maruku/ext/math/elements.rb +20 -26
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +92 -104
- data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +33 -26
- data/lib/maruku/ext/math/mathml_engines/none.rb +11 -19
- data/lib/maruku/ext/math/mathml_engines/ritex.rb +2 -4
- data/lib/maruku/ext/math/parsing.rb +107 -113
- data/lib/maruku/ext/math/to_html.rb +184 -187
- data/lib/maruku/ext/math/to_latex.rb +30 -21
- data/lib/maruku/helpers.rb +158 -257
- data/lib/maruku/html.rb +254 -0
- data/lib/maruku/input/charsource.rb +272 -319
- data/lib/maruku/input/extensions.rb +62 -63
- data/lib/maruku/input/html_helper.rb +220 -189
- data/lib/maruku/input/linesource.rb +90 -110
- data/lib/maruku/input/mdline.rb +129 -0
- data/lib/maruku/input/parse_block.rb +618 -612
- data/lib/maruku/input/parse_doc.rb +145 -215
- data/lib/maruku/input/parse_span.rb +658 -0
- data/lib/maruku/input/rubypants.rb +200 -128
- data/lib/maruku/inspect_element.rb +60 -0
- data/lib/maruku/maruku.rb +10 -31
- data/lib/maruku/output/entity_table.rb +33 -0
- data/lib/maruku/output/s5/fancy.rb +462 -462
- data/lib/maruku/output/s5/to_s5.rb +115 -135
- data/lib/maruku/output/to_html.rb +898 -983
- data/lib/maruku/output/to_latex.rb +561 -560
- data/lib/maruku/output/to_markdown.rb +207 -162
- data/lib/maruku/output/to_s.rb +11 -52
- data/lib/maruku/string_utils.rb +129 -179
- data/lib/maruku/toc.rb +185 -196
- data/lib/maruku/version.rb +33 -38
- data/spec/block_docs/abbrev.md +776 -0
- data/{tests/unittest → spec/block_docs}/abbreviations.md +11 -20
- data/{tests/unittest → spec/block_docs}/alt.md +2 -14
- data/{tests/unittest/pending → spec/block_docs}/amps.md +1 -13
- data/{tests/unittest → spec/block_docs}/attributes/att2.md +0 -12
- data/{tests/unittest → spec/block_docs}/attributes/att3.md +2 -14
- data/{tests/unittest → spec/block_docs}/attributes/attributes.md +12 -16
- data/{tests/unittest → spec/block_docs}/attributes/circular.md +0 -12
- data/{tests/unittest → spec/block_docs}/attributes/default.md +1 -13
- data/{tests/unittest → spec/block_docs}/blank.md +0 -12
- data/{tests/unittest → spec/block_docs}/blanks_in_code.md +16 -15
- data/{tests/unittest/loss.md → spec/block_docs/bug_def.md} +6 -18
- data/{tests/unittest → spec/block_docs}/bug_table.md +3 -15
- data/{tests/unittest → spec/block_docs}/code.md +7 -14
- data/{tests/unittest → spec/block_docs}/code2.md +4 -14
- data/{tests/unittest → spec/block_docs}/code3.md +12 -16
- data/{tests/unittest → spec/block_docs}/data_loss.md +2 -14
- data/{tests/unittest → spec/block_docs}/divs/div1.md +0 -12
- data/{tests/unittest → spec/block_docs}/divs/div2.md +0 -12
- data/{tests/unittest → spec/block_docs}/divs/div3_nest.md +3 -15
- data/{tests/unittest → spec/block_docs}/easy.md +1 -13
- data/spec/block_docs/email.md +29 -0
- data/{tests/unittest/pending → spec/block_docs}/empty_cells.md +3 -15
- data/{tests/unittest → spec/block_docs}/encoding/iso-8859-1.md +1 -14
- data/{tests/unittest → spec/block_docs}/encoding/utf-8.md +0 -12
- data/{tests/unittest → spec/block_docs}/entities.md +27 -29
- data/{tests/unittest/notyet → spec/block_docs}/escape.md +2 -14
- data/{tests/unittest → spec/block_docs}/escaping.md +11 -22
- data/{tests/unittest → spec/block_docs}/extra_dl.md +2 -13
- data/{tests/unittest → spec/block_docs}/extra_header_id.md +14 -20
- data/{tests/unittest → spec/block_docs}/extra_table1.md +3 -15
- data/spec/block_docs/fenced_code_blocks.md +66 -0
- data/spec/block_docs/fenced_code_blocks_highlighted.md +18 -0
- data/{tests/unittest → spec/block_docs}/footnotes.md +12 -24
- data/spec/block_docs/footnotes2.md +78 -0
- data/spec/block_docs/hard.md +25 -0
- data/spec/block_docs/header_after_par.md +62 -0
- data/{tests/unittest → spec/block_docs}/headers.md +10 -18
- data/{tests/unittest → spec/block_docs}/hex_entities.md +7 -18
- data/{tests/unittest → spec/block_docs}/hrule.md +5 -12
- data/{tests/unittest → spec/block_docs}/html3.md +1 -13
- data/{tests/unittest → spec/block_docs}/html4.md +2 -14
- data/{tests/unittest → spec/block_docs}/html5.md +2 -14
- data/spec/block_docs/html_block_in_para.md +22 -0
- data/spec/block_docs/html_inline.md +25 -0
- data/spec/block_docs/html_trailing.md +31 -0
- data/spec/block_docs/ie.md +62 -0
- data/spec/block_docs/iframe.md +29 -0
- data/{tests/unittest → spec/block_docs}/images.md +22 -28
- data/{tests/unittest → spec/block_docs}/images2.md +7 -17
- data/{tests/unittest → spec/block_docs}/inline_html.md +37 -67
- data/{tests/unittest → spec/block_docs}/inline_html2.md +1 -13
- data/spec/block_docs/inline_html_beginning.md +10 -0
- data/spec/block_docs/issue20.md +9 -0
- data/spec/block_docs/issue26.md +22 -0
- data/spec/block_docs/issue29.md +9 -0
- data/spec/block_docs/issue30.md +30 -0
- data/spec/block_docs/issue31.md +25 -0
- data/spec/block_docs/issue40.md +40 -0
- data/spec/block_docs/issue64.md +55 -0
- data/spec/block_docs/issue67.md +19 -0
- data/spec/block_docs/issue70.md +11 -0
- data/spec/block_docs/issue72.md +17 -0
- data/spec/block_docs/issue74.md +38 -0
- data/spec/block_docs/issue79.md +15 -0
- data/spec/block_docs/issue83.md +13 -0
- data/spec/block_docs/issue85.md +25 -0
- data/spec/block_docs/issue88.md +19 -0
- data/spec/block_docs/issue89.md +12 -0
- data/spec/block_docs/issue90.md +38 -0
- data/{tests/unittest/pending → spec/block_docs}/link.md +21 -18
- data/{tests/unittest → spec/block_docs}/links.md +33 -32
- data/spec/block_docs/links2.md +21 -0
- data/{tests/unittest → spec/block_docs}/list1.md +0 -12
- data/{tests/unittest → spec/block_docs}/list12.md +2 -14
- data/{tests/unittest → spec/block_docs}/list2.md +2 -14
- data/spec/block_docs/list_multipara.md +42 -0
- data/{tests/unittest → spec/block_docs}/lists.md +28 -29
- data/{tests/unittest → spec/block_docs}/lists10.md +2 -14
- data/spec/block_docs/lists11.md +23 -0
- data/spec/block_docs/lists12.md +43 -0
- data/spec/block_docs/lists13.md +55 -0
- data/spec/block_docs/lists14.md +61 -0
- data/spec/block_docs/lists15.md +36 -0
- data/spec/block_docs/lists6.md +88 -0
- data/spec/block_docs/lists7b.md +58 -0
- data/spec/block_docs/lists9.md +53 -0
- data/{tests/unittest → spec/block_docs}/lists_after_paragraph.md +19 -25
- data/spec/block_docs/lists_blank.md +35 -0
- data/{tests/unittest/list3.md → spec/block_docs/lists_blockquote_code.md} +2 -14
- data/{tests/unittest/list4.md → spec/block_docs/lists_need_blank_line.md} +50 -21
- data/spec/block_docs/lists_nested.md +44 -0
- data/spec/block_docs/lists_nested_blankline.md +28 -0
- data/spec/block_docs/lists_nested_deep.md +43 -0
- data/{tests/unittest → spec/block_docs}/lists_ol.md +37 -54
- data/spec/block_docs/lists_paraindent.md +47 -0
- data/spec/block_docs/lists_tab.md +54 -0
- data/spec/block_docs/loss.md +17 -0
- data/spec/block_docs/math-blahtex/equations.md +30 -0
- data/spec/block_docs/math-blahtex/inline.md +48 -0
- data/spec/block_docs/math-blahtex/math2.md +45 -0
- data/spec/block_docs/math-blahtex/table.md +25 -0
- data/spec/block_docs/math/embedded_invalid_svg.md +79 -0
- data/spec/block_docs/math/embedded_svg.md +97 -0
- data/spec/block_docs/math/equations.md +44 -0
- data/{tests/unittest → spec/block_docs}/math/inline.md +7 -19
- data/spec/block_docs/math/math2.md +45 -0
- data/{tests/unittest → spec/block_docs}/math/notmath.md +0 -12
- data/spec/block_docs/math/raw_mathml.md +87 -0
- data/spec/block_docs/math/table.md +25 -0
- data/{tests/unittest → spec/block_docs}/math/table2.md +5 -17
- data/{tests/unittest → spec/block_docs}/misc_sw.md +181 -118
- data/{tests/unittest → spec/block_docs}/olist.md +6 -18
- data/{tests/unittest → spec/block_docs}/one.md +0 -12
- data/{tests/unittest → spec/block_docs}/paragraph.md +0 -12
- data/{tests/unittest → spec/block_docs}/paragraph_rules/dont_merge_ref.md +4 -12
- data/{tests/unittest → spec/block_docs}/paragraph_rules/tab_is_blank.md +0 -12
- data/{tests/unittest → spec/block_docs}/paragraphs.md +1 -13
- data/{tests/unittest → spec/block_docs}/recover/recover_links.md +4 -16
- data/{tests/unittest/pending/ref.md → spec/block_docs/ref_with_period.md} +7 -16
- data/spec/block_docs/ref_with_title.md +22 -0
- data/{tests/unittest → spec/block_docs}/references/long_example.md +16 -23
- data/{tests/unittest → spec/block_docs}/references/spaces_and_numbers.md +0 -12
- data/{tests/unittest → spec/block_docs}/smartypants.md +24 -31
- data/{tests/unittest → spec/block_docs}/syntax_hl.md +13 -17
- data/{tests/unittest → spec/block_docs}/table_attributes.md +2 -14
- data/spec/block_docs/tables.md +58 -0
- data/{tests/unittest → spec/block_docs}/test.md +1 -13
- data/{tests/unittest/notyet → spec/block_docs}/ticks.md +1 -13
- data/spec/block_docs/toc.md +87 -0
- data/{tests/unittest/notyet → spec/block_docs}/triggering.md +14 -25
- data/{tests/unittest → spec/block_docs}/underscore_in_words.md +0 -12
- data/{tests/unittest → spec/block_docs}/wrapping.md +4 -16
- data/spec/block_docs/xml.md +33 -0
- data/{tests/unittest → spec/block_docs}/xml2.md +0 -12
- data/spec/block_docs/xml3.md +24 -0
- data/{tests/unittest → spec/block_docs}/xml_instruction.md +9 -20
- data/spec/block_spec.rb +110 -0
- data/spec/cli_spec.rb +8 -0
- data/spec/span_spec.rb +256 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/to_html_utf8_spec.rb +13 -0
- metadata +205 -243
- metadata.gz.sig +3 -0
- data/Rakefile +0 -48
- data/bin/marudown +0 -29
- data/bin/marutest +0 -345
- data/docs/changelog.md +0 -334
- data/lib/maruku/errors_management.rb +0 -92
- data/lib/maruku/ext/math/latex_fix.rb +0 -12
- data/lib/maruku/input/parse_span_better.rb +0 -746
- data/lib/maruku/input/type_detection.rb +0 -147
- data/lib/maruku/output/to_latex_entities.rb +0 -367
- data/lib/maruku/output/to_latex_strings.rb +0 -64
- data/lib/maruku/structures.rb +0 -167
- data/lib/maruku/structures_inspect.rb +0 -87
- data/lib/maruku/structures_iterators.rb +0 -61
- data/lib/maruku/tests/benchmark.rb +0 -82
- data/lib/maruku/tests/new_parser.rb +0 -373
- data/lib/maruku/tests/tests.rb +0 -136
- data/lib/maruku/usage/example1.rb +0 -33
- data/tests/bugs/code_in_links.md +0 -101
- data/tests/bugs/complex_escaping.md +0 -38
- data/tests/math/syntax.md +0 -46
- data/tests/math_usage/document.md +0 -13
- data/tests/others/abbreviations.md +0 -11
- data/tests/others/blank.md +0 -4
- data/tests/others/code.md +0 -5
- data/tests/others/code2.md +0 -8
- data/tests/others/code3.md +0 -16
- data/tests/others/email.md +0 -4
- data/tests/others/entities.md +0 -19
- data/tests/others/escaping.md +0 -16
- data/tests/others/extra_dl.md +0 -101
- data/tests/others/extra_header_id.md +0 -13
- data/tests/others/extra_table1.md +0 -40
- data/tests/others/footnotes.md +0 -17
- data/tests/others/headers.md +0 -10
- data/tests/others/hrule.md +0 -10
- data/tests/others/images.md +0 -20
- data/tests/others/inline_html.md +0 -42
- data/tests/others/links.md +0 -38
- data/tests/others/list1.md +0 -4
- data/tests/others/list2.md +0 -5
- data/tests/others/list3.md +0 -8
- data/tests/others/lists.md +0 -32
- data/tests/others/lists_after_paragraph.md +0 -44
- data/tests/others/lists_ol.md +0 -39
- data/tests/others/misc_sw.md +0 -105
- data/tests/others/one.md +0 -1
- data/tests/others/paragraphs.md +0 -13
- data/tests/others/sss06.md +0 -352
- data/tests/others/test.md +0 -4
- data/tests/s5/s5profiling.md +0 -48
- data/tests/unittest/bug_def.md +0 -28
- data/tests/unittest/email.md +0 -32
- data/tests/unittest/html2.md +0 -34
- data/tests/unittest/ie.md +0 -61
- data/tests/unittest/links2.md +0 -34
- data/tests/unittest/lists11.md +0 -28
- data/tests/unittest/lists6.md +0 -53
- data/tests/unittest/lists9.md +0 -76
- data/tests/unittest/math/equations.md +0 -86
- data/tests/unittest/math/math2.md +0 -57
- data/tests/unittest/math/table.md +0 -37
- data/tests/unittest/notyet/header_after_par.md +0 -70
- data/tests/unittest/red_tests/abbrev.md +0 -1388
- data/tests/unittest/red_tests/lists7.md +0 -68
- data/tests/unittest/red_tests/lists7b.md +0 -128
- data/tests/unittest/red_tests/lists8.md +0 -76
- data/tests/unittest/red_tests/xml.md +0 -70
- data/tests/unittest/xml3.md +0 -38
- data/tests/utf8-files/simple.md +0 -1
- data/unit_test_block.sh +0 -5
- data/unit_test_span.sh +0 -3
@@ -0,0 +1,44 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
require 'maruku/ext/math';{:html_math_engine => 'itex2mml'}
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
$$ x = y $$
|
7
|
+
|
8
|
+
$$ x
|
9
|
+
= y $$
|
10
|
+
|
11
|
+
$$
|
12
|
+
x = y $$
|
13
|
+
|
14
|
+
$$ x = y
|
15
|
+
$$
|
16
|
+
|
17
|
+
*** Output of inspect ***
|
18
|
+
md_el(:document,[
|
19
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y ",:num=>nil},[]),
|
20
|
+
md_el(:equation,[],{:label=>nil,:math=>" x \n= y \n",:num=>nil},[]),
|
21
|
+
md_el(:equation,[],{:label=>nil,:math=>" \nx = y \n",:num=>nil},[]),
|
22
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y \n\n",:num=>nil},[])
|
23
|
+
],{},[])
|
24
|
+
*** Output of to_html ***
|
25
|
+
<div class="maruku-equation"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><mi>x</mi><mo>=</mo><mi>y</mi></math><span class="maruku-eq-tex"><code style="display: none">x = y</code></span></div><div class="maruku-equation"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><mi>x</mi><mo>=</mo><mi>y</mi></math><span class="maruku-eq-tex"><code style="display: none">x
|
26
|
+
= y</code></span></div><div class="maruku-equation"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><mi>x</mi><mo>=</mo><mi>y</mi></math><span class="maruku-eq-tex"><code style="display: none">x = y</code></span></div><div class="maruku-equation"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><mi>x</mi><mo>=</mo><mi>y</mi></math><span class="maruku-eq-tex"><code style="display: none">x = y</code></span></div>
|
27
|
+
*** Output of to_latex ***
|
28
|
+
\begin{displaymath}
|
29
|
+
x = y
|
30
|
+
\end{displaymath}
|
31
|
+
\begin{displaymath}
|
32
|
+
x
|
33
|
+
= y
|
34
|
+
\end{displaymath}
|
35
|
+
\begin{displaymath}
|
36
|
+
x = y
|
37
|
+
\end{displaymath}
|
38
|
+
\begin{displaymath}
|
39
|
+
x = y
|
40
|
+
\end{displaymath}
|
41
|
+
*** Output of to_md ***
|
42
|
+
|
43
|
+
*** Output of to_s ***
|
44
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
*** Parameters: ***
|
3
|
-
require 'maruku/ext/math'; {}
|
3
|
+
require 'maruku/ext/math'; {:html_math_engine => 'itex2mml'}
|
4
4
|
*** Markdown input: ***
|
5
5
|
Here are some formulas:
|
6
6
|
|
@@ -13,8 +13,8 @@ That's it, nothing else is supported.
|
|
13
13
|
md_el(:document,[
|
14
14
|
md_par(["Here are some formulas:"]),
|
15
15
|
md_el(:ul,[
|
16
|
-
md_el(:
|
17
|
-
md_el(:
|
16
|
+
md_el(:li,[md_el(:inline_math,[],{:math=>"\\alpha"},[])],{:want_my_paragraph=>false},[]),
|
17
|
+
md_el(:li,[md_el(:inline_math,[],{:math=>"x^{n}+y^{n} \\neq z^{n}"},[])],{:want_my_paragraph=>false},[])
|
18
18
|
],{},[]),
|
19
19
|
md_par(["That", md_entity("rsquo"), "s it, nothing else is supported."])
|
20
20
|
],{},[])
|
@@ -22,12 +22,12 @@ md_el(:document,[
|
|
22
22
|
<p>Here are some formulas:</p>
|
23
23
|
|
24
24
|
<ul>
|
25
|
-
<li><
|
25
|
+
<li><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" class="maruku-mathml"><mi>α</mi></math></li>
|
26
26
|
|
27
|
-
<li><
|
27
|
+
<li><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" class="maruku-mathml"><msup><mi>x</mi> <mi>n</mi></msup><mo>+</mo><msup><mi>y</mi> <mi>n</mi></msup><mo>≠</mo><msup><mi>z</mi> <mi>n</mi></msup></math></li>
|
28
28
|
</ul>
|
29
29
|
|
30
|
-
<p>That
|
30
|
+
<p>That’s it, nothing else is supported.</p>
|
31
31
|
*** Output of to_latex ***
|
32
32
|
Here are some formulas:
|
33
33
|
|
@@ -36,7 +36,7 @@ Here are some formulas:
|
|
36
36
|
\item $x^{n}+y^{n} \neq z^{n}$
|
37
37
|
|
38
38
|
\end{itemize}
|
39
|
-
That'
|
39
|
+
That's it, nothing else is supported.
|
40
40
|
*** Output of to_md ***
|
41
41
|
Here are some formulas:
|
42
42
|
|
@@ -44,15 +44,3 @@ Here are some formulas:
|
|
44
44
|
That s it, nothing else is supported.
|
45
45
|
*** Output of to_s ***
|
46
46
|
Here are some formulas:Thats it, nothing else is supported.
|
47
|
-
*** EOF ***
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
OK!
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
*** Output of Markdown.pl ***
|
56
|
-
(not used anymore)
|
57
|
-
*** Output of Markdown.pl (parsed) ***
|
58
|
-
(not used anymore)
|
@@ -0,0 +1,45 @@
|
|
1
|
+
|
2
|
+
*** Parameters: ***
|
3
|
+
require 'maruku/ext/math'
|
4
|
+
{:math_numbered => ['\\['], :html_math_engine => 'itex2mml' }
|
5
|
+
*** Markdown input: ***
|
6
|
+
|
7
|
+
\[
|
8
|
+
\alpha
|
9
|
+
\]
|
10
|
+
|
11
|
+
\begin{equation}
|
12
|
+
\alpha
|
13
|
+
\end{equation}
|
14
|
+
|
15
|
+
\begin{equation} \beta
|
16
|
+
\end{equation}
|
17
|
+
|
18
|
+
|
19
|
+
\begin{equation} \gamma \end{equation}
|
20
|
+
*** Output of inspect ***
|
21
|
+
md_el(:document,[
|
22
|
+
md_el(:equation,[],{:label=>"eq1",:math=>"\n\t\\alpha\n\n",:num=>1},[]),
|
23
|
+
md_el(:equation,[],{:label=>nil,:math=>"\n\t\\alpha\n\n",:num=>nil},[]),
|
24
|
+
md_el(:equation,[],{:label=>nil,:math=>" \\beta\n\n",:num=>nil},[]),
|
25
|
+
md_el(:equation,[],{:label=>nil,:math=>" \\gamma ",:num=>nil},[])
|
26
|
+
],{},[])
|
27
|
+
*** Output of to_html ***
|
28
|
+
<div class="maruku-equation" id="eq:eq1"><span class="maruku-eq-number">(1)</span><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><mi>α</mi></math><span class="maruku-eq-tex"><code style="display: none">\alpha</code></span></div><div class="maruku-equation"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><mi>α</mi></math><span class="maruku-eq-tex"><code style="display: none">\alpha</code></span></div><div class="maruku-equation"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><mi>β</mi></math><span class="maruku-eq-tex"><code style="display: none">\beta</code></span></div><div class="maruku-equation"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><mi>γ</mi></math><span class="maruku-eq-tex"><code style="display: none">\gamma</code></span></div>
|
29
|
+
*** Output of to_latex ***
|
30
|
+
\begin{equation}
|
31
|
+
\alpha
|
32
|
+
\label{eq1}\end{equation}
|
33
|
+
\begin{displaymath}
|
34
|
+
\alpha
|
35
|
+
\end{displaymath}
|
36
|
+
\begin{displaymath}
|
37
|
+
\beta
|
38
|
+
\end{displaymath}
|
39
|
+
\begin{displaymath}
|
40
|
+
\gamma
|
41
|
+
\end{displaymath}
|
42
|
+
*** Output of to_md ***
|
43
|
+
|
44
|
+
*** Output of to_s ***
|
45
|
+
|
@@ -23,15 +23,3 @@ This is not $math$.
|
|
23
23
|
[ \alpha ]
|
24
24
|
*** Output of to_s ***
|
25
25
|
This is not $math$.[ \alpha ]
|
26
|
-
*** EOF ***
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
OK!
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
*** Output of Markdown.pl ***
|
35
|
-
(not used anymore)
|
36
|
-
*** Output of Markdown.pl (parsed) ***
|
37
|
-
(not used anymore)
|
@@ -0,0 +1,87 @@
|
|
1
|
+
JRUBY NOKOGIRI PENDING - MathML inline with HTML
|
2
|
+
(JRuby Nokogiri is broken for empty tags: https://github.com/sparklemotion/nokogiri/issues/971)
|
3
|
+
*** Parameters: ***
|
4
|
+
{}
|
5
|
+
*** Markdown input: ***
|
6
|
+
In <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" class="maruku-mathml"><mi>SU</mi><mo stretchy="false">(</mo><mn>3</mn><mo stretchy="false">)</mo></math>, <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" class="maruku-mathml"><semantics><annotation-xml encoding="SVG1.1">
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
|
8
|
+
<desc>Rank-2 Symmetric Tensor Representation</desc>
|
9
|
+
<g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2">
|
10
|
+
<rect width="10" height="10"></rect>
|
11
|
+
<rect width="10" height="10" x="10"></rect>
|
12
|
+
</g>
|
13
|
+
</svg>
|
14
|
+
</annotation-xml></semantics><mo>=</mo><semantics><annotation-xml encoding="SVG1.1">
|
15
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
|
16
|
+
<desc>Rank-2 Symmetric Tensor Representation</desc>
|
17
|
+
<g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2">
|
18
|
+
<rect width="10" height="10"></rect>
|
19
|
+
<rect width="10" height="10" x="10"></rect>
|
20
|
+
</g>
|
21
|
+
</svg>
|
22
|
+
</annotation-xml></semantics></math>.
|
23
|
+
|
24
|
+
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><semantics><annotation-xml encoding="SVG1.1">
|
25
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
|
26
|
+
<desc>Rank-2 Symmetric Tensor Representation</desc>
|
27
|
+
<g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2">
|
28
|
+
<rect width="10" height="10"></rect>
|
29
|
+
<rect width="10" height="10" x="10"></rect>
|
30
|
+
</g>
|
31
|
+
</svg>
|
32
|
+
</annotation-xml></semantics><mo>=</mo><semantics><annotation-xml encoding="SVG1.1">
|
33
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
|
34
|
+
<desc>Rank-2 Symmetric Tensor Representation</desc>
|
35
|
+
<g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2">
|
36
|
+
<rect width="10" height="10"></rect>
|
37
|
+
<rect width="10" height="10" x="10"></rect>
|
38
|
+
</g>
|
39
|
+
</svg>
|
40
|
+
</annotation-xml></semantics></math>
|
41
|
+
|
42
|
+
*** Output of inspect ***
|
43
|
+
md_el(:document,[
|
44
|
+
md_par(["In ",
|
45
|
+
md_html("<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"inline\" class=\"maruku-mathml\"><mi>SU</mi><mo stretchy=\"false\">(</mo><mn>3</mn><mo stretchy=\"false\">)</mo></math>"),
|
46
|
+
", ",
|
47
|
+
md_html("<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"inline\" class=\"maruku-mathml\"><semantics><annotation-xml encoding=\"SVG1.1\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"16\" viewBox=\"0 0 30 16\">\n <desc>Rank-2 Symmetric Tensor Representation</desc>\n <g transform=\"translate(5,5)\" fill=\"#FCC\" stroke=\"#000\" stroke-width=\"2\">\n <rect width=\"10\" height=\"10\"></rect>\n <rect width=\"10\" height=\"10\" x=\"10\"></rect>\n </g>\n</svg>\n</annotation-xml></semantics><mo>=</mo><semantics><annotation-xml encoding=\"SVG1.1\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"16\" viewBox=\"0 0 30 16\">\n <desc>Rank-2 Symmetric Tensor Representation</desc>\n <g transform=\"translate(5,5)\" fill=\"#FCC\" stroke=\"#000\" stroke-width=\"2\">\n <rect width=\"10\" height=\"10\"></rect>\n <rect width=\"10\" height=\"10\" x=\"10\"></rect>\n </g>\n</svg>\n</annotation-xml></semantics></math>"),
|
48
|
+
"."
|
49
|
+
]),
|
50
|
+
md_html("<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\" class=\"maruku-mathml\"><semantics><annotation-xml encoding=\"SVG1.1\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"16\" viewBox=\"0 0 30 16\">\n <desc>Rank-2 Symmetric Tensor Representation</desc>\n <g transform=\"translate(5,5)\" fill=\"#FCC\" stroke=\"#000\" stroke-width=\"2\">\n <rect width=\"10\" height=\"10\"></rect>\n <rect width=\"10\" height=\"10\" x=\"10\"></rect>\n </g>\n</svg>\n</annotation-xml></semantics><mo>=</mo><semantics><annotation-xml encoding=\"SVG1.1\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"16\" viewBox=\"0 0 30 16\">\n <desc>Rank-2 Symmetric Tensor Representation</desc>\n <g transform=\"translate(5,5)\" fill=\"#FCC\" stroke=\"#000\" stroke-width=\"2\">\n <rect width=\"10\" height=\"10\"></rect>\n <rect width=\"10\" height=\"10\" x=\"10\"></rect>\n </g>\n</svg>\n</annotation-xml></semantics></math>")
|
51
|
+
],{},[])
|
52
|
+
*** Output of to_html ***
|
53
|
+
<p>In <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" class="maruku-mathml"><mi>SU</mi><mo stretchy="false">(</mo><mn>3</mn><mo stretchy="false">)</mo></math>, <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" class="maruku-mathml"><semantics><annotation-xml encoding="SVG1.1">
|
54
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
|
55
|
+
<desc>Rank-2 Symmetric Tensor Representation</desc>
|
56
|
+
<g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2">
|
57
|
+
<rect width="10" height="10"></rect>
|
58
|
+
<rect width="10" height="10" x="10"></rect>
|
59
|
+
</g>
|
60
|
+
</svg>
|
61
|
+
</annotation-xml></semantics><mo>=</mo><semantics><annotation-xml encoding="SVG1.1">
|
62
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
|
63
|
+
<desc>Rank-2 Symmetric Tensor Representation</desc>
|
64
|
+
<g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2">
|
65
|
+
<rect width="10" height="10"></rect>
|
66
|
+
<rect width="10" height="10" x="10"></rect>
|
67
|
+
</g>
|
68
|
+
</svg>
|
69
|
+
</annotation-xml></semantics></math>.</p>
|
70
|
+
|
71
|
+
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="maruku-mathml"><semantics><annotation-xml encoding="SVG1.1">
|
72
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
|
73
|
+
<desc>Rank-2 Symmetric Tensor Representation</desc>
|
74
|
+
<g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2">
|
75
|
+
<rect width="10" height="10"></rect>
|
76
|
+
<rect width="10" height="10" x="10"></rect>
|
77
|
+
</g>
|
78
|
+
</svg>
|
79
|
+
</annotation-xml></semantics><mo>=</mo><semantics><annotation-xml encoding="SVG1.1">
|
80
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
|
81
|
+
<desc>Rank-2 Symmetric Tensor Representation</desc>
|
82
|
+
<g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2">
|
83
|
+
<rect width="10" height="10"></rect>
|
84
|
+
<rect width="10" height="10" x="10"></rect>
|
85
|
+
</g>
|
86
|
+
</svg>
|
87
|
+
</annotation-xml></semantics></math>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
require 'maruku/ext/math';{:html_math_engine => 'itex2mml' }
|
4
|
+
*** Markdown input: ***
|
5
|
+
<table markdown='1'>
|
6
|
+
$\alpha$
|
7
|
+
<thead>
|
8
|
+
<td markdown='1'>$\beta$</td>
|
9
|
+
</thead>
|
10
|
+
</table>
|
11
|
+
*** Output of inspect ***
|
12
|
+
md_el(:document,[
|
13
|
+
md_html("<table markdown='1'>\n\t$\\alpha$\n\t<thead>\n\t\t<td markdown='1'>$\\beta$</td>\n\t</thead>\n</table>")
|
14
|
+
],{},[])
|
15
|
+
*** Output of to_html ***
|
16
|
+
<table><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" class="maruku-mathml"><mi>α</mi></math><thead>
|
17
|
+
<td><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" class="maruku-mathml"><mi>β</mi></math></td>
|
18
|
+
</thead>
|
19
|
+
</table>
|
20
|
+
*** Output of to_latex ***
|
21
|
+
|
22
|
+
*** Output of to_md ***
|
23
|
+
|
24
|
+
*** Output of to_s ***
|
25
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
|
2
2
|
*** Parameters: ***
|
3
3
|
{}
|
4
4
|
*** Markdown input: ***
|
@@ -26,29 +26,17 @@ md_el(:document,[
|
|
26
26
|
md_el(:ald,[],{:ald=>[["scope", "row"]],:ald_id=>"r"},[])
|
27
27
|
],{},[])
|
28
28
|
*** Output of to_html ***
|
29
|
-
<table><thead><tr><th>Symbol</th><th>Meaning</th><th>comments</th></tr></thead><tbody><tr><th scope=
|
30
|
-
|
31
|
-
</
|
29
|
+
<table><thead><tr><th>Symbol</th><th>Meaning</th><th>comments</th></tr></thead><tbody><tr><th scope="row" style="text-align: left;"> α</th><td style="text-align: left;">The first</td><td style="text-align: left;">I like it.</td></tr>
|
30
|
+
<tr><th scope="row" style="text-align: left;"> ℵ</th><td style="text-align: left;">The first</td><td style="text-align: left;">I like it.</td></tr>
|
31
|
+
</tbody></table>
|
32
32
|
*** Output of to_latex ***
|
33
33
|
\begin{tabular}{l|l|l}
|
34
34
|
Symbol&Meaning&comments\\
|
35
35
|
\hline
|
36
|
-
$\alpha
|
36
|
+
$\alpha$&The first&I like it.\\
|
37
37
|
&The first&I like it.\\
|
38
38
|
\end{tabular}
|
39
39
|
*** Output of to_md ***
|
40
40
|
SymbolMeaningcomments The firstI like it. The firstI like it.
|
41
41
|
*** Output of to_s ***
|
42
42
|
SymbolMeaningcomments The firstI like it. The firstI like it.
|
43
|
-
*** EOF ***
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
OK!
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
*** Output of Markdown.pl ***
|
52
|
-
(not used anymore)
|
53
|
-
*** Output of Markdown.pl (parsed) ***
|
54
|
-
(not used anymore)
|
@@ -112,13 +112,13 @@ inMenu: true
|
|
112
112
|
md_el(:document,[
|
113
113
|
md_el(:header,["General"],{:level=>3},[]),
|
114
114
|
md_el(:ul,[
|
115
|
-
md_el(:
|
115
|
+
md_el(:li,[
|
116
116
|
md_em(["Operating System"]),
|
117
117
|
" : ",
|
118
118
|
md_link(["Mac OS X"],"switch"),
|
119
119
|
": heaven, after the purgatory of Linux and the hell of Windows."
|
120
120
|
],{:want_my_paragraph=>false},[]),
|
121
|
-
md_el(:
|
121
|
+
md_el(:li,[
|
122
122
|
md_em(["Browser"]),
|
123
123
|
": ",
|
124
124
|
md_link(["Firefox"],"firefox"),
|
@@ -126,7 +126,7 @@ md_el(:document,[
|
|
126
126
|
md_link(["Camino"],"camino"),
|
127
127
|
"."
|
128
128
|
],{:want_my_paragraph=>false},[]),
|
129
|
-
md_el(:
|
129
|
+
md_el(:li,[
|
130
130
|
md_em(["Email"]),
|
131
131
|
": ",
|
132
132
|
md_link(["GMail"],"gmail"),
|
@@ -138,7 +138,7 @@ md_el(:document,[
|
|
138
138
|
md_entity("rdquo"),
|
139
139
|
" really works."
|
140
140
|
],{:want_my_paragraph=>false},[]),
|
141
|
-
md_el(:
|
141
|
+
md_el(:li,[
|
142
142
|
md_em(["Text Editor"]),
|
143
143
|
": ",
|
144
144
|
md_link(["TextMate"],"textmate"),
|
@@ -190,7 +190,7 @@ md_el(:document,[
|
|
190
190
|
md_link(["poignant"],"poignant"),
|
191
191
|
" guide). Python, you say? Python is too academic and snob:"
|
192
192
|
]),
|
193
|
-
md_el(:code,[],{:raw_code=>"$ python \nPython 2.4.1 (\\#1, Jun 4 2005, 00:54:33) \nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> exit\n'Use Ctrl-D (i.e. EOF) to exit.'\n>>> quit\n'Use Ctrl-D (i.e. EOF) to exit.'"},[])
|
193
|
+
md_el(:code,[],{:raw_code=>"$ python \nPython 2.4.1 (\\#1, Jun 4 2005, 00:54:33) \nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> exit\n'Use Ctrl-D (i.e. EOF) to exit.'\n>>> quit\n'Use Ctrl-D (i.e. EOF) to exit.'", :lang=>nil},[])
|
194
194
|
],{:want_my_paragraph=>true},[]),
|
195
195
|
md_el(:li,[
|
196
196
|
md_par([
|
@@ -198,7 +198,7 @@ md_el(:document,[
|
|
198
198
|
": ",
|
199
199
|
md_link(["JBuilder"],"jbuilder"),
|
200
200
|
" is great software and has a free version (IMHO better than Eclipse). Java is not a pain anymore since it gained ",
|
201
|
-
md_link(["generics"],"
|
201
|
+
md_link(["generics"],"java-generics"),
|
202
202
|
" and got opensourced."
|
203
203
|
])
|
204
204
|
],{:want_my_paragraph=>false},[]),
|
@@ -214,32 +214,26 @@ md_el(:document,[
|
|
214
214
|
"."
|
215
215
|
])
|
216
216
|
],{:want_my_paragraph=>false},[]),
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
md_link(["Cairo"],"cairo"),
|
228
|
-
" for creating PDFs. * ",
|
229
|
-
md_link(["Boost"],"boost"),
|
230
|
-
" for just about everything else."
|
231
|
-
])
|
232
|
-
],{:want_my_paragraph=>false},[])
|
217
|
+
md_li([
|
218
|
+
md_par([md_em("C++ libraries"), ":"]),
|
219
|
+
md_el(:ul, [
|
220
|
+
md_el(:li, [md_link("QT", "qt"), " for GUIs."], {:want_my_paragraph=>false}),
|
221
|
+
md_el(:li, [md_link("GSL", "gsl"), " for math."], {:want_my_paragraph=>false}),
|
222
|
+
md_el(:li, [md_link("Magick++", "magick"), " for manipulating images."], {:want_my_paragraph=>false}),
|
223
|
+
md_el(:li, [md_link("Cairo", "cairo"), " for creating PDFs."], {:want_my_paragraph=>false}),
|
224
|
+
md_el(:li, [md_link("Boost", "boost"), " for just about everything else."], {:want_my_paragraph=>false})
|
225
|
+
])
|
226
|
+
], false)
|
233
227
|
],{},[]),
|
234
228
|
md_el(:header,["Research"],{:level=>3},[]),
|
235
229
|
md_el(:ul,[
|
236
|
-
md_el(:
|
237
|
-
md_el(:
|
230
|
+
md_el(:li,[md_em(["Writing papers"]), ": ", md_link(["LaTeX"],"latex")],{:want_my_paragraph=>false},[]),
|
231
|
+
md_el(:li,[
|
238
232
|
md_em(["Writing papers & enjoying the process"]),
|
239
233
|
": ",
|
240
234
|
md_link(["LyX"],"lyx")
|
241
235
|
],{:want_my_paragraph=>false},[]),
|
242
|
-
md_el(:
|
236
|
+
md_el(:li,[
|
243
237
|
md_em(["Handsome figures in your papers"]),
|
244
238
|
": ",
|
245
239
|
md_link(["xfig"],"xfig"),
|
@@ -247,7 +241,7 @@ md_el(:document,[
|
|
247
241
|
md_link(["jfig"],"jfig"),
|
248
242
|
"."
|
249
243
|
],{:want_my_paragraph=>false},[]),
|
250
|
-
md_el(:
|
244
|
+
md_el(:li,[
|
251
245
|
md_em(["The occasional presentation with many graphical content"]),
|
252
246
|
": ",
|
253
247
|
md_link(["OpenOffice Impress"],"impress"),
|
@@ -257,13 +251,13 @@ md_el(:document,[
|
|
257
251
|
md_link(["TexPoint"],"texpoint"),
|
258
252
|
" plugin."
|
259
253
|
],{:want_my_paragraph=>false},[]),
|
260
|
-
md_el(:
|
254
|
+
md_el(:li,[
|
261
255
|
md_em(["Managing BibTeX"]),
|
262
256
|
": ",
|
263
257
|
md_link(["jabref"],"jabref"),
|
264
258
|
": multi-platform, for all your bibtex needs."
|
265
259
|
],{:want_my_paragraph=>false},[]),
|
266
|
-
md_el(:
|
260
|
+
md_el(:li,[
|
267
261
|
md_em(["IEEExplore and BibTeX"]),
|
268
262
|
": convert citations using ",
|
269
263
|
md_link(["BibConverter"],"bibconverter"),
|
@@ -272,12 +266,12 @@ md_el(:document,[
|
|
272
266
|
],{},[]),
|
273
267
|
md_el(:header,["Cool websites"],{:level=>3},[]),
|
274
268
|
md_el(:ul,[
|
275
|
-
md_el(:
|
269
|
+
md_el(:li,[
|
276
270
|
md_em(["Best site in the wwworld"]),
|
277
271
|
": ",
|
278
272
|
md_link(["Wikipedia"],"wikipedia")
|
279
273
|
],{:want_my_paragraph=>false},[]),
|
280
|
-
md_el(:
|
274
|
+
md_el(:li,[
|
281
275
|
md_link(["Mutopia"],"mutopia"),
|
282
276
|
" for sheet music; ",
|
283
277
|
md_link(["the Gutenberg Project"],"gutenberg"),
|
@@ -285,8 +279,8 @@ md_el(:document,[
|
|
285
279
|
md_link(["LiberLiber"],"liberliber"),
|
286
280
|
" for books in italian."
|
287
281
|
],{:want_my_paragraph=>false},[]),
|
288
|
-
md_el(:
|
289
|
-
md_el(:
|
282
|
+
md_el(:li,[md_em(["Blogs"]), ": ", md_link(["Bloglines"],"bloglines")],{:want_my_paragraph=>false},[]),
|
283
|
+
md_el(:li,[
|
290
284
|
md_em(["Sharing photos"]),
|
291
285
|
": ",
|
292
286
|
md_link(["flickr"],"flickr"),
|
@@ -330,87 +324,99 @@ md_el(:document,[
|
|
330
324
|
md_ref_def("mutopia", "http://www.mutopiaproject.org/", {:title=>nil}),
|
331
325
|
md_ref_def("liberliber", "http://www.liberliber.it/", {:title=>nil}),
|
332
326
|
md_ref_def("gutenberg", "http://www.gutenberg.org/", {:title=>nil}),
|
333
|
-
md_ref_def("
|
327
|
+
md_ref_def("java-generics", "http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html", {:title=>nil})
|
334
328
|
],{},[])
|
335
329
|
*** Output of to_html ***
|
336
|
-
<h3 id=
|
330
|
+
<h3 id="general">General</h3>
|
337
331
|
|
338
332
|
<ul>
|
339
|
-
<li><em>Operating System</em> : <a href=
|
333
|
+
<li><em>Operating System</em> : <a href="http://www.apple.com/getamac/">Mac OS X</a>: heaven, after the purgatory of Linux and the hell of Windows.</li>
|
340
334
|
|
341
|
-
<li><em>Browser</em>: <a href=
|
335
|
+
<li><em>Browser</em>: <a href="http://getfirefox.com/">Firefox</a>. On a Mac, <a href="http://www.caminobrowser.org/">Camino</a>.</li>
|
342
336
|
|
343
|
-
<li><em>Email</em>: <a href=
|
337
|
+
<li><em>Email</em>: <a href="http://gmail.com/">GMail</a>, “search, don’t sort” really works.</li>
|
344
338
|
|
345
|
-
<li><em>Text Editor</em>: <a href=
|
339
|
+
<li><em>Text Editor</em>: <a href="http://www.apple.com/getamac/">TextMate</a>, you have to buy it, but it’s worth every penny. There are rumours that it’s been converting (recovering) Emacs users (addicts). Unfortunately, it’s Mac only. An alternative is <a href="http://www.jedit.org/">jedit</a> (GPL, Java).</li>
|
346
340
|
</ul>
|
347
341
|
|
348
|
-
<h3 id=
|
342
|
+
<h3 id="development">Development</h3>
|
349
343
|
|
350
344
|
<ul>
|
351
345
|
<li>
|
352
|
-
<p><em>Build system</em>: <a href=
|
346
|
+
<p><em>Build system</em>: <a href="http://www.cmake.org/">cmake</a>, throw the <a href="http://sources.redhat.com/autobook/">autotools</a> away.</p>
|
353
347
|
</li>
|
354
348
|
|
355
349
|
<li>
|
356
|
-
<p><em>Source code control system</em>: ditch CVS for <a href=
|
350
|
+
<p><em>Source code control system</em>: ditch CVS for <a href="http://subversion.tigris.org">subversion</a>.</p>
|
357
351
|
</li>
|
358
352
|
|
359
353
|
<li>
|
360
|
-
<p><em>Project management</em>: <a href=
|
354
|
+
<p><em>Project management</em>: <a href="http://trac.edgewall.org/">Trac</a> tracks everything.</p>
|
361
355
|
</li>
|
362
356
|
|
363
357
|
<li>
|
364
|
-
<p><em>Scripting language</em>: <a href=
|
358
|
+
<p><em>Scripting language</em>: <a href="http://www.ruby-lang.org/">Ruby</a> is Japanese pragmatism (and has a <a href="http://poignantguide.net/ruby/">poignant</a> guide). Python, you say? Python is too academic and snob:</p>
|
365
359
|
|
366
360
|
<pre><code>$ python
|
367
361
|
Python 2.4.1 (\#1, Jun 4 2005, 00:54:33)
|
368
|
-
Type
|
362
|
+
Type "help", "copyright", "credits" or "license" for more information.
|
369
363
|
>>> exit
|
370
|
-
|
364
|
+
'Use Ctrl-D (i.e. EOF) to exit.'
|
371
365
|
>>> quit
|
372
|
-
|
366
|
+
'Use Ctrl-D (i.e. EOF) to exit.'</code></pre>
|
373
367
|
</li>
|
374
368
|
|
375
369
|
<li>
|
376
|
-
<p><em>Java IDE</em>: <a href=
|
370
|
+
<p><em>Java IDE</em>: <a href="http://www.borland.com/us/products/jbuilder/index.html">JBuilder</a> is great software and has a free version (IMHO better than Eclipse). Java is not a pain anymore since it gained <a href="http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html">generics</a> and got opensourced.</p>
|
377
371
|
</li>
|
378
372
|
|
379
373
|
<li>
|
380
|
-
<p><em>Mark-up language</em>: HTML is so 2001, why don
|
374
|
+
<p><em>Mark-up language</em>: HTML is so 2001, why don’t you take at look at <a href="http://en.wikipedia.org/wiki/Markdown">Markdown</a>? <a href="data/misc_markdown.png">Look at the source of this page</a>.</p>
|
381
375
|
</li>
|
382
376
|
|
383
377
|
<li>
|
384
|
-
<p><em>C++ libraries</em
|
378
|
+
<p><em>C++ libraries</em>:</p>
|
379
|
+
|
380
|
+
<ul>
|
381
|
+
<li><a href="http://www.trolltech.no/">QT</a> for GUIs.</li>
|
382
|
+
|
383
|
+
<li><a href="http://www.gnu.org/software/gsl/">GSL</a> for math.</li>
|
384
|
+
|
385
|
+
<li><a href="http://www.imagemagick.org/Magick++/">Magick++</a> for manipulating images.</li>
|
386
|
+
|
387
|
+
<li><a href="http://cairographics.org/">Cairo</a> for creating PDFs.</li>
|
388
|
+
|
389
|
+
<li><a href="http://www.boost.org/">Boost</a> for just about everything else.</li>
|
390
|
+
</ul>
|
385
391
|
</li>
|
386
392
|
</ul>
|
387
393
|
|
388
|
-
<h3 id=
|
394
|
+
<h3 id="research">Research</h3>
|
389
395
|
|
390
396
|
<ul>
|
391
|
-
<li><em>Writing papers</em>: <a href=
|
397
|
+
<li><em>Writing papers</em>: <a href="http://en.wikipedia.org/wiki/LaTeX">LaTeX</a></li>
|
392
398
|
|
393
|
-
<li><em>Writing papers & enjoying the process</em>: <a href=
|
399
|
+
<li><em>Writing papers & enjoying the process</em>: <a href="http://www.lyx.org">LyX</a></li>
|
394
400
|
|
395
|
-
<li><em>Handsome figures in your papers</em>: <a href=
|
401
|
+
<li><em>Handsome figures in your papers</em>: <a href="http://www.xfig.org/">xfig</a> or, better, <a href="http://tams-www.informatik.uni-hamburg.de/applets/jfig/">jfig</a>.</li>
|
396
402
|
|
397
|
-
<li><em>The occasional presentation with many graphical content</em>: <a href=
|
403
|
+
<li><em>The occasional presentation with many graphical content</em>: <a href="http://www.openoffice.org/product/impress.html">OpenOffice Impress</a> (using the <a href="http://ooolatex.sourceforge.net/">OOOlatex plugin</a>); the alternative is PowerPoint with the <a href="http://texpoint.necula.org/">TexPoint</a> plugin.</li>
|
398
404
|
|
399
|
-
<li><em>Managing BibTeX</em>: <a href=
|
405
|
+
<li><em>Managing BibTeX</em>: <a href="http://jabref.sourceforge.net/">jabref</a>: multi-platform, for all your bibtex needs.</li>
|
400
406
|
|
401
|
-
<li><em>IEEExplore and BibTeX</em>: convert citations using <a href=
|
407
|
+
<li><em>IEEExplore and BibTeX</em>: convert citations using <a href="http://www.bibconverter.net/ieeexplore/">BibConverter</a>.</li>
|
402
408
|
</ul>
|
403
409
|
|
404
|
-
<h3 id=
|
410
|
+
<h3 id="cool_websites">Cool websites</h3>
|
405
411
|
|
406
412
|
<ul>
|
407
|
-
<li><em>Best site in the wwworld</em>: <a href=
|
413
|
+
<li><em>Best site in the wwworld</em>: <a href="http://en.wikipedia.org/">Wikipedia</a></li>
|
408
414
|
|
409
|
-
<li><a href=
|
415
|
+
<li><a href="http://www.mutopiaproject.org/">Mutopia</a> for sheet music; <a href="http://www.gutenberg.org/">the Gutenberg Project</a> for books; <a href="http://www.liberliber.it/">LiberLiber</a> for books in italian.</li>
|
410
416
|
|
411
|
-
<li><em>Blogs</em>: <a href=
|
417
|
+
<li><em>Blogs</em>: <a href="http://bloglines.com/">Bloglines</a></li>
|
412
418
|
|
413
|
-
<li><em>Sharing photos</em>: <a href=
|
419
|
+
<li><em>Sharing photos</em>: <a href="http://www.flickr.com/">flickr</a> exposes an API you can use.</li>
|
414
420
|
</ul>
|
415
421
|
*** Output of to_latex ***
|
416
422
|
\hypertarget{general}{}\subsubsection*{{General}}\label{general}
|
@@ -418,8 +424,8 @@ Type "help", "copyright", "credits" or "licen
|
|
418
424
|
\begin{itemize}%
|
419
425
|
\item \emph{Operating System} : \href{http://www.apple.com/getamac/}{Mac OS X}: heaven, after the purgatory of Linux and the hell of Windows.
|
420
426
|
\item \emph{Browser}: \href{http://getfirefox.com/}{Firefox}. On a Mac, \href{http://www.caminobrowser.org/}{Camino}.
|
421
|
-
\item \emph{Email}: \href{http://gmail.com/}{GMail}, ``
|
422
|
-
\item \emph{Text Editor}: \href{http://www.apple.com/getamac/}{TextMate}, you have to buy it, but it'
|
427
|
+
\item \emph{Email}: \href{http://gmail.com/}{GMail}, ``search, don't sort'' really works.
|
428
|
+
\item \emph{Text Editor}: \href{http://www.apple.com/getamac/}{TextMate}, you have to buy it, but it's worth every penny. There are rumours that it's been converting (recovering) Emacs users (addicts). Unfortunately, it's Mac only. An alternative is \href{http://www.jedit.org/}{jedit} (GPL, Java).
|
423
429
|
|
424
430
|
\end{itemize}
|
425
431
|
\hypertarget{development}{}\subsubsection*{{Development}}\label{development}
|
@@ -447,11 +453,19 @@ Type "help", "copyright", "credits" or "license" for more information.
|
|
447
453
|
\item \emph{Java IDE}: \href{http://www.borland.com/us/products/jbuilder/index.html}{JBuilder} is great software and has a free version (IMHO better than Eclipse). Java is not a pain anymore since it gained \href{http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html}{generics} and got opensourced.
|
448
454
|
|
449
455
|
|
450
|
-
\item \emph{Mark-up language}: HTML is so 2001, why don'
|
456
|
+
\item \emph{Mark-up language}: HTML is so 2001, why don't you take at look at \href{http://en.wikipedia.org/wiki/Markdown}{Markdown}? \href{data/misc_markdown.png}{Look at the source of this page}.
|
457
|
+
|
451
458
|
|
459
|
+
\item \emph{C++ libraries}:
|
452
460
|
|
453
|
-
\
|
461
|
+
\begin{itemize}%
|
462
|
+
\item \href{http://www.trolltech.no/}{QT} for GUIs.
|
463
|
+
\item \href{http://www.gnu.org/software/gsl/}{GSL} for math.
|
464
|
+
\item \href{http://www.imagemagick.org/Magick++/}{Magick++} for manipulating images.
|
465
|
+
\item \href{http://cairographics.org/}{Cairo} for creating PDFs.
|
466
|
+
\item \href{http://www.boost.org/}{Boost} for just about everything else.
|
454
467
|
|
468
|
+
\end{itemize}
|
455
469
|
|
456
470
|
|
457
471
|
\end{itemize}
|
@@ -476,62 +490,111 @@ Type "help", "copyright", "credits" or "license" for more information.
|
|
476
490
|
|
477
491
|
\end{itemize}
|
478
492
|
*** Output of to_md ***
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
buy it, but it s worth every penny.
|
487
|
-
There are rumours that it s been
|
488
|
-
converting (recovering) Emacs users
|
489
|
-
(addicts). Unfortunately, it s Mac
|
490
|
-
only. An alternative is jedit(GPL,
|
491
|
-
Java).
|
492
|
-
|
493
|
-
Development-Build system: cmake, throw the autotools away.
|
494
|
-
-Source code control system: ditch CVS for subversion.
|
495
|
-
-Project management: Trac tracks everything.
|
496
|
-
-Scripting language: Ruby is Japanese pragmatism (and has a poignant guide). Python, you say? Python is too academic and snob:
|
497
|
-
-Java IDE: JBuilder is great software and has a free version (IMHO better than Eclipse). Java is not a pain anymore since it gained generics and got opensourced.
|
498
|
-
-Mark-up language: HTML is so 2001, why dont you take at look at Markdown? Look at the source of this page.
|
499
|
-
-C++ libraries: * QT for GUIs. * GSL for math. * Magick++ for manipulating images. * Cairo for creating PDFs. * Boost for just about everything else.
|
500
|
-
|
501
|
-
Research-riting papers: LaTeX
|
502
|
-
-Writing papers & enjoying the process
|
503
|
-
: LyX
|
504
|
-
-andsome figures in your papers:
|
505
|
-
xfigor, better, jfig.
|
506
|
-
-The occasional presentation with many graphical content
|
507
|
-
: OpenOffice Impress(using the
|
508
|
-
OOOlatex plugin); the alternative
|
509
|
-
is PowerPoint with the TexPoint
|
510
|
-
plugin.
|
511
|
-
-anaging BibTeX: jabref:
|
512
|
-
multi-platform, for all your bibtex
|
513
|
-
needs.
|
514
|
-
-EEExplore and BibTeX: convert
|
515
|
-
citations using BibConverter.
|
516
|
-
|
517
|
-
Cool websites-est site in the wwworld: Wikipedia
|
518
|
-
-utopiafor sheet music;
|
519
|
-
the Gutenberg Projectfor books;
|
520
|
-
LiberLiberfor books in italian.
|
521
|
-
-logs: Bloglines
|
522
|
-
-haring photos: flickrexposes an
|
523
|
-
API you can use.
|
524
|
-
*** Output of to_s ***
|
525
|
-
GeneralOperating System : Mac OS X: heaven, after the purgatory of Linux and the hell of Windows.Browser: Firefox. On a Mac, Camino.Email: GMail, search, dont sort really works.Text Editor: TextMate, you have to buy it, but its worth every penny. There are rumours that its been converting (recovering) Emacs users (addicts). Unfortunately, its Mac only. An alternative is jedit (GPL, Java).DevelopmentBuild system: cmake, throw the autotools away.Source code control system: ditch CVS for subversion.Project management: Trac tracks everything.Scripting language: Ruby is Japanese pragmatism (and has a poignant guide). Python, you say? Python is too academic and snob:Java IDE: JBuilder is great software and has a free version (IMHO better than Eclipse). Java is not a pain anymore since it gained generics and got opensourced.Mark-up language: HTML is so 2001, why dont you take at look at Markdown? Look at the source of this page.C++ libraries: * QT for GUIs. * GSL for math. * Magick++ for manipulating images. * Cairo for creating PDFs. * Boost for just about everything else.ResearchWriting papers: LaTeXWriting papers & enjoying the process: LyXHandsome figures in your papers: xfig or, better, jfig.The occasional presentation with many graphical content: OpenOffice Impress (using the OOOlatex plugin); the alternative is PowerPoint with the TexPoint plugin.Managing BibTeX: jabref: multi-platform, for all your bibtex needs.IEEExplore and BibTeX: convert citations using BibConverter.Cool websitesBest site in the wwworld: WikipediaMutopia for sheet music; the Gutenberg Project for books; LiberLiber for books in italian.Blogs: BloglinesSharing photos: flickr exposes an API you can use.
|
526
|
-
*** EOF ***
|
493
|
+
Subject: Software not painful to use
|
494
|
+
Subject_short: painless software
|
495
|
+
Topic: /misc/coolsw
|
496
|
+
Archive: no
|
497
|
+
Date: Nov 20 2006
|
498
|
+
Order: -9.5
|
499
|
+
inMenu: true
|
527
500
|
|
528
501
|
|
502
|
+
### General
|
529
503
|
|
530
|
-
|
504
|
+
* *Operating System* : [Mac OS X][switch]: heaven, after the purgatory of Linux
|
505
|
+
and the hell of Windows.
|
506
|
+
* *Browser*: [Firefox][firefox]. On a Mac, [Camino][camino].
|
507
|
+
* *Email*: [GMail][gmail], "search, don't sort" really works.
|
508
|
+
* *Text Editor*: [TextMate][textmate], you have to buy it, but it's worth every
|
509
|
+
penny. There are rumours that it's been converting (recovering) Emacs
|
510
|
+
users (addicts). Unfortunately, it's Mac only. An alternative is
|
511
|
+
[jedit][jedit] (GPL, Java).
|
512
|
+
|
513
|
+
### Development
|
531
514
|
|
515
|
+
* *Build system*: [cmake][cmake], throw the [autotools][autotools] away.
|
516
|
+
* *Source code control system*: ditch CVS for [subversion][subversion].
|
517
|
+
* *Project management*: [Trac][trac] tracks everything.
|
518
|
+
* *Scripting language*: [Ruby][ruby] is Japanese pragmatism (and has a [poignant][poignant] guide).
|
519
|
+
Python, you say? Python is too academic and snob:
|
532
520
|
|
521
|
+
$ python
|
522
|
+
Python 2.4.1 (\#1, Jun 4 2005, 00:54:33)
|
523
|
+
Type "help", "copyright", "credits" or "license" for more information.
|
524
|
+
>>> exit
|
525
|
+
'Use Ctrl-D (i.e. EOF) to exit.'
|
526
|
+
>>> quit
|
527
|
+
'Use Ctrl-D (i.e. EOF) to exit.'
|
533
528
|
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
529
|
+
* *Java IDE*: [JBuilder][jbuilder] is great software and has a free version (IMHO better than Eclipse). Java
|
530
|
+
is not a pain anymore since it gained [generics][java-generics] and got opensourced.
|
531
|
+
* *Mark-up language*: HTML is so 2001, why don't you take at look at [Markdown][markdown]? [Look at the source of this page](data/misc_markdown.png).
|
532
|
+
* *C++ libraries*:
|
533
|
+
* [QT][qt] for GUIs.
|
534
|
+
* [GSL][gsl] for math.
|
535
|
+
* [Magick++][magick] for manipulating images.
|
536
|
+
* [Cairo][cairo] for creating PDFs.
|
537
|
+
* [Boost][boost] for just about everything else.
|
538
|
+
|
539
|
+
|
540
|
+
### Research
|
541
|
+
|
542
|
+
* *Writing papers*: [LaTeX][latex]
|
543
|
+
* *Writing papers & enjoying the process*: [LyX][lyx]
|
544
|
+
* *Handsome figures in your papers*: [xfig][xfig] or, better, [jfig][jfig].
|
545
|
+
* *The occasional presentation with many graphical content*:
|
546
|
+
[OpenOffice Impress][impress] (using the [OOOlatex plugin][ooolatex]);
|
547
|
+
the alternative is PowerPoint with the [TexPoint][texpoint] plugin.
|
548
|
+
* *Managing BibTeX*: [jabref][jabref]: multi-platform, for all your bibtex needs.
|
549
|
+
* *IEEExplore and BibTeX*: convert citations using [BibConverter][bibconverter].
|
550
|
+
|
551
|
+
### Cool websites
|
552
|
+
|
553
|
+
* *Best site in the wwworld*: [Wikipedia][wikipedia]
|
554
|
+
* [Mutopia][mutopia] for sheet music; [the Gutenberg Project][gutenberg] for books; [LiberLiber][liberliber] for books in italian.
|
555
|
+
* *Blogs*: [Bloglines][bloglines]
|
556
|
+
* *Sharing photos*: [flickr][flickr] exposes an API you can use.
|
557
|
+
|
558
|
+
|
559
|
+
[firefox]: http://getfirefox.com/
|
560
|
+
[gmail]: http://gmail.com/
|
561
|
+
[bloglines]: http://bloglines.com/
|
562
|
+
[wikipedia]: http://en.wikipedia.org/
|
563
|
+
[ruby]: http://www.ruby-lang.org/
|
564
|
+
[poignant]: http://poignantguide.net/ruby/
|
565
|
+
[webgen]: http://webgen.rubyforge.org/
|
566
|
+
[markdown]: http://daringfireball.net/projects/markdown/
|
567
|
+
[latex]: http://en.wikipedia.org/wiki/LaTeX
|
568
|
+
[lyx]: http://www.lyx.org
|
569
|
+
[impress]: http://www.openoffice.org/product/impress.html
|
570
|
+
[ooolatex]: http://ooolatex.sourceforge.net/
|
571
|
+
[texpoint]: http://texpoint.necula.org/
|
572
|
+
[jabref]: http://jabref.sourceforge.net/
|
573
|
+
[camino]: http://www.caminobrowser.org/
|
574
|
+
[switch]: http://www.apple.com/getamac/
|
575
|
+
[textmate]: http://www.apple.com/getamac/
|
576
|
+
[cmake]: http://www.cmake.org/
|
577
|
+
[xfig]: http://www.xfig.org/
|
578
|
+
[jfig]: http://tams-www.informatik.uni-hamburg.de/applets/jfig/
|
579
|
+
[subversion]: http://subversion.tigris.org
|
580
|
+
[jbuilder]: http://www.borland.com/us/products/jbuilder/index.html
|
581
|
+
[flickr]: http://www.flickr.com/
|
582
|
+
[myflickr]: http://www.flickr.com/photos/censi
|
583
|
+
[bibconverter]: http://www.bibconverter.net/ieeexplore/
|
584
|
+
[autotools]: http://sources.redhat.com/autobook/
|
585
|
+
[jedit]: http://www.jedit.org/
|
586
|
+
[qt]: http://www.trolltech.no/
|
587
|
+
[gsl]: http://www.gnu.org/software/gsl/
|
588
|
+
[magick]: http://www.imagemagick.org/Magick++/
|
589
|
+
[cairo]: http://cairographics.org/
|
590
|
+
[boost]: http://www.boost.org/
|
591
|
+
[markdown]: http://en.wikipedia.org/wiki/Markdown
|
592
|
+
[trac]: http://trac.edgewall.org/
|
593
|
+
[mutopia]: http://www.mutopiaproject.org/
|
594
|
+
[liberliber]: http://www.liberliber.it/
|
595
|
+
[gutenberg]: http://www.gutenberg.org/
|
596
|
+
[java-generics]: http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html
|
597
|
+
|
598
|
+
|
599
|
+
*** Output of to_s ***
|
600
|
+
GeneralOperating System : Mac OS X: heaven, after the purgatory of Linux and the hell of Windows.Browser: Firefox. On a Mac, Camino.Email: GMail, search, dont sort really works.Text Editor: TextMate, you have to buy it, but its worth every penny. There are rumours that its been converting (recovering) Emacs users (addicts). Unfortunately, its Mac only. An alternative is jedit (GPL, Java).DevelopmentBuild system: cmake, throw the autotools away.Source code control system: ditch CVS for subversion.Project management: Trac tracks everything.Scripting language: Ruby is Japanese pragmatism (and has a poignant guide). Python, you say? Python is too academic and snob:Java IDE: JBuilder is great software and has a free version (IMHO better than Eclipse). Java is not a pain anymore since it gained generics and got opensourced.Mark-up language: HTML is so 2001, why dont you take at look at Markdown? Look at the source of this page.C++ libraries: * QT for GUIs. * GSL for math. * Magick++ for manipulating images. * Cairo for creating PDFs. * Boost for just about everything else.ResearchWriting papers: LaTeXWriting papers & enjoying the process: LyXHandsome figures in your papers: xfig or, better, jfig.The occasional presentation with many graphical content: OpenOffice Impress (using the OOOlatex plugin); the alternative is PowerPoint with the TexPoint plugin.Managing BibTeX: jabref: multi-platform, for all your bibtex needs.IEEExplore and BibTeX: convert citations using BibConverter.Cool websitesBest site in the wwworld: WikipediaMutopia for sheet music; the Gutenberg Project for books; LiberLiber for books in italian.Blogs: BloglinesSharing photos: flickr exposes an API you can use.
|