MediaWiki  master
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 153 of file Makefile.py.

References open.

Referenced by main().

◆ charManualTable()

def Makefile.charManualTable (   path)

Definition at line 167 of file Makefile.py.

References open, and unichr3().

Referenced by main().

◆ customRules()

def Makefile.customRules (   path)

Definition at line 218 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 267 of file Makefile.py.

References list, and translate().

Referenced by main(), and manualWordsTable().

◆ dictToSortedList()

def Makefile.dictToSortedList (   src_table,
  pos 
)

Definition at line 231 of file Makefile.py.

Referenced by main().

◆ download()

def Makefile.download (   url,
  dest 
)

Definition at line 47 of file Makefile.py.

References print.

Referenced by ManageForeignResources.__construct(), PHPVersionCheck.checkRequiredPHPVersion(), and main().

◆ main()

◆ manualWordsTable()

def Makefile.manualWordsTable (   path,
  conv_table,
  reconv_table 
)

Definition at line 249 of file Makefile.py.

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

Referenced by main().

◆ parserCore()

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

Definition at line 83 of file Makefile.py.

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

◆ PHPArray()

def Makefile.PHPArray (   table)

Definition at line 297 of file Makefile.py.

Referenced by main().

◆ phraseParser()

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().

◆ removeRules()

def Makefile.removeRules (   path,
  table 
)

Definition at line 189 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 104 of file Makefile.py.

References parserCore(), and untargz.

◆ toManyRules()

def Makefile.toManyRules (   src_table)

Definition at line 176 of file Makefile.py.

Referenced by main().

◆ translate()

◆ tsiParser()

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().

◆ uncompress()

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

Definition at line 63 of file Makefile.py.

References open, and print.

◆ unichr()

def Makefile.unichr (   i)

Definition at line 21 of file Makefile.py.

References _unichr, and unichr.

◆ unichr2()

def Makefile.unichr2 (   args)

Definition at line 31 of file Makefile.py.

References unichr.

Referenced by unihanParser().

◆ unichr3()

def Makefile.unichr3 (   args)

Definition at line 35 of file Makefile.py.

References unichr.

Referenced by charManualTable().

◆ unihanParser()

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

◆ _unichr

Makefile._unichr = unichr
private

Definition at line 19 of file Makefile.py.

Referenced by unichr().

◆ ezbigParser

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

Definition at line 111 of file Makefile.py.

Referenced by main().

◆ islinux

string Makefile.islinux = 'linux'

Definition at line 13 of file Makefile.py.

◆ LIBTABE_VER

string Makefile.LIBTABE_VER = '0.2.3'

Definition at line 43 of file Makefile.py.

◆ open

◆ pyversion

Makefile.pyversion = platform.python_version()

Definition at line 12 of file Makefile.py.

◆ SCIM_PINYIN_VER

string Makefile.SCIM_PINYIN_VER = '0.5.92'

Definition at line 42 of file Makefile.py.

◆ SCIM_TABLES_VER

string Makefile.SCIM_TABLES_VER = '0.5.13'

Definition at line 41 of file Makefile.py.

◆ SF_MIRROR

string Makefile.SF_MIRROR = 'dfn'

Definition at line 40 of file Makefile.py.

◆ unichr

Makefile.unichr = chr

Definition at line 28 of file Makefile.py.

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

◆ UNIHAN_VER

string Makefile.UNIHAN_VER = '6.3.0'

Definition at line 39 of file Makefile.py.

◆ untargz

string Makefile.untargz = 'U8': \

Definition at line 79 of file Makefile.py.

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

◆ unzip

string Makefile.unzip = 'U8': \

Definition at line 76 of file Makefile.py.

Referenced by unihanParser().

◆ wubiParser

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

Definition at line 112 of file Makefile.py.

Referenced by main().

◆ zrmParser

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

Definition at line 113 of file Makefile.py.

Referenced by main().