openbaar-schrijver
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

stylesheet.py
text/x-python

Download raw (3.4 KB)

# lovely!
#
## text
text_template = {
	"brief" : {
		"country" : "NL",
		"language" : "nl",
	},
	"gedicht" : {
		"country" : "NL",
		"language" : "nl",
		"hyphenate" : "no",
	},
	"verhaal" : {
		"country" : "NL",
		"language" : "nl",
		"hyphenate" : "yes",
		"hyphenationpushcharcount" : 3,
		"hyphenationremaincharcount" : 2,
	},
}

text_style = {
	"brief" : {
		"dromen" : {
			"fontfamily" : "Libertinage",
			#could not find fontsize in file
			"fontsize" : "10.34pt",
		},
		"nevels" : {
			"fontfamily" : "Cimatics_Dust",
			"fontsize" : "10.34pt",
		},
		"oesters" : {
			"fontfamily" : "whiskyjazz",
			"fontsize" : "10pt",
		},
		"rivieren" : {
			"fontfamily" : "Limousine",
			"fontsize" : "10.34pt",
		},
		"toekan" : {
			"fontfamily" : "diluvienne",
			"fontsize" : "25.38pt",
		},
		"zon" : {
			"fontfamily" : "NotCourierSans",
			"fontsize" : "10pt",
		},
	},
	"gedicht" : {
		"golven" : {
			"fontfamily" : "Cimatics_Noise",
			"fontsize" : "13.16pt",
		},
		"octopus" : {
			"fontfamily" : "diluvienne",
			"fontsize" : "29.14pt",
		},
		# gui says something about shadows for rodepepers
		# can't see where they come from!
		"rodepepers" : {
			"fontfamily" : "whiskyjazz",
			"fontsize" : "13.16pt",
		},
		"souvenirs" : {
			"fontfamily" : "Libertinage",
			"fontsize" : "15.04pt",
		},
		"ster" : {
			"fontfamily" : "NotCourierSans",
			"fontsize" : "12.22pt",
		},
		# gui says something about vulkanen shadows
		# can't see where they come from!
		"vulkanen" : {
			"fontfamily" : "Limousine",
			"fontsize" : "14.10pt",
		},
	},
	"verhaal" : {
		# again something about shadows
		"ijs" : {
			"fontfamily" : "whiskyjazz",
			"fontsize" : "8.93pt",
		},
		# shadows here too!
		"maan" : {
			"fontfamily" : "NotCourierSans",
			"fontsize" : "8.46pt",
		},
		"panter" : {
			"fontfamily" : "diluvienne",
			"fontsize" : "25.38pt",
		},
		"stormen" : {
			"fontfamily" : "Cimatics_Dust",
			"fontsize" : "9pt",
		},
		"valleien" : {
			"fontfamily" : "Limousine",
			"fontsize" : "9.4pt",
		},
		"verlangens" : {
			"fontfamily" : "Libertinage",
			"fontsize" : "9.87pt",
		},
	},
}

paragraph_template = {
	"brief" : {
		"textalign" : "left",
		"textindent" : "5mm",
		"orphans" : 2,
	},
	"gedicht" : {
		"textalign" : "left",
		"textindent" : "-15mm",
		# i think that marginleft in paragraphstyle = spacebeforetext in gui
		"marginleft" : "15mm",
		"orphans" : 2,
	},
	"verhaal" : {
		"textalign" : "justify",
		"textindent" : "8mm",
		"orphans" : 2,
	},
}

paragraph_style = {
	"brief" : {
		"dromen" : {
			"lineheight" : "0.206in",
		},
		"nevels" : {
			"lineheight" : "0.206in",
		},
		"oesters" : {
			"lineheight" : "0.200in",
		},
		"rivieren" : {
			"lineheight" : "0.206in",
		},
		"toekan" : {
			"lineheight" : "0.253in",
		},
		"zon" : {
			"lineheight" : "0.193in",
		},
	},
	"gedicht" : {
		"golven" : {
			"lineheight" : "0.282in",
		},
		"octopus" : {
			"lineheight" : "0.272in",
		},
		"rodepepers" : {
			"lineheight" : "0.282in",
		},
		"souvenirs" : {
			"lineheight" : "0.34in",
		},
		"ster" : {
			"lineheight" : "0.272in",
		},
		"vulkanen" : {
			"lineheight" : "0.3in",
		},
	},
	"verhaal" : {
		"ijs" : {
			"lineheight" : "0.178in",
		},
		"maan" : {
			"lineheight" : "0.169in",
		},
		"panter" : {
			"lineheight" : "0.235in",
		},
		"stormen" : {
			"lineheight" : "0.17in",
		},
		"valleien" : {
			"lineheight" : "0.169in",
		},
		"verlangens" : {
			"lineheight" : "0.169in",
		},
	},
}