Update docstring with api keyword and ospworks url
[o_s.git] / stylesheet.py
blob3b97ce14e3f685bb57e4b6223b0177d37eed132f
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
4 """
5 A possible use of the odfpy api for the `Openbaar Schrijver' book.
6 Written by Open Source Publishing.
8 http://ospublish.constantvzw.org/works/valentine-scripting
9 http://ospublish.constantvzw.org/works/index.php?/project/publication-templates---openbaar-schrijver/
10 """
12 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
14 ## text
15 text_template = {
16 "brief" : {
17 "country" : "NL",
18 "language" : "nl",
20 "gedicht" : {
21 "country" : "NL",
22 "language" : "nl",
23 "hyphenate" : "no",
25 "verhaal" : {
26 "country" : "NL",
27 "language" : "nl",
28 "hyphenate" : "yes",
29 "hyphenationpushcharcount" : 3,
30 "hyphenationremaincharcount" : 2,
34 text_style = {
35 "brief" : {
36 "dromen" : {
37 "fontfamily" : "Libertinage",
38 #could not find fontsize in file
39 "fontsize" : "10.34pt",
41 "nevels" : {
42 "fontfamily" : "Cimatics_Dust",
43 "fontsize" : "10.34pt",
45 "oesters" : {
46 "fontfamily" : "whiskyjazz",
47 "fontsize" : "10pt",
49 "rivieren" : {
50 "fontfamily" : "Limousine",
51 "fontsize" : "10.34pt",
53 "toekan" : {
54 "fontfamily" : "diluvienne",
55 "fontsize" : "25.38pt",
57 "zon" : {
58 "fontfamily" : "NotCourierSans",
59 "fontsize" : "10pt",
62 "gedicht" : {
63 "golven" : {
64 "fontfamily" : "Cimatics_Noise",
65 "fontsize" : "13.16pt",
67 "octopus" : {
68 "fontfamily" : "diluvienne",
69 "fontsize" : "29.14pt",
71 # gui says something about shadows for rodepepers
72 # can't see where they come from!
73 "rodepepers" : {
74 "fontfamily" : "whiskyjazz",
75 "fontsize" : "13.16pt",
77 "souvenirs" : {
78 "fontfamily" : "Libertinage",
79 "fontsize" : "15.04pt",
81 "ster" : {
82 "fontfamily" : "NotCourierSans",
83 "fontsize" : "12.22pt",
85 # gui says something about vulkanen shadows
86 # can't see where they come from!
87 "vulkanen" : {
88 "fontfamily" : "Limousine",
89 "fontsize" : "14.10pt",
92 "verhaal" : {
93 # again something about shadows
94 "ijs" : {
95 "fontfamily" : "whiskyjazz",
96 "fontsize" : "8.93pt",
98 # shadows here too!
99 "maan" : {
100 "fontfamily" : "NotCourierSans",
101 "fontsize" : "8.46pt",
103 "panter" : {
104 "fontfamily" : "diluvienne",
105 "fontsize" : "25.38pt",
107 "stormen" : {
108 "fontfamily" : "Cimatics_Dust",
109 "fontsize" : "9pt",
111 "valleien" : {
112 "fontfamily" : "Limousine",
113 "fontsize" : "9.4pt",
115 "verlangens" : {
116 "fontfamily" : "Libertinage",
117 "fontsize" : "9.87pt",
122 paragraph_template = {
123 "brief" : {
124 "textalign" : "left",
125 "textindent" : "5mm",
126 "orphans" : 2,
128 "gedicht" : {
129 "textalign" : "left",
130 "textindent" : "-15mm",
131 # i think that marginleft in paragraphstyle = spacebeforetext in gui
132 "marginleft" : "15mm",
133 "orphans" : 2,
135 "verhaal" : {
136 "textalign" : "justify",
137 "textindent" : "8mm",
138 "orphans" : 2,
142 paragraph_style = {
143 "brief" : {
144 "dromen" : {
145 "lineheight" : "0.206in",
147 "nevels" : {
148 "lineheight" : "0.206in",
150 "oesters" : {
151 "lineheight" : "0.200in",
153 "rivieren" : {
154 "lineheight" : "0.206in",
156 "toekan" : {
157 "lineheight" : "0.253in",
159 "zon" : {
160 "lineheight" : "0.193in",
163 "gedicht" : {
164 "golven" : {
165 "lineheight" : "0.282in",
167 "octopus" : {
168 "lineheight" : "0.272in",
170 "rodepepers" : {
171 "lineheight" : "0.282in",
173 "souvenirs" : {
174 "lineheight" : "0.34in",
176 "ster" : {
177 "lineheight" : "0.272in",
179 "vulkanen" : {
180 "lineheight" : "0.3in",
183 "verhaal" : {
184 "ijs" : {
185 "lineheight" : "0.178in",
187 "maan" : {
188 "lineheight" : "0.169in",
190 "panter" : {
191 "lineheight" : "0.235in",
193 "stormen" : {
194 "lineheight" : "0.17in",
196 "valleien" : {
197 "lineheight" : "0.169in",
199 "verlangens" : {
200 "lineheight" : "0.169in",