[0633] 修复在 Bbb (\mathbb) 字体下输入数字变成奇怪符号的问题#3598
Open
JackYansongLi wants to merge 2 commits into
Open
Conversation
8aaed1a to
9ccfbfa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
根据 task 0633 修复在 Bbb 字体下输入数字变为乱码符号的问题。本 PR 修改了
fonts-ec.scm中Bbb的文本模式字体映射(由tex msbm改为math-capital msbm),使其在遇到非大写字母/数字时可以完美安全地降级到常规 fallback 字体上,实现与\mathbf后输入数字一致的普通粗体/罗马数字效果(避免直接渲染msbm对应的 ASCII 49 处的乱码符号)。本 PR 100% 保持了 C++ 和 Scheme 键盘映射latex-kbd.scm的原生纯净状态,避免了 LaTeX 导出与宏未定义的任何副作用,且无需任何 C++ 编译时间。