Skip to content

Commit

Permalink
1225
Browse files Browse the repository at this point in the history
  • Loading branch information
osfans committed Dec 25, 2024
1 parent 6a2ee22 commit 9cdb011
Show file tree
Hide file tree
Showing 33 changed files with 23,845 additions and 3,080 deletions.
4 changes: 2 additions & 2 deletions tools/tables/_縣志.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ def format(self, line):
else:
self.sm = line.split("\t")[0]
line = re.sub(r"\[(\d+)\]", lambda x:"[%s]"%self.dz2dl(x[1]), line)
elif name in ("烏魯木齊", "西寧"):
line = re.sub(r"(\d+)", "[\\1]", line)
elif name in ("烏魯木齊", "西寧","蒙山"):
line = re.sub(r"(\d+)", "[\\1]", line, count=1)
if line.startswith("["):
line = self.sm + line
else:
Expand Down
2 changes: 1 addition & 1 deletion tools/tables/_跳跳老鼠.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def parse(self, fs):
elif name in ("泉州"):
if len(fs) < 2: return
yb, hzs = fs[:2]
hzs = hzs.replace(" ", "")
yb = yb.lstrip("q")
hzs = re.sub(r"\[(.)\]", "\\1@", hzs)
hzs = self.normS(hzs)
elif name in ("思南塘頭",):
Expand Down
5 changes: 0 additions & 5 deletions tools/tables/_音典.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ def parse(self, fs):
elif name in ("劍川金華",):
hz, sy, sd, js = fs[:4]
yb = sy + sd
elif name in ("泉州",):
hz, py, yb, js = fs[:4]
py, sd = self.splitSySd(py)
yb, _ = self.splitSySd(yb)
yb += sd
elif name in ("1926綜合",):
hz,yb,_,_,_,js = fs[:6]
elif name in ("蒼南錢庫",):
Expand Down
657 changes: 657 additions & 0 deletions tools/tables/data/_湖北武汉湖泗方言同音字汇.tsv

Large diffs are not rendered by default.

Loading

0 comments on commit 9cdb011

Please sign in to comment.