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/
11 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
15 from stylesheet
import text_style
16 from liblove
import directory_structure
20 if __name__
== "__main__":
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()