ށ[c@sdZdZddlZddlZddlZddlZddlmZmZmZm Z m Z ddl m Z de j fdYZ de jfd YZd e jfd YZdS( s XeLaTeX document tree Writer. A variant of Docutils' standard 'latex2e' writer producing LaTeX output suited for processing with the Unicode-aware TeX engines LuaTeX and XeTeX. treStructuredTextiN(tfrontendtnodestutilstwriterst languages(tlatex2etWriterc BseZdZdZdZdjdd d d gZd ZdZe j e j j dddedgied6dd6fdddgied6fZ dZRS(s9A writer for Unicode-aware LaTeX variants (XeTeX, LuaTeX)tlxtextxetextxelatextluatextlualatexs xelatex.texs s;% Linux Libertine (free, wide coverage, not only for Linux)s\setmainfont{Linux Libertine O}s\setsansfont{Linux Biolinum O}sD\setmonofont[HyphenChar=None,Scale=MatchLowercase]{DejaVu Sans Mono}s xetex writerRslatex2e writert font_encodingttemplatesTemplate file. Default: "%s".s --templatetdefaultstmetavartlatex_preamblesUCustomization by LaTeX code in the preamble. Default: select "Linux Libertine" fonts.s--latex-preamblecCs4tjj||jjidd6t|_dS(Ntt fontencoding(RRt__init__tsettings_defaultstupdatetXeLaTeXTranslatorttranslator_class(tself((sw/private/var/folders/71/gccz42bs2nl23mxwq3vp1qmhw5xjlw/T/pip-install-k836tR/docutils/docutils/writers/xetex/__init__.pyR?s(RR R R R (swritersslatex2e writer(t__name__t __module__t__doc__t supportedtdefault_templatetjointdefault_preambletconfig_sectiontconfig_section_dependenciesRtfilter_settings_specRRt settings_specR(((sw/private/var/folders/71/gccz42bs2nl23mxwq3vp1qmhw5xjlw/T/pip-install-k836tR/docutils/docutils/writers/xetex/__init__.pyR#s&  tBabelc BseZdZejjjZejidd6dd6dd6dd6d d 6d d 6d d6dd6dd6dd6dd6dd6dd6dd6dd6egej D]\Z Z e j e f^qZxd*D]Z ee j =qWd(Zd)ZRS(+s`Language specifics for XeTeX. Use `polyglossia` instead of `babel` and adapt settings. tcoptictcoptgermantdetogermansde-1901tdivehitdvtlsorbiantdsbt polygreeks el-polytontfarsitfat ancientgreektgrctusorbianthsbtserbianssh-Cyrltcroatianssh-Latntalbaniantsqtsrtthaittht vietnamesetvitafsde-ATs de-AT-1901sen-CAsen-GBsen-NZsen-USsfr-CAs grc-ibycusssr-LatncCsU||_||_|j||_i|_d|_d|_d|_d|_dS(Ns+Language "%s" not supported by Polyglossia.it"u"(R@R@( t language_codetreportert language_nametlanguagetotherlanguagestwarn_msgt quote_indextquotestliteral_double_quote(RRARB((sw/private/var/folders/71/gccz42bs2nl23mxwq3vp1qmhw5xjlw/T/pip-install-k836tR/docutils/docutils/writers/xetex/__init__.pyRqs      cCsUdd|jg}|jrH|jddjt|jjndj|S(Ns\usepackage{polyglossia}s\setdefaultlanguage{%s}s\setotherlanguages{%s}t,s (RDREtappendRtsortedtkeys(Rtsetup((sw/private/var/folders/71/gccz42bs2nl23mxwq3vp1qmhw5xjlw/T/pip-install-k836tR/docutils/docutils/writers/xetex/__init__.pyt__call__}s   #( safsde-ATs de-AT-1901sen-CAsen-GBsen-NZsen-USsfr-CAs grc-ibycusssr-Latn(RRRRR%tlanguage_codestcopyRtdicttitemstktvtlowertkeyRRO(((sw/private/var/folders/71/gccz42bs2nl23mxwq3vp1qmhw5xjlw/T/pip-install-k836tR/docutils/docutils/writers/xetex/__init__.pyR%Es@  7  RcBseZdZdZRS(s Generate code for LaTeX using Unicode fonts (XeLaTex or LuaLaTeX). See the docstring of docutils.writers._html_base.HTMLTranslator for notes on and examples of safe subclassing. cCs\t|_tjj||t|jdkrD|jjddnd|j|jds    ("A