
    -i                         d Z ddlmZmZmZmZ ddlZej        dk     rddlZ	nddl	Z	 G d de	j
                  Zej        dk     rd ZdS d ZdS )	z
Improve repr predifined function to best display of objects containing unicode
Unicode represention texts
@author: Taha Zerrouki
@contact: taha dot zerrouki at gmail dot com
@copyright: Taha Zerrouki
@license: GPL
@date:2014/03/01
@version: 0.1
    )absolute_importprint_functionunicode_literalsdivisionN)   r   c                       e Zd ZdZd Zd ZdS )
ArabicRepru   A redifinition of repr fucntion,
    you can use it like this

    Example:
        >>> import pyarabic.arabrepr as arabrepr
        >>> arepr = arabrepr.ArabicRepr()
        >>> repr = arepr.repr
        >>> word = u"السلام عليكم ورحمة الله"
        >>> wordlist = word.split(" ")
        >>> print wordlist
        [u'السلام',
        u'عليكم',
        u'ورحمة',
        u'الله']
        >>> print repr(wordlist)
        [u'السلام', u'عليكم', u'ورحمة', u'الله']
    c                     d|z  S zModify unicode display zu'%s' selfobjlevels      O/var/www/html/speakWrite/venv/lib/python3.11/site-packages/pyarabic/arabrepr.pyrepr_unicodezArabicRepr.repr_unicode*       #~    c                     d|z  S r   r   r   s      r   arepr_unicodezArabicRepr.arepr_unicode-   r   r   N)__name__
__module____qualname____doc__r   r   r   r   r   r	   r	      s<         "      r   r	   c                     t          |                               dd                              d                              d          S )* display a dict with arabic text properly },},
zunicode-escapeutf8)reprreplacedecodeencodedatas    r   areprr&   2   s;    Dzz!!$v..556FGGNNvVVVr   c                 H    t          |                               dd          S )r   r   r   )r    r!   r$   s    r   r&   r&   6   s    Dzz!!$v...r   )r   
__future__r   r   r   r   sysversion_infor    reprlibReprr	   r&   r   r   r   <module>r-      s   	 	            


fNNN       2 fW W W W W/ / / / /r   