)^_3 T d Z dZddlmZ ddlmZ G d d Z e ZdS )zL This package contains modules for language-dependent features of Docutils. reStructuredText ) import_module)normalize_language_tagc : e Zd ZdZdZdZdZd Zd dZd Z d d Z dS )LanguageImportera Import language modules. When called with a BCP 47 language tag, instances return a module with localisations from `docutils.languages` or the PYTHONPATH. If there is no matching module, warn (if a `reporter` is passed) and fall back to English. )zdocutils.languages. zHLanguage "%s" not supported: Docutils-generated text will be in English.enc i | _ d S N)cache)selfs {/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/docutils/languages/__init__.py__init__zLanguageImporter.__init__" s Nc d}| j D ]}} t ||z }| | nR# t t f$ r> |r|r| | d n|r| d||z d Y yw xY w |S )z/Try loading module `name` from `self.packages`.Nz) is no complete Docutils language module.zModule "z" not found.)packagesr check_contentImportErrorAttributeErrorinfo)r namereportermodulepackages r import_from_packagesz%LanguageImporter.import_from_packages% s } G &wt|44""6****0 I IMMV #> #> #> ? ? ? ? IMM"GWT\"G"G"GHHH s '5ABBc t |j t r4t |j t rt |j t st dS )z+Check if we got a Docutils language module.N) isinstancelabelsdictbibliographic_fieldsauthor_separatorslistr )r r s r r zLanguageImporter.check_content6 sR 6=$// v:DAA v7>> r c | j | S # t $ r Y nw xY wt | D ]2}| dd }| || }| nA3|r| | j |z | j r| | j }|r"|dk r| d|d|d || j |<