Skip to content

Commit 79330a1

Browse files
authored
docs: update document (#28)
* docs: move document directory * chore: add spell vocabulary * chore: update directory path * Update README.md * chore: remove unnecessary image * docs: add new image * Update README.md * Update README.md * docs: update README.md * chore: add spell vocabulary * docs: update README.md * docs: update README.md * docs: disable MD033 error * docs: add gif * docs: add new section
1 parent 6be55ed commit 79330a1

25 files changed

Lines changed: 239 additions & 41 deletions

.github/workflows/code-quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125

126126
- name: Run spell check
127127
run: |
128-
cspell "src/refactored/**/*.py" "tests/**/*.py" "*.md" "doc/*.md" --config cspell.json
128+
cspell "src/refactored/**/*.py" "tests/**/*.py" "*.md" "docs/*.md" --config cspell.json
129129
130130
markdown-lint:
131131
name: Markdown Lint
@@ -147,4 +147,4 @@ jobs:
147147

148148
- name: Lint Markdown files
149149
run: |
150-
markdownlint "*.md" "doc/*.md" --config .markdownlint.json --ignore node_modules
150+
markdownlint "*.md" "docs/*.md" --config .markdownlint.json --ignore node_modules

.markdownlint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"MD033": {
1313
"allowed_elements": [
1414
"img",
15+
"video",
1516
"div",
1617
"details",
1718
"summary"

.vscode/settings.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -188,20 +188,6 @@
188188
"source.organizeImports": "explicit",
189189
"source.fixAll.markdownlint": "explicit"
190190
},
191-
// Markdownlint specific settings
192-
"markdownlint.config": {
193-
"MD033": {
194-
"allowed_elements": [
195-
"img"
196-
]
197-
},
198-
"MD045": false,
199-
"MD025": false,
200-
"MD029": {
201-
"style": "ordered"
202-
},
203-
"MD059": false
204-
},
205191
// Python-specific settings
206192
"[python]": {
207193
"editor.formatOnSave": true,

README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This fonts can display basic Japanese, Simplified Chinese and Traditional Chines
4040
- [macOS](https://support.apple.com/en-us/HT201749)
4141
- [Windows](https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows)
4242
- [Linux/Unix-based systems](https://github.com/adobe-fonts/source-code-pro/issues/17#issuecomment-8967116)
43-
- [Android](./doc/HOW_TO_APPLY_FONT_ON_ANDROOID.md)
43+
- [Android](./docs/HOW_TO_APPLY_FONT_ON_ANDROOID.md)
4444

4545
----
4646

@@ -53,11 +53,7 @@ Subtitles are shown Chinese characters and pinyin.
5353
[Language Learning with Netflix](https://chrome.google.com/webstore/detail/language-learning-with-ne/hoombieeljmmljlkjmnheibnpciblicm?hl=en)
5454
![An-example-of-how-to-use](./imgs/An-example-of-how-to-use.png)
5555

56-
<details><summary>Enable homograph features in Microsoft Word</summary><div>
57-
58-
Please turn on any of the features under Font - Advanced - OpenType Features (suggest to choose Ligatures: Standard Only or tick Use Contextual Alternates, but other options are OK too) to display the correct pinyin in Microsoft Word. By default, Word will not use any OpenType features (including automatically changing the pinyin) if none of the options are used. Microsoft Excel turns on the feature by default, and is not affected.
59-
![word-setting](./imgs/word_setting.png)
60-
</div></details>
56+
- [Microsoft Word Setup for Homograph Features](./docs/MICROSOFT_WORD_SETUP.md)
6157

6258
----
6359

@@ -66,21 +62,28 @@ Please turn on any of the features under Font - Advanced - OpenType Features (su
6662
多音字をサポートするためにコンテキスト置換(feature tag of "rclt" at GSUB)を実装しました。
6763
また、Unicode IVS(表意文字バリアントセレクター)を使用して、異なる拼音に切り替えることもできます。/
6864
Implemented contextual replacing to support homograph (多音字).
69-
You can also use Unicode IVS (ideographic variant selector) to switch other different pinyin.
70-
<!-- ![](./imgs/2020-10-25-19.17.04.gif) -->
65+
You can also use Unicode IVS (ideographic variant selector) to switch other different pinyin.
7166
![using_contextual_replacing](./imgs/using_contextual_replacing.gif)
7267
![using_ideographic_variant_selector](./imgs/using_ideographic_variant_selector.gif)
7368

69+
## 各OSでの動作 / Works on each OS
70+
71+
|Platform|Automatic pinyin switching (using Contextual Replacement)|Manual pinyin switching (using IVS)|Notes|
72+
|:-:|:-:|:-:|:-:|
73+
|Windows|<video src="https://github.com/user-attachments/assets/7478707f-091b-43e5-ab6f-117281ba67ee">|<video src="https://github.com/user-attachments/assets/19b9a839-2504-4f44-96ea-ec28b3836865">|Use [IME Pad for IVS](./docs/IVS_SETUP_GUIDE.md)|
74+
|Mac|<video src="https://github.com/user-attachments/assets/9d791b54-76f4-43ba-bd1b-dd5db270bf5b">|<video src="https://github.com/user-attachments/assets/62c5567e-5ba0-48b0-b196-fd3db5322dae">|Use [Character Viewer for IVS](./docs/IVS_SETUP_GUIDE.md)|
75+
|Android|![android-chrome-rclt](imgs/android-chrome-rclt.png)|-|[zFont Setup Guide](./docs/HOW_TO_APPLY_FONT_ON_ANDROOID.md) </br>・[Magisk module](https://github.com/MaruTama/magisk-module-mengshen-font) (root required, IVS works in Chrome only)|
76+
7477
----
7578

7679
## 対応している多音字の一覧 / List of Supported Homographs
7780

78-
- [supported homograph](./doc/DUOYINZI_DICTIONARY.md)
81+
- [supported homograph](./docs/DUOYINZI_DICTIONARY.md)
7982

8083
## 生成方法 / How to Make Fonts
8184

82-
- [日本語](./doc/HOW_TO_MAKE_JP.md)
83-
- [English](./doc/HOW_TO_MAKE_EN.md)
85+
- [日本語](./docs/HOW_TO_MAKE_JP.md)
86+
- [English](./docs/HOW_TO_MAKE_EN.md)
8487

8588
## リファクタコード構成 / Refactored Code Architecture
8689

@@ -158,4 +161,4 @@ Thank you to the following people and repositories.
158161

159162
## カンパ/打赏/Donate
160163

161-
[点击进入打赏页面](./doc/DONATE.md)
164+
[点击进入打赏页面](./docs/DONATE.md)

cspell.json

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,42 @@
348348
"premake",
349349
"OTFCCGSUB",
350350
"ccmp",
351-
"uswinascent"
351+
"uswinascent",
352+
"wikipadia",
353+
"hira",
354+
"voicedcomb",
355+
"afdko",
356+
"Sawarabi",
357+
"Mincho",
358+
"googlefonts",
359+
"fontmake",
360+
"Robo",
361+
"pteromys",
362+
"svgs",
363+
"fontforge",
364+
"TESTFLIGHT",
365+
"Inkscape",
366+
"AFDKO",
367+
"makeotf",
368+
"GPOS",
369+
"caculate",
370+
"Tōngyòng",
371+
"Guīfàn",
372+
"Hànzìbiǎo",
373+
"Unihan",
374+
"CHISE",
375+
"sawarabi",
376+
"otfbuild",
377+
"CNTXT",
378+
"nopinyin",
379+
"pypintin",
380+
"ménr",
381+
"diàor",
382+
"gānr",
383+
"jiànr",
384+
"bǐng",
385+
"BUILDKIT",
386+
"numpad",
352387
],
353388
"ignorePaths": [
354389
".git/**",
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,60 +10,48 @@ I confirmed on Redmi Note 9S (MIUI 12).
1010

1111
1. Install and launch zFont.
1212

13-
<!-- markdownlint-disable-next-line MD033 -->
1413
<img src="../imgs/install2android/picture_0.png" width="200" alt="zFont app home screen"/>
1514

1615
2. Go to the LOCAL tab and press the button in the bottom right.
1716

18-
<!-- markdownlint-disable-next-line MD033 -->
1917
<img src="../imgs/install2android/picture_1.png" width="200" alt="zFont LOCAL tab with bottom right button"/>
2018

2119
3. Choose Mengshen-HanSerif.ttf or Mengshen-Handwritten.ttf and check it.
2220
(Note: In the screenshot, Mengshen-Handwritten.ttf is renamed to mengshen.ttf)
2321

24-
<!-- markdownlint-disable-next-line MD033 -->
2522
<img src="../imgs/install2android/picture_2.png" width="200" alt="Font selection screen showing Mengshen font files"/>
2623

2724
4. After verifying the font, press the SET button.
2825

29-
<!-- markdownlint-disable-next-line MD033 -->
3026
<img src="../imgs/install2android/picture_3.png" width="200" alt="Font verification screen with SET button"/>
3127

3228
5. Click on Xiaomi(MIUI).
3329

34-
<!-- markdownlint-disable-next-line MD033 -->
3530
<img src="../imgs/install2android/picture_4.png" width="200" alt="Device selection screen showing Xiaomi(MIUI) option"/>
3631

3732
6. Click on Method3.
3833
(Note: Don't choose Method4. For some reason, it seems the font doesn't change.)
3934

40-
<!-- markdownlint-disable-next-line MD033 -->
4135
<img src="../imgs/install2android/picture_5.png" width="200" alt="Method selection screen showing Method3 option"/>
4236

4337
7. When the dialog appears, click OK.
4438

45-
<!-- markdownlint-disable-next-line MD033 -->
4639
<img src="../imgs/install2android/picture_6.png" width="200" alt="Confirmation dialog with OK button"/>
4740

4841
8. You will be automatically redirected to the theme app.
4942

5043
9. Select the theme with "(Apply me)" in its name.
5144

52-
<!-- markdownlint-disable-next-line MD033 -->
5345
<img src="../imgs/install2android/picture_7.png" width="200" alt="Theme app showing theme with (Apply me) in name"/>
5446

5547
10. Press the apply button.
5648
Now you should see the pinyin font. If it doesn't change, try restarting.
5749

58-
<!-- markdownlint-disable-next-line MD033 -->
5950
<img src="../imgs/install2android/picture_8.png" width="200" alt="Theme apply screen showing pinyin font preview"/>
6051

6152
Now, you can read comments with pinyin in apps like Weibo and TikTok!
62-
<!-- markdownlint-disable-next-line MD033 -->
6353
<img src="../imgs/install2android/picture_9.png" width="200" alt="Weibo app displaying Chinese text with pinyin annotations"/>
64-
<!-- markdownlint-disable-next-line MD033 -->
6554
<img src="../imgs/install2android/picture_10.png" width="200" alt="TikTok app displaying Chinese comments with pinyin"/>
66-
<!-- markdownlint-disable-next-line MD033 -->
6755
<img src="../imgs/install2android/picture_11.png" width="200" alt="Additional example of pinyin font in action"/>
6856

6957
## Magisk Module (requires root)
File renamed without changes.

0 commit comments

Comments
 (0)