o
    noi
                     @   sH   d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ dd ZdS )	    )exceptions_dict)direct_dict)higher_dict)hundreds_dict)combinec                 C   sb  t |  }|tv rt| S |d}t|}d}g }dg}|dkr7|D ]}t| }t||}q$|| |S |dks?|dkrh|d d }t| }	td }
t|	|
}t||}|t|d  }|d}t|}|dksp|dkr|d d }t| }	td	 }
t|	|
}t||}|t|d  }|d}t|}|d	ks|d
kr|d d }|tv rt| }t||}d}t|}n#t| }	td }
t|	|
}t||}|t|d  }|d}t|}|dkr|d }|tv rt| }t||}d}t|}nt	| }t||}|dd  }|d}t|}|dks|dkr&t| }t||}|| }dd |D S )N0 	      i               r         c                 S   s   g | ]}|  qS  )strip).0lr   r   Q/home/ubuntu/.local/lib/python3.10/site-packages/indic_numtowords/asm/cardinal.py
<listcomp>T   s    zconvert.<locals>.<listcomp>)
strr   r   lstriplenr   r   extendr   r   )numnum_strnwordfinal_word_list	word_listinew_listtemp_numlis1lis2
inter_listtemp_strr   r   r   convert   s~   


















r+   N)indic_numtowords.asm.data.numsr   r   r   r   indic_numtowords.asm.utilsr   r+   r   r   r   r   <module>   s    