Skip to content

Refactor sub- and superscript substitution#5120

Merged
laurmaedje merged 3 commits intotypst:mainfrom
MDLC01:non-typographical-space-shift
Oct 7, 2024
Merged

Refactor sub- and superscript substitution#5120
laurmaedje merged 3 commits intotypst:mainfrom
MDLC01:non-typographical-space-shift

Conversation

@MDLC01
Copy link
Collaborator

@MDLC01 MDLC01 commented Oct 4, 2024

The first commit contains some minor code quality improvements.

The second commit fixes #5112.

@laurmaedje
Copy link
Member

If I understand correctly, this will disable typographic superscripts completely if there's a space, right? That's kind of unfortunate considering the space doesn't really need a separate glyph to be shrinkable.

@MDLC01
Copy link
Collaborator Author

MDLC01 commented Oct 7, 2024

Indeed. There was more discussion on Discord on whether the typographic script feature even makes sense. I can revert the second commit and keep only the code quality improvements if you want (or close the PR completely).

@laurmaedje
Copy link
Member

We can keep the code quality improvements and discuss the rest for 0.13.

This reverts commit fb7b41b.
@MDLC01
Copy link
Collaborator Author

MDLC01 commented Oct 7, 2024

Done

@laurmaedje laurmaedje changed the title Do not consider regular space as superscript / subscript space Refactor sub- and superscript substitution Oct 7, 2024
@laurmaedje laurmaedje added this pull request to the merge queue Oct 7, 2024
@laurmaedje
Copy link
Member

Thanks!

Merged via the queue into typst:main with commit 142c9df Oct 7, 2024
@MDLC01 MDLC01 deleted the non-typographical-space-shift branch October 7, 2024 11:47
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.

Typographic superscript / subscript spaces are too large

2 participants