Skip to content

Add the U+2006 forms of lim sup, lim inf, inj lim and proj lim to FunctionNames - #1062

Merged
NSoiffer merged 1 commit into
daisy:mainfrom
yasumorishima:ja-fn-thinspace-v2
Nov 20, 2026
Merged

NSoiffer merged 1 commit into
daisy:mainfrom
yasumorishima:ja-fn-thinspace-v2

Conversation

@yasumorishima

Copy link
Copy Markdown
Contributor

MathJax (v2 and v3/v4) builds \limsup, \liminf, \injlim and \projlim as an mo whose text has U+2006 between the words, such as lim sup, because its NamedOp replaces   with U+2006. FunctionNames in Rules/definitions.yaml has limsup, liminf, injlim and projlim, and inj lim and proj lim with an ordinary space, but canonicalize looks the text up as it is, so this mo is not taken as a function name and the U+2061 after it is spoken: ja reads lim sup (n→∞) a_n as じょう極限 n 近づく 無限大; オブ エー 下付き n, and en pauses with ; where it uses , for limsup. This adds the four U+2006 forms to the list and to the copy of it in es/definitions.yaml. With that, the MathJax lim sup and lim inf read the same as limsup and liminf in every language I ran under SimpleSpeak and ClearSpeak (zz errors on these inputs before and after), and in UEB the U+2006 form of inj lim gets the same braille as inj lim with a space instead of being wrapped in a grouping. In de, hu, ja and zh the U+2006 form of inj lim or proj lim still gets one more pause than the form with a space; I left that alone. #1007 also edits these lines of es/definitions.yaml (it adds lim inf and lim sup with an ordinary space and with U+2009), so the two will conflict there and both changes should be kept; the mo from MathJax has U+2006, not U+2009, so the U+2006 forms are still needed after #1007. A new ja test uses the MathJax form and fails without the two YAML lines. All tests pass and audit-translations ja is unchanged.

…ctionNames

MathJax (v2 and v3/v4) builds \limsup, \liminf, \injlim and \projlim as an
mo whose text has U+2006 between the words, for example lim sup (its
NamedOp replaces   with U+2006). FunctionNames only had limsup,
liminf, injlim, projlim and the forms with an ordinary space, and
canonicalize looks the text up as it is, so the mo was not taken as a
function name and the U+2061 after it was spoken (ja read "じょう極限 n
近づく 無限大; オブ エー 下付き n"). The four U+2006 forms are added to
Rules/definitions.yaml and to the copy of the list in es/definitions.yaml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PxieeRFv9dVLwANrAM6oHt
@github-actions

Copy link
Copy Markdown
Contributor
Linux library size: 0.60 MiB (0.00%)
Revision Release liblibmathcat.so
Base (13a8b9b) 0.60 MiB (625,032 bytes)
PR (41160c3) 0.60 MiB (625,032 bytes)
Change 0 bytes (0.00%)

Built with default features, Rust 1.96.0, and Ubuntu 24.04. Workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants