ZeZc@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 output suited for processing with XeLaTeX (http://tug.org/xetex/). treStructuredTextiN(tfrontendtnodestutilstwriterst languages(tlatex2etWriterc BseZdZdZdZdjdddd gZd ZdZe j e j j d ddedgied6dd6fdddgied6fZ dZRS(s9A writer for Unicode-based LaTeX variants (XeTeX, LuaTeX)txetextxelatextluatexs 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_preambleslCustomization by LaTeX code in the preamble. Default: select PDF standard fonts (Times, Helvetica, Courier).s--latex-preamblecCs4tjj||jjidd6t|_dS(Ntt fontencoding(RRt__init__tsettings_defaultstupdatetXeLaTeXTranslatorttranslator_class(tself((sC/usr/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyR=s(RR R (swritersslatex2e writer(t__name__t __module__t__doc__t supportedtdefault_templatetjointdefault_preambletconfig_sectiontconfig_section_dependenciesRtfilter_settings_specRRt settings_specR(((sC/usr/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyR!s&  tBabelcBseZdZejjjZejidd6dd6dd6dd6d 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-1901sfr-CAs grc-ibycusssr-LatncCsU||_||_|j||_i|_d|_d|_d|_d|_dS(Ns3Language "%s" not supported by XeTeX (polyglossia).it"u"(R>R>( t language_codetreportert language_nametlanguagetotherlanguagestwarn_msgt quote_indextquotestliteral_double_quote(RR?R@((sC/usr/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyRjs      cCsUdd|jg}|jrH|jddjt|jjndj|S(Ns\usepackage{polyglossia}s\setdefaultlanguage{%s}s\setotherlanguages{%s}t,s (RBRCtappendRtsortedtkeys(Rtsetup((sC/usr/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyt__call__vs   #(R=sde-ATs de-AT-1901sfr-CAs grc-ibycusssr-Latn(RRRRR#tlanguage_codestcopyRtdicttitemstktvtlowertkeyRRM(((sC/usr/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyR#Cs8  7  RcBseZdZRS(cCs\t|_tjj||t|jdkrD|jjddnd|j|jds    ("<