TECManager (version 0.2)
index
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/TECManager/__init__.py

 
Package Contents
       
Enumerators
TECManager
_TECManager
tec_codecs
util

 
Classes
       
__builtin__.object
_TECManager.StatefulDecoder
_TECManager.StatefulEncoder

 
class StatefulDecoder(__builtin__.object)
     Methods defined here:
decode(...)
reset(...)
stateless_decode(...)

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x20e78c>
T.__new__(S, ...) -> a new object with type S, a subtype of T
errors = <member 'errors' of '_TECManager.StatefulDecoder' objects>
name = <member 'name' of '_TECManager.StatefulDecoder' objects>
textEncoding = <member 'textEncoding' of '_TECManager.StatefulDecoder' objects>

 
class StatefulEncoder(__builtin__.object)
     Methods defined here:
encode(...)
reset(...)
stateless_encode(...)

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x20e8dc>
T.__new__(S, ...) -> a new object with type S, a subtype of T
errors = <member 'errors' of '_TECManager.StatefulEncoder' objects>
name = <member 'name' of '_TECManager.StatefulEncoder' objects>
textEncoding = <member 'textEncoding' of '_TECManager.StatefulEncoder' objects>

 
Functions
       
ConvertToUnicode(...)
ConvertToUnicode(
    text,               # the input text, must be a python string
    script=None,        # defaults to "don't care", but you can specify an integer or constant from TECManager.ScriptCode (smRoman, smJapanese, etc..)
    language=None,      # defaults to "don't care", but you can specify an integer or constant from TECManager.LanguageCode(langEnglish, langMaltese, etc..)
    region=None,        # defaults to "don't care", but you can specify an integer or constant from TECManager.RegionCode (verUS, verArabic, etc..)
    font=None,          # defaults to "don't care", but you can specify the name of a system font as a python string
    mask=(kUnicodeUseFallbacksMask,)
    # The conversion mask can be specified as a sequence of integers or as a single integer.  Use masks from TECManager.UnicodeControlFlags
) -> unicode
getTextEncoding(...)
getTextEncoding(
    script=None,        # defaults to "don't care", but you can specify an integer or constant from TECManager.ScriptCode (smRoman, smJapanese, etc..)
    language=None,      # defaults to "don't care", but you can specify an integer or constant from TECManager.LanguageCode(langEnglish, langMaltese, etc..)
    region=None,        # defaults to "don't care", but you can specify an integer or constant from TECManager.RegionCode (verUS, verArabic, etc..)
    font=None,          # defaults to "don't care", but you can specify the name of a system font as a python string
) -> int

 
Data
        __version__ = '0.2'
