Your IP : 216.73.217.106


Current Path : /opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyc

�
"ʩ]c@s�dZdZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
ddlm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(tlatex2etWritercBs�eZdZdZdZdjdd	d
dg�ZdZdZe	j
ejj
dddedgied6dd6fdddgied6f�Z
d�ZRS(s9A writer for Unicode-aware LaTeX variants (XeTeX, LuaTeX)tlxtextxetextxelatextluatextlualatexsxelatex.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
--templatetdefaults<file>tmetavartlatex_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((sP/opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyR>s(RR	R
RR(Rslatex2e writer(t__name__t
__module__t__doc__t	supportedtdefault_templatetjointdefault_preambletconfig_sectiontconfig_section_dependenciesRtfilter_settings_specRRt
settings_specR(((sP/opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyR"s&	tBabelc
Bs�eZdZejjj�Zejidd6dd6dd6dd6d	d
6dd6d
d6dd6dd6dd6dd6dd6dd6dd6dd6�egej	�D]\Z
Ze
j�ef^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_msgtquote_indextquotestliteral_double_quote(RRARB((sP/opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyRps						cCsUdd|jg}|jrH|jddjt|jj����ndj|�S(Ns\usepackage{polyglossia}s\setdefaultlanguage{%s}s\setotherlanguages{%s}t,s
(RDREtappendRtsortedtkeys(Rtsetup((sP/opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyt__call__|s		#(
R?sde-ATs
de-AT-1901sen-CAsen-GBsen-NZsen-USsfr-CAs
grc-ibycusssr-Latn(RRRRR%tlanguage_codestcopyRtdicttitemstktvtlowertkeyRRO(((sP/opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyR%Ds@	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|jd<dS(Ntutf8t	_inputencs\XeTeXinputencoding %s (
tTruetis_xetexRtLaTeXTranslatorRR%tlatex_encodingtrequirementstpoptNone(Rtdocument((sP/opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyR�s	(RRRR(((sP/opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyR�s(Rt
__docformat__tostos.pathtretdocutilsRRRRRtdocutils.writersRRR%R\R(((sP/opt/alt/python27/lib/python2.7/site-packages/docutils/writers/xetex/__init__.pyt<module>s("A