HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/docutils/writers/xetex/__pycache__/__init__.cpython-36.pyc
3

�2�e.�@s�dZdZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
ddlmZGdd�dej
�Z
Gdd	�d	ej�ZGd
d�dej�ZdS)z�
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.
ZreStructuredText�N)�frontend�nodes�utils�writers�	languages)�latex2ec@sneZdZdZdZdZdjd	d
ddg�Zd
ZdZ	e
jej
jddedgedd�fddgdeifd�Zdd�ZdS)�Writerz9A writer for Unicode-aware LaTeX variants (XeTeX, LuaTeX)�lxtex�xetex�xelatex�luatex�lualatexzxelatex.tex�
z;% Linux Libertine (free, wide coverage, not only for Linux)z\setmainfont{Linux Libertine O}z\setsansfont{Linux Biolinum O}zD\setmonofont[HyphenChar=None,Scale=MatchLowercase]{DejaVu Sans Mono}zxetex writerr�latex2e writerZ
font_encodingzTemplate file. Default: "%s".z
--templatez<file>)�default�metavarzUCustomization by LaTeX code in the preamble. Default: select "Linux Libertine" fonts.z--latex-preambler)�templateZlatex_preamblecCs&tjj|�|jjddi�t|_dS)NZfontencoding�)rr�__init__Zsettings_defaults�update�XeLaTeXTranslatorZtranslator_class)�self�r�/usr/lib/python3.6/__init__.pyr>szWriter.__init__N)r	r
rrr
)rr)�__name__�
__module__�__qualname__�__doc__Z	supportedZdefault_template�joinZdefault_preambleZconfig_sectionZconfig_section_dependenciesrZfilter_settings_specrrZ
settings_specrrrrrr"s&rc@s�eZdZdZejjj�Zejdddddddd	d
ddd
dddd��e	dd�e
ej��D��Zxd"D]Zeej
�=qbWdd�Zdd �Zd!S)#�Babelz`Language specifics for XeTeX.

    Use `polyglossia` instead of `babel` and adapt settings.
    ZcopticZgermanZogermanZdivehiZlsorbianZ	polygreekZfarsiZancientgreekZusorbianZserbianZcroatianZalbanian�thaiZ
vietnamese)ZcopZdezde-1901ZdvZdsbz
el-polytonZfaZgrcZhsbzsh-Cyrlzsh-LatnZsq�srZthZvicCsg|]\}}|j�|f�qSr)�lower)�.0�k�vrrr�
<listcomp>_szBabel.<listcomp>�af�de-AT�
de-AT-1901�en-CA�en-GB�en-NZ�en-US�fr-CA�
grc-ibycus�sr-LatncCs:||_||_|j|�|_i|_d|_d|_d|_d|_dS)Nz+Language "%s" not supported by Polyglossia.r�")r1r1)	�
language_code�reporterZ
language_name�language�otherlanguagesZwarn_msgZquote_indexZquotesZliteral_double_quote)rr2r3rrrrpszBabel.__init__cCs<dd|jg}|jr2|jddjt|jj����dj|�S)Nz\usepackage{polyglossia}z\setdefaultlanguage{%s}z\setotherlanguages{%s}�,r)r4r5�appendr�sorted�keys)rZsetuprrr�__call__|szBabel.__call__N)
r'r(r)r*r+r,r-r.r/r0)rrrrrrZlanguage_codes�copyr�dict�list�items�keyr"rr:rrrrrDs@
rc@seZdZdZdd�ZdS)rz�
    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.
    cCsDd|_tjj||t�|jdkr0|jjdd�nd|j|jd<dS)NT�utf8Z	_inputencz\XeTeXinputencoding %s )Zis_xetexr�LaTeXTranslatorrrZlatex_encodingZrequirements�pop)rZdocumentrrrr�s
zXeLaTeXTranslator.__init__N)rrrrrrrrrr�sr)rZ
__docformat__�osZos.path�reZdocutilsrrrrrZdocutils.writersrrrrArrrrr�<module>s"A