Implement `--ascii` (`writerPreferAscii`) in writers, not App.
Now the `write*` functions for Docbook, HTML, ICML, JATS,
Man, Ms, OPML are sensitive to `writerPreferAscii`. Previously
the to-ascii translation was done in Text.Pandoc.App, and
thus not available to those using the writer functions
directly.
In addition, the LaTeX writer is now sensitive to
`writerPreferAscii` and to `--ascii`. 100% ASCII
output can't be guaranteed, but the writer will use
commands like `\"{a}` and `\l` whenever possible,
to avoid emiting a non-ASCII character.
A new unexported module, Text.Pandoc.Groff, has been
added to store functions used in the different groff-based
writers.
2018-10-01 07:32:00 +02:00
|
|
|
```
|
|
|
|
pandoc -t html --ascii
|
|
|
|
äéıå
|
|
|
|
^D
|
2018-11-02 00:08:27 +01:00
|
|
|
<p>äéıå</p>
|
Implement `--ascii` (`writerPreferAscii`) in writers, not App.
Now the `write*` functions for Docbook, HTML, ICML, JATS,
Man, Ms, OPML are sensitive to `writerPreferAscii`. Previously
the to-ascii translation was done in Text.Pandoc.App, and
thus not available to those using the writer functions
directly.
In addition, the LaTeX writer is now sensitive to
`writerPreferAscii` and to `--ascii`. 100% ASCII
output can't be guaranteed, but the writer will use
commands like `\"{a}` and `\l` whenever possible,
to avoid emiting a non-ASCII character.
A new unexported module, Text.Pandoc.Groff, has been
added to store functions used in the different groff-based
writers.
2018-10-01 07:32:00 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
pandoc -t latex --ascii
|
|
|
|
äéıå
|
|
|
|
^D
|
|
|
|
\"{a}\'{e}\i \r{a}
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
pandoc -t man --ascii
|
|
|
|
äéıå
|
|
|
|
^D
|
|
|
|
.PP
|
2018-10-18 19:21:34 +02:00
|
|
|
\[:a]\['e]\[.i]\[oa]
|
Implement `--ascii` (`writerPreferAscii`) in writers, not App.
Now the `write*` functions for Docbook, HTML, ICML, JATS,
Man, Ms, OPML are sensitive to `writerPreferAscii`. Previously
the to-ascii translation was done in Text.Pandoc.App, and
thus not available to those using the writer functions
directly.
In addition, the LaTeX writer is now sensitive to
`writerPreferAscii` and to `--ascii`. 100% ASCII
output can't be guaranteed, but the writer will use
commands like `\"{a}` and `\l` whenever possible,
to avoid emiting a non-ASCII character.
A new unexported module, Text.Pandoc.Groff, has been
added to store functions used in the different groff-based
writers.
2018-10-01 07:32:00 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
pandoc -t ms --ascii
|
|
|
|
äéıå
|
|
|
|
^D
|
|
|
|
.LP
|
2018-10-18 19:21:34 +02:00
|
|
|
\[:a]\['e]\[.i]\[oa]
|
Implement `--ascii` (`writerPreferAscii`) in writers, not App.
Now the `write*` functions for Docbook, HTML, ICML, JATS,
Man, Ms, OPML are sensitive to `writerPreferAscii`. Previously
the to-ascii translation was done in Text.Pandoc.App, and
thus not available to those using the writer functions
directly.
In addition, the LaTeX writer is now sensitive to
`writerPreferAscii` and to `--ascii`. 100% ASCII
output can't be guaranteed, but the writer will use
commands like `\"{a}` and `\l` whenever possible,
to avoid emiting a non-ASCII character.
A new unexported module, Text.Pandoc.Groff, has been
added to store functions used in the different groff-based
writers.
2018-10-01 07:32:00 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
pandoc -t docbook --ascii
|
|
|
|
äéıå
|
|
|
|
^D
|
|
|
|
<para>
|
|
|
|
äéıå
|
|
|
|
</para>
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
pandoc -t jats --ascii
|
|
|
|
äéıå
|
|
|
|
^D
|
|
|
|
<p>äéıå</p>
|
|
|
|
```
|