textmacros

Using Macros in Text
Download

textmacros Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Hans Nowak
  • Publisher web site:
  • http://zephyrfalcon.org/

textmacros Tags


textmacros Description

Using Macros in Text Macros in Firedrop2 are provided through the texmacros.py module. The same module is also used for macros in rest2web. This module is useful anywhere you are processing text for presentation. Macros insert text or html into your page, or can process whole chunks of text.The concept used by textmacros.py is very simple. Expressions in your text, surrounded by curly braces {like;this} are replaced with expanded versions. You define your own module with functions and classes. The macros map to function calls (or to method calls) on the text between the macros.textmacros allows you to add things like smilies, Python source coloring, acronyms, and other features to docutils.NoteThe textmacros module could be useful in many situations. It is bundled here with the buildhtml.py from docutils. It is specifically targetted at the html output of docutils.It would be very easy to adapt it for other situations (for example the latex output of docutils).InstallingYou don't need to install textmacros - unpack the zipfile and then use FuzzyBuilder.py in the same way that you use buildhtml.py.It does require the pythonutils module - which you'll need to install first. Requirements: · Python · Pythonutils


textmacros Related Software