aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2012-07-15 15:28:14 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2012-07-15 15:28:14 +0200
commitc0c36e5f14594269e98cfcecf5e5c2161f179f83 (patch)
tree20e93b43347330a50333b8b0988a45a1385197b0 /build.py
parentd1a185688dddc7cb96cbee4369c5857d64ad4c8b (diff)
build.py: lingua italiana
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/build.py b/build.py
index ee821c8..70787f2 100755
--- a/build.py
+++ b/build.py
@@ -17,7 +17,8 @@ def build_html(srcdir,destdir):
publish_file(source_path=os.path.join(srcdir,fname),
destination_path=os.path.join(destdir,basename+'.html'),
writer_name="html",
- settings_overrides={'initial_header_level':'2'})
+ settings_overrides={'initial_header_level':'2',
+ 'language_code':'it'})
else:
shutil.copy(os.path.join(srcdir,fname),os.path.join(destdir,fname))
@@ -31,7 +32,8 @@ def build_latex(srcdir,destdir):
publish_file(source_path=os.path.join(srcdir,fname),
destination_path=os.path.join(destdir,basename+'.tex'),
writer_name="xetex",
- settings_overrides={'stylesheet':'amssymb'})
+ settings_overrides={'stylesheet':'amssymb',
+ 'language_code':'it'})
#elif ext == '.svg':
# subprocess.call(['inkscape','--export-pdf',
# os.path.join(destdir,basename+'pdf'),
@@ -66,7 +68,8 @@ def build_odt(srcdir,destdir):
try:
publish_file(source_path=os.path.join(srcdir,fname),
destination_path=os.path.join(destdir,basename+'.odt'),
- writer_name="odf_odt")
+ writer_name="odf_odt",
+ settings_overrides={'language_code':'it'})
except IOError: # allow it to die on PIL issues
pass