kTECArrayFullErr = TECErrors.kTECArrayFullErr(-8751)
kTECBadTextRunErr = TECErrors.kTECBadTextRunErr(-8752)
kTECBufferBelowMinimumSizeErr = TECErrors.kTECBufferBelowMinimumSizeErr(-8750)
kTECCorruptConverterErr = TECErrors.kTECCorruptConverterErr(-8748)
kTECDirectionErr = TECErrors.kTECDirectionErr(-8756)
kTECGlobalsUnavailableErr = TECErrors.kTECGlobalsUnavailableErr(-8770)
kTECIncompleteElementErr = TECErrors.kTECIncompleteElementErr(-8755)
kTECItemUnavailableErr = TECErrors.kTECItemUnavailableErr(-8771)
kTECMissingTableErr = TECErrors.kTECMissingTableErr(-8745)
kTECNeedFlushStatus = TECErrors.kTECNeedFlushStatus(-8784)
kTECNoConversionPathErr = TECErrors.kTECNoConversionPathErr(-8749)
kTECOutputBufferFullStatus = TECErrors.kTECOutputBufferFullStatus(-8785)
kTECPartialCharErr = TECErrors.kTECPartialCharErr(-8753)
kTECTableChecksumErr = TECErrors.kTECTableChecksumErr(-8746)
kTECTableFormatErr = TECErrors.kTECTableFormatErr(-8747)
kTECUnmappableElementErr = TECErrors.kTECUnmappableElementErr(-8754)
kTECUsedFallbacksStatus = TECErrors.kTECUsedFallbacksStatus(-8783)
kTextMalformedInputErr = TECErrors.kTextMalformedInputErr(-8739)
kTextUndefinedElementErr = TECErrors.kTextUndefinedElementErr(-8740)
kTextUnsupportedEncodingErr = TECErrors.kTextUnsupportedEncodingErr(-8738)
kUnicodeDirectionalityBits = UnicodeControlFlagBits.kUnicodeDirectionalityBits(2)
kUnicodeDirectionalityMask = UnicodeControlFlags.kUnicodeDirectionalityMask(12)
kUnicodeForceASCIIRangeBit = UnicodeControlFlagBits.kUnicodeForceASCIIRangeBit(9)
kUnicodeForceASCIIRangeMask = UnicodeControlFlags.kUnicodeForceASCIIRangeMask(512)
kUnicodeKeepInfoBit = UnicodeControlFlagBits.kUnicodeKeepInfoBit(1)
kUnicodeKeepInfoMask = UnicodeControlFlags.kUnicodeKeepInfoMask(2)
kUnicodeKeepSameEncodingBit = UnicodeControlFlagBits.kUnicodeKeepSameEncodingBit(8)
kUnicodeKeepSameEncodingMask = UnicodeControlFlags.kUnicodeKeepSameEncodingMask(256)
kUnicodeLooseMappingsBit = UnicodeControlFlagBits.kUnicodeLooseMappingsBit(5)
kUnicodeLooseMappingsMask = UnicodeControlFlags.kUnicodeLooseMappingsMask(32)
kUnicodeMapLineFeedToReturnBit = UnicodeControlFlagBits.kUnicodeMapLineFeedToReturnBit(12)
kUnicodeMapLineFeedToReturnMask = UnicodeControlFlags.kUnicodeMapLineFeedToReturnMask(4096)
kUnicodeNoHalfwidthCharsBit = UnicodeControlFlagBits.kUnicodeNoHalfwidthCharsBit(10)
kUnicodeNoHalfwidthCharsMask = UnicodeControlFlags.kUnicodeNoHalfwidthCharsMask(1024)
kUnicodeStringUnterminatedBit = UnicodeControlFlagBits.kUnicodeStringUnterminatedBit(6)
kUnicodeStringUnterminatedMask = UnicodeControlFlags.kUnicodeStringUnterminatedMask(64)
kUnicodeTextRunBit = UnicodeControlFlagBits.kUnicodeTextRunBit(7)
kUnicodeTextRunHeuristicsBit = UnicodeControlFlagBits.kUnicodeTextRunHeuristicsBit(11)
kUnicodeTextRunHeuristicsMask = UnicodeControlFlags.kUnicodeTextRunHeuristicsMask(2048)
kUnicodeTextRunMask = UnicodeControlFlags.kUnicodeTextRunMask(128)
kUnicodeUseFallbacksBit = UnicodeControlFlagBits.kUnicodeUseFallbacksBit(0)
kUnicodeUseFallbacksMask = UnicodeControlFlags.kUnicodeUseFallbacksMask(1)
kUnicodeVerticalFormBit = UnicodeControlFlagBits.kUnicodeVerticalFormBit(4)
kUnicodeVerticalFormMask = UnicodeControlFlags.kUnicodeVerticalFormMask(16)
langAfrikaans = LanguageCode.langAfrikaans(141)
langAlbanian = LanguageCode.langAlbanian(36)
langAmharic = LanguageCode.langAmharic(85)
langArabic = LanguageCode.langArabic(12)
langArmenian = LanguageCode.langArmenian(51)
langAssamese = LanguageCode.langAssamese(68)
langAymara = LanguageCode.langAymara(134)
langAzerbaijanAr = LanguageCode.langAzerbaijanAr(50)
langAzerbaijanRoman = LanguageCode.langAzerbaijanRoman(150)
langAzerbaijani = LanguageCode.langAzerbaijani(49)
langBasque = LanguageCode.langBasque(129)
langBelorussian = LanguageCode.langBelorussian(46)
langBengali = LanguageCode.langBengali(67)
langBreton = LanguageCode.langBreton(142)
langBulgarian = LanguageCode.langBulgarian(44)
langBurmese = LanguageCode.langBurmese(77)
langByelorussian = LanguageCode.langByelorussian(46)
langCatalan = LanguageCode.langCatalan(130)
langChewa = LanguageCode.langChewa(92)
langCroatian = LanguageCode.langCroatian(18)
langCzech = LanguageCode.langCzech(38)
langDanish = LanguageCode.langDanish(7)
langDutch = LanguageCode.langDutch(4)
langDzongkha = LanguageCode.langDzongkha(137)
langEnglish = LanguageCode.langEnglish(0)
langEsperanto = LanguageCode.langEsperanto(94)
langEstonian = LanguageCode.langEstonian(27)
langFaroese = LanguageCode.langFaroese(30)
langFarsi = LanguageCode.langFarsi(31)
langFinnish = LanguageCode.langFinnish(13)
langFlemish = LanguageCode.langFlemish(34)
langFrench = LanguageCode.langFrench(1)
langGalician = LanguageCode.langGalician(140)
langGeorgian = LanguageCode.langGeorgian(52)
langGerman = LanguageCode.langGerman(2)
langGreek = LanguageCode.langGreek(14)
langGreekPoly = LanguageCode.langGreekPoly(148)
langGreenlandic = LanguageCode.langGreenlandic(149)
langGuarani = LanguageCode.langGuarani(133)
langGujarati = LanguageCode.langGujarati(69)
langHebrew = LanguageCode.langHebrew(10)
langHindi = LanguageCode.langHindi(21)
langHungarian = LanguageCode.langHungarian(26)
langIcelandic = LanguageCode.langIcelandic(15)
langIndonesian = LanguageCode.langIndonesian(81)
langInuktitut = LanguageCode.langInuktitut(143)
langIrishGaelic = LanguageCode.langIrishGaelic(35)
langIrishGaelicScript = LanguageCode.langIrishGaelicScript(146)
langItalian = LanguageCode.langItalian(3)
langJapanese = LanguageCode.langJapanese(11)
langJavaneseRom = LanguageCode.langJavaneseRom(138)
langKannada = LanguageCode.langKannada(73)
langKashmiri = LanguageCode.langKashmiri(61)
langKazakh = LanguageCode.langKazakh(48)
langKhmer = LanguageCode.langKhmer(78)
langKinyarwanda = LanguageCode.langKinyarwanda(90)
langKirghiz = LanguageCode.langKirghiz(54)
langKorean = LanguageCode.langKorean(23)
langKurdish = LanguageCode.langKurdish(60)
langLao = LanguageCode.langLao(79)
langLatin = LanguageCode.langLatin(131)
langLatvian = LanguageCode.langLatvian(28)
langLithuanian = LanguageCode.langLithuanian(24)
langMacedonian = LanguageCode.langMacedonian(43)
langMalagasy = LanguageCode.langMalagasy(93)
langMalayArabic = LanguageCode.langMalayArabic(84)
langMalayRoman = LanguageCode.langMalayRoman(83)
langMalayalam = LanguageCode.langMalayalam(72)
langMaltese = LanguageCode.langMaltese(16)
langManxGaelic = LanguageCode.langManxGaelic(145)
langMarathi = LanguageCode.langMarathi(66)
langMoldavian = LanguageCode.langMoldavian(53)
langMongolian = LanguageCode.langMongolian(57)
langMongolianCyr = LanguageCode.langMongolianCyr(58)
langNepali = LanguageCode.langNepali(64)
langNorwegian = LanguageCode.langNorwegian(9)
langNyanja = LanguageCode.langNyanja(92)
langOriya = LanguageCode.langOriya(71)
langOromo = LanguageCode.langOromo(87)
langPashto = LanguageCode.langPashto(59)
langPersian = LanguageCode.langPersian(31)
langPolish = LanguageCode.langPolish(25)
langPortuguese = LanguageCode.langPortuguese(8)
langPunjabi = LanguageCode.langPunjabi(70)
langQuechua = LanguageCode.langQuechua(132)
langRomanian = LanguageCode.langRomanian(37)
langRuanda = LanguageCode.langRuanda(90)
langRundi = LanguageCode.langRundi(91)
langRussian = LanguageCode.langRussian(32)
langSami = LanguageCode.langSami(29)
langSanskrit = LanguageCode.langSanskrit(65)
langScottishGaelic = LanguageCode.langScottishGaelic(144)
langSerbian = LanguageCode.langSerbian(42)
langSimpChinese = LanguageCode.langSimpChinese(33)
langSindhi = LanguageCode.langSindhi(62)
langSinhalese = LanguageCode.langSinhalese(76)
langSlovak = LanguageCode.langSlovak(39)
langSlovenian = LanguageCode.langSlovenian(40)
langSomali = LanguageCode.langSomali(88)
langSpanish = LanguageCode.langSpanish(6)
langSundaneseRom = LanguageCode.langSundaneseRom(139)
langSwahili = LanguageCode.langSwahili(89)
langSwedish = LanguageCode.langSwedish(5)
langTagalog = LanguageCode.langTagalog(82)
langTajiki = LanguageCode.langTajiki(55)
langTamil = LanguageCode.langTamil(74)
langTatar = LanguageCode.langTatar(135)
langTelugu = LanguageCode.langTelugu(75)
langThai = LanguageCode.langThai(22)
langTibetan = LanguageCode.langTibetan(63)
langTigrinya = LanguageCode.langTigrinya(86)
langTongan = LanguageCode.langTongan(147)
langTradChinese = LanguageCode.langTradChinese(19)
langTurkish = LanguageCode.langTurkish(17)
langTurkmen = LanguageCode.langTurkmen(56)
langUighur = LanguageCode.langUighur(136)
langUkrainian = LanguageCode.langUkrainian(45)
langUnspecified = LanguageCode.langUnspecified(32767)
langUrdu = LanguageCode.langUrdu(20)
langUzbek = LanguageCode.langUzbek(47)
langVietnamese = LanguageCode.langVietnamese(80)
langWelsh = LanguageCode.langWelsh(128)
langYiddish = LanguageCode.langYiddish(41)
smAllScripts = ScriptCode.smAllScripts(-3)
smArabic = ScriptCode.smArabic(4)
smArmenian = ScriptCode.smArmenian(24)
smBengali = ScriptCode.smBengali(13)
smBurmese = ScriptCode.smBurmese(19)
smCentralEuroRoman = ScriptCode.smCentralEuroRoman(29)
smCurrentScript = ScriptCode.smCurrentScript(-2)
smCyrillic = ScriptCode.smCyrillic(7)
smDevanagari = ScriptCode.smDevanagari(9)
smEthiopic = ScriptCode.smEthiopic(28)
smExtArabic = ScriptCode.smExtArabic(31)
smGeez = ScriptCode.smGeez(28)
smGeorgian = ScriptCode.smGeorgian(23)
smGreek = ScriptCode.smGreek(6)
smGujarati = ScriptCode.smGujarati(11)
smGurmukhi = ScriptCode.smGurmukhi(10)
smHebrew = ScriptCode.smHebrew(5)
smJapanese = ScriptCode.smJapanese(1)
smKannada = ScriptCode.smKannada(16)
smKhmer = ScriptCode.smKhmer(20)
smKorean = ScriptCode.smKorean(3)
smLao = ScriptCode.smLao(22)
smMalayalam = ScriptCode.smMalayalam(17)
smMongolian = ScriptCode.smMongolian(27)
smOriya = ScriptCode.smOriya(12)
smRSymbol = ScriptCode.smRSymbol(8)
smRoman = ScriptCode.smRoman(0)
smSimpChinese = ScriptCode.smSimpChinese(25)
smSinhalese = ScriptCode.smSinhalese(18)
smSystemScript = ScriptCode.smSystemScript(-1)
smTamil = ScriptCode.smTamil(14)
smTelugu = ScriptCode.smTelugu(15)
smThai = ScriptCode.smThai(21)
smTibetan = ScriptCode.smTibetan(26)
smTradChinese = ScriptCode.smTradChinese(2)
smUnicodeScript = ScriptCode.smUnicodeScript(126)
smUninterp = ScriptCode.smUninterp(32)
smVietnamese = ScriptCode.smVietnamese(30)
verAfrikaans = RegionCode.verAfrikaans(102)
verArabic = RegionCode.verArabic(16)
verArmenian = RegionCode.verArmenian(84)
verAustralia = RegionCode.verAustralia(15)
verAustria = RegionCode.verAustria(92)
verBengali = RegionCode.verBengali(60)
verBhutan = RegionCode.verBhutan(83)
verBrazil = RegionCode.verBrazil(71)
verBreton = RegionCode.verBreton(77)
verBritain = RegionCode.verBritain(2)
verBulgaria = RegionCode.verBulgaria(72)
verByeloRussian = RegionCode.verByeloRussian(61)
verCatalonia = RegionCode.verCatalonia(73)
verChina = RegionCode.verChina(52)
verCroatia = RegionCode.verCroatia(68)
verCyprus = RegionCode.verCyprus(23)
verCzech = RegionCode.verCzech(56)
verDenmark = RegionCode.verDenmark(9)
verEngCanada = RegionCode.verEngCanada(82)
verEsperanto = RegionCode.verEsperanto(103)
verEstonia = RegionCode.verEstonia(44)
verFarEastGeneric = RegionCode.verFarEastGeneric(58)
verFaroeIsl = RegionCode.verFaroeIsl(47)
verFinland = RegionCode.verFinland(17)
verFlemish = RegionCode.verFlemish(6)
verFrBelgium = RegionCode.verFrBelgium(98)
verFrCanada = RegionCode.verFrCanada(11)
verFrSwiss = RegionCode.verFrSwiss(18)
verFrance = RegionCode.verFrance(1)
verFrenchUniversal = RegionCode.verFrenchUniversal(91)
verGeorgian = RegionCode.verGeorgian(85)
verGermanReformed = RegionCode.verGermanReformed(70)
verGermany = RegionCode.verGermany(3)
verGrSwiss = RegionCode.verGrSwiss(19)
verGreece = RegionCode.verGreece(20)
verGreeceAlt = RegionCode.verGreeceAlt(64)
verGreecePoly = RegionCode.verGreecePoly(40)
verGreenland = RegionCode.verGreenland(107)
verGujarati = RegionCode.verGujarati(94)
verHungary = RegionCode.verHungary(43)
verIceland = RegionCode.verIceland(21)
verIndiaHindi = RegionCode.verIndiaHindi(33)
verIndiaUrdu = RegionCode.verIndiaUrdu(96)
verInternational = RegionCode.verInternational(37)
verIran = RegionCode.verIran(48)
verIreland = RegionCode.verIreland(50)
verIrelandEnglish = RegionCode.verIrelandEnglish(108)
verIrishGaelicScript = RegionCode.verIrishGaelicScript(81)
verIsrael = RegionCode.verIsrael(13)
verItalianSwiss = RegionCode.verItalianSwiss(36)
verItaly = RegionCode.verItaly(4)
verJapan = RegionCode.verJapan(14)
verKorea = RegionCode.verKorea(51)
verLatvia = RegionCode.verLatvia(45)
verLithuania = RegionCode.verLithuania(41)
verMacedonian = RegionCode.verMacedonian(67)
verMagyar = RegionCode.verMagyar(59)
verMalta = RegionCode.verMalta(22)
verManxGaelic = RegionCode.verManxGaelic(76)
verMarathi = RegionCode.verMarathi(104)
verMultilingual = RegionCode.verMultilingual(74)
verNepal = RegionCode.verNepal(106)
verNetherlands = RegionCode.verNetherlands(5)
verNorway = RegionCode.verNorway(12)
verNunavut = RegionCode.verNunavut(78)
verNynorsk = RegionCode.verNynorsk(101)
verPakistanUrdu = RegionCode.verPakistanUrdu(34)
verPoland = RegionCode.verPoland(42)
verPortugal = RegionCode.verPortugal(10)
verPunjabi = RegionCode.verPunjabi(95)
verRomania = RegionCode.verRomania(39)
verRussia = RegionCode.verRussia(49)
verSami = RegionCode.verSami(46)
verScottishGaelic = RegionCode.verScottishGaelic(75)
verScriptGeneric = RegionCode.verScriptGeneric(55)
verSerbian = RegionCode.verSerbian(65)
verSingapore = RegionCode.verSingapore(100)
verSlovak = RegionCode.verSlovak(57)
verSlovenian = RegionCode.verSlovenian(66)
verSpLatinAmerica = RegionCode.verSpLatinAmerica(86)
verSpain = RegionCode.verSpain(8)
verSweden = RegionCode.verSweden(7)
verTaiwan = RegionCode.verTaiwan(53)
verThailand = RegionCode.verThailand(54)
verTibetan = RegionCode.verTibetan(105)
verTonga = RegionCode.verTonga(88)
verTurkey = RegionCode.verTurkey(24)
verTurkishModified = RegionCode.verTurkishModified(35)
verUS = RegionCode.verUS(0)
verUkraine = RegionCode.verUkraine(62)
verUzbek = RegionCode.verUzbek(99)
verVietnam = RegionCode.verVietnam(97)
verWelsh = RegionCode.verWelsh(79)
verYugoCroatian = RegionCode.verYugoCroatian(25)