MediaWiki  1.23.2
Makefile Namespace Reference

Functions

def applyExcludes (mlist, path)
 
def charManualTable (path)
 
def customRules (path)
 
def defaultWordsTable (src_wordlist, src_tomany, char_conv_table, char_reconv_table)
 
def dictToSortedList (src_table, pos)
 
def download (url, dest)
 
def main ()
 
def manualWordsTable (path, conv_table, reconv_table)
 
def parserCore (fp, pos, beginmark=None, endmark=None)
 
def PHPArray (table)
 
def phraseParser (path)
 
def removeRules (path, table)
 
def tablesParser (path, name)
 
def toManyRules (src_table)
 
def translate (text, conv_table)
 
def tsiParser (path)
 
def uncompress (fp, member, encoding='U8')
 
def unichr (i)
 
def unichr2 (*args)
 
def unichr3 (*args)
 
def unihanParser (path)
 

Variables

 _unichr = unichr
 
def ezbigParser = lambda path: tablesParser( path, 'EZ-Big.txt.in' )
 
string islinux = 'linux'
 
string LIBTABE_VER = '0.2.3'
 
 open = codecs.open
 
 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': \
 
def wubiParser = lambda path: tablesParser( path, 'Wubi.txt.in' )
 
def zrmParser = lambda path: tablesParser( path, 'Ziranma.txt.in' )
 

Function Documentation

◆ applyExcludes()

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

Definition at line 141 of file Makefile.py.

References open.

Referenced by main().

◆ charManualTable()

def Makefile.charManualTable (   path)

Definition at line 154 of file Makefile.py.

References open, and unichr3().

Referenced by main().

◆ customRules()

def Makefile.customRules (   path)

Definition at line 204 of file Makefile.py.

References open.

Referenced by main().

◆ defaultWordsTable()

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

Definition at line 244 of file Makefile.py.

References list, and translate().

Referenced by main().

◆ dictToSortedList()

def Makefile.dictToSortedList (   src_table,
  pos 
)

Definition at line 213 of file Makefile.py.

Referenced by main().

◆ download()

def Makefile.download (   url,
  dest 
)

Definition at line 40 of file Makefile.py.

Referenced by main(), and wfPHPVersionError().

◆ main()

◆ manualWordsTable()

def Makefile.manualWordsTable (   path,
  conv_table,
  reconv_table 
)

Definition at line 229 of file Makefile.py.

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

Referenced by main().

◆ parserCore()

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

Definition at line 74 of file Makefile.py.

References set.

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

◆ PHPArray()

def Makefile.PHPArray (   table)

Definition at line 274 of file Makefile.py.

Referenced by main().

◆ phraseParser()

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

Definition at line 105 of file Makefile.py.

References parserCore(), and untargz.

Referenced by main().

◆ removeRules()

def Makefile.removeRules (   path,
  table 
)

Definition at line 176 of file Makefile.py.

References list, and open.

Referenced by main().

◆ tablesParser()

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

Definition at line 94 of file Makefile.py.

References parserCore(), and untargz.

◆ toManyRules()

def Makefile.toManyRules (   src_table)

Definition at line 164 of file Makefile.py.

References set.

Referenced by main().

◆ translate()

def Makefile.translate (   text,
  conv_table 
)

◆ tsiParser()

def Makefile.tsiParser (   path)
Read tsi.src and parse it. 

Definition at line 113 of file Makefile.py.

References parserCore(), and untargz.

Referenced by main().

◆ uncompress()

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

Definition at line 55 of file Makefile.py.

References open.

◆ unichr()

def Makefile.unichr (   i)

Definition at line 17 of file Makefile.py.

References _unichr, and unichr.

◆ unichr2()

def Makefile.unichr2 ( args)

Definition at line 26 of file Makefile.py.

References unichr.

Referenced by unihanParser().

◆ unichr3()

def Makefile.unichr3 ( args)

Definition at line 29 of file Makefile.py.

References unichr.

Referenced by charManualTable().

◆ unihanParser()

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

Definition at line 120 of file Makefile.py.

References unichr2(), and unzip.

Referenced by main().

Variable Documentation

◆ _unichr

Makefile._unichr = unichr
private

Definition at line 15 of file Makefile.py.

Referenced by unichr().

◆ ezbigParser

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

Definition at line 101 of file Makefile.py.

Referenced by main().

◆ islinux

string Makefile.islinux = 'linux'

Definition at line 9 of file Makefile.py.

◆ LIBTABE_VER

string Makefile.LIBTABE_VER = '0.2.3'

Definition at line 37 of file Makefile.py.

◆ open

◆ pyversion

Makefile.pyversion = platform.python_version()

Definition at line 8 of file Makefile.py.

◆ SCIM_PINYIN_VER

string Makefile.SCIM_PINYIN_VER = '0.5.92'

Definition at line 36 of file Makefile.py.

◆ SCIM_TABLES_VER

string Makefile.SCIM_TABLES_VER = '0.5.13'

Definition at line 35 of file Makefile.py.

◆ SF_MIRROR

string Makefile.SF_MIRROR = 'dfn'

Definition at line 34 of file Makefile.py.

◆ unichr

Makefile.unichr = chr

Definition at line 24 of file Makefile.py.

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

◆ UNIHAN_VER

string Makefile.UNIHAN_VER = '6.3.0'

Definition at line 33 of file Makefile.py.

◆ untargz

string Makefile.untargz = 'U8': \

Definition at line 71 of file Makefile.py.

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

◆ unzip

string Makefile.unzip = 'U8': \

Definition at line 68 of file Makefile.py.

Referenced by unihanParser().

◆ wubiParser

def Makefile.wubiParser = lambda path: tablesParser( path, 'Wubi.txt.in' )

Definition at line 102 of file Makefile.py.

Referenced by main().

◆ zrmParser

def Makefile.zrmParser = lambda path: tablesParser( path, 'Ziranma.txt.in' )

Definition at line 103 of file Makefile.py.

Referenced by main().