diff --git a/TeXmacs/packages/customize/encryption/gpg-info-level-detailed.ts b/TeXmacs/packages/customize/encryption/gpg-info-level-detailed.ts deleted file mode 100644 index 941b9724d7..0000000000 --- a/TeXmacs/packages/customize/encryption/gpg-info-level-detailed.ts +++ /dev/null @@ -1,38 +0,0 @@ - - -> - -<\body> - - - - <\src-purpose> - Variant for GnuPG decrypted blocks. - - - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - > - - <\active*> - <\src-comment> - Extra style parameters - - - - - - \; - - -<\initial> - <\collection> - - - \ No newline at end of file diff --git a/TeXmacs/packages/customize/encryption/gpg-info-level-none.ts b/TeXmacs/packages/customize/encryption/gpg-info-level-none.ts deleted file mode 100644 index f707529f89..0000000000 --- a/TeXmacs/packages/customize/encryption/gpg-info-level-none.ts +++ /dev/null @@ -1,38 +0,0 @@ - - -> - -<\body> - - - - <\src-purpose> - Variant for GnuPG decrypted blocks. - - - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - > - - <\active*> - <\src-comment> - Extra style parameters - - - - - - \; - - -<\initial> - <\collection> - - - \ No newline at end of file diff --git a/TeXmacs/packages/customize/encryption/gpg-info-level-short.ts b/TeXmacs/packages/customize/encryption/gpg-info-level-short.ts deleted file mode 100644 index caa0c03d23..0000000000 --- a/TeXmacs/packages/customize/encryption/gpg-info-level-short.ts +++ /dev/null @@ -1,38 +0,0 @@ - - -> - -<\body> - - - - <\src-purpose> - Variant for GnuPG decrypted blocks. - - - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - > - - <\active*> - <\src-comment> - Extra style parameters - - - - - - \; - - -<\initial> - <\collection> - - - \ No newline at end of file diff --git a/TeXmacs/packages/miscellaneous/chat.ts b/TeXmacs/packages/miscellaneous/chat.ts deleted file mode 100644 index 742d7f6a34..0000000000 --- a/TeXmacs/packages/miscellaneous/chat.ts +++ /dev/null @@ -1,59 +0,0 @@ - - - - -<\body> - - - - <\src-purpose> - An style package for internet chatting - - - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - > - - <\active*> - <\src-comment> - Style parameters. - - - - - - - - <\active*> - <\src-comment> - Chat markup elements - - - - - - > - - ||:> - >|> - - >> - - ||:> - >||>>> - - \; - - -<\initial> - <\collection> - - - - \ No newline at end of file diff --git a/TeXmacs/packages/miscellaneous/docoq.ts b/TeXmacs/packages/miscellaneous/docoq.ts deleted file mode 100644 index c0bf7526c6..0000000000 --- a/TeXmacs/packages/miscellaneous/docoq.ts +++ /dev/null @@ -1,118 +0,0 @@ - - -> - -<\body> - - - - <\src-purpose> - This experimental package contains macros for rendering imported CoqML - stuff. - - - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - > - - <\active*> - <\src-comment> - Vernacular commands. - - - - >> - - >>: - > |> - - >> - - :> - > |> - - >> - - :> |> - - >> - - :> |> - - >> - - :> |> - - >> - - <\active*> - <\src-comment> - Terms language. - - - - >> - - >> - - , >> - - >> - - |accessible|all> - - |accessible|all> - - |accessible|all> - - |accessible|all> - - > - - |>>> - - - |, > - > - - - >>||2>|>||2>>|2>>|1>>>>> - > - - |end||operator||arity|>>|>|macro>||>|>>|>| >|1>>|1>>|)>>>>>> - - <\active*> - <\src-comment> - Misc. - - - - >> - - >> - - >>> - - <\active*> - <\src-comment> - Hard coded operators - - - - , >> - - >>> - - - -> \ No newline at end of file diff --git a/TeXmacs/packages/miscellaneous/live-document.ts b/TeXmacs/packages/miscellaneous/live-document.ts deleted file mode 100644 index 8276ee168f..0000000000 --- a/TeXmacs/packages/miscellaneous/live-document.ts +++ /dev/null @@ -1,42 +0,0 @@ - - - - -<\body> - - - - <\src-purpose> - Live documents - - - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - > - - - - - - <\active*> - <\src-comment> - Mirrors - - - - |locus-color|preserve|>||live-notify>|>>|>|document>|>||>>>>>> - - - - -<\initial> - <\collection> - - - \ No newline at end of file diff --git a/TeXmacs/packages/utilities/chat-room.ts b/TeXmacs/packages/utilities/chat-room.ts deleted file mode 100644 index 32a2c6bc89..0000000000 --- a/TeXmacs/packages/utilities/chat-room.ts +++ /dev/null @@ -1,71 +0,0 @@ - - - - -<\body> - - - - <\src-purpose> - Chat rooms - - - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - > - - - - - - <\active*> - <\src-comment> - Rendering macros - - - - - - <\wide-tabular> - >||||||| - >> - >| - - >>> - - > - > - - >>>>> - - <\active*> - <\src-comment> - Main macros - - - - - <\chat-render|dark grey|> - - - > - - - <\chat-render|dark blue|New message|button-chat-send|>> - - - > - - -<\initial> - <\collection> - - - \ No newline at end of file diff --git a/TeXmacs/packages/utilities/live.ts b/TeXmacs/packages/utilities/live.ts deleted file mode 100644 index bd8c2a02dd..0000000000 --- a/TeXmacs/packages/utilities/live.ts +++ /dev/null @@ -1,40 +0,0 @@ - - - - -<\body> - - - - <\src-purpose> - Live documents - - - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - > - - - - - - <\active*> - <\src-comment> - Mirrors - - - - |locus-color|preserve|>||live-notify>|>>|>|document>|>||>>>>>> - - -<\initial> - <\collection> - - - \ No newline at end of file diff --git a/TeXmacs/progs/generic/document-style.scm b/TeXmacs/progs/generic/document-style.scm index 9de85fd167..18cb807bec 100644 --- a/TeXmacs/progs/generic/document-style.scm +++ b/TeXmacs/progs/generic/document-style.scm @@ -339,8 +339,6 @@ ("old-seminar" "Former style for overhead projector presentations") ("bibliography" "Style for editing bibliographic data files") - ("email" "Style for writing and reading emails") - ("mailbox" "Style for displaying mailboxes") ) ;define-table (define-table style-synopsis diff --git a/TeXmacs/styles/test/email.ts b/TeXmacs/styles/test/email.ts deleted file mode 100644 index 5882f457cd..0000000000 --- a/TeXmacs/styles/test/email.ts +++ /dev/null @@ -1,58 +0,0 @@ - - - - -<\body> - <\active*> - <\src-title> - - - <\src-purpose> - Style for emails - - - <\src-copyright|2012> - Joris van der Hoeven - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - - - - - - - - - - - <\surround||> - <\with|font-family|rm|par-mode|left> - - - - > - - |||||||||>>> - - - <\surround||> - <\verbatim> - - - - > - - \; - - -<\initial> - <\collection> - - - \ No newline at end of file diff --git a/TeXmacs/styles/test/mailbox.ts b/TeXmacs/styles/test/mailbox.ts deleted file mode 100644 index b2519729df..0000000000 --- a/TeXmacs/styles/test/mailbox.ts +++ /dev/null @@ -1,40 +0,0 @@ - - - - -<\body> - <\active*> - <\src-title> - - - <\src-purpose> - Style for mailboxes - - - <\src-copyright|2012> - Joris van der Hoeven - - - <\src-license> - This software falls under the . It comes WITHOUT ANY - WARRANTY WHATSOEVER. You should have received a copy of the license - which the software. If not, see . - - - - - - - - - - - \; - - -<\initial> - <\collection> - - - \ No newline at end of file diff --git a/devel/1291.md b/devel/1291.md new file mode 100644 index 0000000000..2ae246b563 --- /dev/null +++ b/devel/1291.md @@ -0,0 +1,42 @@ +# [1291] 移除不再使用的样式包 + +## 1 相关文档 +- [dddd.md](dddd.md) - 任务文档模板 + +## 2 任务相关的代码文件 +- `TeXmacs/packages/customize/encryption/gpg-info-level-detailed.ts` +- `TeXmacs/packages/customize/encryption/gpg-info-level-none.ts` +- `TeXmacs/packages/customize/encryption/gpg-info-level-short.ts` +- `TeXmacs/packages/miscellaneous/chat.ts` +- `TeXmacs/packages/miscellaneous/docoq.ts` +- `TeXmacs/packages/miscellaneous/live-document.ts` +- `TeXmacs/packages/utilities/chat-room.ts` +- `TeXmacs/packages/utilities/live.ts` +- `TeXmacs/styles/test/email.ts` +- `TeXmacs/styles/test/mailbox.ts` +- `TeXmacs/progs/generic/document-style.scm` + +## 3 如何测试 + +纯样式包清理与死代码移除,无需专门测试。 + +## 4 如何提交 + +```bash +gf fmt --changed-since=main +``` + +## 5 What +清理并移除项目中历史遗留且已不再使用的样式包及测试样式文件: +1. 移除 GPG 加密相关的无用样式包:`gpg-info-level-none.ts`、`gpg-info-level-short.ts`、`gpg-info-level-detailed.ts`; +2. 移除旧协作/聊天相关废弃包:`chat.ts`、`chat-room.ts`、`live.ts`、`live-document.ts`、`docoq.ts`; +3. 移除邮件与邮箱相关废弃样式文件:`email.ts`、`mailbox.ts`; +4. 清理 `TeXmacs/progs/generic/document-style.scm` 中 `style-synopsis` 对应 `email` 与 `mailbox` 的简介条目。 + +## 6 Why +这些样式包与样式文件为早期历史实验性功能遗留产物(如旧版聊天房间、实时协作实验、未使用的 GPG 信息级别、邮件/邮箱查看样式等)。在当前的 Mogan 代码库中已无任何引用和使用场景,属于死代码。及时清理可以精简包目录结构,降低维护负担。 + +## 7 How +1. 使用 `git rm` 删除不再使用的 `.ts` 文件; +2. 从 `TeXmacs/progs/generic/document-style.scm` 的 `style-synopsis` 映射表中删除 `"email"` 和 `"mailbox"` 描述项; +3. 运行 `gf fmt --changed-since=main` 确保代码格式规范。