summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Ms.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-23 21:24:01 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-23 21:24:01 +0100
commitf0abbe7533db3e2c14066bddbb5d52ade1ef0685 (patch)
treeedfa7ab6febb2c9a3c08d836c484994f78b5baf4 /src/Text/Pandoc/Writers/Ms.hs
parentffd699385a9ea040e6859b7b882b4190597a7f0c (diff)
Allow creation of pdf via groff ms and pdfroff.
pandoc -t ms -o output.pdf input.txt
Diffstat (limited to 'src/Text/Pandoc/Writers/Ms.hs')
-rw-r--r--src/Text/Pandoc/Writers/Ms.hs23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/Text/Pandoc/Writers/Ms.hs b/src/Text/Pandoc/Writers/Ms.hs
index e326f19ab..4e6ae0951 100644
--- a/src/Text/Pandoc/Writers/Ms.hs
+++ b/src/Text/Pandoc/Writers/Ms.hs
@@ -37,28 +37,11 @@ TODO:
[ ] tight/loose list distinction
[ ] internal hyperlinks (this seems to be possible since
they exist in the groff manual PDF version)
-[ ] better handling of accented characters and other non-ascii
- characters (e.g. curly quotes).
- Note: recent versions of groff (more recent than standard
- on many systems) include a -k option which runs preconv.
- preconv basically converts non-ascii characters
- to \[uXXXX] entities. Since we can't assume that the local
- groff has the -k option, we could have any invocation of
- groff in Text.Pandoc.PDF filter the input through a Haskell
- function that does what preconv does.
- On the other hand: only recent groffs have -Tpdf. so
- if we want compatibility with older groffs, we need to to
- -Tps and pipe through ps2pdf (can we assume it's available?).
- A big advantage of gropdf: it supports the tag
- \X'pdf: pdfpic file alignment width height line-length'
- and also seems to support bookmarks.
- See also the pdfroff shell script that comes with more
- recent versions of groff.
-[ ] add via groff option to PDF module
-[ ] better handling of images, perhaps converting to eps when
- going to PDF?
[ ] better template, with configurable page number, table of contents,
columns, etc.
+[ ] support for images? gropdf (and maybe pdfroff) supports the tag
+ \X'pdf: pdfpic file alignment width height line-length'
+ and also seems to support bookmarks.
-}
module Text.Pandoc.Writers.Ms ( writeMs ) where