
    ]Mh	                          G d  de           Z G d de          Z G d de          Z G d de          Z G d d	e          Z G d
 de          Z G d de          ZdS )c                       e Zd ZdZdS )Errorz0Base Cu2Qu exception class for all other errors.N)__name__
__module____qualname____doc__     V/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/fontTools/cu2qu/errors.pyr   r      s        ::::r	   r   c                        e Zd Z fdZ xZS )ApproxNotFoundErrorc                 b    d|z  }t                                          |           || _        d S )Nzno approximation found: %s)super__init__curve)selfr   message	__class__s      r
   r   zApproxNotFoundError.__init__   s0    .6!!!


r	   )r   r   r   r   __classcell__)r   s   @r
   r   r      s8                r	   r   c                       e Zd ZdS )UnequalZipLengthsErrorN)r   r   r   r   r	   r
   r   r      s        Dr	   r   c                       e Zd Zd Zd ZdS )IncompatibleGlyphsErrorc                     t          |          dk    sJ || _        t          d |D                       }t          |          dk    r,dd                    t	          |                    z  | _        d S |                                | _        d S )N   c              3   >   K   | ]}t          |j                  V  d S N)reprname.0gs     r
   	<genexpr>z3IncompatibleGlyphsError.__init__.<locals>.<genexpr>#   s*      11QDLL111111r	   z{%s}, )lenglyphssetjoinsortedcombined_namepop)r   r%   namess      r
   r   z IncompatibleGlyphsError.__init__    s    6{{Q11&11111u::>>!'$))F5MM*B*B!BD!&Dr	   c                 B    dt          |           j        d| j        dS )N< >)typer   r)   r   s    r
   __repr__z IncompatibleGlyphsError.__repr__)   s'      JJ///1C1C1CDDr	   N)r   r   r   r   r2   r   r	   r
   r   r      s7        - - -E E E E Er	   r   c                       e Zd Zd ZdS )IncompatibleSegmentNumberErrorc                     d| j         z  S )Nz1Glyphs named %s have different number of segments)r)   r1   s    r
   __str__z&IncompatibleSegmentNumberError.__str__.   s    B
 	
r	   N)r   r   r   r6   r   r	   r
   r4   r4   -   s#        
 
 
 
 
r	   r4   c                       e Zd Zd Zd ZdS )IncompatibleSegmentTypesErrorc                 J    t                               | |           || _        d S r   )r   r   segments)r   r%   r:   s      r
   r   z&IncompatibleSegmentTypesError.__init__5   s#    ((v666 r	   c           	         g }t          t          t          | j                                      }t	          | j                                                  D ]]\  }}|                    t          |                              |          dd                    d |D                       d           ^d| j	        dd                    |          S )Nz: (r#   c              3   4   K   | ]}t          |          V  d S r   r   )r    ts     r
   r"   z8IncompatibleSegmentTypesError.__str__.<locals>.<genexpr>>   s(      >U>U1tAww>U>U>U>U>U>Ur	   )zGlyphs named z$ have incompatible segment types:
  z
  )
r$   strmaxr:   r(   itemsappendrjustr'   r)   )r   linesndigitsitagss        r
   r6   z%IncompatibleSegmentTypesError.__str__9   s    c#dm,,--..dm113344 	 	GAtLL!!ffll73333TYY>U>UPT>U>U>U5U5U5U5UV   	
 KK
 	
r	   Nr   r   r   r   r6   r   r	   r
   r8   r8   4   s2        ! ! !

 

 

 

 

r	   r8   c                       e Zd Zd Zd ZdS )IncompatibleFontsErrorc                     || _         d S r   )glyph_errors)r   rM   s     r
   r   zIncompatibleFontsError.__init__G   s    (r	   c                     dd                     d t          | j                                                  D                       z  S )Nz&fonts contains incompatible glyphs: %sr#   c              3   4   K   | ]}t          |          V  d S r   r=   r   s     r
   r"   z1IncompatibleFontsError.__str__.<locals>.<genexpr>L   s(      HH!d1ggHHHHHHr	   )r'   r(   rM   keysr1   s    r
   r6   zIncompatibleFontsError.__str__J   sD    7IIHHvd.?.D.D.F.F'G'GHHHHH
 	
r	   NrI   r   r	   r
   rK   rK   F   s2        ) ) )
 
 
 
 
r	   rK   N)	Exceptionr   r   r   r   r4   r8   rK   r   r	   r
   <module>rR      s?   ; ; ; ; ;I ; ; ;    %   	 	 	 	 	U 	 	 	E E E E Ee E E E
 
 
 
 
%< 
 
 

 
 
 
 
$; 
 
 
$
 
 
 
 
U 
 
 
 
 
r	   