
    -i                         d dl mZ d dlZd dlmZ d	dZd
dZd Zedk    r$d dlZ ej	         eej
                             dS dS )    strN)areprc                    |s+t          | r| d                                         ng           }|g}| D ]#|                    fd|D                        $d t          | D             }d                    d |D                       }|                    dd |D                        |D ],t           |j                             d                     -d	S )
Pretty print a list of dictionaries (myDict) as a dynamically sized table.
    If column names (colList) aren't specified, they will show in random order.
    Author: Thierry Husson - Use it as you want but don't blame me.
    r   c                 >    g | ]}t          |         pd           S ) r   ).0colitems     Q/var/www/html/speakWrite/venv/lib/python3.11/site-packages/qalsadi/print_debug.py
<listcomp>z"print_md_table.<locals>.<listcomp>,   s)    ???s49?++???    c                 R    g | ]$}t          t          t          |                    %S  )maxmaplen)r
   r   s     r   r   z"print_md_table.<locals>.<listcomp>-   s(    :::cs3sC==!!:::r   z | c                 8    g | ]}d                      |          S )z{{:<{}}})formatr
   is     r   r   z"print_md_table.<locals>.<listcomp>.   s&    BBBQJ--a00BBBr      c                     g | ]}d |z  S )-r   r   s     r   r   z"print_md_table.<locals>.<listcomp>/   s    ///!cAg///r   utf8N)	listkeysappendzipjoininsertprintr   encode)myDictcolListmyListcolSize	formatStrr   s        @r   print_md_tabler*   "   s   
  ;69vay~~'''r::YF A A????w???@@@@::S&\:::G

BB'BBBCCI
MM!//w///000 6 6i%,,V4455556 6r   	c                     |s+t          | r| d                                         ng           }|g}| D ]}g }|D ]}t          ||         t                    r@|                    d                    ||                                                              t          ||         t                     r/|                    d                    ||                              |                    t          ||         pd                     |                    |           |D ]j}t          j	        dk    r#t          d                    |                     5t          d                    |                              d                     kdS )r   r   ;r	   )   r   r+   r   N)r   r   
isinstancedictr   r!   valuesr   sysversion_infor#   r$   )r%   r&   sepr'   r   rowr   s          r   print_tabler6   4   s   
  ;69vay~~'''r::YF 
 
 	1 	1C$s)T** 9

388DI$4$4$6$677888$s)T** 1

388DI..//// 

3tCyB//0000c 2 2v%%$))D//""""$))D//((0011112 2r   c                 x    dddddddddddddddddddddddd	d
dddd	dddd	d
ddg}t          |           dS )Nr	   u   يأمرهمF)enc	stem_conjproprefixverb	stem_comp
trans_compsuffixu
   أمرهمu   يu   همu   أمرu   يأمرTr   )r6   )argsds     r   mainrB   O   s     '"'		
 		
 %"'		
 		
 !"#		
 		
 #"#		
 		
?)	AT NNN1r   __main__)N)Nr+   )builtinsr   r2   pyarabic.arabreprr   r*   r6   rB   __name__exitargvr   r   r   <module>rI      s   2       


 $ # # # # #6 6 6 6$2 2 2 26, , ,^ zJJJCHTT#(^^ r   