Re: [Groff] Markdown to MOM Using Pandoc

2014-07-25 Thread Ralph Corderoy
Hi Yves, I have begun working on a custom writer for Pandoc to convert Markdown into MOM, Peter's Groff macro set. This is a nice idea. I see quite a few programs about that support various formats for backends, e.g. HTML and LaTeX, and often think having troff there too would raise its

Re: [Groff] Markdown to MOM Using Pandoc

2014-07-25 Thread Yves Cloutier
Hello Ralph, I'm not too familiar with troff/groff. My only exposure is through Peter Shaffter's MOM macros. However the approach you are describing is-I suspect-what I am trying to achieve with the Markdown-MOM writer script, but going a step further and automating the addition of macros for

Re: [Groff] Markdown to MOM Using Pandoc

2014-07-25 Thread Peter Schaffter
On Fri, Jul 25, 2014, Yves Cloutier wrote: Note that what I am generating are elements as defined by Peter's MOM Macros - not pure troff/groff. So in a sense, the second pass, as you describe (and if I understood it correctly) is automated by the Markdown-MOM writer script. You write

Re: [Groff] Markdown to MOM Using Pandoc

2014-07-24 Thread Peter Schaffter
On Wed, Jul 23, 2014, James K. Lowden wrote: Do you use stylesheets for documents? I've been writing on a computer since the days of Wordstar, and never felt the need. I think most people rely on the defaults and adjust them as needed, per-document. Which may explain the low-level

[Groff] Markdown to MOM Using Pandoc

2014-07-23 Thread Yves Cloutier
Hello, I have begun working on a custom writer for Pandoc to convert Markdown into MOM, Peter's Groff macro set. You can check it out here. https://github.com/cloutiy/markdown-to-mom I will upload my files in a few hours once I arrive home from work. I'm not a developer or programmer, so

Re: [Groff] Markdown to MOM Using Pandoc

2014-07-23 Thread Peter Schaffter
On Wed, Jul 23, 2014, Yves Cloutier wrote: Right now I have hardcoded some default values into the script that generates the MOM code, but the idea will be that all those settings that relate to HOW you want your document to look (like page size, margins, heading styles) would be specified in