MediaWiki REL1_31
Makefile Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ applyExcludes()

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

Definition at line 153 of file Makefile.py.

Referenced by main().

◆ charManualTable()

Makefile.charManualTable ( path)

Definition at line 167 of file Makefile.py.

References unichr3().

Referenced by main().

◆ customRules()

Makefile.customRules ( path)

Definition at line 218 of file Makefile.py.

Referenced by main().

◆ defaultWordsTable()

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

Definition at line 266 of file Makefile.py.

References list, and translate().

Referenced by main().

◆ dictToSortedList()

Makefile.dictToSortedList ( src_table,
pos )

Definition at line 231 of file Makefile.py.

Referenced by main().

◆ download()

Makefile.download ( url,
dest )

Definition at line 47 of file Makefile.py.

References print.

Referenced by main().

◆ main()

◆ manualWordsTable()

Makefile.manualWordsTable ( path,
conv_table,
reconv_table )

Definition at line 249 of file Makefile.py.

References list, and translate().

Referenced by main().

◆ parserCore()

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

Definition at line 83 of file Makefile.py.

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

◆ PHPArray()

Makefile.PHPArray ( table)

Definition at line 297 of file Makefile.py.

Referenced by main().

◆ phraseParser()

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

Makefile.removeRules ( path,
table )

Definition at line 189 of file Makefile.py.

References list.

Referenced by main().

◆ tablesParser()

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

Makefile.toManyRules ( src_table)

Definition at line 176 of file Makefile.py.

Referenced by main().

◆ translate()

Makefile.translate ( text,
conv_table )

Definition at line 235 of file Makefile.py.

Referenced by defaultWordsTable(), and manualWordsTable().

◆ tsiParser()

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

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

Definition at line 63 of file Makefile.py.

References print.

◆ unichr()

Makefile.unichr ( i)

Definition at line 21 of file Makefile.py.

References _unichr.

◆ unichr2()

Makefile.unichr2 ( * args)

Definition at line 31 of file Makefile.py.

References unichr.

Referenced by unihanParser().

◆ unichr3()

Makefile.unichr3 ( * args)

Definition at line 35 of file Makefile.py.

References unichr.

Referenced by charManualTable().

◆ unihanParser()

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
protected

Definition at line 19 of file Makefile.py.

Referenced by unichr().

◆ ezbigParser

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

Definition at line 111 of file Makefile.py.

Referenced by main().

◆ islinux

str Makefile.islinux = 'linux'

Definition at line 13 of file Makefile.py.

◆ LIBTABE_VER

str Makefile.LIBTABE_VER = '0.2.3'

Definition at line 43 of file Makefile.py.

◆ open

Makefile.open = codecs.open

Definition at line 18 of file Makefile.py.

◆ pyversion

Makefile.pyversion = platform.python_version()

Definition at line 12 of file Makefile.py.

◆ SCIM_PINYIN_VER

str Makefile.SCIM_PINYIN_VER = '0.5.92'

Definition at line 42 of file Makefile.py.

◆ SCIM_TABLES_VER

str Makefile.SCIM_TABLES_VER = '0.5.13'

Definition at line 41 of file Makefile.py.

◆ SF_MIRROR

str 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 unichr2(), and unichr3().

◆ UNIHAN_VER

str Makefile.UNIHAN_VER = '6.3.0'

Definition at line 39 of file Makefile.py.

◆ untargz

str Makefile.untargz
Initial value:
1= 'U8': \
2 uncompress(tarfile.open(path, 'r:gz'), member, encoding)

Definition at line 79 of file Makefile.py.

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

◆ unzip

str Makefile.unzip
Initial value:
1= 'U8': \
2 uncompress(zipfile.ZipFile(path), member, encoding)

Definition at line 76 of file Makefile.py.

Referenced by unihanParser().

◆ wubiParser

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

Definition at line 112 of file Makefile.py.

Referenced by main().

◆ zrmParser

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

Definition at line 113 of file Makefile.py.

Referenced by main().