Skip to content

[201_56] 优化tab cycling并增添数学菜单\mathscr字母#2589

Merged
AXeonV merged 3 commits intomainfrom
ty/011602
Jan 16, 2026
Merged

[201_56] 优化tab cycling并增添数学菜单\mathscr字母#2589
AXeonV merged 3 commits intomainfrom
ty/011602

Conversation

@AXeonV
Copy link
Contributor

@AXeonV AXeonV commented Jan 16, 2026

[201_56] 优化tab cycling并增添数学菜单\mathscr字母

如何测试

  • Part I
    1. 进入数学模式,顶部 math menu 多了一个花写字母
    2. 光标放在这个字母上,显示描述"插入手字母 (\mathscr)",另外在其他字体的描述后加入了"(\mathcal)" "(\mathfrak)" "(\mathbbb)",使用户体验更清晰
    3. 点击这个字母,应该有花写字母的选项,光标放在某一字母上应该提示快捷键,并且点击可以插入正确的花写字母(与tab cycling插入的一致)
  • Part II
    1. 进入数学模式,测试 tab cycling
    2. 键入 a a tab 进入 tab cycling,删除了原先的第二个候选项目(cal字体的a)。现在的双小写字母tab应该只有5个候选项,双大写字母有7个
    3. 以此类推,键入 b b tab ~ z z tab,每个字母的候选项数目正确且插入功能没有问题

2026/1/16

What

  1. tab cycling中小写字母的cal字体不常用,且字体选择和显示不正确
  2. 数学模式菜单中缺少\mathscr花体字母

How

  1. 删除tab cycling中小写字母的cal字体选项
  2. 在数学模式菜单中添加\mathscr花体字母选项,并添加相关注册和翻译。改动文件有:
    • TeXmacs/progs/math/math-kbd.scm
    • TeXmacs/progs/math/math-menu.scm
    • TeXmacs/progs/texmacs/keyboard/prefix-kbd.scm
    • TeXmacs/plugins/lang/dic/en_US/zh_CN.scm

Copilot AI review requested due to automatic review settings January 16, 2026 06:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request optimizes tab cycling for lowercase mathematical letters and adds \mathscr script character support to the math menu. The changes remove the less commonly used calligraphic font option from lowercase letter tab cycling (reducing options from 6 to 5 for lowercase, while keeping 7 for uppercase), and introduce a new script character font option accessible through the math menu with keyboard shortcuts and tooltips.

Changes:

  • Removed <cal-a> through <cal-z> from tab cycling sequences for lowercase letters
  • Added new math:calstar command with F8 keyboard shortcut (shifting math:frak to F9)
  • Added cal-star-menu with script characters and integrated it into the math insert icons
  • Enhanced tooltip descriptions with LaTeX command references (\mathcal, \mathscr, \mathfrak, \mathbbm)

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
devel/201_56.md Documentation for the feature changes and testing instructions
TeXmacs/progs/math/math-kbd.scm Added math:calstar keyboard bindings for all letters and removed calligraphic options from lowercase tab cycling
TeXmacs/progs/math/math-menu.scm Added cal-star-menu definition and menu item with icon, updated tooltips with LaTeX command names
TeXmacs/progs/texmacs/keyboard/prefix-kbd.scm Registered math:calstar command with F8 shortcut, shifted fraktur to F9
TeXmacs/plugins/lang/dic/en_US/zh_CN.scm Added Chinese translation for "insert a script character"
TeXmacs/misc/pixmaps/liii/20x20/mode/tm_calstar.svg New icon for script character menu button

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AXeonV AXeonV merged commit 03f7df8 into main Jan 16, 2026
6 checks passed
@AXeonV AXeonV deleted the ty/011602 branch January 16, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants