intellecton/venv/lib/python3.12/site-packages/matplotlib/__pycache__/dviread.cpython-312.pyc

484 lines
53 KiB
Text
Raw Normal View History

<EFBFBD>
<00>Rj^<5E><00> <00>4<00>dZddlmZddlZddlmZmZmZddlZddl Z ddl
m Z ddl Z ddl Z ddlZddlZddlZddlmZmZej*e<16>Zej0dd<08>Zed d
<EFBFBD>Zed d <0C>ZGd <0A>dedd<0F><00>Zed<10>d<11>d<12>d<13>d<14>d<15>d<16>d<17><00><18>ZdJd<19>ZGd<1A>d<1B>Z Gd<1C>d<1D>Z!Gd<1E>de <20>Z"d <20>Z#Gd!<21>d"<22>Z$ed#d$<24>Z%Gd%<25>d&<26>Z&d'<27>Z'Gd(<28>d)<29>Z(ed*<2A><00>Z)ed+<2B><00>Z*ee*e$d,<2C>Z+ee*e"d-<2D>Z,ed.k(<00>r<>dd/l-m.Z.ddl/Z/e.<2E>Z0e0jcd0<64>e0jcd1d2e2d<03>3<EFBFBD>e0jg<00>Z4e e4jje4jl<00>5Z7e&e)d4<64><00>Z8e7D<00>]nZ9e:d5e9jv<00>d6e9jx<00>d7e9jz<00>d8<64><07>e/j|e9j~d9<64><00>D]<5D>\Z@ZAe:d:e@j<>j<>d;<3B><00>d<e@j<>d=z <00><00><04>e:d>d?d@dAdBdCdD<64>E<EFBFBD>eAD]jZ?e:e?j<>e?j<>e?j<>eHe?j<><00>j<><00>reHe?j<><00>ndFe?jvdD<64>E<EFBFBD><00>l<00><>e9j<39>s<02><01>e:d>d?dGdBdHdIdD<64>E<EFBFBD>e9j<39>D]7ZKe:eKj<4B>eKj<4B>eKjxeKjvdD<64>E<EFBFBD><00>9<00><01>q ddd<03>yy#1swYyxYw)KaC
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:
...
<EFBFBD>)<01>
namedtupleN)<03> lru_cache<68>partial<61>wraps)<01>Path)<02>_api<70>cbook<6F>DviStatez!pre outer inpage post_post finale<6C>Pageztext boxes height width descent<6E>Boxzx y height widthc<00>V<00>eZdZdZd<02>Zed<03><00>Zed<04><00>Zed<05><00>Zed<06><00>Z y)<08>Texta<74>
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<00>X<00>ttd<01><00>|jjS)N<>
pdftex.map)<04>
PsfontsMap<EFBFBD> find_tex_file<6C>font<6E>texname<6D><01>selfs <20>U/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/dviread.py<70>_get_pdftexmap_entryzText._get_pdftexmap_entryMs!<00><00><19>-<2D> <0C>5<>6<>t<EFBFBD>y<EFBFBD>y<EFBFBD>7H<37>7H<37>I<>I<>c<00><><00>|j<00>}|j<00>Mtdj|jj d<02>|j j d<02><00><00><00>t|j<00>S)z/The `~pathlib.Path` to the font for this glyph.zINo usable font file found for {} ({}); the font may lack a Type-1 version<6F>ascii)r<00>filename<6D>
ValueError<EFBFBD>format<61>psname<6D>decoderr)r<00>psfonts r<00> font_pathzText.font_pathPsp<00><00><16>*<2A>*<2A>,<2C><06> <11>?<3F>?<3F> "<22><1C>B<01>$<24>f<EFBFBD>V<EFBFBD>]<5D>]<5D>%9<>%9<>'<27>%B<>%+<2B>^<5E>^<5E>%:<3A>%:<3A>7<EFBFBD>%C<>E<01>F<01> F<01><14>F<EFBFBD>O<EFBFBD>O<EFBFBD>$<24>$rc<00>.<00>|jjS)zThe font size.)r<00>sizers r<00> font_sizezText.font_size[s<00><00><14>y<EFBFBD>y<EFBFBD>~<7E>~<7E>rc<00>6<00>|j<00>jS)z<>
The "font effects" dict for this glyph.
This dict contains the values for this glyph of SlantFont and
ExtendFont (if any), read off :file:`pdftex.map`.
)r<00>effectsrs r<00> font_effectszText.font_effects`s<00><00><14>(<28>(<28>*<2A>2<>2<>2rc<00><><00>|j<00>}|j<00>"t|j<00>|jS|jS)a<>
Either the glyph name or the native charmap glyph index.
If :file:`pdftex.map` specifies an encoding for this glyph's font, that
is a mapping of glyph indices to Adobe glyph names; use it to convert
dvi indices to glyph names. Callers can then convert glyph names to
glyph indices (with FT_Get_Name_Index/get_name_index), and load the
glyph using FT_Load_Glyph/load_glyph.
If :file:`pdftex.map` specifies no encoding, the indices directly map
to the font's "native" charmap; glyphs should directly load using
FT_Load_Char/load_char after selecting the native charmap.
)r<00>encoding<6E>
_parse_enc<EFBFBD>glyph)r<00>entrys r<00>glyph_name_or_indexzText.glyph_name_or_indexjsD<00><00><15>)<29>)<29>+<2B><05><18>><3E>><3E>-<2D><1B>5<EFBFBD>><3E>><3E>*<2A>4<EFBFBD>:<3A>:<3A>6<> ?<3F>37<33>:<3A>:<3A> ?rN)
<EFBFBD>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r<00>propertyr"r%r(r.<00>rrrrAs]<00><00> <08>J<01><0E>%<25><0E>%<25><0E><1E><0E><1E><0E>3<><0E>3<><0E>?<3F><0E>?rrzx y font glyph widthc<00><00>|S<00>Nr4<00><02>dvi<76>deltas r<00><lambda>r:<00>s<00><00>5<EFBFBD>rc<00>(<00>|jdd<02><03>S<00>N<>F<><01>signed<65><01> _read_argr7s rr:r:<00><00><00><00>#<23>-<2D>-<2D><01>%<25>-<2D>8<>rc<00>(<00>|jdd<02><03>S)N<>Fr>r@r7s rr:r:<00>rBrc<00>(<00>|jdd<02><03>S)NrDTr>r@r7s rr:r:<00>s<00><00>#<23>-<2D>-<2D><01>$<24>-<2D>7<>rc<00>0<00>|r|j|d<01><02>SdS)NTr>r@r7s rr:r:<00>s<00><00><15>C<EFBFBD>M<EFBFBD>M<EFBFBD>%<25><04>M<EFBFBD>=<3D><00>D<EFBFBD>rc<00>.<00>|j|dzd<02><03>S)Nr=Tr>r@r7s rr:r:<00>s<00><00>S<EFBFBD>]<5D>]<5D>5<EFBFBD>1<EFBFBD>9<EFBFBD>T<EFBFBD>]<5D>B<>rc<00>.<00>|j|dzd<02><03>Sr<r@r7s rr:r:<00>s<00><00>S<EFBFBD>]<5D>]<5D>5<EFBFBD>1<EFBFBD>9<EFBFBD>U<EFBFBD>]<5D>C<>rc<00>4<00>|j|dz|dk(<00><03>S)Nr=<00>r>r@r7s rr:r:<00>s<00><00>S<EFBFBD>]<5D>]<5D>5<EFBFBD>1<EFBFBD>9<EFBFBD>e<EFBFBD>q<EFBFBD>j<EFBFBD>]<5D>J<>r)<08>raw<61>u1<75>u4<75>s4<73>slen<65>slen1<6E>ulen1<6E>olen1c<00>"<00><00><01><02><03><04><00><04><02><01><03>fd<01>}|S)a<>
Decorator for dispatch by opcode. Sets the values in *table*
from *min* to *max* to this method, adds a check that the Dvi state
matches *state* if not None, reads arguments from the file according
to *args*.
Parameters
----------
table : dict[int, callable]
The dispatch table to be filled in.
min, max : int
Range of opcodes that calls the registered function; *max* defaults to
*min*.
state : _dvistate, optional
State of the Dvi object in which these opcodes are allowed.
args : list[str], default: ['raw']
Sequence of argument specifications:
- 'raw': opcode minus minimum
- 'u1': read one unsigned byte
- 'u4': read four bytes, treat as an unsigned number
- 's4': read four bytes, treat as a signed number
- 'slen': read (opcode - minimum) bytes, treat as signed
- 'slen1': read (opcode - minimum + 1) bytes, treat as signed
- 'ulen1': read (opcode - minimum + 1) bytes, treat as unsigned
- 'olen1': read (opcode - minimum + 1) bytes, treat as unsigned
if under four bytes, signed if four bytes
c<00><><00><05><00><04><00>D<00>cgc] }t|<00><02> c}<01>t<00><00><00><04><00><07>fd<01><08>}<02><06>|<02> <09><|St<00><07>dz<00>D]}<03> |<00>J<00>|<02> |<<00>|Scc}w)Nc <00><><00><04><00><06>|j<00>k7r td<01><00><00>|g<01>D<00>cgc]}|||<01>z
<00><00><02>c}<02><01><06>Scc}w)Nzstate precondition failed)<02>stater)r<00>byte<74>f<>get_args<67>method<6F>minrVs <20><><EFBFBD><EFBFBD>r<00>wrapperz,_dispatch.<locals>.decorate.<locals>.wrapper<65>sI<00><><00><14> <20>T<EFBFBD>Z<EFBFBD>Z<EFBFBD>5<EFBFBD>%8<> <20>!<<3C>=<3D>=<3D><19>$<24>G<>X<EFBFBD>!F<><01>!<21>D<EFBFBD>$<24>s<EFBFBD>(<28>"3<>!F<>G<> G<><47>!Fs<00>?
r=)<03> _arg_mappingr<00>range)
rZ<00>xr\<00>irY<00>args<67>maxr[rV<00>tables
` @<40><><EFBFBD><EFBFBD><EFBFBD>r<00>decoratez_dispatch.<locals>.decorate<74>s<><00><><00>-1<>2<><01>L<EFBFBD><11>O<EFBFBD>2<><08> <0E>v<EFBFBD><1D> H<01>
<17> H<01> <0F>;<3B> <20>E<EFBFBD>#<23>J<EFBFBD>
<17><0E><1B>3<EFBFBD><03>A<EFBFBD><05>&<26> #<23><01><1C>Q<EFBFBD>x<EFBFBD>'<27>'<27>'<27>"<22><05>a<EFBFBD><08> #<23><17><0E><>3s<00>Ar4)rcr[rbrVrards````` r<00> _dispatchre<00>s<00><><00>@<17><17> <14>Orc<00><00>eZdZdZdgdzZeee<04>Zd<04>Zd<05>Zd<06>Z d<07>Z
d<08>Z d <09>Z d
<EFBFBD>Z d[d <0B>Zed d ej <00><0E>d<0F><00>Zeddej d<12><13>d<14><00>Zedej d<16><17>d<18><00>Zeddej d<12><13>d<1B><00>Zd<1C>Zedej d<16><17>d<1E><00>Zd<1F>Zed <20>d!<21><00>Zed"ej2d#<23><17>d$<24><00>Zed%ej <00>&<26>d'<27><00>Zed(ej <00>&<26>d)<29><00>Zed*ej <00>&<26>d+<2B><00>Zed,d-ej d.<2E><13>d/<2F><00>Zed0d1ej d2<64><13>d3<64><00>Zed4d5ej d2<64><13>d6<64><00>Z ed7d8ej d.<2E><13>d9<64><00>Z!ed:d;ej d2<64><13>d<<3C><00>Z"ed=d>ej d2<64><13>d?<3F><00>Z#ed@dAej <00><0E>dB<64><00>Z$edCdDej d<12><13>dE<64><00>Z%edFdGdH<64>I<EFBFBD>dJ<64><00>Z&edKdLdM<64>I<EFBFBD>dN<64><00>Z'dO<64>Z(edPejRdQ<64><17>dR<64><00>Z*edSej2<00>&<26>dT<64><00>Z+edU<64>dV<64><00>Z,edWdX<64>Y<EFBFBD>dZ<64><00>Z-y)\<5C>DviaI
A reader for a dvi ("device-independent") file, as produced by TeX.
The current implementation can only iterate through pages in order,
and does not even attempt to verify the postamble.
This class can be used as a context manager to close the underlying
file upon exit. Pages can be read via iteration. Here is an overly
simple way to extract text without trying to detect whitespace::
>>> with matplotlib.dviread.Dvi('input.dvi', 72) as dvi:
... for page in dvi:
... print(''.join(chr(t.glyph) for t in page.text))
N<>c<00><><00>tjd|<01>t|d<02>|_||_i|_t j|_d|_ y)z<>
Read the data from the file named *filename* and convert
TeX's internal units to units of *dpi* per inch.
*dpi* only sets the units and does not limit the resolution.
Use None to return TeX's internal units.
zDvi: %s<>rbN)
<EFBFBD>_log<6F>debug<75>open<65>file<6C>dpi<70>fonts<74> _dvistate<74>prerV<00> _missing_font)rrros r<00>__init__z Dvi.__init__<5F>sA<00><00> <0A>
<EFBFBD>
<EFBFBD>9<EFBFBD>h<EFBFBD>'<27><18><18>4<EFBFBD>(<28><04> <09><16><04><08><17><04>
<EFBFBD><1E>]<5D>]<5D><04>
<EFBFBD>!<21><04>rc<00><00>|S)z+Context manager enter method, does nothing.r4rs r<00> __enter__z Dvi.__enter__<5F>s<00><00><13> rc<00>$<00>|j<00>y)zX
Context manager exit method, closes the underlying file if it is open.
N)<01>close)r<00>etype<70>evalue<75>etraces r<00>__exit__z Dvi.__exit__<5F>s <00><00> <0A>
<EFBFBD>
<EFBFBD> rc#<00>tK<00>|j<00>r$|j<00><00><01>|j<00>r<01>#yy<01>w)a\
Iterate through the pages of the file.
Yields
------
Page
Details of all the text and box objects on the page.
The Page tuple contains lists of Text and Box tuples and
the page dimensions, and the Text and Box tuples contain
coordinates transformed into a standard Cartesian
coordinate system at the dpi value given when initializing.
The coordinates are floating point numbers, but otherwise
precision is not lost and coordinate values are not clipped to
integers.
N)<02>_read<61>_outputrs r<00>__iter__z Dvi.__iter__<5F>s(<00><00><><00> <13>j<EFBFBD>j<EFBFBD>l<EFBFBD><16>,<2C>,<2C>.<2E> <20><13>j<EFBFBD>j<EFBFBD>l<EFBFBD>s<00>38<01>8c<00>f<00>|jjs|jj<00>yy)z(Close the underlying file if it is open.N)rn<00>closedrxrs rrxz Dvi.closes"<00><00><13>y<EFBFBD>y<EFBFBD><1F><1F> <10>I<EFBFBD>I<EFBFBD>O<EFBFBD>O<EFBFBD> <1D> rc<00>><00>tjx}}tj x}}tj }|j|jzD]}}t |t
<00>r
|\}}} }
d} n|\}}} } }
| j | <0A>\} } t||<07>}t||| z
<00>}t|||
z<00>}t||| z<00>}t||<08>}<05>|j<00>|j}d|_ |js|jstggddd<01><03>S|j<00>-t|j|j||z
||z
||z
<00><03>S|jdz }||z
|z}|jD<00><07><08><10> <0A>
cgc])\}}}} }
t||z
|z||z
|z|z
|| |
|z<00><00><02>+}} }}}}
|jD<00><07><08> <09>
cgc]*\}}} }
t ||z
|z||z
|z|z
| |z|
|z<00><00><02>,}} }}}
t||||z
|z||z
|z|<0F><03>Scc}
} }}}wcc}
} }}w)zk
Output the text and boxes belonging to the most recent page.
page = dvi._output()
rN<><05>text<78>boxes<65>width<74>height<68>descentg<74>z<14>GRA) <0A>np<6E>infr<66>r<><00>
isinstancer <00>_height_depth_ofr[rb<00> _baseline_vr ror)r<00>minx<6E>miny<6E>maxx<78>maxy<78> maxy_pure<72>eltr_<00>y<>h<>w<>er<00>g<>dr<64>rXr<>r<>s rrz Dvi._output sN<00><00>
<19>f<EFBFBD>f<EFBFBD><1C><04>t<EFBFBD><19>v<EFBFBD>v<EFBFBD>g<EFBFBD><1D><04>t<EFBFBD><17>V<EFBFBD>V<EFBFBD>G<EFBFBD> <09><17>9<EFBFBD>9<EFBFBD>t<EFBFBD>z<EFBFBD>z<EFBFBD>)<29> *<2A>C<EFBFBD><19>#<23>s<EFBFBD>#<23> <20>
<EFBFBD><01>1<EFBFBD>a<EFBFBD><11><15><01>#&<26> <20><01>1<EFBFBD>d<EFBFBD>A<EFBFBD>q<EFBFBD><1B>,<2C>,<2C>Q<EFBFBD>/<2F><04><01>1<EFBFBD><16>t<EFBFBD>Q<EFBFBD><<3C>D<EFBFBD><16>t<EFBFBD>Q<EFBFBD><11>U<EFBFBD>#<23>D<EFBFBD><16>t<EFBFBD>Q<EFBFBD><11>U<EFBFBD>#<23>D<EFBFBD><16>t<EFBFBD>Q<EFBFBD><11>U<EFBFBD>#<23>D<EFBFBD><1B>I<EFBFBD>q<EFBFBD>)<29>I<EFBFBD> *<2A> <10> <1B> <1B> '<27><1C>(<28>(<28>I<EFBFBD>#<23>D<EFBFBD> <1C><13>y<EFBFBD>y<EFBFBD><14><1A><1A><17>R<EFBFBD>r<EFBFBD><11>1<EFBFBD>a<EFBFBD>H<> H<> <0F>8<EFBFBD>8<EFBFBD> <1B><17>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>d<EFBFBD>j<EFBFBD>j<EFBFBD>"<22>4<EFBFBD>i<EFBFBD> <09>$<24><0E> $<24>Y<EFBFBD><0E>0<> 0<>
<11>H<EFBFBD>H<EFBFBD> <0A> &<26><01><17>)<29>#<23>q<EFBFBD>(<28><07>(,<2C>y<EFBFBD>y<EFBFBD>2<>2<>#<23>Q<EFBFBD><01>1<EFBFBD>a<EFBFBD><11><15>a<EFBFBD><04>f<EFBFBD>a<EFBFBD>Z<EFBFBD>$<24>q<EFBFBD>&<26>!<21><1A>g<EFBFBD>!5<>q<EFBFBD>!<21>Q<EFBFBD>q<EFBFBD>S<EFBFBD>A<>2<><04>2<>&*<2A>Z<EFBFBD>Z<EFBFBD>1<>1<>!<21>a<EFBFBD><11>A<EFBFBD>q<EFBFBD><15>a<EFBFBD><04>f<EFBFBD>a<EFBFBD>Z<EFBFBD>$<24>q<EFBFBD>&<26>!<21><1A>g<EFBFBD>!5<>q<EFBFBD><11>s<EFBFBD>A<EFBFBD>a<EFBFBD>C<EFBFBD>@<40>1<><05>1<><14><14>U<EFBFBD>4<EFBFBD><04>9<EFBFBD>a<EFBFBD>-<2D>%<25>d<EFBFBD>N<EFBFBD>A<EFBFBD>-<2D>w<EFBFBD>@<01> @<01><> 2<><32>1s <00>9.H <0C>>/H
c<00>h<00>dg}d|_ |jjd<04>d}|j|||<02>|jr|jj <00><00>|j|j }|dk(r|j|d<00>n(|dk(r|j<00>n|dk(r |dxxdz cc<|j<00>2tt|d g<00><00>d
k(r|dd k\r|j|_|d k(ry|jtjur|j<00>y <0A><01>()<0E>t
Read one page from the file. Return True if successful,
False if there were no more pages.
rNTr=<00>_push<73><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_pop<6F>_down<77>stackrJrD<00><>F)r<>rn<00>read<61>_dtablers<00> to_exceptionr/<00>append<6E>pop<6F>len<65>getattr<74>vrVrq<00> post_postrx)r<00>
down_stackrW<00>names rr~z Dvi._read:s<00><00>.<18>S<EFBFBD>
<EFBFBD><1F><04><18><12><17>9<EFBFBD>9<EFBFBD>><3E>><3E>!<21>$<24>Q<EFBFBD>'<27>D<EFBFBD> <1E>D<EFBFBD>L<EFBFBD>L<EFBFBD><14> <1E>t<EFBFBD>T<EFBFBD> *<2A><13>!<21>!<21><1A>(<28>(<28>5<>5<>7<>7<><17><<3C><<3C><04>%<25>.<2E>.<2E>D<EFBFBD><13>w<EFBFBD><EFBFBD><1A>!<21>!<21>*<2A>R<EFBFBD>.<2E>1<><15><16><1E><1A><0E><0E> <20><15><17><1F><1A>2<EFBFBD><0E>!<21>#<23><0E><14> <20> <20>(<28><1B>G<EFBFBD>D<EFBFBD>'<27>2<EFBFBD>6<>7<>1<EFBFBD><<3C>"<22>2<EFBFBD><0E>!<21>+<2B>#'<27>6<EFBFBD>6<EFBFBD><04> <20><13>s<EFBFBD>{<7B><1B><13>z<EFBFBD>z<EFBFBD>Y<EFBFBD>0<>0<>0<><14>
<EFBFBD>
<EFBFBD> <0C><1C>)rc<00>d<00>tj|jj|<01>d|<02><02>S)z
Read and return a big-endian integer *nbytes* long.
Signedness is determined by the *signed* keyword.
<20>bigr>)<04>int<6E>
from_bytesrnr<>)r<00>nbytesr?s rrAz Dvi._read_argis&<00><00>
<13>~<7E>~<7E>d<EFBFBD>i<EFBFBD>i<EFBFBD>n<EFBFBD>n<EFBFBD>V<EFBFBD>4<>e<EFBFBD>F<EFBFBD>~<7E>K<>Krr<00>)r[rbrVc<00><00>|j|<01>t|j|jtj
<00>ry|xj |j|jj|<01>z c_yr6<00><08>_put_char_realr<6C>rprXr <00>_ExceptionInfor<6F><00> _width_of<6F>r<00>chars r<00>_set_char_immediatezDvi._set_char_immediatep<00>V<00><00> <0C><1B><1B>D<EFBFBD>!<21> <15>d<EFBFBD>j<EFBFBD>j<EFBFBD><14><16><16>(<28>%<25>*><3E>*><3E> ?<3F> <12> <0C><06><06>$<24>*<2A>*<2A>T<EFBFBD>V<EFBFBD>V<EFBFBD>$<24>.<2E>.<2E>t<EFBFBD>4<>4<>r<00><><00><>)rR)r[rbrVrac<00><00>|j|<01>t|j|jtj
<00>ry|xj |j|jj|<01>z c_yr6r<>r<>s r<00> _set_charz Dvi._set_charwr<>r<00><>)rNrN)rVrac<00>R<00>|j||<02>|xj|z c_yr6)<02>_put_rule_realr<6C><00>r<00>a<>bs r<00> _set_rulez Dvi._set_rule~s<00><00> <0C><1B><1B>A<EFBFBD>q<EFBFBD>!<21> <0C><06><06>!<21> <0B>r<00><><00><>c<00>&<00>|j|<01>yr6)r<>r<>s r<00> _put_charz Dvi._put_char<61>s<00><00> <0C><1B><1B>D<EFBFBD>!rc<00><00>|j|j}t|tj<00>r||_y|j <00>L|jjt|j|j|||j|<01><00><00>y|j}|j |jD]<5D>\}}}}}tt||j<00>|j |j"|j <00><01>} |jjt|jt||<03>z|jt||<03>z| || j|<07><00><00><00><>|j$j'|j |j$D<00><04><05>
<EFBFBD> cgc]W\}}}
} t)|jt||<03>z|jt||<03>zt|
|<03>t| |<03><00><00><02>Yc} }
}}<04>ycc} }
}}w)N<><04>scale<6C>tfmr<00>vf)rprXr<>r r<>rs<00>_vfr<66>r<>rr<>r<>r<><00>_scale<6C>DviFont<6E>_mul2012<31>_tfmrr<><00>extendr ) rr<>rr<>r_r<>rXr<>r<><00>newfr<66>r<>s rr<>zDvi._put_char_real<61>s<><00><00><13>z<EFBFBD>z<EFBFBD>$<24>&<26>&<26>!<21><04> <15>d<EFBFBD>E<EFBFBD>0<>0<> 1<>!%<25>D<EFBFBD> <1E> <11>X<EFBFBD>X<EFBFBD> <1D> <10>I<EFBFBD>I<EFBFBD> <1C> <1C>T<EFBFBD>$<24>&<26>&<26>$<24>&<26>&<26>$<24><04>"&<26>.<2E>.<2E><14>"6<>8<> 9<><19>K<EFBFBD>K<EFBFBD>E<EFBFBD>!%<25><18><18>$<24><1E>!4<>!4<> C<01> <0A><01>1<EFBFBD>a<EFBFBD><11>A<EFBFBD><1E>X<EFBFBD>e<EFBFBD>Q<EFBFBD>X<EFBFBD>X<EFBFBD>%><3E>#$<24>6<EFBFBD>6<EFBFBD>1<EFBFBD>9<EFBFBD>9<EFBFBD><11><15><15>H<01><04><14> <09> <09> <20> <20><14>d<EFBFBD>f<EFBFBD>f<EFBFBD>x<EFBFBD><01>5<EFBFBD>/A<>&A<>&*<2A>f<EFBFBD>f<EFBFBD>x<EFBFBD><01>5<EFBFBD>/A<>&A<>&*<2A>A<EFBFBD>t<EFBFBD>~<7E>~<7E>a<EFBFBD>/@<40>"B<01>C<01> C<01> <11>J<EFBFBD>J<EFBFBD> <1D> <1D>26<32><18><18>$<24><1E>1E<31>1E<31>G<01>G<01>$.<2E>1<EFBFBD>a<EFBFBD><11>A<EFBFBD> #<23>4<EFBFBD>6<EFBFBD>6<EFBFBD>H<EFBFBD>Q<EFBFBD><05>,><3E>#><3E>#'<27>6<EFBFBD>6<EFBFBD>H<EFBFBD>Q<EFBFBD><05>,><3E>#><3E>#+<2B>A<EFBFBD>u<EFBFBD>#5<>x<EFBFBD><01>5<EFBFBD>7I<37> K<01>G<01> H<01><>Gs<00>AH<0E><>c<00>(<00>|j||<02>yr6)r<>r<>s r<00> _put_rulez Dvi._put_rule<6C>s<00><00> <0C><1B><1B>A<EFBFBD>q<EFBFBD>!rc<00><><00>|dkDrB|dkDr<|jjt|j|j||<02><00>yyy<00>Nr)r<>r<>r r<>r<>r<>s rr<>zDvi._put_rule_real<61>s;<00><00> <0C>q<EFBFBD>5<EFBFBD>Q<EFBFBD><11>U<EFBFBD> <10>J<EFBFBD>J<EFBFBD> <1D> <1D>c<EFBFBD>$<24>&<26>&<26>$<24>&<26>&<26>!<21>Q<EFBFBD>7<> 8<><1B>5r<00><>c<00><00>yr6r4<00>r<00>_s r<00>_nopzDvi._nop<6F>s<00><00> r<00><>) rNrNrNrNrNrNrNrNrNrNrNc <00><><00>tj|_dx|_x|_x|_x|_x|_|_g|_ g|_
g|_ yr<>) rq<00>inpagerVr<>r<>r<>r_r<><00>zr<7A>r<>r<>) r<00>c0<63>c1<63>c2<63>c3<63>c4<63>c5<63>c6<63>c7<63>c8<63>c9<63>ps r<00>_bopzDvi._bop<6F>sN<00><00><1E>%<25>%<25><04>
<EFBFBD>>?<3F>?<3F><04><06>?<3F><14><16>?<3F>$<24>&<26>?<3F>4<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD>F<EFBFBD>T<EFBFBD>V<EFBFBD><17><04>
<EFBFBD><16><04> <09><17><04>
rr<>)rVc<00>J<00>tj|_|`|`|`|`|`|`|` yr6)
rq<00>outerrVr<>r<>r<>r_r<>r<>r<>r<>s r<00>_eopzDvi._eop<6F>s*<00><00><1E>_<EFBFBD>_<EFBFBD><04>
<EFBFBD> <10>F<EFBFBD>D<EFBFBD>F<EFBFBD>D<EFBFBD>F<EFBFBD>D<EFBFBD>F<EFBFBD>D<EFBFBD>F<EFBFBD>D<EFBFBD>F<EFBFBD>D<EFBFBD>Jr<00><>c<00><><00>|jj|j|j|j|j
|j |jf<06>yr6)r<>r<>r<>r<>r<>r_r<>r<>r<>s rr<>z Dvi._push<73>s9<00><00> <0C>
<EFBFBD>
<EFBFBD><19><19>4<EFBFBD>6<EFBFBD>6<EFBFBD>4<EFBFBD>6<EFBFBD>6<EFBFBD>4<EFBFBD>6<EFBFBD>6<EFBFBD>4<EFBFBD>6<EFBFBD>6<EFBFBD>4<EFBFBD>6<EFBFBD>6<EFBFBD>4<EFBFBD>6<EFBFBD>6<EFBFBD>J<>Kr<00><>c<00><><00>|jj<00>\|_|_|_|_|_|_yr6)r<>r<>r<>r<>r<>r_r<>r<>r<>s rr<>zDvi._pop<6F>s+<00><00>9=<3D><1A><1A><1E><1E>9I<39>6<><04><06><04><06><04><06><04><06><04><06><04>r<00><><00><>)rPc<00>.<00>|xj|z c_yr6)r<>)rr<>s r<00>_rightz
Dvi._right<68><00><00><00> <0C><06><06>!<21> <0B>r<00><><00><>)rOc<00>T<00>|<01>||_|xj|jz c_yr6)r<>r<>)r<00>new_ws r<00>_right_wz Dvi._right_w<5F><00>!<00><00> <10> <1C><1A>D<EFBFBD>F<EFBFBD> <0C><06><06>$<24>&<26>&<26><18>r<00><><00><>c<00>T<00>|<01>||_|xj|jz c_yr6)r_r<>)r<00>new_xs r<00>_right_xz Dvi._right_x<5F>rr<00><><00><>c<00>.<00>|xj|z c_yr6)r<>)rr<>s rr<>z Dvi._down<77>r<>r<00><><00><>c<00>T<00>|<01>||_|xj|jz c_yr6)r<>r<>)r<00>new_ys r<00>_down_yz Dvi._down_y<5F>rr<00><><00><>c<00>T<00>|<01>||_|xj|jz c_yr6)r<>r<>)r<00>new_zs r<00>_down_zz Dvi._down_z<5F>rr<00><><00><>c<00><00>||_yr6<00>rX)r<00>ks r<00>_fnt_num_immediatezDvi._fnt_num_immediate<74>s <00><00><12><04>r<00><><00><>c<00><00>||_yr6r)r<00>new_fs r<00>_fnt_numz Dvi._fnt_num<75>s <00><00><16><04>r<00><><00><>)rQ)r[rbrac <00><><00>|jj|<01>}tjddj |D<00>cgc] }d|cxkrdkrnn t |<03>nd|z<00><02>"c}<03><00>ycc}w)Nz!Dvi._xxx: encountered special: %s<><00> r<>z<%02x>)rnr<>rkrl<00>join<69>chr)r<00>datalen<65>special<61>chs r<00>_xxxzDvi._xxx<78>sa<00><00><16>)<29>)<29>.<2E>.<2E><17>)<29><07> <0C>
<EFBFBD>
<EFBFBD> /<2F> <0E>G<EFBFBD>G<EFBFBD>&<26>(<28><1B>!#<23>b<EFBFBD><0E>3<EFBFBD><0E>S<EFBFBD><12>W<EFBFBD>H<EFBFBD>r<EFBFBD>M<EFBFBD>A<>(<28> )<29> *<2A><>(s<00>%A,<0E><><00><>)rRrMrMrMrLrLc<00>0<00>|j||||||<06>yr6)<01> _fnt_def_real)rr<00>c<>sr<73>r<><00>ls r<00>_fnt_defz Dvi._fnt_def<65>s<00><00> <0C><1A><1A>1<EFBFBD>a<EFBFBD><11>A<EFBFBD>q<EFBFBD>!<21>,rc<00><><00>|jj||z<00>}|| djd<01>} t|<08>} |dk7r,| jdk7r|| jk7rtd|<07><00><02><00> t|<08>} t|| || <0B><04>|j|<y#t$r6}
t
j j|
<EFBFBD>|j|<Yd}
~
yd}
~
wwxYw#t$rd} Y<00>lwxYw)Nrrztfm checksum mismatch: r<>) rnr<>r <00>_tfmfile<6C>FileNotFoundErrorr r<><00>from_exceptionrp<00>checksumr<00>_vffiler<65>) rrr0r1r<>r<>r2<00>n<>fontnamer<65><00>excr<63>s rr/zDvi._fnt_def_real<61>s<><00><00> <10>I<EFBFBD>I<EFBFBD>N<EFBFBD>N<EFBFBD>1<EFBFBD>q<EFBFBD>5<EFBFBD> !<21><01><14>a<EFBFBD>R<EFBFBD>S<EFBFBD>6<EFBFBD>=<3D>=<3D><17>)<29><08> <13><1A>8<EFBFBD>$<24>C<EFBFBD> <0A><01>6<EFBFBD>c<EFBFBD>l<EFBFBD>l<EFBFBD>a<EFBFBD>'<27>A<EFBFBD><13><1C><1C>,=<3D><1C>6<>q<EFBFBD>c<EFBFBD>:<3A>;<3B> ;<3B> <16><18><18>"<22>B<EFBFBD> <20>a<EFBFBD>S<EFBFBD>!<21><02>C<><04>
<EFBFBD>
<EFBFBD>1<EFBFBD> <0A><>!<21> <13> "<22>0<>0<>?<3F>?<3F><03>D<>D<EFBFBD>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD> <12><> <13><>!<21> <16><15>B<EFBFBD> <16>s)<00> B<00>2 C<00> C<03>#,C<03>C<03> C*<03>)C*<03><>)rLrMrMrMrLc<00><><00>|jj|<05>|dk7rtd|<01><00><02><00>|dk7s|dk7r td<05><00>|dk7r td<07><00>tj|_y)N<>zUnknown dvi format i<><69><EFBFBD>i;zNonstandard units in dvi file<6C><65>z%Nonstandard magnification in dvi file)rnr<>rrqr<>rV)rr`<00>num<75>den<65>magrs r<00>_prezDvi._presh<00><00> <0C> <09> <09><0E><0E>q<EFBFBD><19> <0C><01>6<EFBFBD><1C>2<>1<EFBFBD>#<23>6<>7<> 7<> <0E>(<28>?<3F>c<EFBFBD>\<5C>1<><1C><<3C>=<3D> =<3D> <0F>$<24>;<3B><1C>D<>E<> E<><1F>_<EFBFBD>_<EFBFBD><04>
r<00><>c<00>.<00>tj|_yr6)rqr<>rVr<>s r<00>_postz Dvi._posts<00><00><1E>(<28>(<28><04>
r<00><>c<00><00>t<00>r6)<01>NotImplementedErrorr<72>s r<00>
_post_postzDvi._post_posts<00><00>!<21>!r<00><><00><>)r[rbc<00>$<00>tdd|z<00><00><02><00>)Nzunknown command: byte rL)r)r<00>offsets r<00>
_malformedzDvi._malformed!s<00><00><18>1<>#<23><06>,<2C><1E>@<40>A<>Ar)F).r/r0r1r2r<>rrertrvr|r<>rxrr~rArqr<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rrr<>rrrr r+r3r/rrrDrGrKrPr4rrrgrg<00>s<><00><00> <08><14>f<EFBFBD>s<EFBFBD>l<EFBFBD>G<EFBFBD><17> <09>7<EFBFBD>+<2B>I<EFBFBD> "<22><14><15> !<21>&<1E>
+@<01>Z-<1D>^L<01><0F>1<EFBFBD>#<23>Y<EFBFBD>%5<>%5<>6<>5<>7<>5<> <0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>j<EFBFBD>I<>5<>J<01>5<> <0F>s<EFBFBD>)<29>*<2A>*<2A><1C>><3E><14>?<3F><14><0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>j<EFBFBD>I<>"<22>J<01>"<22>H<01>(<0F>s<EFBFBD>)<29>*<2A>*<2A><1C>><3E>"<22>?<3F>"<22>9<><0F>s<EFBFBD>^<5E> <0A><14> <0A><0F>s<EFBFBD>)<29>/<2F>/<2F>
<EFBFBD>;<3B><18><<3C><18><0F>s<EFBFBD>)<29>*<2A>*<2A>+<2B>G<01>,<2C>G<01><0F>s<EFBFBD>)<29>*<2A>*<2A>+<2B>L<01>,<2C>L<01><0F>s<EFBFBD>)<29>*<2A>*<2A>+<2B>J<01>,<2C>J<01><0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>j<EFBFBD>I<><14>J<01><14><0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>i<EFBFBD>H<><19>I<01><19>
<0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>i<EFBFBD>H<><19>I<01><19>
<0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>j<EFBFBD>I<><14>J<01><14><0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>i<EFBFBD>H<><19>I<01><19>
<0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>i<EFBFBD>H<><19>I<01><19>
<0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>8<><13>9<><13><0F>3<EFBFBD>C<EFBFBD>y<EFBFBD>'7<>'7<>j<EFBFBD>I<><17>J<01><17><0F>3<EFBFBD>C<EFBFBD>j<EFBFBD>1<>*<2A>2<>*<2A><0F>3<EFBFBD>C<EFBFBD>&M<>N<>-<2D>O<01>-<2D>D<01>*<0F>s<EFBFBD>)<29>-<2D>-<2D>.L<>M<>%<25>N<01>%<25>"<0F>s<EFBFBD>)<29>/<2F>/<2F>*<2A>)<29>+<2B>)<29>
<0F>s<EFBFBD>^<5E>"<22><14>"<22><0F>3<EFBFBD>C<EFBFBD> <20>B<01>!<21>Brrgc<00>8<00>eZdZdZdZd<03>Zd<04>Zd<05>Zd<06>Zd<07>Z d<08>Z
y )
r<EFBFBD>au
Encapsulation of a font that a DVI file can refer to.
This class holds a font's texname and size, supports comparison,
and knows the widths of glyphs in the same units as the AFM file.
There are also internal attributes (for use by dviread.py) that
are *not* used for comparison.
The size is in Adobe points (converted from TeX points).
Parameters
----------
scale : float
Factor by which the font is scaled from its natural size.
tfm : Tfm
TeX font metrics for this font
texname : bytes
Name of the font as used internally by TeX and friends, as an ASCII
bytestring. This is usually very different from any external font
names; `PsfontsMap` can be used to find the external name of the font.
vf : Vf
A TeX "virtual font" file, or None if this font is not virtual.
Attributes
----------
texname : bytes
size : float
Size of the font in Adobe points, converted from the slightly
smaller TeX points.
widths : list
Widths of glyphs in glyph-space units, typically 1/1000ths of
the point size.
)rr$<00>widthsr<73>r<>r<>c<00>`<00>tjt|<03><01>||_||_||_||_|dz|_ t|j<00>dz}t|<05>D<00>cgc]$}d|jj|d<04>zdz <00><02>&c}|_ y#t$rd}Y<00>LwxYwcc}w)N)rg]<15>e<><65>>r=rr@<00>)r<00>check_isinstance<63>bytesr<73>r<>rr<>r$rbr<>rr^<00>getrR)rr<>r<>rr<><00>ncharsr<73>s rrtzDviFont.__init__Ks<><00><00> <0C><1D><1D>e<EFBFBD>W<EFBFBD>5<><1B><04> <0B><17><04> <09><1E><04> <0C><15><04><08><19>3<>4<><04> <09> <17><18><13><19><19>^<5E>a<EFBFBD>'<27>F<EFBFBD>$)<29><16>=<3D>2<><1F><1D>S<EFBFBD>Y<EFBFBD>Y<EFBFBD>]<5D>]<5D>4<EFBFBD><11>3<>3<><02>:<3A>2<><04> <0B><><1A> <17><16>F<EFBFBD> <17><>2s<00>B<00>()B+<04> B(<03>'B(c<00><><00>t|<00>t|<01>uxr4|j|jk(xr|j|jk(Sr6)<03>typerr$<00>r<00>others r<00>__eq__zDviFont.__eq__YsD<00><00><14>T<EFBFBD>
<EFBFBD>d<EFBFBD>5<EFBFBD>k<EFBFBD>)<29>N<01><18>L<EFBFBD>L<EFBFBD>E<EFBFBD>M<EFBFBD>M<EFBFBD>1<>N<01>6:<3A>i<EFBFBD>i<EFBFBD>5<EFBFBD>:<3A>:<3A>6M<36> Orc<00>&<00>|j|<01> Sr6)r]r[s r<00>__ne__zDviFont.__ne__]s<00><00><17>;<3B>;<3B>u<EFBFBD>%<25>%<25>%rc<00>N<00>dt|<00>j<00>d|j<00>d<03>S)N<><z: <20>>)rZr/rrs r<00>__repr__zDviFont.__repr__`s&<00><00><12>4<EFBFBD><04>:<3A>&<26>&<26>'<27>r<EFBFBD>$<24>,<2C>,<2C><1E>q<EFBFBD>9<>9rc<00><><00>|jjj|d<01>}|<02>t||j<00>St
j d||j<00>y)zWidth of char in dvi units.Nz No width for char %d in font %s.r)r<>r<>rWr<>r<>rkrlr)rr<>r<>s rr<>zDviFont._width_ofcsK<00><00><14> <09> <09><0F><0F>#<23>#<23>D<EFBFBD>$<24>/<2F><05> <10> <1C><1B>E<EFBFBD>4<EFBFBD>;<3B>;<3B>/<2F> /<2F> <0C>
<EFBFBD>
<EFBFBD>5<>t<EFBFBD>T<EFBFBD>\<5C>\<5C>J<>rc<00><><00>g}|jjdf|jjdffD]r\}}|j|d<03>}|<05>4tj d|||j <00>|jd<05><00>N|jt||j<00><00><00>ttjd|j <00>r
|dk(rd|d<|S)z&Height and depth of char in dvi units.r<><00>depthNzNo %s for char %d in font %srs ^cmsy\d+$r<>) r<>r<>rfrWrkrlrr<>r<>r<><00>re<72>match)rr<><00>result<6C>metricr<63><00>values rr<>zDviFont._height_depth_ofks<><00><00><13><06>"<22>i<EFBFBD>i<EFBFBD>.<2E>.<2E><08>9<>"<22>i<EFBFBD>i<EFBFBD>o<EFBFBD>o<EFBFBD>w<EFBFBD>7<>9<> <<3C>L<EFBFBD>F<EFBFBD>D<EFBFBD><1A>J<EFBFBD>J<EFBFBD>t<EFBFBD>T<EFBFBD>*<2A>E<EFBFBD><14>}<7D><14>
<EFBFBD>
<EFBFBD>9<><1F><14>t<EFBFBD>|<7C>|<7C>5<><16> <0A> <0A>a<EFBFBD> <20><16> <0A> <0A>h<EFBFBD>u<EFBFBD>d<EFBFBD>k<EFBFBD>k<EFBFBD>:<3A>;<3B> <<3C> <0E>8<EFBFBD>8<EFBFBD>M<EFBFBD>4<EFBFBD><<3C><<3C> 0<>T<EFBFBD>Q<EFBFBD>Y<EFBFBD><1A>F<EFBFBD>2<EFBFBD>J<EFBFBD><15> rN) r/r0r1r2<00> __slots__rtr]r_rcr<>r<>r4rrr<>r<>&s/<00><00>!<08>DG<01>I<EFBFBD> 2<>O<01>&<26>:<3A><11>rr<>c<00>@<00><00>eZdZdZ<03>fd<02>Zd<03>Zd<04>Zd<05>Zd<06>Zd<07>Z <09>xZ
S)<08>Vfa<66>
A virtual font (\*.vf file) containing subroutines for dvi files.
Parameters
----------
filename : str or path-like
Notes
-----
The virtual font format is a derivative of dvi:
http://mirrors.ctan.org/info/knuth/virtual-fonts
This class reuses some of the machinery of `Dvi`
but replaces the `_read` loop and dispatch mechanism.
Examples
--------
::
vf = Vf(filename)
glyph = vf[code]
glyph.text, glyph.boxes, glyph.width
c<00><><00><01>t<00>|<00>|d<01> d|_i|_|j <00>|j <00>y#|j <00>wxYwr<>)<06>superrt<00> _first_font<6E>_charsr~rx)rr<00> __class__s <20>rrtz Vf.__init__<5F>sB<00><><00> <0A><07><18><18>1<EFBFBD>%<25> <19>#<23>D<EFBFBD> <1C><1C>D<EFBFBD>K<EFBFBD> <10>J<EFBFBD>J<EFBFBD>L<EFBFBD> <10>J<EFBFBD>J<EFBFBD>L<EFBFBD><4C>D<EFBFBD>J<EFBFBD>J<EFBFBD>L<EFBFBD>s <00>A<00>Ac<00> <00>|j|Sr6)rr)r<00>codes r<00> __getitem__zVf.__getitem__<5F>s<00><00><13>{<7B>{<7B>4<EFBFBD> <20> rc<00>"<00>dx}}dx}} |jjd<02>d}|jtjur}|jj <00>dz
}||k(r|j ||<04>dx}x}}nB||kDr td<04><00>|dvs|dk\rtd|<05>d<08><03><00>tj|||<05><00><>|d krL|}|jd<02>}|jd
<EFBFBD>}|j|<05>}tj|_<00>n}|d k(rF|jd <0B>}|jd <0B>}|jd <0B>}|j|<03><00>n2d|cxkrd kr<>nn<>|j|d z
|d k(<00>}|jd <0B>}|jd <0B>} |jd <0B>}
|jd<02>} |jd<02>} |j||| |
| | <0C>|j<00><>||_ n<>|d k(rt|jd<02>} |jd<02>}|jj|<07>}|jd <0B>}|jd <0B>}|j| |||<10>n|dk(rytd|<05><00><02><00><01><02><>)r<>Nr=rz!Packet length mismatch in vf file)r<>r<>r,zInappropriate opcode z in vf filer"rJrDr-r=rEzUnknown vf opcode )rnr<>rVrqr<><00>tell<6C>_finalize_packetrrgr<>rA<00> _init_packetr/rqrD)r<00> packet_char<61> packet_ends<64>
packet_len<EFBFBD> packet_widthrW<00>byte_atrr0r1r<>r<>r2r`r_<00>cs<63>dss rr~zVf._read<61>sp<00><00>
%)<29>(<28> <0B>k<EFBFBD>$(<28>(<28>
<EFBFBD>\<5C><12><17>9<EFBFBD>9<EFBFBD>><3E>><3E>!<21>$<24>Q<EFBFBD>'<27>D<EFBFBD><13>z<EFBFBD>z<EFBFBD>Y<EFBFBD>-<2D>-<2D>-<2D><1E>)<29>)<29>.<2E>.<2E>*<2A>1<EFBFBD>,<2C><07><1A>k<EFBFBD>)<29><18>)<29>)<29>+<2B>|<7C>D<>>B<>B<>J<EFBFBD>B<><1B>|<7C><1C>{<7B>*<2A>$<24>%H<>I<>I<><1B>z<EFBFBD>)<29>T<EFBFBD>S<EFBFBD>[<5B>(<28>+@<40><14><06>k<EFBFBD>)R<>S<>S<><17>K<EFBFBD>K<EFBFBD><04>%<25>d<EFBFBD>D<EFBFBD>1<><1C><14>c<EFBFBD>z<EFBFBD>!<21>
<EFBFBD>"<22>n<EFBFBD>n<EFBFBD>Q<EFBFBD>/<2F> <0B>#<23>~<7E>~<7E>a<EFBFBD>0<> <0C>"<22>/<2F>/<2F><04>5<> <0B>&<26>-<2D>-<2D><04>
<EFBFBD><15><13><1B>!<21>^<5E>^<5E>A<EFBFBD>.<2E>
<EFBFBD>"<22>n<EFBFBD>n<EFBFBD>Q<EFBFBD>/<2F> <0B>#<23>~<7E>~<7E>a<EFBFBD>0<> <0C><14>!<21>!<21>*<2A>-<2D><14><04>#<23><03>#<23><18>N<EFBFBD>N<EFBFBD>4<EFBFBD>#<23>:<3A>t<EFBFBD>s<EFBFBD>{<7B>;<3B><01><18>N<EFBFBD>N<EFBFBD>1<EFBFBD>%<25><01><18>N<EFBFBD>N<EFBFBD>1<EFBFBD>%<25><01><18>N<EFBFBD>N<EFBFBD>1<EFBFBD>%<25><01><18>N<EFBFBD>N<EFBFBD>1<EFBFBD>%<25><01><18>N<EFBFBD>N<EFBFBD>1<EFBFBD>%<25><01><14>"<22>"<22>1<EFBFBD>a<EFBFBD><11>A<EFBFBD>q<EFBFBD>!<21>4<><17>#<23>#<23>+<2B>'(<28>D<EFBFBD>$<24><15><13><1B><18>N<EFBFBD>N<EFBFBD>1<EFBFBD>%<25><01><18>N<EFBFBD>N<EFBFBD>1<EFBFBD>%<25><01><18>I<EFBFBD>I<EFBFBD>N<EFBFBD>N<EFBFBD>1<EFBFBD>%<25><01><19>^<5E>^<5E>A<EFBFBD>&<26><02><19>^<5E>^<5E>A<EFBFBD>&<26><02><14> <09> <09>!<21>Q<EFBFBD><02>B<EFBFBD>'<27><15><13><1B><15> <20>#5<>d<EFBFBD>V<EFBFBD>!<<3C>=<3D>=<3D>crc<00>:<00>|jtjk7r td<01><00>dx|_x|_x|_x|_x|_|_ g|_
g|_ g|_ |j|_d|_|j j#<00>|zS)NzMisplaced packet in vf filer)rVrqr<>rr<>r<>r<>r_r<>r<>r<>r<>r<>rqrXrsrnrx)r<00>pls rrzzVf._init_packet<65>s<><00><00> <0F>:<3A>:<3A><19><1F><1F> (<28><1C>:<3A>;<3B> ;<3B>>?<3F>?<3F><04><06>?<3F><14><16>?<3F>$<24>&<26>?<3F>4<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD>F<EFBFBD>T<EFBFBD>V<EFBFBD><17><04>
<EFBFBD><16><04> <09><17><04>
<EFBFBD><15>!<21>!<21><04><06>!<21><04><1A><13>y<EFBFBD>y<EFBFBD>~<7E>~<7E><1F>"<22>$<24>$rc<00><><00>|js1t|j|j|dd<00><01>|j|<t
j |_y)Nr<4E>)rsr r<>r<>rrrqr<>rV)rr{r~s rryzVf._finalize_packet<65>s?<00><00><13>!<21>!<21>'+<2B><19>Y<EFBFBD>Y<EFBFBD>d<EFBFBD>j<EFBFBD>j<EFBFBD> <0C><1B>T<EFBFBD>(+<2B>D<EFBFBD>K<EFBFBD>K<EFBFBD> <0B> $<24><1F>_<EFBFBD>_<EFBFBD><04>
rc<00><><00>|jtjur td<01><00>|dk7rtd|<01><00><02><00>t |<02>rt
j d|<02>tj|_y)Nz pre command in middle of vf file<6C><65>zUnknown vf format zvf file comment: %s)rVrqrrrr<>rkrlr<>)rr`r_r<>r<>s rrDzVf._pre<72>sY<00><00> <0F>:<3A>:<3A>Y<EFBFBD>]<5D>]<5D> *<2A><1C>?<3F>@<40> @<40> <0C><03>8<EFBFBD><1C>1<>!<21><13>5<>6<> 6<> <0E>q<EFBFBD>6<EFBFBD> <10>J<EFBFBD>J<EFBFBD>,<2C>a<EFBFBD> 0<><1E>_<EFBFBD>_<EFBFBD><04>
r) r/r0r1r2rtrvr~rzryrD<00> __classcell__)rss@rrnrn<00>s'<00><><00><08>.<19>!<21>8><3E>t %<25>%<25>%rrnc<00><00>||zdz S)z1Multiply two numbers in 20.12 fixed point format.rTr4)<02>num1<6D>num2s rr<>r<><00>s<00><00> <11><14>I<EFBFBD>"<22> <1C>rc<00><00>eZdZdZdZd<03>Zy)<05>Tfma
A TeX Font Metric file.
This implementation covers only the bare minimum needed by the Dvi class.
Parameters
----------
filename : str or path-like
Attributes
----------
checksum : int
Used for verifying against the dvi file.
design_size : int
Design size of the font (unknown units)
width, height, depth : dict
Dimensions of each character, need to be scaled by the factor
specified in the dvi file. These are dicts because indexing may
not start from 0.
)r8<00> design_sizer<65>r<>rfc
<00><><00>tjd|<01>t|d<02>5}|jd<03>}t j
d|dd<00>\}}}}}} tjd|||||| <09>|jd|z<00>}
t j
d |
dd
<00>\|_|_|jd||z
d zz<00>} t j
d |<07>d <0A>|jd|z<00><00>} t j
d |<08>d <0A>|jd|z<00><00>} t j
d | <09>d <0A>|jd| z<00><00>}ddd<00>i|_i|_ i|_
ttd z<00><00>D]T\}} d|z}| d|zd z} ||j|< |dz |j|<|dz|j|<<00>Vy#1swY<00><>xYw)Nzopening tfm file %srj<00>z!6Hr?<00>z(lh=%d, bc=%d, ec=%d, nw=%d, nh=%d, nd=%drDz!2I<32>r=<00>!r`<00>) rkrlrmr<><00>struct<63>unpackr8r<>r<>r<>rf<00> enumerater^)rrrn<00>header1<72>lh<6C>bc<62>ec<65>nw<6E>nh<6E>nd<6E>header2<72> char_inforR<00>heights<74>depths<68>idxr<78><00>byte0<65>byte1s rrtz Tfm.__init__s<><00><00> <0C>
<EFBFBD>
<EFBFBD>(<28>(<28>3<> <11>(<28>D<EFBFBD> !<21> ?<3F>T<EFBFBD><1A>i<EFBFBD>i<EFBFBD><02>m<EFBFBD>G<EFBFBD>%+<2B>]<5D>]<5D>5<EFBFBD>'<27>!<21>B<EFBFBD>-<2D>%H<> "<22>B<EFBFBD><02>B<EFBFBD><02>B<EFBFBD><02> <10>J<EFBFBD>J<EFBFBD>A<><19>2<EFBFBD>r<EFBFBD>2<EFBFBD>r<EFBFBD>2<EFBFBD> /<2F><1A>i<EFBFBD>i<EFBFBD><01>"<22><04>o<EFBFBD>G<EFBFBD>.4<EFBFBD>m<EFBFBD>m<EFBFBD>E<EFBFBD>7<EFBFBD>2<EFBFBD>A<EFBFBD>;<3B>.O<> +<2B>D<EFBFBD>M<EFBFBD>4<EFBFBD>+<2B><1C> <09> <09>!<21>R<EFBFBD><02>U<EFBFBD>1<EFBFBD>W<EFBFBD>+<2B>.<2E>I<EFBFBD><1B>]<5D>]<5D>Q<EFBFBD>r<EFBFBD>d<EFBFBD>!<21>9<EFBFBD>d<EFBFBD>i<EFBFBD>i<EFBFBD><01>"<22><04>o<EFBFBD>><3E>F<EFBFBD><1C>m<EFBFBD>m<EFBFBD>a<EFBFBD><02>t<EFBFBD>1<EFBFBD>I<EFBFBD>t<EFBFBD>y<EFBFBD>y<EFBFBD><11>2<EFBFBD><14><EFBFBD>?<3F>G<EFBFBD><1B>]<5D>]<5D>Q<EFBFBD>r<EFBFBD>d<EFBFBD>!<21>9<EFBFBD>d<EFBFBD>i<EFBFBD>i<EFBFBD><01>"<22><04>o<EFBFBD>><3E>F<EFBFBD> ?<3F><18><04>
<EFBFBD><18><04> <0B><17><04>
<EFBFBD>"<22>5<EFBFBD><12>R<EFBFBD><01>T<EFBFBD>?<3F>3<> 3<>I<EFBFBD>C<EFBFBD><14><1D>a<EFBFBD><03>e<EFBFBD>$<24>E<EFBFBD><1D>a<EFBFBD><03>e<EFBFBD>A<EFBFBD>g<EFBFBD>&<26>E<EFBFBD>%<25>e<EFBFBD>}<7D>D<EFBFBD>J<EFBFBD>J<EFBFBD>t<EFBFBD> <1C> '<27><05><11>
<EFBFBD> 3<>D<EFBFBD>K<EFBFBD>K<EFBFBD><04> <1D>%<25>e<EFBFBD>c<EFBFBD>k<EFBFBD>2<>D<EFBFBD>J<EFBFBD>J<EFBFBD>t<EFBFBD> <1C>  3<> ?<3F> ?<3F>s <00>D%G<03>GN)r/r0r1r2rlrtr4rrr<>r<>s<00><00><08>(H<01>I<EFBFBD>3rr<><00>PsFontz(texname psname effects encoding filenamec<00>0<00>eZdZdZdZed<03><00>Zd<04>Zd<05>Zy)ra}
A psfonts.map formatted file, mapping TeX fonts to PS fonts.
Parameters
----------
filename : str or path-like
Notes
-----
For historical reasons, TeX knows many Type-1 fonts by different
names than the outside world. (For one thing, the names have to
fit in eight characters.) Also, TeX's native fonts are not Type-1
but Metafont, which is nontrivial to convert to PostScript except
as a bitmap. While high-quality conversions to Type-1 format exist
and are shipped with modern TeX distributions, we need to know
which Type-1 fonts are the counterparts of which native fonts. For
these reasons a mapping is needed from internal font names to font
file names.
A texmf tree typically includes mapping files called e.g.
:file:`psfonts.map`, :file:`pdftex.map`, or :file:`dvipdfm.map`.
The file :file:`psfonts.map` is used by :program:`dvips`,
:file:`pdftex.map` by :program:`pdfTeX`, and :file:`dvipdfm.map`
by :program:`dvipdfm`. :file:`psfonts.map` might avoid embedding
the 35 PostScript fonts (i.e., have no filename for them, as in
the Times-Bold example above), while the pdf-related files perhaps
only avoid the "Base 14" pdf fonts. But the user may have
configured these files differently.
Examples
--------
>>> map = PsfontsMap(find_tex_file('pdftex.map'))
>>> entry = map[b'ptmbo8r']
>>> entry.texname
b'ptmbo8r'
>>> entry.psname
b'Times-Bold'
>>> entry.encoding
'/usr/local/texlive/2008/texmf-dist/fonts/enc/dvips/base/8r.enc'
>>> entry.effects
{'slant': 0.16700000000000001}
>>> entry.filename
)<03> _filename<6D> _unparsed<65>_parsedc<00>R<00>tj|<00>}tj|<01>|_t |d<01>5}i|_|D]B}|jdd<03>d}|j j|g<00>j|<04><00>D ddd<00>i|_
|S#1swY<00>xYw)Nrj<00> r=r) <0B>object<63>__new__<5F>os<6F>fsdecoder<65>rmr<><00>split<69>
setdefaultr<EFBFBD>r<>)<06>clsrrrn<00>line<6E>tfmnames rr<>zPsfontsMap.__new__fs<><00><00><15>~<7E>~<7E>c<EFBFBD>"<22><04><1B><1B><1B>X<EFBFBD>.<2E><04><0E>
<12>(<28>D<EFBFBD> !<21> D<01>T<EFBFBD><1F>D<EFBFBD>N<EFBFBD><1C> D<01><04><1E>*<2A>*<2A>T<EFBFBD>1<EFBFBD>-<2D>a<EFBFBD>0<><07><14><0E><0E>)<29>)<29>'<27>2<EFBFBD>6<>=<3D>=<3D>d<EFBFBD>C<> D<01> D<01>
<1A><04> <0C><13> <0B>  D<01> D<01>s <00>AB<03>B&c<00>:<00>t|t<00>sJ<00>||jvr3|jj|<01>D]}|j |<02>s<01>n |j
|S#t $r-td|jd<02><00>d|j<00>d<04><05>d<00>wxYw)NzWAn associated PostScript font (required by Matplotlib) could not be found for TeX font rz in zo; this problem can often be solved by installing a suitable PostScript font package in your TeX package manager)
r<EFBFBD>rVr<>r<><00>_parse_and_cache_liner<65><00>KeyError<6F> LookupErrorr r<>)rrr<>s rrvzPsfontsMap.__getitem__vs<><00><00><19>'<27>5<EFBFBD>)<29>)<29>)<29> <12>d<EFBFBD>n<EFBFBD>n<EFBFBD> $<24><1C><0E><0E>*<2A>*<2A>7<EFBFBD>3<> <1A><04><17>-<2D>-<2D>d<EFBFBD>3<><19> <1A> .<2E><17><<3C><<3C><07>(<28> (<28><><17> .<2E><1D>3<>3:<3A>><3E>><3E>'<27>3J<33>2M<32>N<16><1A>n<EFBFBD>n<EFBFBD>'<27>("<22>#<23>$<24>
*.<2E>  .<2E> .<2E>s <00>A$<00>$6Bc <00><00>|r|jd<01>rydx}x}x}x}}dx}x}} tjd|<01>}
|
D]<5D>} | j<00>\} } | r<>| jd<05>r| dd}<06>/| jd<07>r| dd}<05>F| jd<08>rL| d dxs,t t dt |
<EFBFBD>j<00><00><00>}|j d
<EFBFBD>r|}<05><>|}d }<07><>|<02>| }<02><>|<03><01><>| }<03><>| s<01><>| }<04><>i}|rZt|j<00><00>}|D]<}|d k(rtt |<10><00>|d <<00> |dk(s<01>&tt |<10><00>|d<<00>>|<06>(|j d<10>rd } n|j d<11>sd }n|<03>d }| r|r|<05>y|s d |vsd|vryt|jd d<12><00>d kDryt|jdd<12><00>dkDry|<03>|}|<05> t|<05>}|<06> t|<06>}t|||||<06><13>|j|<y )a%
Parse a line in the font mapping file.
The format is (partially) documented at
http://mirrors.ctan.org/systems/doc/pdftex/manual/pdftex-a.pdf
https://tug.org/texinfohtml/dvips.html#psfonts_002emap
Each line can have the following fields:
- tfmname (first, only required field),
- psname (defaults to tfmname, must come immediately after tfmname if
present),
- fontflags (integer, must come immediately after psname if present,
ignored by us),
- special (SlantFont and ExtendFont, only field that is double-quoted),
- fontfile, encodingfile (optional, prefixed by <, <<, or <[; << always
precedes a font, <[ always precedes an encoding, < can precede either
but then an encoding file must have extension .enc; < and << also
request different font subsetting behaviors but we ignore that; < can
be separated from the filename by whitespace).
special, fontfile, and encodingfile can appear in any order.
)r<><00>%<25>*<2A>;<3B>#NFs"([^"]*)(?:"|$)|(\S+)s<<r?s<[<5B><r=s.encTs SlantFont<6E>slants
ExtendFontr<74>)s.ttfs.ttcs.otfr)rrr'r*r)<0F>
startswithrg<00>finditer<65>groups<70>next<78>filter<65>endswith<74>reversedr<64><00>float<61>absrWrr<>r<>)rr<>r<><00>basenamer)<00> encodingfile<6C>fontfile<6C> is_subsetted<65>is_t1<74> is_truetype<70>matchesrh<00>quoted<65>unquoted<65>wordr'<00>wordss rr<>z PsfontsMap._parse_and_cache_line<6E>s\<00><00>8<14>t<EFBFBD><EFBFBD><EFBFBD>'E<>F<> <12>AE<41>E<><07>E<>(<28>E<>W<EFBFBD>E<>|<7C>h<EFBFBD>-2<>2<> <0C>2<>u<EFBFBD>{<7B><14>+<2B>+<2B>7<><14>><3E><07><1C> !<21>E<EFBFBD>$<24>|<7C>|<7C>~<7E> <1C>F<EFBFBD>H<EFBFBD><17><1B>&<26>&<26>u<EFBFBD>-<2D>'<27><01><02>|<7C>H<EFBFBD><1D>(<28>(<28><15>/<2F>#+<2B>A<EFBFBD>B<EFBFBD><<3C>L<EFBFBD><1D>(<28>(<28><14>.<2E>!<21><11><12> <0C>F<01><1F><06>t<EFBFBD>T<EFBFBD>'<27>]<5D>-A<>-A<>-C<> D<>E<> <19>
<1C>}<7D>}<7D>W<EFBFBD>-<2D>'+<2B> <0C>#'<27><08>'+<2B> <0C><1C>_<EFBFBD>&<26>G<EFBFBD><1D>%<25>'<27>H<EFBFBD><17> <20><07>/ !<21>0<15><07> <12><1C>W<EFBFBD>]<5D>]<5D>_<EFBFBD>-<2D>E<EFBFBD><1D> ;<3B><04><17><<3C>'<27>',<2C>T<EFBFBD>%<25>[<5B>'9<>G<EFBFBD>G<EFBFBD>$<24><19>]<5D>*<2A>(-<2D>d<EFBFBD>5<EFBFBD>k<EFBFBD>(:<3A>G<EFBFBD>H<EFBFBD>%<25>  ;<3B> <14> <1F><17> <20> <20>!3<>4<>"<22> <0B><1D>&<26>&<26>w<EFBFBD>/<2F><1C><05> <15> !<21><18>E<EFBFBD> <16><<3C>L<EFBFBD>,@<40> <12><14>'<27>W<EFBFBD>,<2C><08>G<EFBFBD>0C<30> <12> <0E>w<EFBFBD>{<7B>{<7B>7<EFBFBD>A<EFBFBD>&<26> '<27>!<21> +<2B> <12> <0E>w<EFBFBD>{<7B>{<7B>8<EFBFBD>Q<EFBFBD>'<27> (<28>1<EFBFBD> ,<2C> <12> <13> <1B><1E>H<EFBFBD> <17> #<23>(<28><1C>6<>L<EFBFBD> <13> <1F>$<24>X<EFBFBD>.<2E>H<EFBFBD> &<26><1B>H<EFBFBD>g<EFBFBD>!<21>H<EFBFBD>!6<><04> <0C> <0C>W<EFBFBD><1D>rN) r/r0r1r2rlrr<>rvr<>r4rrrr5s.<00><00>*<08>V6<>I<EFBFBD>
<0F> <14><0F> <14>.<2E> ]rrc<00>h<00>tjddt|<00>jd<03><04><00>}tjd|<01>j d<06>}|j <00>D<00>cgc]}|s<01>|<03><02> }}td<07>|D<00><00>r|D<00>cgc]}|dd<00><02> c}Std |<00>d
<EFBFBD><03><00>cc}wcc}w) aE
Parse a \*.enc file referenced from a psfonts.map style file.
The format supported by this function is a tiny subset of PostScript.
Parameters
----------
path : `os.PathLike`
Returns
-------
list
The nth entry of the list is the PostScript glyph name of the nth
glyph.
z%.*r$r)r*z (?s)\[(.*)\]r=c3<00>>K<00>|]}|jd<00><00><01><00>y<01>w)<02>/N)r<>)<02>.0r<EFBFBD>s r<00> <genexpr>z_parse_enc.<locals>.<genexpr><3E>s<00><00><><00>
2<EFBFBD>D<EFBFBD>4<EFBFBD>?<3F>?<3F>3<EFBFBD> <1F>
2<EFBFBD>s<00>NzFailed to parse z as Postscript encoding) rg<00>subr<00> read_text<78>search<63>groupr<70><00>allr)<05>path<74> no_comments<74>arrayr<79><00>liness rr+r+<00>s<><00><00> <15>&<26>&<26><15><02>D<EFBFBD><14>J<EFBFBD>$8<>$8<>'<27>$8<>$J<>K<>K<EFBFBD> <0E>I<EFBFBD>I<EFBFBD>o<EFBFBD>{<7B> 3<> 9<> 9<>!<21> <<3C>E<EFBFBD>#<23>k<EFBFBD>k<EFBFBD>m<EFBFBD> 4<>d<EFBFBD>t<EFBFBD>T<EFBFBD> 4<>E<EFBFBD> 4<>
<EFBFBD>
2<EFBFBD>E<EFBFBD>
2<EFBFBD>2<>%*<2A>+<2B>T<EFBFBD><04>Q<EFBFBD>R<EFBFBD><08>+<2B>+<2B><18>+<2B>D<EFBFBD>6<EFBFBD>1H<31>I<>J<>J<><4A> 5<><35>+s<00>(B*<04>0B*<04> B/c<00>(<00>eZdZed<01><00>Zd<02>Zd<03>Zy)<05>_LuatexKpsewhichc<00>Z<00>tj|<00>}|j<00>|_|Sr6)r<>r<><00> _new_proc<6F>_proc)r<>rs rr<>z_LuatexKpsewhich.__new__s#<00><00><15>~<7E>~<7E>c<EFBFBD>"<22><04><19>^<5E>^<5E>%<25><04>
<EFBFBD><13> rc <00><><00>tjddttjd<03><00>gtj
tj
<00><04>S)N<>luatexz --luaonlyz kpsewhich.lua)<02>stdin<69>stdout)<06>
subprocess<EFBFBD>Popen<65>strr <00>_get_data_path<74>PIPErs rr<>z_LuatexKpsewhich._new_procs?<00><00><19><1F><1F> <15>{<7B> <10><15>%<25>%<25>o<EFBFBD>6<> 7<> 9<><1C>/<2F>/<2F>*<2A>/<2F>/<2F>;<3B> ;rc<00><><00>|jj<00><00>|j<00>|_|jjj t j |<01>dz<00>|jjj<00>|jjj<00>j<00>}|dk(rdSt j|<02>S)N<>
snil) r<><00>pollr<6C>r<><00>writer<65><00>fsencode<64>flushr<68><00>readline<6E>rstripr<70>)rr<00>outs rr<>z_LuatexKpsewhich.search s<><00><00> <0F>:<3A>:<3A>?<3F>?<3F> <1C> (<28><1D><1E><1E>)<29>D<EFBFBD>J<EFBFBD> <0C>
<EFBFBD>
<EFBFBD><18><18><1E><1E>r<EFBFBD>{<7B>{<7B>8<EFBFBD>4<>u<EFBFBD><<3C>=<3D> <0C>
<EFBFBD>
<EFBFBD><18><18><1E><1E> <20><12>j<EFBFBD>j<EFBFBD><1F><1F>(<28>(<28>*<2A>1<>1<>3<><03><1A>f<EFBFBD>}<7D>t<EFBFBD>:<3A>"<22>+<2B>+<2B>c<EFBFBD>*:<3A>:rN)r/r0r1rr<>r<>r<>r4rrr<>r<><00>s<00><00><0E><14><0F><14>
;<3B> ;rr<>c<00><><00>t|t<00>r|jdd<02><03>} t<00>}|r|j |<00>}nqt jdk(ritj<00>ddi<01>dd<07>}nt j<00>dd <09>} tjd
|gtfi|<03><01>jd <0B>}|r|St d |<00>d <0A><03><00>#t$rd}Y<00><>wxYw#ttf$rd}Y<00>7wxYw)a<>
Find a file in the texmf tree using kpathsea_.
The kpathsea library, provided by most existing TeX distributions, both
on Unix-like systems and on Windows (MikTeX), is invoked via a long-lived
luatex process if luatex is installed, or via kpsewhich otherwise.
.. _kpathsea: https://www.tug.org/kpathsea/
Parameters
----------
filename : str or path-like
Raises
------
FileNotFoundError
If the file is not found.
zutf-8<>replace)<01>errorsN<73>win32<33>command_line_encoding)<02>envr*<00>surrogateescape)r*r<><00> kpsewhich<63>
z:Matplotlib's TeX implementation searched for a file named z* in your texmf tree, but could not find it)r<>rVr r<>r6r<><00>sys<79>platformr<6D><00>environ<6F>getfilesystemencodingr <00>_check_and_log_subprocessrkr<><00> RuntimeError)r<00>lkr<6B><00>kwargss rrrs<00><00>.<12>(<28>E<EFBFBD>"<22><1B>?<3F>?<3F>7<EFBFBD>9<EFBFBD>?<3F>=<3D><08><12> <1D> <1F><02>
<EFBFBD><11>y<EFBFBD>y<EFBFBD><18>"<22><04> <0E><<3C><<3C>7<EFBFBD> "<22>N<01><02>
<EFBFBD>
<EFBFBD>M<>,C<>W<EFBFBD>M<>")<29>+<2B>F<EFBFBD>#&<26>";<3B>";<3B>"=<3D> 1<>3<>F<EFBFBD> <18><19>3<>3<>[<5B>(<28>4K<34>48<34>D<01><B<>D<01><1B>V<EFBFBD>D<EFBFBD>\<5C> <11>  <0C><13> <0B><1F>H<><17>l<EFBFBD>D<> F<01>G<01> G<01><>5 <1D><12> <11><02><12><>("<22><<3C>0<> <18><17>D<EFBFBD> <18>s#<00>
C<00>,C<00> C<03>C<03>C,<03>+C,c<00>*<00>|t||z<00><00>Sr6)r)r<><00>suffixrs r<00> _fontfiler Ps<00><00> <0E>}<7D>W<EFBFBD>v<EFBFBD>-<2D>.<2E> /<2F>/rz.tfmz.vf<76>__main__)<01>ArgumentParserrro<00>?)<03>nargsrZ<00>defaultrz=== new page === (w: z, h: z, d: <20>)c<00><00>|jSr6)r)r<>s rr:r:gs
<00><00>D<EFBFBD>I<EFBFBD>I<EFBFBD>rzfont: zlatin-1z scale: ir_r<>r,r'r<>z(glyphs)<29> )<01>sep<65>.r<>r$z(boxes))NN)rK)Lr2<00> collectionsr<00>enum<75> functoolsrrr<00>loggingr<67><00>pathlibrrgr<>r<>r<00>numpyr<79><00>
matplotlibrr <00> getLoggerr/rk<00>Enumrqr r r<00>dictr]rergr<>rnr<>r<>r<>rr+r<>rr r5r9<00>argparser<00> itertools<6C>parser<65> add_argumentr<74><00>
parse_argsrarror8<00>fontmap<61>page<67>printr<74>r<>r<><00>groupbyr<79>rr<>rr r<>r_r<>r,r'<00> isprintabler<65><00>boxr4rr<00><module>r,sY<00><01><04>&#<23> <0B>/<2F>/<2F><0E> <09><18> <09> <0A><11>
<EFBFBD><12>"<22><18>w<EFBFBD><18><18><18>"<22><04>, <16>D<EFBFBD>I<EFBFBD>I<EFBFBD>j<EFBFBD>"E<> F<> <09><12>&<26>;<3B><<3C><04><10><15>*<2A>+<2B><03>:?<3F>:<3A>f<EFBFBD>4<> 5<>:?<3F>D<14> <20>8<>8<>7<> P<>
B<EFBFBD>
C<EFBFBD> K<01>#<02> <0C>*/<14>dYB<01>YB<01>x
X<16>X<16>vw%<25><13>w%<25>v<1D> -3<>-3<>`
<14>H<EFBFBD>H<> I<><06>n<14>n<14>bK<01>2;<3B>;<3B>, <0B>7G<01> <0B>7G<01>t <0B>0<> <0B>0<> <13>9<EFBFBD>c<EFBFBD>6<EFBFBD> *<2A><08>
<11>)<29>R<EFBFBD><15>
'<27><07> <0C>z<EFBFBD><19>'<27><14> <1B> <1D>F<EFBFBD>
<EFBFBD><17><17>
<EFBFBD>#<23>
<EFBFBD><17><17><05>S<EFBFBD>u<EFBFBD>d<EFBFBD><17>C<> <11> <1C> <1C> <1E>D<EFBFBD> <0C>T<EFBFBD>]<5D>]<5D>D<EFBFBD>H<EFBFBD>H<EFBFBD> %<25>I<01><13><1C>]<5D><<3C>8<>9<><07><17> I<01>D<EFBFBD> <11><19><1D><1A><1A> <0C>E<EFBFBD>$<24>+<2B>+<2B><1D>e<EFBFBD>D<EFBFBD>L<EFBFBD>L<EFBFBD>><3E><11>L<01> M<01>0<>y<EFBFBD>0<>0<><18>I<EFBFBD>I<EFBFBD>5<> 7<> 0<> <0B><04>e<EFBFBD><15><06>t<EFBFBD>|<7C>|<7C>2<>2<>9<EFBFBD>=<3D>@<40>A <20> $<24> <0B> <0B>g<EFBFBD> 5<>6<>8<>9<><15>c<EFBFBD>3<EFBFBD><07><15><03>Z<EFBFBD>T<EFBFBD>J<>!<21>0<>D<EFBFBD><19>$<24>&<26>&<26>$<24>&<26>&<26>$<24>*<2A>*<2A>-0<><14><1A><1A>_<EFBFBD>-H<>-H<>-J<>#<23>d<EFBFBD>j<EFBFBD>j<EFBFBD>/<2F>"<22><1E>*<2A>*<2A>$<24>0<>0<> 0<><14>z<EFBFBD>z<EFBFBD><15>c<EFBFBD>3<EFBFBD><03>S<EFBFBD>"<22>i<EFBFBD>T<EFBFBD>B<><1F>:<3A>:<3A>I<01>C<EFBFBD><19>#<23>%<25>%<25><13><15><15><03>
<EFBFBD>
<EFBFBD>C<EFBFBD>I<EFBFBD>I<EFBFBD>4<EFBFBD>H<>I<01> I<01>I<01>I<01><1A>I<01>I<01>s<00>D)L<03>+AL<03>L