From c0c36e5f14594269e98cfcecf5e5c2161f179f83 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 15 Jul 2012 15:28:14 +0200 Subject: build.py: lingua italiana --- build.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'build.py') 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 -- cgit v1.2.3