[NTG-context] reStructuredText module

Philipp Gesang philipp.gesang at alumni.uni-heidelberg.de
Tue Mar 12 01:31:16 CET 2013


Hi Bill.

···<date: 2013-03-11, Monday>···<from: Bill Meahan>···

> Am I correct in thinking the rst module does not process the "class"
> and "container" directives?

When I wrote the module I was working with the reST spec [0] and
the syntax reference [1]. It’s been a while, but afair I
implemented the spec completely (with the limitations described
in the manual). It does not, to my knowledge, define the
directives you mention and I don’t know what they’re supposed to
do.

(Btw. like much of the spec, “container” and “class” sound
suspiciously HTML-specific. If that is true, they address one
output markup which happens to be -- not Context! I might find
the time to add a simple wrapper for the container thingy (to
boxes or framed?). However, I doubt that it’s possible to
replicate the behavior of HTML divs + CSS without a larger effort
[2]. In this case it might be preferable to have docutils
generate some XML and directly typeset the result with Context.)

Best regards
Philipp

[0] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html
[1] http://docutils.sourceforge.net/docs/user/rst/quickref.html
[2] Also, I have reservations against such a step. My main reason
    for choosing reST over its competitors like md or wikitext is
    actually that it does not allow for inline HTML.


> I looked through the Lua source and didn't see anyplace where these
> directives are processed although I will be the first to admit I
> don't know much about Lua. I retired from software development
> before Lua became popular and never bothered to learn it. Assembler,
> FORTRAN, C, SQL, PL/SQL, Perl.... I know or knew, Lua I do not. :)
> 
> I use these directives heavily and pandoc ignores them so I'm
> beginning to think I have a problem generating EPUB + ConTeXt +
> HTML(5) versions of the same document from common rst source.
> 
> Thanks!  All information and suggestions welcome.
> 
> -- 
> Bill Meahan
> Westland, Michigan USA
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at 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
> ___________________________________________________________________________________

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130312/fa9d4cbc/attachment.pgp>


More information about the ntg-context mailing list