aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/GroffChar.hs
AgeCommit message (Collapse)AuthorFilesLines
2018-10-24Rename manEscapes -> standardEscapesJohn MacFarlane1-3/+3
2018-10-23Groff writer character escaping changes.John MacFarlane1-9/+14
T.P.GroffChar: replaced `essentialEscapes` with `manEscapes`, which includes all the escapes mentioned in the groff_man manual. T.P.Writers.Groff: removed escapeCode; changed parameter on escapeString from Bool to new type `EscapeMode`. Rewrote `escapeString`.
2018-10-22GroffChar: Proper combining characters for combining accents.John MacFarlane1-6/+21
2018-10-18GroffChar: fixed interpretation of `\-`.John MacFarlane1-1/+1
It is the ascii - sign, not the unicode hyphen.
2018-10-18Groff escaping changes.John MacFarlane1-15/+16
- `--ascii` is now turned on automatically for man output, for portability. All man output will be escaped to ASCII. - In T.P.Writers.Groff, `escapeChar`, `escapeString`, and `escapeCode` now take a boolean parameter that selects ascii-only output. This is used by the Ms writer for `--ascii`, instead of doing an extra pass after writing the document. - In ms output without `--ascii`, unicode is used whenever possible (e.g. for double quotes). - A few escapes are changed: e.g. `\[rs]` instead of `\\` for backslash, and `\ga]` instead of `` \` `` for backtick.
2018-10-18Add Text.Pandoc.GroffChar.John MacFarlane1-0/+418
This will hold common escaping data for groff characters.