Hello group,

after playing around with Sphinx (impressive piece of software!) for a couple of weeks and writing a small custom directive, I'd now like to implement a "custom pattern", i.e. I'd like a callback to be invoked each time a certain pattern appears in the text (regardless or the context).

To be more specific, I'd like to use patterns like "(X0)" to label and reference parts of the text (lemmas, theorems and the like), so I need to hook into Sphinx and have a callback invoked, preferable with the context surrounding the pattern. I could then decide whether this appearance defines a lemma or references it, I could add it to a TOC etc.

I guess this is much harder to achieve than writing a custom directive, maybe it is even too low-level for Sphinx and rather a problem of extending Docutils than Sphinx ...

Hence, any ideas and hints how to proceed are welcome.

Thanks
Malte

--
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to