+
    f0i                         ^ RI t ^ RIt^ RIHt ^ RIHtHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ]P                  ! R4      t] P"                  ! ]4      tR	 R
 ltR R lt ! R R4      tR# )    N)Iterable)ClassVarcast)glyphname2unicode)ENCODINGPDFKeyError)	PSLiteralz[0-9a-fA-F]+c                0    V ^8  d   QhR\         R\         /# )   namereturn)str)formats   "Y/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/pdfminer/encodingdb.py__annotate__r      s     5 5s 5s 5    c           	        \        V \        4      '       g   \        RV  R\        V 4       24      hV P	                  R4      ^ ,          p V P	                  R4      p\        V4      ^8  d    RP                  \        \        V4      4      # V \        9   d   \        V ,          # V P                  R4      '       d   V P                  R4      p\        P                  V4      '       d   \        V4      ^,          ^ 8X  do   \        ^ \        V4      ^4       Uu. uF  p\        W#V^,            ^R7      NK  	  ppV F  p\!        V4       K  	  \        \"        V4      pRP                  V4      # MV P                  R4      '       dk   V P                  R4      p\        P                  V4      '       d?   ^\        V4      u;8:  d   ^8:  d'   M M#\        V^R7      p\!        V4       \#        V4      # \        RV  R	24      hu upi )
a  Converts Adobe glyph names to Unicode numbers.

In contrast to the specification, this raises a KeyError instead of return
an empty string when the key is unknown.
This way the caller must explicitly define what to do
when there is not a match.

Reference:
https://github.com/adobe-type-tools/agl-specification#2-the-mapping

:returns unicode character if name resembles something,
otherwise a KeyError
z Could not convert unicode name "z?" to character because it should be of type str but is of type ._ uni)baseuz6" to character because it does not match specification)
isinstancer   r	   typesplitlenjoinmapname2unicoder   
startswithstripHEXADECIMALmatchrangeint#raise_key_error_for_invalid_unicodechr)	r   
componentsname_without_uniiunicode_digitsdigit
charactersname_without_uunicode_digits	   &        r   r!   r!      s    dC  .tf 577;DzlD
 	

 ::c?1DCJ
:wws<455	"	" &&			::e,-..37G3H13LPQ3Q q#&6"7;;A $Q/b9;   (3E: (S.1J77:&&			C^,,c.6I1NQ1NR8M/>}%%

*4& 1* 	* #s   G:c                (    V ^8  d   QhR\         RR/# )r   r1   r   N)r'   )r   s   "r   r   r   H   s     

 

s 

t 

r   c                J    RT u;8  d   R8  d   M R# \        RV  R24      hR# )zUnicode values should not be in the range D800 through DFFF because
that is used for surrogate pairs in UTF-16

:raises KeyError if unicode digit is invalid
i  i   zUnicode digit z8 is invalid because it is in the range D800 through DFFFNr   )r1   s   &r   r(   r(   H   s7     }$u$$]O ,3 3
 	
 %r   c                   
  a  ] tR t^Ut o / t/ t/ t/ t] FG  w  t	t
ttt]! ]	4      t]
'       d   ]]]
&   ]'       d   ]]]&   ]'       d   ]]]&   ]'       g   KB  ]]]&   KI  	  R]R]R]R]/t]R
V 3R lR ll4       tV 3R ltR	tV tR# )
EncodingDBStandardEncodingMacRomanEncodingWinAnsiEncodingPDFDocEncodingNc                `   < V ^8  d   QhRS[ RS[S[,          R,          RS[S[S[ 3,          /# )r   r   diffNr   )r   r   objectdictr'   )r   __classdict__s   "r   r   EncodingDB.__annotate__m   s;       v% 
c3h	r   c                   V P                   P                  WP                  4      pV'       d}   VP                  4       p^ pV Fd  p\	        V\
        4      '       d   TpK  \	        V\        4      '       g   K5   \        \        \        VP                  4      4      W4&   V^,          pKf  	  V#   \        \        3 d)   p\        P                  \        T4      4        Rp?LCRp?ii ; i)r   N)	encodingsgetstd2unicodecopyr   r'   r
   r!   r   r   r   KeyError
ValueErrorlogdebug)clsr   r;   cid2unicodecidxes   &&&    r   get_encodingEncodingDB.get_encodingl   s     mm''oo>%**,KCa%%C9--*+7S!&&8I+J( 1HC   %j1 *		#a&))*s   8%B,,C%=C  C%c                *  < V ^8  d   Qh/ S[ S[S[S[3,          ,          ;R&   S[ S[S[S[3,          ,          ;R&   S[ S[S[S[3,          ,          ;R&   S[ S[S[S[3,          ,          ;R&   S[ S[S[S[S[S[3,          3,          ,          ;R&   # )r   rC   mac2unicodewin2unicodepdf2unicoderA   )r   r=   r'   r   )r   r>   s   "r   r   r?   U   s     $sCx.). $sCx.).  $sCx.).  $sCx.).	   S$sCx.012 ! r    )N)__name__
__module____qualname____firstlineno__rC   rQ   rR   rS   r   r   stdmacwinpdfr!   crA   classmethodrN   __annotate_func____static_attributes____classdictcell__)r>   s   @r   r5   r5   U   s     ,.K,.K,.K,.K$, c3S K K K3 K %- 	KK;+	6I   1  r   r5   )loggingrecollections.abcr   typingr   r   pdfminer.glyphlistr   pdfminer.latin_encr   pdfminer.pdfexceptionsr	   pdfminer.psparserr
   compiler$   	getLoggerrU   rG   r!   r(   r5   rT   r   r   <module>rl      sP     	 $ ! 0 ' . 'jj)!5p

* *r   