Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiWonder committed Mar 12, 2024
1 parent 9b8ea5e commit bb2eec6
Show file tree
Hide file tree
Showing 12 changed files with 173 additions and 166 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,12 @@ jobs:
buildotf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install afdko
run: pip3 install afdko
- name: Begin
run: python3 ./build/buildotf.py

- uses: actions/upload-artifact@v3
with:
name: AdvocateAncientOTFs
path: |
*.7z
*.zip
- name: Upload to release
uses: ncipollo/release-action@v1
with:
Expand All @@ -32,24 +25,26 @@ jobs:
prerelease: true
draft: true
name: "Build Test"
body: "Advocate Ancient"
body: "Shanggu"

- uses: actions/upload-artifact@v4
with:
name: ShangguOTFs
path: |
*.7z
*.zip
buildttf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install afdko
run: pip3 install afdko
- name: Install wine
run: sudo apt update && sudo apt install wine
- name: Begin
run: python3 ./build/buildttf.py

- uses: actions/upload-artifact@v3
with:
name: AdvocateAncientTTFs
path: "*.7z"

- name: Upload to release
uses: ncipollo/release-action@v1
with:
Expand All @@ -60,22 +55,22 @@ jobs:
prerelease: true
draft: true
name: "Build Test"
body: "Advocate Ancient"
body: "Shanggu"

- uses: actions/upload-artifact@v4
with:
name: ShangguTTFs
path: "*.7z"

buildvf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install afdko
run: pip3 install afdko
- name: Begin
run: python3 ./build/buildvf.py

- uses: actions/upload-artifact@v3
with:
name: AdvocateAncientVFs
path: "*.7z"

- name: Upload to release
uses: ncipollo/release-action@v1
with:
Expand All @@ -86,12 +81,17 @@ jobs:
prerelease: true
draft: true
name: "Build Test"
body: "Advocate Ancient"
body: "Shanggu"

- uses: actions/upload-artifact@v4
with:
name: ShangguVFs
path: "*.7z"

buildrd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install afdko
run: pip3 install afdko

Expand All @@ -108,10 +108,10 @@ jobs:
prerelease: true
draft: true
name: "Build Test"
body: "Advocate Ancient"
body: "Shanggu"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: AdvocateAncientRounded
name: ShangguRound
path: "*.7z"

