Update docstring with api keyword and ospworks url
[o_s.git] / main.py
blob2129582bbc5c7f1430e7776d94bec04afb3bd890
1 #!/usr/bin/env python
3 """
4 A possible use of the odfpy api for the `Openbaar Schrijver' book.
5 Written by Open Source Publishing.
7 http://ospublish.constantvzw.org/works/valentine-scripting
8 http://ospublish.constantvzw.org/works/index.php?/project/publication-templates---openbaar-schrijver/
9 """
11 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
13 try:
14 import spices
15 from stylesheet import text_style
16 from liblove import directory_structure
17 except ImportError:
18 raise
20 if __name__ == "__main__":
21 directory_structure()
22 for genre in ["brief", "verhaal", "gedicht"]:
23 # import stylesheet is an easy way of getting at these arrays...
24 for style in text_style[genre].keys():
25 char_odts = spices.Character(genre, style)
26 char_odts.loop_over_spices()
27 ding_odts = spices.Dingbat(genre, style)
28 ding_odts.loop_over_spices()
29 img_odts = spices.ImageSpice(genre, style)
30 img_odts.loop_over_spices()