
    CPc[                         d Z ddlZddlZ G d dej                  Zedk    r e                                             dS dS )z"Randomise the case of the letters.    Nc                       e Zd ZdZdZd ZdS )
RandomCasez*Randomise the case of the text (with bias)   c                 h   | j         dk    r,g dt          t          j                    dz                     }n+g dt          t          j                    dz                     }|                                r;|| _         |dk    r|                                S |dk     r|                                S |S )Nr   )r      )r   r      )previous_caseintrandomisalphaupperlower)selfcharcases      1/usr/share/inkscape/extensions/text_randomcase.pymap_charzRandomCase.map_char   s     !!;;s6=??Q#6778DD::c&-//A"5667D<<>> 	$!%Daxxzz||#zz||#    N)__name__
__module____qualname____doc__r   r    r   r   r   r      s.        44M    r   r   __main__)r   r   inkexTextExtensionr   r   runr   r   r   <module>r       s}    ( (      $   . zJLL r   