File: //usr/lib/python3/dist-packages/sphinx/writers/__pycache__/texinfo.cpython-310.pyc
o
�$�a�� � @ s� d Z ddlZddlZddlZddlmZ ddlmZmZm Z m
Z
mZmZm
Z
mZmZmZmZmZ ddlmZmZ ddlmZmZmZ ddlmZmZ ddlmZ dd lm Z dd
l!m"Z" ddl#m$Z$ ddl%m&Z&m'Z'm(Z( dd
l)m*Z* ddl+m,Z, ddl-m.Z. ddl/m0Z0 er�ddl1m2Z2 e*�3e4�Z5dZ6de d Z7dedeej8 fdd�Z9d!de:de:de:fdd�Z;G dd� dej<�Z=G dd � d e,�Z>dS )"z�
sphinx.writers.texinfo
~~~~~~~~~~~~~~~~~~~~~~
Custom docutils writer for Texinfo.
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�path)�
TYPE_CHECKING�Any�Dict�Iterable�Iterator�List�Optional�Pattern�Set�Tuple�Union�cast)�nodes�writers)�Element�Node�Text)�__display_version__�addnodes)�RemovedInSphinx50Warning)�
IndexEntry)�IndexDomain)�ExtensionError)�_�__�admonitionlabels)�logging)�SphinxTranslator)�format_date)�collected_footnote)�TexinfoBuilderzn@quotation
%(project)s %(release)s, %(date)s
%(author)s
Copyright @copyright{} %(copyright)s
@end quotation
z�\input texinfo @c -*-texinfo-*-
@c %%**start of header
@setfilename %(filename)s
@documentencoding UTF-8
@ifinfo
@*Generated by Sphinx a .@*
@end ifinfo
@settitle %(title)s
@defindex ge
@paragraphindent %(paragraphindent)s
@exampleindent %(exampleindent)s
@finalout
%(direntry)s
@definfoenclose strong,`,'
@definfoenclose emph,`,'
@c %%**end of header
@copying
%(copying)s
@end copying
@titlepage
@title %(title)s
@insertcopying
@end titlepage
@contents
@c %%** start of user preamble
%(preamble)s
@c %%** end of user preamble
@ifnottex
@node Top
@top %(title)s
@insertcopying
@end ifnottex
@c %%**start of body
%(body)s
@c %%**end of body
@bye
�section�returnc C sD g }| D ]}t |tj�r|�|� qt |tj�r|�t|�� q|S )z7Return a list of subsections for the given ``section``.)�
isinstancer r"