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   sN  t |  }|tv rt| S |d}t|}g }dg}|dkr5|D ]}t| }t||}q"|| |S |dks=|dkrf|d d }t| }td }	t||	}
t||
}|t|d  }|d}t|}|dksn|dkr|d d }t| }td	 }	t||	}
t||
}|t|d  }|d}t|}|d	ks|d
kr|d d }t| d d  }|dkr|	d n	|dkr|	d td }	t||	}
|dkr|
	d t||
}|t|d  }|d}t|}|dkr	|d }t
| }
t||
}|dd  }|d}t|}|dks|dkrt| }t||}|| }dd |D S )N0 	      i            6u   ছ9u   ন   1u   হাজারr         c                 S   s   g | ]}|  qS  )strip).0lr   r   Q/home/ubuntu/.local/lib/python3.10/site-packages/indic_numtowords/ben/cardinal.py
<listcomp>P   s    zconvert.<locals>.<listcomp>)strr   r   lstriplenr   r   extendr   appendr   )numnum_strnfinal_word_list	word_listinew_listtemp_numlis1lis2
inter_listtemp_strr   r   r   convert	   st   
















r.   N)indic_numtowords.ben.data.numsr   r   r   r   indic_numtowords.ben.utilsr   r.   r   r   r   r   <module>   s    