| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/lib/python3.9/dist-packages/matplotlib/__pycache__/ |
Upload File : |
a
���h�� � @ s: d Z ddlmZ ddlZddlmZmZmZ ddlZddl Z ddl
mZ ddlZddl
Z
ddlZddlZddlZddlmZmZ e�e�Ze�dd�Zed d
�Zedd�ZG d
d� dedd��Zedd� dd� dd� dd� dd� dd� dd� dd� d�ZdQdd�ZG dd� d�Z G dd � d �Z!G d!d"� d"e �Z"d#d$� Z#G d%d&� d&�Z$ed'd(�Z%G d)d*� d*�Z&d+d,� Z'G d-d.� d.�Z(ed/d0� �Z)ed1d2� �Z*ee*e$d3�Z+ee*e"d4�Z,ed5k�r6dd6l-m.Z. ddl/Z/e.� Z0e0�1d7� e0j1d8d9e2dd:� e0�3� Z4e e4j5e4j6���*Z7e&e)d;��Z8e7D �]Z9e:d<e9j;� d=e9j<� d>e9j=� d?�� e/�>e9j?d@d� �D ]�\Z@ZAe:dAe@jB�CdB��dCe@jDdD � �� e:dEdFdGdHdIdJdKdL� eAD ]<Z?e:e?jEe?jFe?jGeHe?jG��I� �r�eHe?jG�ndMe?j;dKdL� �q��qFe9jJ�re:dEdFdNdIdOdPdKdL� e9jJD ] ZKe:eKjEeKjFeKj<eKj;dKdL� �q�qW d � n1 �s,0 Y dS )RaC
A module for reading dvi files output by TeX. Several limitations make
this not (currently) useful as a general-purpose dvi preprocessor, but
it is currently used by the pdf backend for processing usetex text.
Interface::
with Dvi(filename, 72) as dvi:
# iterate over pages:
for page in dvi:
w, h, d = page.width, page.height, page.descent
for x, y, font, glyph, width in page.text:
fontname = font.texname
pointsize = font.size
...
for x, y, height, width in page.boxes:
...
� )�
namedtupleN)� lru_cache�partial�wraps)�Path)�_api�cbookZDviStatez!pre outer inpage post_post finale�Pageztext boxes height width descent�Boxzx y height widthc @ sH e Zd ZdZdd� Zedd� �Zedd� �Zedd � �Zed
d� �Z dS )
�Texta�
A glyph in the dvi file.
The *x* and *y* attributes directly position the glyph. The *font*,
*glyph*, and *width* attributes are kept public for back-compatibility,
but users wanting to draw the glyph themselves are encouraged to instead
load the font specified by `font_path` at `font_size`, warp it with the
effects specified by `font_effects`, and load the glyph specified by
`glyph_name_or_index`.
c C s t td��| jj S )N�
pdftex.map)�
PsfontsMap�
find_tex_file�font�texname��self� r �</usr/local/lib/python3.9/dist-packages/matplotlib/dviread.py�_get_pdftexmap_entryM s zText._get_pdftexmap_entryc C s<