diff options
-rwxr-xr-x | build.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |