We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8bffee commit ac9530fCopy full SHA for ac9530f
generator.py
@@ -1,14 +1,10 @@
1
# -*- coding: utf-8 -*-
2
import sys
3
import plistlib
4
-from pypinyin import lazy_pinyin, load_phrases_dict
+from pypinyin import lazy_pinyin
5
from jinja2 import Environment, FileSystemLoader
6
7
8
-def fix_pinyin():
9
- load_phrases_dict({u'狼': [[u'láng']]})
10
-
11
12
def get_readings(word, data):
13
if 'readings' in data:
14
return ''.join(i for i in data['readings'] if not i.isdigit())
@@ -20,7 +16,6 @@ def main():
20
16
if len(sys.argv) > 1:
21
17
path = sys.argv[1]
22
18
emoji = plistlib.readPlist(path)
23
- fix_pinyin()
24
19
words = {}
25
template_name = 'template.lua'
26
env = Environment(loader=FileSystemLoader("./"), trim_blocks=True)
requirements.txt
@@ -1,2 +1,2 @@
-pypinyin
-jinja2
+pypinyin==0.5.3
+jinja2==2.7.3
0 commit comments