git.iko.soy/typeable/pandoc
on master help sign in
Updated writer tests for new version of texmath.
commit1da1d4ec24533e0213d91efb3529d5f84e189465 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 12 Nov 2011, 13:25 (15 years ago) parentbf4f8ff
5 files changed+25−20
tests/writer.docbook+2−2 tests/writer.html+2−2 tests/writer.man+3−2 tests/writer.opendocument+16−12 tests/writer.rtf+2−2
tests/writer.docbook+2−2
@@ -1077,7 +1077,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
10771077 </listitem>
10781078 <listitem>
10791079 <para>
1080− α ∧ ω
1080+ <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
10811081 </para>
10821082 </listitem>
10831083 <listitem>
@@ -1099,7 +1099,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
10991099 <listitem>
11001100 <para>
11011101 Here's one that has a line break in it:
1102− α + ω × <emphasis>x</emphasis><superscript>2</superscript>.
1102+ <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
11031103 </para>
11041104 </listitem>
11051105 </itemizedlist>
tests/writer.html+2−2
@@ -444,11 +444,11 @@ Blah
444444<li></li>
445445<li><span class="math">2 + 2 = 4</span></li>
446446<li><span class="math"><em>x</em> ∈ <em>y</em></span></li>
447−<li><span class="math">α ∧ ω</span></li>
447+<li><span class="math"><em>α</em> ∧ <em>ω</em></span></li>
448448<li><span class="math">223</span></li>
449449<li><span class="math"><em>p</em></span>-Tree</li>
450450<li>Here’s some display math: <br /><span class="math">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span><br /></li>
451−<li>Here’s one that has a line break in it: <span class="math">α + ω × <em>x</em><sup>2</sup></span>.</li>
451+<li>Here’s one that has a line break in it: <span class="math"><em>α</em> + <em>ω</em> × <em>x</em><sup>2</sup></span>.</li>
452452</ul>
453453<p>These shouldn’t be math:</p>
454454<ul>
tests/writer.man+3−2
@@ -564,7 +564,7 @@ Ellipses\&...and\&...and\&....
564564.IP \[bu] 2
565565\f[I]x\f[] ∈ \f[I]y\f[]
566566.IP \[bu] 2
567−α ∧ ω
567+\f[I]α\f[] ∧ \f[I]ω\f[]
568568.IP \[bu] 2
569569223
570570.IP \[bu] 2
@@ -575,7 +575,8 @@ Here's some display math:
575575$\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}$
576576.RE
577577.IP \[bu] 2
578−Here's one that has a line break in it: α + ω × \f[I]x\f[]^2^.
578+Here's one that has a line break in it:
579+\f[I]α\f[] + \f[I]ω\f[] × \f[I]x\f[]^2^.
579580.PP
580581These shouldn't be math:
581582.IP \[bu] 2
tests/writer.opendocument+16−12
@@ -689,17 +689,21 @@
689689 <style:style style:name="T59" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
690690 <style:style style:name="T60" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
691691 <style:style style:name="T61" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
692− <style:style style:name="T62" style:family="text"><style:text-properties style:text-position="super 58%" /></style:style>
692+ <style:style style:name="T62" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
693693 <style:style style:name="T63" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
694694 <style:style style:name="T64" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
695695 <style:style style:name="T65" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
696− <style:style style:name="T66" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
696+ <style:style style:name="T66" style:family="text"><style:text-properties style:text-position="super 58%" /></style:style>
697697 <style:style style:name="T67" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
698698 <style:style style:name="T68" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
699699 <style:style style:name="T69" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
700700 <style:style style:name="T70" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
701701 <style:style style:name="T71" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
702702 <style:style style:name="T72" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
703+ <style:style style:name="T73" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
704+ <style:style style:name="T74" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
705+ <style:style style:name="T75" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
706+ <style:style style:name="T76" style:family="text"><style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" /></style:style>
703707 <style:style style:name="P1" style:family="paragraph" style:parent-style-name="Quotations">
704708 <style:paragraph-properties fo:margin-left="0.5in" fo:margin-right="0in" fo:text-indent="0in" style:auto-text-indent="false" />
705709 </style:style>
@@ -1400,13 +1404,13 @@ three&#8212;four &#8212; five.</text:p>
14001404 <text:p text:style-name="P51"><text:span text:style-name="T58">x</text:span> ∈ <text:span text:style-name="T59">y</text:span></text:p>
14011405 </text:list-item>
14021406 <text:list-item>
1403− <text:p text:style-name="P51">α ∧ ω</text:p>
1407+ <text:p text:style-name="P51"><text:span text:style-name="T60">α</text:span> ∧ <text:span text:style-name="T61">ω</text:span></text:p>
14041408 </text:list-item>
14051409 <text:list-item>
14061410 <text:p text:style-name="P51">223</text:p>
14071411 </text:list-item>
14081412 <text:list-item>
1409− <text:p text:style-name="P51"><text:span text:style-name="T60">p</text:span>-Tree</text:p>
1413+ <text:p text:style-name="P51"><text:span text:style-name="T62">p</text:span>-Tree</text:p>
14101414 </text:list-item>
14111415 <text:list-item>
14121416 <text:p text:style-name="P51">Here&#8217;s some display math:
@@ -1415,7 +1419,7 @@ three&#8212;four &#8212; five.</text:p>
14151419 <text:list-item>
14161420 <text:p text:style-name="P51">Here&#8217;s one that has a line break in
14171421 it:
1418− α + ω × <text:span text:style-name="T61">x</text:span><text:span text:style-name="T62">2</text:span>.</text:p>
1422+ <text:span text:style-name="T63">α</text:span> + <text:span text:style-name="T64">ω</text:span> × <text:span text:style-name="T65">x</text:span><text:span text:style-name="T66">2</text:span>.</text:p>
14191423 </text:list-item>
14201424</text:list>
14211425<text:p text:style-name="First_20_paragraph">These shouldn&#8217;t be
@@ -1427,7 +1431,7 @@ math:</text:p>
14271431 </text:list-item>
14281432 <text:list-item>
14291433 <text:p text:style-name="P52">$22,000 is a
1430− <text:span text:style-name="T63">lot</text:span> of money. So is $34,000.
1434+ <text:span text:style-name="T67">lot</text:span> of money. So is $34,000.
14311435 (It worked if &#8220;lot&#8221; is emphasized.)</text:p>
14321436 </text:list-item>
14331437 <text:list-item>
@@ -1436,10 +1440,10 @@ math:</text:p>
14361440 <text:list-item>
14371441 <text:p text:style-name="P52">Escaped
14381442 <text:span text:style-name="Teletype">$</text:span>: $73
1439− <text:span text:style-name="T64">this</text:span><text:span text:style-name="T65">
1440− </text:span><text:span text:style-name="T66">should</text:span><text:span text:style-name="T67">
1441− </text:span><text:span text:style-name="T68">be</text:span><text:span text:style-name="T69">
1442− </text:span><text:span text:style-name="T70">emphasized</text:span>
1443+ <text:span text:style-name="T68">this</text:span><text:span text:style-name="T69">
1444+ </text:span><text:span text:style-name="T70">should</text:span><text:span text:style-name="T71">
1445+ </text:span><text:span text:style-name="T72">be</text:span><text:span text:style-name="T73">
1446+ </text:span><text:span text:style-name="T74">emphasized</text:span>
14431447 23$.</text:p>
14441448 </text:list-item>
14451449</text:list>
@@ -1589,10 +1593,10 @@ indented to show that they belong to the footnote (as with list
15891593items).</text:p><text:p text:style-name="P58"><text:s text:c="2" />{ &lt;code&gt; }</text:p><text:p text:style-name="Footnote">If
15901594you want, you can indent every line, but you can also be lazy and just indent
15911595the first line of each block.</text:p></text:note-body></text:note> This
1592−should <text:span text:style-name="T71">not</text:span> be a footnote
1596+should <text:span text:style-name="T75">not</text:span> be a footnote
15931597reference, because it contains a space.[^my note] Here is an inline
15941598note.<text:note text:id="ftn2" text:note-class="footnote"><text:note-citation>3</text:note-citation><text:note-body><text:p text:style-name="Footnote">This
1595−is <text:span text:style-name="T72">easier</text:span> to type. Inline notes
1599+is <text:span text:style-name="T76">easier</text:span> to type. Inline notes
15961600may contain
15971601<text:a xlink:type="simple" xlink:href="http://google.com" office:name=""><text:span text:style-name="Definition">links</text:span></text:a>
15981602and <text:span text:style-name="Teletype">]</text:span> verbatim characters,
tests/writer.rtf+2−2
@@ -266,11 +266,11 @@ quoted link
266266{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab \par}
267267{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab 2\u8197?+\u8197?2\u8196?=\u8196?4\par}
268268{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\i x}\u8196?\u8712?\u8196?{\i y}\par}
269−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab \u945?\u8197?\u8743?\u8197?\u969?\par}
269+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\i \u945?}\u8197?\u8743?\u8197?{\i \u969?}\par}
270270{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab 223\par}
271271{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\i p}-Tree\par}
272272{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab Here\u8217's some display math: $\\frac\{d\}\{dx\}f(x)=\\lim_\{h\\to 0\}\\frac\{f(x+h)-f(x)\}\{h\}$\par}
273−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab Here\u8217's one that has a line break in it: \u945?\u8197?+\u8197?\u969?\u8197?\u215?\u8197?{\i x}{\super 2}.\sa180\par}
273+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab Here\u8217's one that has a line break in it: {\i \u945?}\u8197?+\u8197?{\i \u969?}\u8197?\u215?\u8197?{\i x}{\super 2}.\sa180\par}
274274{\pard \ql \f0 \sa180 \li0 \fi0 These shouldn\u8217't be math:\par}
275275{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab To get the famous equation, write {\f1 $e = mc^2$}.\par}
276276{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab $22,000 is a {\i lot} of money. So is $34,000. (It worked if \u8220"lot\u8221" is emphasized.)\par}