-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
83 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import re | ||
import codecs | ||
|
||
def convertFile(fileName, converted): | ||
file = codecs.open(fileName,"r","utf-16",errors="replace") | ||
lines = [] | ||
tmpDic = {} | ||
for line in file: | ||
if line.isspace(): | ||
continue | ||
line=line.rstrip('\r\n') | ||
if line.startswith('#'): | ||
continue | ||
line = line.replace(",", "\t") | ||
line = line + "\t0\t0" | ||
patternLength = len(line.split("\t")[0]) | ||
if not patternLength in tmpDic: | ||
tmpDic[patternLength] = [] | ||
tmpDic[patternLength].append(line) | ||
for i in sorted(tmpDic.keys(), reverse=True): | ||
for l in tmpDic[i]: | ||
lines.append(l) | ||
with open(converted, mode="w", encoding="utf-8") as f: | ||
f.write("\r\n".join(lines)) | ||
return True | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# 読ター辞書の更新を受領したとき | ||
|
||
1. addons/dokutor_for_nvda/ に移動 | ||
2. riryou_dict.datを削除 | ||
3. 読ターcsvを、dokutor_dev.csvにリネームして配置 | ||
4. DFNの有効化を行う | ||
5. riryou_dict.datと同時に、NVDA辞書ファイルも出力される | ||
6. DFNは、出力されたriryou_dict.datを用いて有効化される | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version": "1.1.1", "release_date": "2022-05-20"} | ||
{"version": "1.1.2", "release_date": "2022-09-23"} |