ThirdParty/CharDet/chardet/langhungarianmodel.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 3537
7662053c3906
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
23 # License along with this library; if not, write to the Free Software 23 # License along with this library; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 # 02110-1301 USA 25 # 02110-1301 USA
26 ######################### END LICENSE BLOCK ######################### 26 ######################### END LICENSE BLOCK #########################
27 27
28 import constants 28 from . import constants
29 29
30 # 255: Control characters that usually does not exist in any text 30 # 255: Control characters that usually does not exist in any text
31 # 254: Carriage/Return 31 # 254: Carriage/Return
32 # 253: symbol (punctuation) that does not belong to word 32 # 253: symbol (punctuation) that does not belong to word
33 # 252: 0 - 9 33 # 252: 0 - 9
210 210
211 Latin2HungarianModel = { \ 211 Latin2HungarianModel = { \
212 'charToOrderMap': Latin2_HungarianCharToOrderMap, 212 'charToOrderMap': Latin2_HungarianCharToOrderMap,
213 'precedenceMatrix': HungarianLangModel, 213 'precedenceMatrix': HungarianLangModel,
214 'mTypicalPositiveRatio': 0.947368, 214 'mTypicalPositiveRatio': 0.947368,
215 'keepEnglishLetter': constants.True, 215 'keepEnglishLetter': True,
216 'charsetName': "ISO-8859-2" 216 'charsetName': "ISO-8859-2"
217 } 217 }
218 218
219 Win1250HungarianModel = { \ 219 Win1250HungarianModel = { \
220 'charToOrderMap': win1250HungarianCharToOrderMap, 220 'charToOrderMap': win1250HungarianCharToOrderMap,
221 'precedenceMatrix': HungarianLangModel, 221 'precedenceMatrix': HungarianLangModel,
222 'mTypicalPositiveRatio': 0.947368, 222 'mTypicalPositiveRatio': 0.947368,
223 'keepEnglishLetter': constants.True, 223 'keepEnglishLetter': True,
224 'charsetName': "windows-1250" 224 'charsetName': "windows-1250"
225 } 225 }

eric ide

mercurial