Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)
On Tue, Jul 19, 2011 at 02:37:33PM +0200, Hans Hagen wrote: > On 19-7-2011 12:46, luigi scarso wrote: > >On Tue, Jul 19, 2011 at 12:41 PM, John Haltiwanger > > wrote: > >> > >> > >>On Tue, Jul 19, 2011 at 3:27 AM, Martin Schröder wrote: > >>> > >>>2011/7/19 Cecil Westerhof: > When you find them, I would be interested in them. And maybe I can > improve > on them. > >>> > >>> > >>>Pandoc. :-) > >> > >>Pandoc does not support Context as an input. Nor does it support modern mkIV > >>conventions (\startchapter..\stopchapter; \hyphenatedURL; etc). > >>If anyone knows Haskell, maybe we can submit some patches to Pandoc to > >>create a --mkiv switch for Context? > >I don't know haskell, but it sound like a good excuse to start. > > it might be way easier to convert the xml export to pandoc because > then users can still define commands (like special sectioning); > otherwise you keep extending Indeed, I was about to suggest the same. Handling xml exported by ConTeXt avoids all the complexities of parsing TeX code and avoids the need to only support some predefined subset of it (which is inevitable). Regards, Khaled -- Khaled Hosny Egyptian Arab ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)
On Tue, Jul 19, 2011 at 2:37 PM, Hans Hagen wrote: > On 19-7-2011 12:46, luigi scarso wrote: >> I don't know haskell, but it sound like a good excuse to start. > > it might be way easier to convert the xml export to pandoc because then > users can still define commands (like special sectioning); otherwise you > keep extending yes I know that as an excuse is a bit weak... -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)
On 19-7-2011 12:46, luigi scarso wrote: On Tue, Jul 19, 2011 at 12:41 PM, John Haltiwanger wrote: On Tue, Jul 19, 2011 at 3:27 AM, Martin Schröder wrote: 2011/7/19 Cecil Westerhof: When you find them, I would be interested in them. And maybe I can improve on them. Pandoc. :-) Pandoc does not support Context as an input. Nor does it support modern mkIV conventions (\startchapter..\stopchapter; \hyphenatedURL; etc). If anyone knows Haskell, maybe we can submit some patches to Pandoc to create a --mkiv switch for Context? I don't know haskell, but it sound like a good excuse to start. it might be way easier to convert the xml export to pandoc because then users can still define commands (like special sectioning); otherwise you keep extending Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)
2011/7/19 luigi scarso > > Pandoc does not support Context as an input. Nor does it support modern > mkIV > > conventions (\startchapter..\stopchapter; \hyphenatedURL; etc). > > If anyone knows Haskell, maybe we can submit some patches to Pandoc to > > create a --mkiv switch for Context? > I don't know haskell, but it sound like a good excuse to start. > I was thinking the same. ;-} -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)
On Tue, Jul 19, 2011 at 12:41 PM, John Haltiwanger wrote: > > > On Tue, Jul 19, 2011 at 3:27 AM, Martin Schröder wrote: >> >> 2011/7/19 Cecil Westerhof : >> > When you find them, I would be interested in them. And maybe I can >> > improve >> > on them. >> >> >> Pandoc. :-) > > Pandoc does not support Context as an input. Nor does it support modern mkIV > conventions (\startchapter..\stopchapter; \hyphenatedURL; etc). > If anyone knows Haskell, maybe we can submit some patches to Pandoc to > create a --mkiv switch for Context? I don't know haskell, but it sound like a good excuse to start. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)
On Tue, Jul 19, 2011 at 3:27 AM, Martin Schröder wrote: > 2011/7/19 Cecil Westerhof : > > When you find them, I would be interested in them. And maybe I can > improve > > on them. > > Pandoc. :-) > Pandoc does not support Context as an input. Nor does it support modern mkIV conventions (\startchapter..\stopchapter; \hyphenatedURL; etc). If anyone knows Haskell, maybe we can submit some patches to Pandoc to create a --mkiv switch for Context? Don't get me wrong, I use Pandoc all the time. But it is not a panacea, particularly for existing Context documents. > Best >Martin > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)
2011/7/19 Cecil Westerhof : > When you find them, I would be interested in them. And maybe I can improve > on them. Pandoc. :-) Best Martin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)
2011/7/18 Aditya Mahajan > On Thu, 14 Jul 2011, John Haltiwanger wrote: > > PS. For what it is worth, I do not think it would be _too_ hard to create >> a >> Context to Markdown translator. >> > > Yes. A while back I did some tests (though I cannot find them now), and had > most of the basic ConTeXt-to-markdown working (sections, blockquotes, > typing, itemize, footnotes (via endnotes); but no tables and figures). The > main idea was to *typeset* the output as you would expect a markdown > documnet to be, and then use pdftotext to convert it to text. (Hans had > mentioned this as a possible way to convert to HTML during TUG 2009). > When you find them, I would be interested in them. And maybe I can improve on them. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___