
     hF                         d Z dZd ZdS )z_
Implementation of Unicode Bidirectional Algorithm
http://www.unicode.org/unicode/reports/tr9/
z0.4.2c                  (   ddl } ddl}ddl}ddl}ddl}ddlm} |                                 }|                    ddddd	d
           |                    dddddd           |                    dddddd           |                    ddddd	d           |	                                \  }}|j
        r|j
        dvr|                    d           |j        r: |                    |                                          |j                  |_        |r|}	n|j        }	|	D ]k}
 ||
|j        |j        |j
        |j                  }t)          ||j                  s|                    |j                  }|                    |d           ldS )z)Will be used to create the console script    N   )get_displayz-ez
--encodingencodingzutf-8stringzText encoding (default: utf-8))destdefaulttypehelpz-uz--upper-is-rtlupper_is_rtlF
store_truezDTreat upper case chars as strong 'R' for debugging (default: False).)r   r	   actionr   z-dz--debugdebugz/Output to stderr steps taken with the algorithmz-bz
--base-dirbase_dirzOverride base direction [L|R]LRzoption -b can be L or R )end)optparsesyscodecslocalesix	algorithmr   OptionParser
add_option
parse_argsr   errorPY2	getwritergetpreferredencodingstdoutstdinr   r   r   
isinstance	text_typedecodeprint_)r   r   r   r   r   r   parseroptionsrestlineslinedisplays               I/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/bidi/__init__.pymainr.      s)    OOOJJJMMMMMMJJJ&&&&&&""$$F
dL%%#;	  = = = d,)#)8	  9 9 9 dI"#)L	  N N N dL%"#:	  < < < %%''MGT 0G,D88./// w QDV%%f&A&A&C&CDDSZPP
 	 $ $+dG$4g6J%.? ? '3=11 	7nnW%566G

7
####$ $    N)__doc__VERSIONr.    r/   r-   <module>r3      s/   ( 
 :$ :$ :$ :$ :$r/   