Skip to content

Commit 66eb4d0

Browse files
committed
fixes conflict
1 parent 93b1cb5 commit 66eb4d0

File tree

2 files changed

+5
-37
lines changed

2 files changed

+5
-37
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@
1212
- ![visitors](https://visitor-badge.laobi.icu/badge?page_id=SivanLaai/rime-pure)
1313

1414
## 包含输入方案
15-
<<<<<<< HEAD
1615
- [🍀️四叶草拼音九宫格](https://github.com/SivanLaai/rime-pure)**同文最新版本因为修改了选择栏的逻辑,所以导致不能正常的选字,要使用这个方案建议使用同文3.2.0,[点击查看问题原因](https://github.com/osfans/trime/issues/524)**
17-
- [极点五笔](https://github.com/KyleBing/rime-wubi86-jidian)
18-
=======
19-
- [四叶草拼音九宫格](https://github.com/SivanLaai/rime-pure)
2016
- [四叶草地球拼音](https://github.com/SivanLaai/rime-pure/tree/master/schemes/Clover%E5%9B%9B%E5%8F%B6%E8%8D%89%E5%9C%B0%E7%90%83%E6%8B%BC%E9%9F%B3)
21-
- [极点五笔](https://github.com/KyleBing/rime-wubi86-jidian)
22-
>>>>>>> 6b0f6ce91106b15c493322beb0bd93014502c988
17+
- [极点五笔](https://github.com/KyleBing/rime-wubi86-jidian)
2318
- [小鹤双拼](https://www.flypy.com/index.html)
2419
- [🍀️四叶草简体拼音](https://github.com/fkxxyz/rime-cloverpinyin)
2520
- 大写数字
@@ -118,11 +113,10 @@
118113

119114
## 更新历史
120115

121-
<<<<<<< HEAD
122116
#### 2021-10-14
123117

124118
- 1.同步更新同文官方支持的剪切板功能,可以查看剪切板和最近表情包历史,使用更为灵活的符号菜单。
125-
=======
119+
126120
#### 2021-09-01
127121

128122
- 1.前前后后、零零碎碎一共花了十来天地时间完成基于四叶草词库的地球拼音输入方案。

src/GenerateCloverData.py

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def fixes_spell():
3232
new_path = './Clover四叶草拼音new'
3333
if not os.path.exists(new_path):
3434
os.mkdir(f'{new_path}')
35-
35+
3636
exists_file = list()
3737
for file_now in os.listdir(path):
3838
curr_path = os.path.join(path, file_now)
@@ -267,14 +267,9 @@ def generatePinyins(keyword, pinyinStyle=PinyinStyle.TONE_POLYPHONE_WITH_PHRASE)
267267
#pinyinList = pinyin(keyword, style=Style.NORMAL, heteronym=True)
268268
pinyins = list()
269269
try:
270-
<<<<<<< HEAD
271-
pinyinList = getPinyin(keyword)
272-
#print(pinyinList)
273-
=======
274270
pinyinList = pdb.getPinyin(keyword, pinyinStyle)
275271
#print(pinyinList)
276272
pinyinList = getSinglePinyins(keyword, pinyinList)
277-
>>>>>>> 6b0f6ce91106b15c493322beb0bd93014502c988
278273
currPinyin = list()
279274
firstPinyin = 1
280275
for curr_index in range(len(pinyinList[0])):
@@ -289,7 +284,7 @@ def generatePinyins(keyword, pinyinStyle=PinyinStyle.TONE_POLYPHONE_WITH_PHRASE)
289284
def fixesBigDictErrorsWithMultiplePinyin():
290285
path = './Clover四叶草拼音'
291286
new_path = './Clover四叶草拼音new'
292-
287+
293288
if not os.path.exists(new_path):
294289
os.mkdir(f'{new_path}')
295290
for file_now in os.listdir(path):
@@ -328,7 +323,7 @@ def fixesBigDictErrorsWithMultiplePinyin():
328323
def generateCloverPinyins():
329324
path = './Clover四叶草拼音'
330325
new_path = './Clover四叶草拼音new'
331-
326+
332327
if not os.path.exists(new_path):
333328
os.mkdir(f'{new_path}')
334329
for file_now in os.listdir(path):
@@ -344,10 +339,6 @@ def generateCloverPinyins():
344339
elif "\t" in line:
345340
keyword = line.split('\t')[0]
346341
pinyin_old = line.split('\t')[1].strip()
347-
<<<<<<< HEAD
348-
print([pinyin_old])
349-
pinyin_list = generatePinyins(keyword)
350-
=======
351342
count_str = line.split('\t')[-1].strip().replace(" ", '').replace("?", '')
352343
keyPinyinDict = dict()
353344
for key in keyword:
@@ -360,7 +351,6 @@ def generateCloverPinyins():
360351
keyPinyinDict[key][plainPinyins[i]] = weights[i]
361352
#print([pinyin_old])
362353
pinyin_list = generatePinyins(keyword, pinyinStyle=PinyinStyle.PLAIN_POLYPHONE_WITH_PHRASE)
363-
>>>>>>> 6b0f6ce91106b15c493322beb0bd93014502c988
364354
#print(pinyin_list)
365355
if len(pinyin_list) == 0:
366356
new_file.write(line)
@@ -380,15 +370,6 @@ def generateCloverPinyins():
380370
ratio = []
381371
pinyin = " ".join(pinyin).split(" ")
382372
currPinyin = " ".join(pinyin)
383-
<<<<<<< HEAD
384-
newLine = line.replace(pinyin_old, currPinyin)
385-
#if currPinyin == pinyin_old:
386-
if newLine == line:
387-
print([currPinyin])
388-
print()
389-
new_file.write(newLine)
390-
new_file.flush()
391-
=======
392373
for i in range(len(pinyin)):
393374
if keyword[i] not in pdb.homographWeightDict:
394375
pass
@@ -409,7 +390,6 @@ def generateCloverPinyins():
409390
newLine = line.replace(pinyin_old, maxPinyin)
410391
new_file.write(newLine)
411392
new_file.flush()
412-
>>>>>>> 6b0f6ce91106b15c493322beb0bd93014502c988
413393
else:
414394
new_file.write(line)
415395
new_file.flush()
@@ -493,16 +473,10 @@ def generateTerraPinyins():
493473
new_file.close()
494474
if __name__ == "__main__":
495475
#generateNewBaseDict()
496-
<<<<<<< HEAD
497-
pinyins = generatePinyins("的话")
498-
print(pinyins)
499-
#fixesBigDictErrors()
500-
=======
501476
pinyins = generatePinyins("小君")
502477
print(pinyins)
503478
currPinyin = " ".join(pinyins[0])
504479
pinyin = pdb.formatMarkPinyin(currPinyin)
505480
print(pinyin)
506481
generateTerraBasePinyins()
507482
#generateCloverPinyins()
508-
>>>>>>> 6b0f6ce91106b15c493322beb0bd93014502c988

0 commit comments

Comments
 (0)