git.iko.soy/typeable/pandoc
on master help sign in
Docbook writer: use unicode instead of entities.
c7149d3fiddlosopher
src/Text/Pandoc/Writers/Docbook.hs+3−3
@@ -244,9 +244,9 @@ inlineToDocbook opts (Quoted _ lst) =
244inlineToDocbook opts (Cite _ lst) =
244inlineToDocbook opts (Cite _ lst) =
245 inlinesToDocbook opts lst
245 inlinesToDocbook opts lst
246inlineToDocbook _ Apostrophe = char '\''
246inlineToDocbook _ Apostrophe = char '\''
247−inlineToDocbook _ Ellipses = text "…"
247+inlineToDocbook _ Ellipses = text "…"
248−inlineToDocbook _ EmDash = text "—"
248+inlineToDocbook _ EmDash = text "—"
249−inlineToDocbook _ EnDash = text "–"
249+inlineToDocbook _ EnDash = text "–"
250inlineToDocbook _ (Code str) =
250inlineToDocbook _ (Code str) =
251 inTagsSimple "literal" $ text (escapeStringForXML str)
251 inTagsSimple "literal" $ text (escapeStringForXML str)
252inlineToDocbook opts (Math _ str) = inlinesToDocbook opts $ readTeXMath str
252inlineToDocbook opts (Math _ str) = inlinesToDocbook opts $ readTeXMath str
tests/writer.docbook+6−7
@@ -605,7 +605,7 @@ These should not be escaped: \$ \\ \> \[ \{
605 Should not be a list item:
605 Should not be a list item:
606 </para>
606 </para>
607 <para>
607 <para>
608− M.A.&#160;2007
608+ M.A. 2007
609 </para>
609 </para>
610 <para>
610 <para>
611 B. Williams
611 B. Williams
@@ -1025,12 +1025,11 @@ Blah
1025 <para>
1025 <para>
1026 Superscripts: a<superscript>bc</superscript>d
1026 Superscripts: a<superscript>bc</superscript>d
1027 a<superscript><emphasis>hello</emphasis></superscript>
1027 a<superscript><emphasis>hello</emphasis></superscript>
1028− a<superscript>hello&#160;there</superscript>.
1028+ a<superscript>hello there</superscript>.
1029 </para>
1029 </para>
1030 <para>
1030 <para>
1031 Subscripts: H<subscript>2</subscript>O,
1031 Subscripts: H<subscript>2</subscript>O,
1032− H<subscript>23</subscript>O,
1033− H<subscript>many&#160;of&#160;them</subscript>O.
1032+ H<subscript>23</subscript>O, H<subscript>many of them</subscript>O.
1034 </para>
1033 </para>
1035 <para>
1034 <para>
1036 These should not be superscripts or subscripts, because of the
1035 These should not be superscripts or subscripts, because of the
@@ -1060,13 +1059,13 @@ Blah
1060 <quote><ulink url="http://example.com/?foo=1&amp;bar=2">quoted link</ulink></quote>.
1059 <quote><ulink url="http://example.com/?foo=1&amp;bar=2">quoted link</ulink></quote>.
1061 </para>
1060 </para>
1062 <para>
1061 <para>
1063− Some dashes: one&#8212;two &#8212; three&#8212;four &#8212; five.
1062+ Some dashes: one—two — three—four — five.
1064 </para>
1063 </para>
1065 <para>
1064 <para>
1066− Dashes between numbers: 5&#8211;7, 255&#8211;66, 1987&#8211;1999.
1065+ Dashes between numbers: 5–7, 255–66, 1987–1999.
1067 </para>
1066 </para>
1068 <para>
1067 <para>
1069− Ellipses&#8230;and&#8230;and&#8230;.
1068+ Ellipses…and…and….
1070 </para>
1069 </para>
1071</section>
1070</section>
1072<section id="latex">
1071<section id="latex">