2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
with:
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.'
days-before-stale: 60
days-before-close: 15
days-before-close: 10
close-issue-reason: completed
51 changes: 24 additions & 27 deletions README-SC.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
[正體中文](../../#advocate-ancient-fonts) **简体中文**
[正體中文](../../#shanggu-fonts) **简体中文**

# Advocate Ancient Fonts
一套开源泛中日韩字体,基于[思源黑体](https://github.com/adobe-fonts/source-han-sans)[思源宋体](https://github.com/adobe-fonts/source-han-serif)[思源等宽](https://github.com/adobe-fonts/source-han-mono)以及思源系列衍生字体。本开源项目提供了多种不同风格、不同格式的字体以满足不同需要,本项目还提供了创建这些字体时的所有源代码
# Shanggu Fonts
一套泛中日韩字体,基于[思源黑体](https://github.com/adobe-fonts/source-han-sans)[思源宋体](https://github.com/adobe-fonts/source-han-serif)[思源等宽](https://github.com/adobe-fonts/source-han-mono)以及思源系列衍生字体制作,包含黑体、明体、圆体以及简转繁字体

## 预览
![image](./pictures/Pic0001.png)
![image](./pictures/Pic0002.jpg)
## 关于字体
### 说明
本项目字体名称为“ **尚古 Advocate Ancient Fonts**
#### 1. [多编码汉字](./main/configs/mulcodechar.dt)(如青-靑 尚-尙 兑-兌 温-溫等)合并为旧字形
> Advocate Ancient Sans | 尙古黑体 | 尙古黑體,<br />
> Advocate Ancient Serif | 尙古明体 | 尙古明體,<br />
> Advocate Ancient Mono | 尙古等宽 | 尙古等寬。<br />
#### 2. 多编码汉字分开编码
本项目字体名称为“ **尚古 Shanggu Fonts** ”, *旧名称为“ Advocate Ancient Fonts*
#### 1. [新旧异体字](./main/configs/mulcodechar.dt)(如青-靑 尚-尙 兑-兌 温-溫等)合并为旧字形
> Shanggu Sans | 尙古黑体 | 尙古黑體,<br />
> Shanggu Serif | 尙古明体 | 尙古明體,<br />
> Shanggu Mono | 尙古等宽 | 尙古等寬。<br />
#### 2. [新旧异体字](./main/configs/mulcodechar.dt)遵从 Unicode 分开编码
根据标点和简化字的不同,分为TC、SC、JP三种。<br />
> Advocate Ancient Sans TC | 尙古黑体TC | 尙古黑體TC,<br />
> Advocate Ancient Serif TC | 尙古明体TC | 尙古明體TC,<br />
> Advocate Ancient Mono TC | 尙古等宽TC | 尙古等寬TC<br />
> Advocate Ancient Sans SC | 尙古黑体SC | 尙古黑體SC,<br />
> Advocate Ancient Serif SC | 尙古明体SC | 尙古明體SC,<br />
> Advocate Ancient Mono SC | 尙古等宽SC | 尙古等寬SC,<br />
> Advocate Ancient Sans JP | 尙古黑体JP | 尙古黑體JP,<br />
> Advocate Ancient Serif JP | 尙古明体JP | 尙古明體JP,<br />
> Advocate Ancient Mono JP | 尙古等宽JP | 尙古等寬JP。<br />
> Shanggu Sans TC | 尙古黑体TC | 尙古黑體TC,<br />
> Shanggu Serif TC | 尙古明体TC | 尙古明體TC,<br />
> Shanggu Mono TC | 尙古等宽TC | 尙古等寬TC<br />
> Shanggu Sans SC | 尙古黑体SC | 尙古黑體SC,<br />
> Shanggu Serif SC | 尙古明体SC | 尙古明體SC,<br />
> Shanggu Mono SC | 尙古等宽SC | 尙古等寬SC,<br />
> Shanggu Sans JP | 尙古黑体JP | 尙古黑體JP,<br />
> Shanggu Serif JP | 尙古明体JP | 尙古明體JP,<br />
> Shanggu Mono JP | 尙古等宽JP | 尙古等寬JP。<br />
#### 3. 简转繁体
简入繁出的字体,可根据文本内容动态匹配一简多繁的情况。
> Advocate Ancient Sans ST | 尙古黑体 转繁体 | 尙古黑體 轉繁體,<br />
> Advocate Ancient Serif ST | 尙古明体 转繁体 | 尙古明體 轉繁體。<br />
> Shanggu Sans ST | 尙古黑体 转繁体 | 尙古黑體 轉繁體,<br />
> Shanggu Serif ST | 尙古明体 转繁体 | 尙古明體 轉繁體。<br />
▼ 一简多繁测试,此功能使用 OpenType 特性。<br />
![image](./pictures/FANTI.png)
Expand All @@ -37,14 +37,12 @@
原版格式。
#### 2. TrueType 格式(TTF/TTC)
基于 [Source-Han-TrueType](https://github.com/Pal3love/Source-Han-TrueType) 无损转换,兼容性较好。
#### ~3. TrueType hinted (TTF/TTC)~
~基于 [Source Han Sans TTF](https://github.com/be5invis/source-han-sans-ttf) 可实现 Windows 下低分辨率小字清晰,建议仅在 Windows 下使用。~
#### 4. 可变字体
包括 OpenType 和 TrueType 格式。由于资源限制,此版本未使用旧版思源黑体、思源宋体的字图。
#### 3. 可变字体
包括 OpenType 和 TrueType 格式。*由于资源限制,此版本未使用旧版思源黑体、思源宋体的字图。*

## 下载字体
1. 可从本站 [Releases](https://github.com/GuiWonder/SourceHanToClassic/releases) 页面下载字体(推荐)。
2. 可从[腾讯微云](https://share.weiyun.com/VEoOc5xK)下载 AdvocateAncient 系列字体
1. 可从本站 [Releases](../../releases) 页面下载字体(推荐)。
2. 可从[腾讯微云](https://share.weiyun.com/VEoOc5xK)下载 Shanggu 字体
## 授权
遵循 [SIL Open Font License 1.1](./LICENSE.txt)

Expand All @@ -68,7 +66,6 @@
- [字形维基(GlyphWiki)](https://glyphwiki.org/)
#### 5. 简转繁参考
- [OpenCC 开放中文转换](https://github.com/BYVoid/OpenCC)
#### 6. 旧版用到的工具或参考
- [《正确实现简转繁字体》](https://ayaka.shn.hk/s2tfont/)
## 关于作者
- **Email:** [email protected]
Expand Down
51 changes: 24 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
**正體中文** [简体中文](./README-SC.md#advocate-ancient-fonts)
**正體中文** [简体中文](./README-SC.md#shanggu-fonts)

# Advocate Ancient Fonts
一套開放原始碼泛中日韓字型,基於[思源黑體](https://github.com/adobe-fonts/source-han-sans)[思源宋體](https://github.com/adobe-fonts/source-han-serif)[思源等寬](https://github.com/adobe-fonts/source-han-mono)以及思源系列衍生字型。本開放原始碼專案提供了多種不同風格、不同格式的字型以滿足不同需要,本專案還提供了建置這些字型時的所有原始碼
# Shanggu Fonts
一套泛中日韓字型,基於[思源黑體](https://github.com/adobe-fonts/source-han-sans)[思源宋體](https://github.com/adobe-fonts/source-han-serif)[思源等寬](https://github.com/adobe-fonts/source-han-mono)以及思源系列衍生字型製作,包含黑體、明體、圓體以及簡轉繁字型

## 預覽
![image](./pictures/Pic0001.png)
![image](./pictures/Pic0002.jpg)
## 關於字型
### 說明
本專案字型名稱為「 **尚古 Advocate Ancient Fonts**
#### 1. [多編碼漢字](./main/configs/mulcodechar.dt)(如青-靑 尚-尙 兑-兌 温-溫等)合併為舊字形
> Advocate Ancient Sans | 尙古黑体 | 尙古黑體,<br />
> Advocate Ancient Serif | 尙古明体 | 尙古明體,<br />
> Advocate Ancient Mono | 尙古等宽 | 尙古等寬。<br />
#### 2. 多編碼漢字分開編碼
本專案字型名稱為「 **尚古 Shanggu Fonts**, *舊名稱為「 Advocate Ancient Fonts 」*
#### 1. [新舊異體字](./main/configs/mulcodechar.dt)(如青-靑 尚-尙 兑-兌 温-溫等)合併為舊字形
> Shanggu Sans | 尙古黑体 | 尙古黑體,<br />
> Shanggu Serif | 尙古明体 | 尙古明體,<br />
> Shanggu Mono | 尙古等宽 | 尙古等寬。<br />
#### 2. [新舊異體字](./main/configs/mulcodechar.dt)遵從 Unicode 分開編碼
根據標點和簡化字的不同,分為TC、SC、JP三種。<br />
> Advocate Ancient Sans TC | 尙古黑体TC | 尙古黑體TC,<br />
> Advocate Ancient Serif TC | 尙古明体TC | 尙古明體TC,<br />
> Advocate Ancient Mono TC | 尙古等宽TC | 尙古等寬TC<br />
> Advocate Ancient Sans SC | 尙古黑体SC | 尙古黑體SC,<br />
> Advocate Ancient Serif SC | 尙古明体SC | 尙古明體SC,<br />
> Advocate Ancient Mono SC | 尙古等宽SC | 尙古等寬SC,<br />
> Advocate Ancient Sans JP | 尙古黑体JP | 尙古黑體JP,<br />
> Advocate Ancient Serif JP | 尙古明体JP | 尙古明體JP,<br />
> Advocate Ancient Mono JP | 尙古等宽JP | 尙古等寬JP。<br />
> Shanggu Sans TC | 尙古黑体TC | 尙古黑體TC,<br />
> Shanggu Serif TC | 尙古明体TC | 尙古明體TC,<br />
> Shanggu Mono TC | 尙古等宽TC | 尙古等寬TC<br />
> Shanggu Sans SC | 尙古黑体SC | 尙古黑體SC,<br />
> Shanggu Serif SC | 尙古明体SC | 尙古明體SC,<br />
> Shanggu Mono SC | 尙古等宽SC | 尙古等寬SC,<br />
> Shanggu Sans JP | 尙古黑体JP | 尙古黑體JP,<br />
> Shanggu Serif JP | 尙古明体JP | 尙古明體JP,<br />
> Shanggu Mono JP | 尙古等宽JP | 尙古等寬JP。<br />
#### 3. 簡轉繁體
簡入繁出的字型,可根據文字内容動態匹配一簡多繁的情況。
> Advocate Ancient Sans ST | 尙古黑体 转繁体 | 尙古黑體 轉繁體,<br />
> Advocate Ancient Serif ST | 尙古明体 转繁体 | 尙古明體 轉繁體。<br />
> Shanggu Sans ST | 尙古黑体 转繁体 | 尙古黑體 轉繁體,<br />
> Shanggu Serif ST | 尙古明体 转繁体 | 尙古明體 轉繁體。<br />
▼ 一簡多繁測試,此功能使用 OpenType 特性。<br />
![image](./pictures/FANTI.png)
Expand All @@ -37,14 +37,12 @@
原版格式。
#### 2. TrueType 格式(TTF/TTC)
基於 [Source-Han-TrueType](https://github.com/Pal3love/Source-Han-TrueType) 無損轉換,兼容性較好。
#### ~3. TrueType hinted (TTF/TTC)~
~基於 [Source Han Sans TTF](https://github.com/be5invis/source-han-sans-ttf) 可實現 Windows 下低解析度小字清晰,建議僅在 Windows 下使用。~
#### 4. 可變字型
包括 OpenType 和 TrueType 格式。由於資源限制,此版本未使用舊版思源黑體、思源宋體的字圖。
#### 3. 可變字型
包括 OpenType 和 TrueType 格式。*由於資源限制,此版本未使用舊版思源黑體、思源宋體的字圖。*

## 下載字型
1. 可從本站 [Releases](https://github.com/GuiWonder/SourceHanToClassic/releases) 頁面下載字型(推薦)。
2. 可從[騰訊微雲](https://share.weiyun.com/VEoOc5xK)下載 AdvocateAncient 系列字型
1. 可從本站 [Releases](../../releases) 頁面下載字型(推薦)。
2. 可從[騰訊微雲](https://share.weiyun.com/VEoOc5xK)下載 Shanggu 字型
## 授權
遵循 [SIL Open Font License 1.1](./LICENSE.txt)

Expand All @@ -68,7 +66,6 @@
- [字形維基(GlyphWiki)](https://glyphwiki.org/)
#### 5. 簡轉繁參考
- [OpenCC 開放中文轉換](https://github.com/BYVoid/OpenCC)
#### 6. 舊版用到的工具或參考
- [《正確實現簡轉繁字型》](https://ayaka.shn.hk/s2tfont/hant/)
## 關於作者
- **Email:** [email protected]
Expand Down
2 changes: 1 addition & 1 deletion build/buildrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

cfg=json.load(open('./main/configs/config.json', 'r', encoding = 'utf-8'))
fnm=cfg['fontName'].replace(' ', '')
fod='Rounded'
fod='Round'

step01='python3 ./main/step01.py'
step02='python3 ./main/step02.py'
Expand Down
8 changes: 4 additions & 4 deletions main/configs/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"fontName": "Advocate Ancient",
"fontName": "Shanggu",
"fontNameTC": "尙古",
"fontNameSC": "尙古",
"fontVersion": "1.019",
"fontVersion": "1.020",
"fontID": "GWF ",
"fontVURL": "https://github.com/GuiWonder/SourceHanToClassic",
"fontCopyright": "© 2022-2024 Advocate Ancient Fonts.",
"fontVURL": "https://github.com/GuiWonder/Shanggu",
"fontCopyright": "© 2022-2024 Shanggu Fonts.",
"fontDesigner": "GuiWonder",
"fontDiscript": "Pan-CJK font"
}
Loading

0 comments on commit bb2eec6

Please sign in to comment.