小貓中文 v1.0: add author HelloSun, first-version date and GPLv3 section 7(b) attribution term (docs, source headers, startup notice)
Browse files- LICENSE +34 -13
- NOTICE.md +8 -2
- README.md +6 -0
- dev/HANDOFF.md +6 -1
- dev/xiaomao-dev.zip +2 -2
- dos.b64.js +0 -0
- index.html +3 -3
LICENSE
CHANGED
|
@@ -1,18 +1,39 @@
|
|
| 1 |
-
小貓中文 DOS
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
SPDX-License-Identifier: GPL-3.0-only
|
| 5 |
-
Full license text: <https://www.gnu.org/licenses/gpl-3.0.txt>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
This
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
GNU General Public License for more details.
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
| 1 |
+
小貓中文 (XiaoMao Chinese) - DOS Big5 display and Zhuyin input
|
| 2 |
+
Version 1.0, 2026-10-25
|
| 3 |
+
|
| 4 |
+
Copyright (C) 2026 HelloSun
|
| 5 |
+
Author: HelloSun (https://huggingface.co/HelloSun)
|
| 6 |
+
First version: 1.0, 2026-10-25
|
| 7 |
|
| 8 |
SPDX-License-Identifier: GPL-3.0-only
|
| 9 |
+
Full license text: LICENSE-GPL-3.0.txt, <https://www.gnu.org/licenses/gpl-3.0.txt>
|
| 10 |
+
|
| 11 |
+
This program is free software: you can redistribute it and/or modify it under the terms of the
|
| 12 |
+
GNU General Public License as published by the Free Software Foundation, version 3 of the License
|
| 13 |
+
(only), WITH THE ADDITIONAL TERM BELOW.
|
| 14 |
+
|
| 15 |
+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
| 16 |
+
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 17 |
+
General Public License for more details.
|
| 18 |
+
|
| 19 |
+
ADDITIONAL TERM (GNU GPL version 3, section 7(b): "requiring preservation of specified reasonable
|
| 20 |
+
legal notices or author attributions in that material or in the Appropriate Legal Notices
|
| 21 |
+
displayed by works containing it")
|
| 22 |
|
| 23 |
+
You must preserve the author attribution "HelloSun" and the copyright notice
|
| 24 |
+
"Copyright (C) 2026 HelloSun" in every copy and in every modified version of this work:
|
| 25 |
+
(a) in each source file that carries it (headers of src/, tools/, build.sh, index.html);
|
| 26 |
+
(b) in the files LICENSE, NOTICE.md and README.md;
|
| 27 |
+
(c) in the notice that the program XIAOMAO.EXE displays when it starts, and in the footer of
|
| 28 |
+
the web page that hosts it.
|
| 29 |
+
You may add your own name and notices for your own modifications, and you must mark modified
|
| 30 |
+
versions as modified, but you may not remove or alter the HelloSun attribution, the first-version
|
| 31 |
+
statement ("1.0, 2026-10-25") or this additional term.
|
| 32 |
|
| 33 |
+
This additional term applies to the code written for this project (src/xiaomao.c, src/xms.asm,
|
| 34 |
+
src/addons/xedit.c, tools/, build.sh, index.html, tests/, dos/). It does not apply to third-party
|
| 35 |
+
components, which keep their own licenses (see NOTICE.md).
|
|
|
|
| 36 |
|
| 37 |
+
中文摘要:本專案以 GNU GPL v3(僅限第 3 版)授權,並依 GPLv3 第 7(b) 條附加一項條款:任何複製與修改版本,
|
| 38 |
+
都必須保留作者「HelloSun」、版權聲明「Copyright (C) 2026 HelloSun」與首版聲明(1.0,2026-10-25),
|
| 39 |
+
包括程式啟動時顯示的聲明與網頁頁尾;不得移除或更動。你可以為自己的修改加上自己的名字,但須註明是修改版。
|
NOTICE.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
-
# 小貓中文 — 第三方元件
|
| 2 |
|
| 3 |
-
本
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
建置時由上游下載、經雜湊驗證,**不含專有軟體**:
|
| 6 |
|
|
|
|
| 1 |
+
# 小貓中文 — 作者、授權與第三方元件 (NOTICE)
|
| 2 |
|
| 3 |
+
**作者**:HelloSun **版本**:1.0(首版,2026-10-25) **版權**:Copyright (C) 2026 HelloSun
|
| 4 |
+
|
| 5 |
+
本專案自己撰寫的部分(C、ASM、HTML、建置與生成工具、測試)採 **GNU GPL-3.0-only**,並依 GPLv3 第 7(b) 條附加一項條款:
|
| 6 |
+
**任何複製與修改版本都必須保留作者「HelloSun」與版權聲明,不得移除**(完整文字見 `LICENSE`;程式啟動時也會顯示作者聲明)。
|
| 7 |
+
此附加條款不適用於下列第三方元件,它們各自維持原授權。
|
| 8 |
+
|
| 9 |
+
開發歷程:2026-10-23 首次公開 DOS 中文示範(含較早的 ETEN 原型),2026-10-25 以 v1.0 加上作者聲明與授權條款發佈。
|
| 10 |
|
| 11 |
建置時由上游下載、經雜湊驗證,**不含專有軟體**:
|
| 12 |
|
README.md
CHANGED
|
@@ -10,6 +10,12 @@ sdk: static
|
|
| 10 |
|
| 11 |
DOS 常駐(TSR)的 Big5 中文顯示與注音輸入外掛,在瀏覽器(含手機)中以 FreeDOS + js-dos 6.22 執行。載入後回到一般 DOS 提示字元,DOS 指令照常使用,並可直接輸入、顯示中文。全部元件皆為開源,建置時由上游下載並驗證雜湊。
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
## 運作方式(傳統中文系統作法)
|
| 14 |
|
| 15 |
- 程式看到的仍是 80×25 文字模式:文字畫面保存在 `B800:0000`(影子文字緩衝區),所以 **PE2 這類直接寫顯示記憶體的程式**與使用 INT 10h 的程式都能照常運作。
|
|
|
|
| 10 |
|
| 11 |
DOS 常駐(TSR)的 Big5 中文顯示與注音輸入外掛,在瀏覽器(含手機)中以 FreeDOS + js-dos 6.22 執行。載入後回到一般 DOS 提示字元,DOS 指令照常使用,並可直接輸入、顯示中文。全部元件皆為開源,建置時由上游下載並驗證雜湊。
|
| 12 |
|
| 13 |
+
## 作者與授權
|
| 14 |
+
|
| 15 |
+
- 作者:**HelloSun** 版本:**1.0**(首版,2026-10-25) 版權:Copyright (C) 2026 HelloSun
|
| 16 |
+
- 授權:GNU GPL-3.0-only,並依 GPLv3 第 7(b) 條**附加條款:複製或修改時必須保留作者聲明,不得移除**(見 `LICENSE`)。
|
| 17 |
+
- 程式啟動時會顯示作者與授權聲明,網頁頁尾也有;請勿移除。第三方元件(FreeDOS、HimemX、GNU Unifont、js-dos 等)維持各自授權,見 `NOTICE.md`。
|
| 18 |
+
|
| 19 |
## 運作方式(傳統中文系統作法)
|
| 20 |
|
| 21 |
- 程式看到的仍是 80×25 文字模式:文字畫面保存在 `B800:0000`(影子文字緩衝區),所以 **PE2 這類直接寫顯示記憶體的程式**與使用 INT 10h 的程式都能照常運作。
|
dev/HANDOFF.md
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
# 小貓中文 — 接手說明 (HANDOFF)
|
| 2 |
|
| 3 |
目標:DOS 常駐 (TSR) Big5 中文顯示 + 注音輸入,跑在 js-dos 6.22(瀏覽器/手機),部署為 HF static Space。
|
| 4 |
-
傳統記憶體越少越好(現況常駐約 16 KB,不強制 600K)。授權 GPL-3.0-only。全部元件開源,不含專有軟體。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
## 一鍵流程
|
| 7 |
`HF_TOKEN=... HF_SPACE=user/space ./build.sh`(兩者是腳本開頭變數,token 不入檔)。空目錄也能跑:自動建 Python venv、下載並以雜湊驗證
|
|
|
|
| 1 |
# 小貓中文 — 接手說明 (HANDOFF)
|
| 2 |
|
| 3 |
目標:DOS 常駐 (TSR) Big5 中文顯示 + 注音輸入,跑在 js-dos 6.22(瀏覽器/手機),部署為 HF static Space。
|
| 4 |
+
傳統記憶體越少越好(現況常駐約 16 KB,不強制 600K)。授權 GPL-3.0-only + GPLv3 §7(b) 附加條款(保留作者 HelloSun,見 LICENSE)。全部元件開源,不含專有軟體。
|
| 5 |
+
|
| 6 |
+
## 作者聲明規則(修改時務必遵守)
|
| 7 |
+
- 作者 **HelloSun**、首版 **v1.0 / 2026-10-25**、版權 **Copyright (C) 2026 HelloSun** 出現在:每個原始檔檔頭、`LICENSE`、`NOTICE.md`、`README.md`、`index.html` 頁尾、
|
| 8 |
+
以及 `src/xiaomao.c` 的 `report()`(`M6`,程式每次載入都會顯示)。**不得移除**(GPLv3 §7(b));加入自己的修改請另加自己的名字並註明為修改版。
|
| 9 |
+
- 作者資訊由 `apply_notice.py` 的三個常數產生過;改版本或日期時,請連同上述所有位置一起更新。
|
| 10 |
|
| 11 |
## 一鍵流程
|
| 12 |
`HF_TOKEN=... HF_SPACE=user/space ./build.sh`(兩者是腳本開頭變數,token 不入檔)。空目錄也能跑:自動建 Python venv、下載並以雜湊驗證
|
dev/xiaomao-dev.zip
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1174d90428c60634063fd35aa9e8ece0244aaac8570148755862592f9da882b7
|
| 3 |
+
size 55168
|
dos.b64.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
index.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
<!-- 小貓中文 DOS interface; Copyright (C) 2026
|
| 2 |
-
SPDX-License-Identifier: GPL-3.0-only. See LICENSE. -->
|
| 3 |
<!doctype html>
|
| 4 |
<html lang="zh-Hant">
|
| 5 |
<head>
|
|
@@ -69,7 +69,7 @@
|
|
| 69 |
<button type="button" data-key="112">F1</button><button id="alt-x" type="button" class="wide">Alt+X</button>
|
| 70 |
</section>
|
| 71 |
</main>
|
| 72 |
-
<footer>小貓中文 GPL-3.0
|
| 73 |
<script src="js-dos.js"></script>
|
| 74 |
<script src="emu.b64.js"></script>
|
| 75 |
<script src="dos.b64.js"></script>
|
|
|
|
| 1 |
+
<!-- 小貓中文 DOS interface; Copyright (C) 2026 HelloSun. Author: HelloSun. First version: 1.0, 2026-10-25.
|
| 2 |
+
SPDX-License-Identifier: GPL-3.0-only, with GPLv3 section 7(b) additional term: keep the author attribution. See LICENSE. -->
|
| 3 |
<!doctype html>
|
| 4 |
<html lang="zh-Hant">
|
| 5 |
<head>
|
|
|
|
| 69 |
<button type="button" data-key="112">F1</button><button id="alt-x" type="button" class="wide">Alt+X</button>
|
| 70 |
</section>
|
| 71 |
</main>
|
| 72 |
+
<footer>小貓中文 v1.0 · 作者 HelloSun · 2026-10-25 · GPL-3.0(§7(b):須保留作者聲明)· OpenWatcom · GNU Unifont · Big5 注音 · 載入時顯示即時 MEM · <a href="LICENSE">License</a></footer>
|
| 73 |
<script src="js-dos.js"></script>
|
| 74 |
<script src="emu.b64.js"></script>
|
| 75 |
<script src="dos.b64.js"></script>
|