Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiWonder committed Jul 8, 2023
1 parent 3355eb0 commit 6212456
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 39 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
wget -P ./temp https://dforest.watch.impress.co.jp/library/i/ipamjfont/10750/ipamjm00601.zip
7z e ./temp/ipamjm00601.zip -o./temp/

fontforge -script ./codes/merge.py ./temp/merge.ttf ./temp/ipamjm.ttf ./codes/src/NeoZhiSongSub-Regular.ttf
fontforge -script ./codes/merge.py ./temp/merge.ttf ./temp/ipamjm.ttf ./codes/src/subset.ttf

fontforge -script ./codes/huayingmincho.py ./temp/merge.ttf ./HuayingMinchoOld.ttf 1
#fontforge -script ./codes/huayingmincho.py ./temp/merge.ttf ./HuayingMinchoClassic.ttf 2
Expand Down
45 changes: 16 additions & 29 deletions codes/datas/stonem.dt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
只-隻 只 字 未不 提
只-隻 只 字 片 语言纸
只-衹 只
台-臺 台 湾下海籍
台-檯 球吧櫃坐 台
台-檯 台 扇面球灯历
台-檯 写 字 台
Expand Down Expand Up @@ -117,7 +118,7 @@
干-乾 天 干 物 燥
干-幹 每天成明後那哪今昨前 天 干
干-幹 干 完好尽活架事
干-乾 未擦拧晾晒饼榨烘烤流已口唇發鱼肉豆吸吹喝抽烧风涸泪酒瓜梨
干-乾 未擦拧晾晒饼榨烘烤流已口唇發鱼肉豆吸吹喝抽烧风涸泪酒水瓜梨
干-乾 干 净燥旱柴脆杯爹娘妈哥弟姐妹等裂面冰咳果枯洗瘪粮粉姜涸料酪耗货湿草涩呕眼巴豆
干-干 天栏阑比相何若 干
干-干 干 戈云霄支政涉系休宝扰预
Expand Down Expand Up @@ -154,7 +155,15 @@
干-乾 干 生 气
干-乾 干 电 池
干-乾 又 干 又
干-乾 衣 服物 已 干
干-乾 衣 服物 干 了
干-乾 衣 服物 已不没 干
干-乾 衣 服物 已 经 干 了
干-乾 裤袜鞋帽被领袖桌 子 干 了
干-乾 裤袜鞋帽被领袖桌 子 已不没 干
干-乾 裤袜鞋帽被领袖桌 子 已 经 干 了
干-乾 衣裤布巾帽领袖桌 干 了
干-乾 衣裤布巾帽领袖桌 已不没 干
干-乾 衣裤布巾帽领袖桌 已 经 干 了
干-乾 干 一两了上几这那此过 杯碗坛瓶
干-乾 干 过了 一这 杯碗坛瓶口
干-乾 干 了 这 一两三几 杯碗瓶坛口
Expand All @@ -178,31 +187,9 @@
系-系 系 统列词谱
系-系 傍嫡母父女语直院谱旁根菜星派 系
系-系 银 河 系
系-系 系 元 素
系-系 资 管 系
系-系 外英法德日俄欧藏西中 语文 系
系-系 卫 生 系
系-系 医商文汉哲化 学 系
系-系 本 科 系
系-系 护心管物 理 系
系-系 座坐 标 系
系-系 音 乐 系
系-系 外 交 系
系-系 工 程 系
系-系 土 木 系
系-系 建 筑 系
系-系 新 闻 系
系-系 机 械 系
系-系 法 律 系
系-系 教体 育学 系
系-系 政 治 系
系-系 设会 计 系
系-系 舞 蹈 系
系-系 生 物态 系
系-系 参 考照 系
系-系 历 史 系
系-系 艺 术 系
系-系 电 子 系
系-系 外英法德日俄欧藏西中 语文 系
系-係 关干体确乃 系
系-係 系 数指为
系-係 系 一 片种番
Expand Down Expand Up @@ -289,9 +276,9 @@
团-糰 团 子粉
团-團 团
困-困 被围解遇穷 困
困-困 困 难境扰苦窘住
困-困 困 难境扰苦窘住惑
困-困 困 不得 住了
困-睏 困 倦乏觉意了惑
困-睏 困 倦乏觉意了
困-睏 好發爱犯不疲 困
困-睏 又 困 又 乏累饿
困-睏 困 不 困
Expand Down Expand Up @@ -371,7 +358,7 @@
苏-囌 噜囌 苏
苏-囌 噜苏 苏
苏-蘇 苏
回-回 扳收召娶取唤找拿溜退跑每换滚走搬赶扔讨押捡返反發夺拖绕驳驶变倒
回-回 扳收召娶取唤找拿溜退跑每换滚走搬赶扔讨押捡返反發夺拖绕驳驶变倒一二两三四五六七八九十百千幾多少
回-迴 徘萦纡盘轮巡峰梦迂周 回
回-迴 回 响圈廊梦流环翔肠荡音天心归向光旋穴绕转路避
面-面 面 条 件目状
Expand Down Expand Up @@ -463,7 +450,7 @@
烟-煙 烟 雾花筒囱硝雨波月
烟-煙 煤云冒硝 烟
烟-菸 忌吸拒旱香戒敬贡捲点支根盒包条买卖售抽禁鼻 烟
烟-菸 烟 草袋卷嘴农酒叶厂斗灰丝缸民盒瘾头买卖售鬼迷
烟-菸 烟 草袋卷嘴农酒叶厂斗灰丝缸民盒瘾头买卖售鬼
烟-菸 无 烟 日
烟-菸 无没有找拿要 烟 抽
烟-菸 吸抽敬买卖 这那哪了 种个的 烟
Expand Down
2 changes: 1 addition & 1 deletion codes/huayingmincho.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pydir = os.path.abspath(os.path.dirname(__file__))

fontver='1.004'
fontver='1.005'
fontname='HuayingMincho'
tcname='華英明朝'
scname='华英明朝'
Expand Down
8 changes: 0 additions & 8 deletions codes/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ def getfrdv(font, ch, iv):
for alt in gls.altuni:
if alt[0]==ord(ch) and alt[1]==iv:
return gls.glyphname

#if alt[1]>0:
# if alt[0] in mvar and alt[1]==mvar[alt[0]][0]:
# vtb.append((gls.glyphname, mvar[alt[0]][1]))
# if alt[0] in tv and tv[alt[0]]==alt[1]:
# ltb.append((gls.glyphname, alt[0]))


def mergeft(font, fin2, rplc=False):
print(f'Loading {fin2}...')
Expand All @@ -55,7 +48,6 @@ def mergeft(font, fin2, rplc=False):
font[cd1].altuni = code_codes2[cd1]
for ch in ivd.keys():
glnm=getfrdv(font, ch, ivd[ch])
#print(glnm)
font2.selection.select(ord(ch))
font2.copy()
font.selection.select(glnm)
Expand Down
10 changes: 10 additions & 0 deletions codes/removeoverlap.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import sys
import fontforge
print('Loading')
font=fontforge.open(sys.argv[1])
print('Removing Overlap')
font.selection.all()
font.removeOverlap()
print('Saving')
font.generate(sys.argv[2])
print('Done')
Binary file removed codes/src/NeoZhiSongSub-Regular.ttf
Binary file not shown.
Binary file added codes/src/subset.ttf
Binary file not shown.

0 comments on commit 6212456

Please sign in to comment.