HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/docutils/writers/xetex/__pycache__/__init__.cpython-310.pyc
o

!5p`��@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.
�reStructuredText�N)�frontend�nodes�utils�writers�	languages)�latex2ec@sleZdZdZdZ	dZd�gd��ZdZdZ	e
jej
jdd	ed
gedd�fd
dgdeifd�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 writer)rz
latex writerszlatex2e writer�
font_encodingzTemplate file. Default: "%s".z
--templatez<file>)�default�metavarzUCustomization by LaTeX code in the preamble. Default: select "Linux Libertine" fonts.z--latex-preambler)�template�latex_preamblecCs&tj�|�|j�ddi�t|_dS)N�fontencoding�)rr	�__init__�settings_defaults�update�XeLaTeXTranslator�translator_class)�self�r�A/usr/lib/python3/dist-packages/docutils/writers/xetex/__init__.pyr@s
zWriter.__init__N)�__name__�
__module__�__qualname__�__doc__�	supported�default_template�join�default_preamble�config_section�config_section_dependenciesr�filter_settings_specrr	�
settings_specrrrrrr	#s(���r	c@s�eZdZdZejj��Ze�dddddddd	d
ddd
dddd��e	dd�e�
�D��ZdD]Zee��=q.dd�Z
dd�ZdS)�Babelz`Language specifics for XeTeX.

    Use `polyglossia` instead of `babel` and adapt settings.
    �coptic�german�ogerman�divehi�lsorbian�	polygreek�farsi�ancientgreek�usorbian�serbian�croatian�albanian�thai�
vietnamese)�cop�dezde-1901�dv�dsbz
el-polyton�fa�grc�hsbzsh-Cyrlzsh-Latn�sq�sr�th�vicCsg|]
\}}|��|f�qSr)�lower)�.0�k�vrrr�
<listcomp>aszBabel.<listcomp>)
�afzde-ATz
de-AT-1901zen-CAzen-GBzen-NZzen-USzfr-CAz
grc-ibycuszsr-LatncCs:||_||_|�|�|_i|_d|_d|_d|_d|_dS)Nz+Language "%s" not supported by Polyglossia.r)�"rKrK)	�
language_code�reporter�
language_name�language�otherlanguages�warn_msg�quote_index�quotes�literal_double_quote)rrLrMrrrrrs
zBabel.__init__cCs<dd|jg}|jr|�dd�t|j�����d�|�S)Nz\usepackage{polyglossia}z\setdefaultlanguage{%s}z\setotherlanguages{%s}�,r)rOrP�appendr%�sorted�keys)r�setuprrr�__call__~s��
zBabel.__call__N)rr r!r"rr+�language_codes�copyr�dict�items�keyrErrZrrrrr+Fs2�r+c@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.
    cCsFd|_tj�||t�|jdkr|j�dd�dSd|j|jd<dS)NT�utf8�	_inputencz\XeTeXinputencoding %s )�is_xetexr�LaTeXTranslatorrr+�latex_encoding�requirements�pop)r�documentrrrr�s
�zXeLaTeXTranslator.__init__N)rr r!r"rrrrrr�sr)r"�
__docformat__�os�os.path�re�docutilsrrrrr�docutils.writersrr	r+rcrrrrr�<module>s#A