Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion TeXmacs/plugins/lang/dic/en_US/zh_CN.scm
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@
("help" "帮助")
("here" "这里")
("hidden" "隐藏")
("Sub-level separator" "当前节的下一层级的分隔符")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 中文翻译与文档不一致

"Sub-level separator" 的翻译为 "当前节的下一层级的分隔符",但 devel/222_64.md 第 5.3 节的翻译验证表中列出的预期翻译为:

Sub-level separator -> 子层级分隔符

同一 PR 内两处描述不一致,建议统一。

Suggested change
("Sub-level separator" "当前节的下一层级的分隔符")
("Sub-level separator" "子层级分隔符")

("High resolution screen settings" "高分屏设置")
("high resolution settings" "高分屏设置")
("highlight errors" "高亮错误")
Expand Down Expand Up @@ -1551,6 +1552,7 @@
("number of subunit steps" "子单元步数")
("number" "")
("number style" "编号样式")
("Number-title separator" "当前节的分割符")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 中文翻译与文档/PR描述不一致

"Number-title separator" 的翻译被设置为 "当前节的分割符",但 PR 描述明确说明应为 "编号与标题间隔符号"devel/222_64.md 第 5.3 节的翻译验证表也确认:

Number-title separator -> 编号与标题间隔符号

此外,"分割符"(表示"切割/分裂")是不标准的用法,正确的术语是"分隔符"(表示"分隔/间隔"),与文件中其他地方保持一致。

Suggested change
("Number-title separator" "当前节的分割符")
("Number-title separator" "编号与标题间隔符号")

("numbered equation" "")
("numbered equations" "")
("numbered" "编号")
Expand Down Expand Up @@ -1751,7 +1753,6 @@
("preamble" "")
("preferences for tag" "全局设置")
("preferences" "首选项")
("Prefix separator" "前缀分隔符")
("Prepend chapter number prefix for section numbers" "节编号显示章编号的前缀")
("presentation mode" "演讲模式")
("presentation tag" "外观标记")
Expand Down
17 changes: 7 additions & 10 deletions TeXmacs/progs/text/text-menu.scm
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,7 @@

(tm-define (section-prefix-sep-var t)
(with l (tree-label t)
(cond ((== l 'chapter) "chapter-prefix-sep")
((== l 'section) "section-prefix-sep")
(cond ((== l 'section) "section-prefix-sep")
((== l 'subsection) "subsection-prefix-sep")
((== l 'subsubsection) "subsubsection-prefix-sep")
(else #f))))
Expand Down Expand Up @@ -1047,9 +1046,8 @@
((check "-" "v" (== (safe-init-env sep-var) "-"))
(init-env sep-var "-"))
((check "space" "v" (== (safe-init-env sep-var) " "))
(init-env sep-var " "))
((check "none" "v" (== (safe-init-env sep-var) ""))
(init-env sep-var "")))))
(init-env sep-var " "))))
) ;menu-bind

(menu-bind section-prefix-sep-menu
(with prefix-sep-var (section-prefix-sep-var (focus-tree))
Expand All @@ -1061,9 +1059,8 @@
((check "-" "v" (== (safe-init-env prefix-sep-var) "-"))
(init-env prefix-sep-var "-"))
((check "space" "v" (== (safe-init-env prefix-sep-var) " "))
(init-env prefix-sep-var " "))
((check "none" "v" (== (safe-init-env prefix-sep-var) ""))
(init-env prefix-sep-var "")))))
(init-env prefix-sep-var " "))))
) ;menu-bind

(tm-menu (focus-preferences-menu t)
(:require (section-context? t))
Expand Down Expand Up @@ -1097,11 +1094,11 @@
---))
(with sep-var (section-sep-var t)
(if sep-var
(-> "Separator" (link section-sep-menu))
(-> "Number-title separator" (link section-sep-menu))
---))
(with prefix-sep-var (section-prefix-sep-var t)
(if prefix-sep-var
(-> "Prefix separator" (link section-prefix-sep-menu))
(-> "Sub-level separator" (link section-prefix-sep-menu))
---))
(dynamic (focus-tag-edit-menu (tree-label t))))

Expand Down
16 changes: 9 additions & 7 deletions devel/222_64.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@

### 二、编号分隔符设置测试

#### 2.1 章节编号后分隔符 (section-sep)
#### 2.1 编号与标题间隔符号 (section-sep)
- `.` - 预期显示:1. 标题
- `、` - 预期显示:一、标题
- `-` - 预期显示:1- 标题
- `space` - 预期显示:1 标题
- `none` - 预期显示:1标题

#### 2.2 章节前缀分隔符 (prefix-sep)
#### 2.2 多级编号前缀间隔符号 (prefix-sep)
当 `sectional-short-style` 为 `false` 时测试:
- `.` - 预期显示:1.1. 标题
- `、` - 预期显示:一、一、标题
Expand All @@ -64,7 +64,7 @@

**测试步骤:**
1. 插入 section/subsection
2. 点击小扳手 → "Separator" / "Prefix separator"
2. 点击小扳手 → "Number-title separator" / "Sub-level separator"
3. 选择不同分隔符,观察变化

---
Expand Down Expand Up @@ -124,8 +124,8 @@

#### 5.1 菜单结构
- "Number style" 显示为子菜单(→)
- "Separator" 显示为子菜单(→)
- "Prefix separator" 显示为子菜单(→)
- "Number-title separator" 显示为子菜单(→)
- "Sub-level separator" 显示为子菜单(→)

#### 5.2 不可用选项隐藏
- 无编号章节(chapter*/section*等)不显示编号相关选项
Expand All @@ -135,9 +135,9 @@
#### 5.3 翻译验证
- preferences for tag -> 全局设置
- rendering options for tag -> 局部设置
- Prefix separator -> 前缀分隔符
- Number-title separator -> 编号与标题间隔符号
- Sub-level separator -> 子层级分隔符
- Section prefix -> 节前缀
- separator -> 分隔符
- Title style -> 标题样式
- Prepend chapter number prefix for section numbers -> 节编号显示章编号的前缀
- chapter numbering -> 全局章编号
Expand Down Expand Up @@ -206,6 +206,8 @@

---

### 2026/04/01 优化间隔符相关表述

### 2026/04/01
- 添加章节编号显示/隐藏功能(section-display-numbers)
- 支持 chapter/section/subsection/subsubsubsection/paragraph/subparagraph
Expand Down