ó ö«‰]c@sĆdZdZddlZddlZddlZddlZddlmZmZmZm Z m Z ddl m Z de j fd„ƒYZ 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. treStructuredTexti’’’’N(tfrontendtnodestutilstwriterst languages(tlatex2etWriterc BsŸeZdZdZdZdjdd d d gƒZd ZdZe j e j j dddedgied6dd6fdddgied6fƒZ d„ZRS(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|ƒ|jjidd6ƒt|_dS(Ntt fontencoding(RRt__init__tsettings_defaultstupdatetXeLaTeXTranslatorttranslator_class(tself((sA/tmp/pip-build-Q8jF4w/docutils/docutils/writers/xetex/__init__.pyR?s(RR R R R (Rslatex2e writer(t__name__t __module__t__doc__t supportedtdefault_templatetjointdefault_preambletconfig_sectiontconfig_section_dependenciesRtfilter_settings_specRRt settings_specR(((sA/tmp/pip-build-Q8jF4w/docutils/docutils/writers/xetex/__init__.pyR#s&  tBabelc BsżeZdZejjjƒZejidd6dd6dd6dd6d d 6d d 6d d6dd6dd6dd6dd6dd6dd6dd6dd6ƒegej ƒD]\Z Z e j ƒe f^q¤ƒZxd*D]Z ee j ƒ=qŅWd(„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((sA/tmp/pip-build-Q8jF4w/docutils/docutils/writers/xetex/__init__.pyRqs      cCsUdd|jg}|jrH|jddjt|jjƒƒƒƒndj|ƒS(Ns\usepackage{polyglossia}s\setdefaultlanguage{%s}s\setotherlanguages{%s}t,s (RDREtappendRtsortedtkeys(Rtsetup((sA/tmp/pip-build-Q8jF4w/docutils/docutils/writers/xetex/__init__.pyt__call__}s   #( R?sde-ATs de-AT-1901sen-CAsen-GBsen-NZsen-USsfr-CAs grc-ibycusssr-Latn(RRRRR%tlanguage_codestcopyRtdicttitemstktvtlowertkeyRRO(((sA/tmp/pip-build-Q8jF4w/docutils/docutils/writers/xetex/__init__.pyR%Es@  7  RcBseZdZd„ZRS(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|jjddƒnd|j|jds    ("A