Skip to content

Conversation

@rocky
Copy link
Member

@rocky rocky commented Feb 3, 2026

Don't hardcode unicode-symbols. Also, op-tables.json -> character-tables.json since that's what it is.

Also op-tables.json -> character-tables.json since that's what it is.
@rocky rocky requested a review from mmatera February 3, 2026 02:29
sup_string = self.superindex.get_string_value()
# Handle derivatives
if sup_string == "\u2032":
if sup_string == named_characters["LeftDoubleBracket"]:
Copy link
Contributor

@mmatera mmatera Feb 3, 2026

Choose a reason for hiding this comment

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

This is not "\[LeftDoubleBracket]" but "\[Prime]" (the derivative, see comment above)

(
String("\u301A"),
String("\u301B"),
String(named_characters["LeftDoubleBracket"]),
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes a lot of sense, thanks!

if sup_string == named_characters["LeftDoubleBracket"]:
return "%s'" % tex1
if sup_string == "\u2032\u2032":
if sup_string == named_characters["LeftDoubleBracket"] * 2:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is This is not "\[LeftDoubleBracket]\[LeftDoubleBracket]" but "\[Prime]\[Prime]" (the derivative, see comment above)

Copy link
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

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

Besides the two wrong names, LGTM

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