ThirdParty/CharDet/chardet/langhebrewmodel.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 3537
7662053c3906
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
25 # License along with this library; if not, write to the Free Software 25 # License along with this library; if not, write to the Free Software
26 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 26 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
27 # 02110-1301 USA 27 # 02110-1301 USA
28 ######################### END LICENSE BLOCK ######################### 28 ######################### END LICENSE BLOCK #########################
29 29
30 import constants 30 from . import constants
31 31
32 # 255: Control characters that usually does not exist in any text 32 # 255: Control characters that usually does not exist in any text
33 # 254: Carriage/Return 33 # 254: Carriage/Return
34 # 253: symbol (punctuation) that does not belong to word 34 # 253: symbol (punctuation) that does not belong to word
35 # 252: 0 - 9 35 # 252: 0 - 9
194 194
195 Win1255HebrewModel = { \ 195 Win1255HebrewModel = { \
196 'charToOrderMap': win1255_CharToOrderMap, 196 'charToOrderMap': win1255_CharToOrderMap,
197 'precedenceMatrix': HebrewLangModel, 197 'precedenceMatrix': HebrewLangModel,
198 'mTypicalPositiveRatio': 0.984004, 198 'mTypicalPositiveRatio': 0.984004,
199 'keepEnglishLetter': constants.False, 199 'keepEnglishLetter': False,
200 'charsetName': "windows-1255" 200 'charsetName': "windows-1255"
201 } 201 }

eric ide

mercurial