Skip to content

[1131] 添加 stem 格式(等价于 ts,Scheme S-expression 存储)#3857

Merged
da-liii merged 8 commits into
mainfrom
da/1131/stem
Jun 29, 2026
Merged

[1131] 添加 stem 格式(等价于 ts,Scheme S-expression 存储)#3857
da-liii merged 8 commits into
mainfrom
da/1131/stem

Conversation

@da-liii

@da-liii da-liii commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 新增 stem 文件格式,语义等价于 ts,使用 UTF-8 编码的 Scheme S-expression 持久化。
  • 新增格式插件 TeXmacs/plugins/stem/progs/data/stem.scm,复用 stm 序列化并做 herk-tree/utf8-tree 转码。
  • 在可信格式/自动备份白名单、菜单隐藏、new_buffer.cppattach_subformat、文件打开对话框中加入 stem
  • 修复 Scheme 解析器 moebius/moebius/data/scheme_der.cpp) ;comment 行尾注释的处理,避免插入空字符串子节点。
  • python.ts 为试点生成 python.stem,并新增等价性测试。

Test plan

  • xmake b stem 构建通过
  • xmake r 70_7 通过,format-from-suffix \"stem\" => \"stem\"
  • xmake r stem_python_equiv 通过,python.stempython.ts 解析结果一致
  • 多次 load-buffer python.stem 验证加载后文档非空

🤖 Generated with Claude Code

da-liii and others added 8 commits June 29, 2026 18:19
- devel/1131.md 增加 File -> Open 对话框与 python.stem 说明
- 使用 stem 转换器重新生成 python.stem,修正手动版本结构错误

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
验证 python.stem 与 python.ts 解析结果一致。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@da-liii da-liii merged commit 54812a8 into main Jun 29, 2026
4 checks passed
@da-liii da-liii deleted the da/1131/stem branch June 29, 2026 12:12
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.

1 participant