MediaWiki  1.28.0
Makefile Namespace Reference

Functions

def applyExcludes
 
def charManualTable
 
def customRules
 
def defaultWordsTable
 
def dictToSortedList
 
def download
 
def main
 
def manualWordsTable
 
def parserCore
 
def PHPArray
 
def phraseParser
 
def removeRules
 
def tablesParser
 
def toManyRules
 
def translate
 
def tsiParser
 
def uncompress
 
def unichr
 
def unichr2
 
def unichr3
 
def unihanParser
 

Variables

 _unichr = unichr
 
tuple ezbigParser = lambdapath:tablesParser(path, 'EZ-Big.txt.in')
 
tuple islinux = platform.system()
 
string LIBTABE_VER = '0.2.3'
 
 open = codecs.open
 
tuple pyversion = platform.python_version()
 
string SCIM_PINYIN_VER = '0.5.92'
 
string SCIM_TABLES_VER = '0.5.13'
 
string SF_MIRROR = 'dfn'
 
 unichr = chr
 
string UNIHAN_VER = '6.3.0'
 
string untargz = 'U8'
 
string unzip = 'U8'
 
tuple wubiParser = lambdapath:tablesParser(path, 'Wubi.txt.in')
 
tuple zrmParser = lambdapath:tablesParser(path, 'Ziranma.txt.in')
 

Function Documentation

def Makefile.applyExcludes (   mlist,
  path 
)
Apply exclude rules from path to mlist. 

Definition at line 153 of file Makefile.py.

References open.

Referenced by main().

def Makefile.charManualTable (   path)

Definition at line 167 of file Makefile.py.

References open, and unichr3().

Referenced by main().

def Makefile.customRules (   path)

Definition at line 218 of file Makefile.py.

References open.

Referenced by main().

def Makefile.defaultWordsTable (   src_wordlist,
  src_tomany,
  char_conv_table,
  char_reconv_table 
)

Definition at line 267 of file Makefile.py.

References list, and translate().

Referenced by main(), and manualWordsTable().

def Makefile.dictToSortedList (   src_table,
  pos 
)

Definition at line 231 of file Makefile.py.

Referenced by main().

def Makefile.download (   url,
  dest 
)

Definition at line 47 of file Makefile.py.

References print.

Referenced by main(), and wfPHPVersionError().

def Makefile.manualWordsTable (   path,
  conv_table,
  reconv_table 
)

Definition at line 249 of file Makefile.py.

References defaultWordsTable(), list, open, set, and translate().

Referenced by main().

def Makefile.parserCore (   fp,
  pos,
  beginmark = None,
  endmark = None 
)

Definition at line 83 of file Makefile.py.

References set.

Referenced by phraseParser(), tablesParser(), and tsiParser().

def Makefile.PHPArray (   table)

Definition at line 297 of file Makefile.py.

Referenced by main().

def Makefile.phraseParser (   path)
Read phrase_lib.txt and parse it. 

Definition at line 116 of file Makefile.py.

References parserCore(), and untargz.

Referenced by main().

def Makefile.removeRules (   path,
  table 
)

Definition at line 189 of file Makefile.py.

References list, and open.

Referenced by main().

def Makefile.tablesParser (   path,
  name 
)
Read file from scim-tables and parse it. 

Definition at line 104 of file Makefile.py.

References parserCore(), and untargz.

def Makefile.toManyRules (   src_table)

Definition at line 176 of file Makefile.py.

References set.

Referenced by main().

def Makefile.translate (   text,
  conv_table 
)
def Makefile.tsiParser (   path)
Read tsi.src and parse it. 

Definition at line 124 of file Makefile.py.

References parserCore(), and untargz.

Referenced by main().

def Makefile.uncompress (   fp,
  member,
  encoding = 'U8' 
)

Definition at line 63 of file Makefile.py.

References open, and print.

def Makefile.unichr (   i)

Definition at line 21 of file Makefile.py.

References _unichr, and unichr.

def Makefile.unichr2 (   args)

Definition at line 31 of file Makefile.py.

References unichr.

Referenced by unihanParser().

def Makefile.unichr3 (   args)

Definition at line 35 of file Makefile.py.

References unichr.

Referenced by charManualTable().

def Makefile.unihanParser (   path)
Read Unihan_Variants.txt and parse it. 

Definition at line 131 of file Makefile.py.

References unichr2(), and unzip.

Referenced by main().

Variable Documentation

Makefile._unichr = unichr

Definition at line 19 of file Makefile.py.

Referenced by unichr().

tuple Makefile.ezbigParser = lambdapath:tablesParser(path, 'EZ-Big.txt.in')

Definition at line 111 of file Makefile.py.

Referenced by main().

tuple Makefile.islinux = platform.system()

Definition at line 13 of file Makefile.py.

string Makefile.LIBTABE_VER = '0.2.3'

Definition at line 43 of file Makefile.py.

tuple Makefile.pyversion = platform.python_version()

Definition at line 12 of file Makefile.py.

string Makefile.SCIM_PINYIN_VER = '0.5.92'

Definition at line 42 of file Makefile.py.

string Makefile.SCIM_TABLES_VER = '0.5.13'

Definition at line 41 of file Makefile.py.

string Makefile.SF_MIRROR = 'dfn'

Definition at line 40 of file Makefile.py.

Makefile.unichr = chr

Definition at line 28 of file Makefile.py.

Referenced by unichr(), unichr2(), and unichr3().

string Makefile.UNIHAN_VER = '6.3.0'

Definition at line 39 of file Makefile.py.

string Makefile.untargz = 'U8'

Definition at line 79 of file Makefile.py.

Referenced by phraseParser(), tablesParser(), and tsiParser().

string Makefile.unzip = 'U8'

Definition at line 76 of file Makefile.py.

Referenced by unihanParser().

tuple Makefile.wubiParser = lambdapath:tablesParser(path, 'Wubi.txt.in')

Definition at line 112 of file Makefile.py.

Referenced by main().

tuple Makefile.zrmParser = lambdapath:tablesParser(path, 'Ziranma.txt.in')

Definition at line 113 of file Makefile.py.

Referenced by main().