관리-도구
편집 파일: hebrewprober.cpython-34.pyc
� �Re/4 � @ s� d d l m Z d d l m Z m Z d d l m Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z Gd d � d e � Z d S)� )� CharSetProber)�eNotMe� eDetecting)�wrap_ord�� �� �� �� �� �� �� �� � � � g{�G�z�?z ISO-8859-8zwindows-1255c @ sp e Z d Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�HebrewProberc C s- t j | � d | _ d | _ | j � d S)N)r �__init__�_mLogicalProber�_mVisualProber�reset)�self� r �M/tmp/pip-ztkk0jow-build/pip/_vendor/requests/packages/chardet/hebrewprober.pyr � s zHebrewProber.__init__c C s( d | _ d | _ d | _ d | _ d S)N� � )�_mFinalCharLogicalScore�_mFinalCharVisualScore�_mPrev�_mBeforePrev)r r r r r � s zHebrewProber.resetc C s | | _ | | _ d S)N)r r )r Z logicalProberZvisualProberr r r �set_model_probers� s zHebrewProber.set_model_probersc C s t | � t t t t t g k S)N)r � FINAL_KAF� FINAL_MEM� FINAL_NUN�FINAL_PE�FINAL_TSADI)r �cr r r �is_final� s zHebrewProber.is_finalc C s t | � t t t t g k S)N)r � NORMAL_KAF� NORMAL_MEM� NORMAL_NUN� NORMAL_PE)r r% r r r �is_non_final� s zHebrewProber.is_non_finalc C s� | j � t k r t S| j | � } x� | D]� } | d k r� | j d k r� | j | j � rq | j d 7_ q� | j | j � r� | j d 7_ q� q� n? | j d k r� | j | j � r� | d k r� | j d 7_ n | j | _ | | _ q, Wt S)Nr r ) � get_stater Zfilter_high_bit_onlyr r&