Commit 39118cd6 authored by Talgat Mustafinov's avatar Talgat Mustafinov
parents e00f2df3 e7a35a48
...@@ -59,6 +59,22 @@ release = '1.0' ...@@ -59,6 +59,22 @@ release = '1.0'
# for a list of supported languages. # for a list of supported languages.
language = 'kk' language = 'kk'
def setup(app):
from sphinx.writers.latex import ExtBabel
original_get_language = ExtBabel.get_language
def patched_get_language(self):
lang = original_get_language(self)
if lang == 'kazakh':
return 'russian'
return lang
ExtBabel.get_language = patched_get_language
latex_elements = {
'babel': r'\usepackage[russian]{babel}',
'inputenc': r'\usepackage[utf8]{inputenc}',
'fontenc': r'\usepackage[T2A]{fontenc}',
}
# There are two options for replacing |today|: either, you set today to some # There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used: # non-false value, then it is used:
#today = '' #today = ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment