恋爱少女人格崩坏@希月学园
Browse files- v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/ari.txt.gz +3 -0
- v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/hai.txt.gz +3 -0
- v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/him.txt.gz +3 -0
- v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/kor.txt.gz +3 -0
- v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/yuk.txt.gz +3 -0
- v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/共通.txt.gz +3 -0
- v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/恋爱少女人格崩坏_ks.py +182 -0
v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/ari.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34d5a6dab8e6bc4bc09ebb1006652ebd0595a0046e1f0a73bd9d597fbe747eb6
|
3 |
+
size 121916
|
v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/hai.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d4745721aaa3321ba3cf096b234169c020d51593e1699919e2680e3bbb4c792
|
3 |
+
size 144682
|
v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/him.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5a183f59cfc19f52c5aa0e656f975e70b7d11c1bf35248b5f9479c3b2ddb2ce
|
3 |
+
size 123817
|
v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/kor.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc8c6bd7a76a3a69ebb713b2237788a15c633ced84360c46428d11395e455542
|
3 |
+
size 139452
|
v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/yuk.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b187b7e283ce02dd985857e5ac056a9cfebb7105d391949a678870eed291f04a
|
3 |
+
size 122366
|
v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/共通.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c609dfe7bccb10bfec1e620cbec82d0a3d3028f2d60acf28f298143eee8f064d
|
3 |
+
size 211263
|
v-corpus-zh/AKABEiSOFT2/恋爱少女人格崩坏/恋爱少女人格崩坏_ks.py
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sys
|
2 |
+
sys.path.append('..')
|
3 |
+
|
4 |
+
from common import \
|
5 |
+
get_all_files_in_directory, \
|
6 |
+
startsWithAny, getCmdArgsMap, \
|
7 |
+
clearT, removeWait
|
8 |
+
# https://huggingface.co/datasets/Limour/archvie/blob/main/v-corpus-zh/common.py
|
9 |
+
|
10 |
+
# =================
|
11 |
+
|
12 |
+
a = get_all_files_in_directory(r'E:\galgame\恋爱少女人格崩坏\charabure_cn', ext='.ks')
|
13 |
+
b = r'E:\galgame\恋爱少女人格崩坏\text'
|
14 |
+
|
15 |
+
# =================
|
16 |
+
|
17 |
+
sc = {}
|
18 |
+
_n = {
|
19 |
+
"灰" : "灰", # 樱木 灰
|
20 |
+
"雪" : "雪", # 一之濑 雪
|
21 |
+
"雪亜" : "雪亚",
|
22 |
+
"姫芽" : "姫芽",
|
23 |
+
"コロナ" : "灯", # 月之濑灯
|
24 |
+
"有珠" : "有珠",
|
25 |
+
"雪亚" : "雪亚",
|
26 |
+
"灯" : "灯",
|
27 |
+
"六花" : "六花",
|
28 |
+
"夕星" : "夕星",
|
29 |
+
"花园" : "花园",
|
30 |
+
"清浦" : "清浦",
|
31 |
+
"西园寺" : "西园寺",
|
32 |
+
"玛利亚" : "玛利亚",
|
33 |
+
"西园寺、玛利亚" : "西园寺&玛利亚",
|
34 |
+
"学园长" : "学园长",
|
35 |
+
"美丽" : "美丽",
|
36 |
+
"ユキ" : "雪", # 一之濑 雪
|
37 |
+
"皮谬皮谬夫人" : "皮谬夫人",
|
38 |
+
"灰・姫芽" : "灰&姫芽",
|
39 |
+
"大家" : "大家",
|
40 |
+
"学" : "学",
|
41 |
+
"教師" : "老师",
|
42 |
+
"同級的女同学" : "同级女生",
|
43 |
+
"同級的男同学" : "同级男生",
|
44 |
+
"西园寺与玛利亚" : "西园寺&玛利亚",
|
45 |
+
"あかり" : "灯里",
|
46 |
+
"灯里" : "灯里",
|
47 |
+
"店员" : "店员",
|
48 |
+
"客A" : "客人A",
|
49 |
+
"客B" : "客人B",
|
50 |
+
"灰、姫芽" : "灰&姫芽",
|
51 |
+
"轻浮男A" : "轻浮男A",
|
52 |
+
"轻浮男B" : "轻浮男B",
|
53 |
+
"轻浮A" : "轻浮男A",
|
54 |
+
"学園長" : "学园长",
|
55 |
+
"学园長" : "学园长",
|
56 |
+
"教师" : "老师",
|
57 |
+
"猫" : "猫",
|
58 |
+
"同級生的男子" : "同级男生",
|
59 |
+
"同級生の男子B" : "同级男生B",
|
60 |
+
"“雪”s=yki_11307" : "雪",
|
61 |
+
"灰+姫芽+灯" : "灰&姫芽&灯",
|
62 |
+
"灰、灯" : "灰&灯",
|
63 |
+
"灰、姫芽、灯" : "灰&姫芽&灯",
|
64 |
+
"有珠的母亲" : "有珠的母亲",
|
65 |
+
"有珠的父亲" : "有珠的父亲",
|
66 |
+
"有珠の母" : "有珠的母亲",
|
67 |
+
"有珠の父" : "有珠的父亲",
|
68 |
+
"诺布尔学生A" : "诺布尔学生A",
|
69 |
+
"诺布尔生B" : "诺布尔学生B",
|
70 |
+
"诺布尔学生B" : "诺布尔学生B",
|
71 |
+
"灰、雪" : "灰&雪",
|
72 |
+
"雪・姫芽" : "雪&姫芽",
|
73 |
+
"店长" : "店长",
|
74 |
+
"孩子" : "孩子",
|
75 |
+
"妈妈" : "妈妈",
|
76 |
+
"西園寺" : "西園寺",
|
77 |
+
"玛丽亚" : "玛丽亚",
|
78 |
+
"姫芽・ユキ" : "姫芽&雪",
|
79 |
+
"灰・有珠・コロナ" : "灰&有珠&灯",
|
80 |
+
"广播" : "广播",
|
81 |
+
"语音服务" : "语音",
|
82 |
+
"雪和灯里" : "雪&灯里",
|
83 |
+
"灯和雪" : "灯&雪",
|
84 |
+
"コロナ・ユキ" : "灯&雪",
|
85 |
+
"所有会议参与者" : "所有会议参与者",
|
86 |
+
"コロナ・あかり" : "灯&灯里",
|
87 |
+
"男A" : "男A",
|
88 |
+
"男B" : "男B",
|
89 |
+
"美麗" : "美丽",
|
90 |
+
"クラスメイトたち" : "同学们",
|
91 |
+
"ノーブル生A" : "工作人员", #
|
92 |
+
"大人A" : "大人A",
|
93 |
+
"大人B" : "大人B",
|
94 |
+
"雪亚、雪" : "雪亚&雪"
|
95 |
+
}
|
96 |
+
|
97 |
+
# =================
|
98 |
+
|
99 |
+
for path in a:
|
100 |
+
name: str = path[path.rindex('\\') + 1:]
|
101 |
+
name = name.split('_', maxsplit=1)[0]
|
102 |
+
if name.isdigit():
|
103 |
+
name = '共通'
|
104 |
+
if name not in sc:
|
105 |
+
sc[name] = []
|
106 |
+
print(name)
|
107 |
+
|
108 |
+
# =================
|
109 |
+
try:
|
110 |
+
f = open(path, 'r', encoding='utf-16-le')
|
111 |
+
data = list(x.rstrip() for x in f.readlines())
|
112 |
+
except UnicodeDecodeError:
|
113 |
+
f = open(path, 'r', encoding='utf-8')
|
114 |
+
data = list(x.rstrip() for x in f.readlines())
|
115 |
+
finally:
|
116 |
+
f.close()
|
117 |
+
|
118 |
+
# =================
|
119 |
+
data[0] = data[0].lstrip('\ufeff')
|
120 |
+
# print(data[0][0])
|
121 |
+
def _filter(x: str):
|
122 |
+
if not x:
|
123 |
+
return False
|
124 |
+
if x.startswith(';'):
|
125 |
+
return False
|
126 |
+
return True
|
127 |
+
data = list(filter(_filter, data))
|
128 |
+
|
129 |
+
# =================
|
130 |
+
w_i = -1
|
131 |
+
while w_i < len(data) - 1:
|
132 |
+
w_i += 1
|
133 |
+
line: str = data[w_i]
|
134 |
+
# =================
|
135 |
+
if not line.startswith('*p'):
|
136 |
+
continue
|
137 |
+
# =================
|
138 |
+
n = ''
|
139 |
+
td = []
|
140 |
+
while True:
|
141 |
+
w_i += 1
|
142 |
+
line: str = data[w_i]
|
143 |
+
# =================
|
144 |
+
if line.startswith('@nm'):
|
145 |
+
tmp = getCmdArgsMap(line)
|
146 |
+
if 'rt' in tmp:
|
147 |
+
n = tmp['rt']
|
148 |
+
else:
|
149 |
+
n = tmp.get('t', '')
|
150 |
+
continue
|
151 |
+
if line.startswith('@'):
|
152 |
+
continue
|
153 |
+
td.append(removeWait(line))
|
154 |
+
# =================
|
155 |
+
if line.endswith('[np]'):
|
156 |
+
break
|
157 |
+
if line.startswith('*p'):
|
158 |
+
w_i -= 1
|
159 |
+
break
|
160 |
+
|
161 |
+
if not n:
|
162 |
+
n = '旁白'
|
163 |
+
else:
|
164 |
+
if n in _n:
|
165 |
+
n = _n[n]
|
166 |
+
else:
|
167 |
+
_n[n] = clearT(n).replace('・', '&')
|
168 |
+
|
169 |
+
d = clearT(''.join(td))
|
170 |
+
if d and not d.startswith('*p'):
|
171 |
+
sc[name].append(n + ':' + d)
|
172 |
+
|
173 |
+
# =================
|
174 |
+
|
175 |
+
for k, v in sc.items():
|
176 |
+
if v:
|
177 |
+
with open(b + f'\\{k}.txt', 'w', encoding='utf-8') as f:
|
178 |
+
f.write('\n'.join(v))
|
179 |
+
|
180 |
+
# =================
|
181 |
+
import json
|
182 |
+
tmp = json.dumps(_n, ensure_ascii=False, indent=4)
|