You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Contextual .case punctuation should take effect only in-between figures #648
Describe the bug
Contextual alternates (of colon, hyphen, etc.) should not be applied after a figure that is followed by a space and an alphabetical character, like in “Question 1: Please …”
To Reproduce
With contextual alternates active, type something like “Question 2:”.
Expected behavior
Contextual alternates of hyphen, colon, etc. should be applied only in-between figures (like in “11:35 a.m.”). That is, The colon should not be moved upward in cases like “Appendix 3: Additional figures.”
Screenshots
Environment
OS: macOS 13.6.2
Microsoft Word
Version of font: Inter[-Regular, -Bold, -Italic, …] Version 4.000;git-a52131595
I just noticed that the contextual alternate of the colon is also triggered under various circumstances in which one would not expect it to be triggered—and that it is not triggered when it should be.
Here is some HTML code to illustrate this observation:
<html><head><linkrel="stylesheet" href="inter.css"></head><body><spanstyle="font-family: InterDisplay; font-size: 60;">
Test: <i>Test</i>: Test (i): Test (4): Test (<i>i</i>): Test (<i>i</i>): <i>i</i>: Test:<br>
1:2. 1<spanstyle="color: gray;">:</span>2. 1 : <b>2</b>.
<i>1</i> : 2. <i>1</i> : <b>2</b>. <b>1</b> : <b>2</b>.
<b>1</b> <spanstyle="color: gray;">:</span> <b>2</b>.
</span><br><spanstyle="font-family: Inter; font-size: 60;">
Test: <i>Test</i>: Test (i): Test (4): Test (<i>i</i>): Test (<i>i</i>): <i>i</i>: Test:<br>
1:2. 1<spanstyle="color: gray;">:</span>2. 1 : <b>2</b>.
<i>1</i> : 2. <i>1</i> : <b>2</b>. <b>1</b> : <b>2</b>.
<b>1</b> <spanstyle="color: gray;">:</span> <b>2</b>.
</span></body></html>
This is the output (identical across Chrome, Firefox, and Safari):
It shows that also
HTML tags preceding the colon,
numbers in parentheses, and
HTML tags in parentheses
trigger the contextual alternate—but not if followed by another HTML tag.
changed the title [-]Contextual alternates (of colon, hyphen, etc.) should take effect only in-between figures[/-][+]Contextual .case punctuation should take effect only in-between figures[/+]on Mar 23, 2024
Activity
HolgerGerhardt commentedon Dec 2, 2023
I just noticed that the contextual alternate of the colon is also triggered under various circumstances in which one would not expect it to be triggered—and that it is not triggered when it should be.
Here is some HTML code to illustrate this observation:
This is the output (identical across Chrome, Firefox, and Safari):
It shows that also
trigger the contextual alternate—but not if followed by another HTML tag.
[-]Contextual alternates (of colon, hyphen, etc.) should take effect only in-between figures[/-][+]Contextual .case punctuation should take effect only in-between figures[/+]rsms commentedon Mar 25, 2024
After aa71d61:
For your example @HolgerGerhardt, see last row
More constrained calt .case subsitutions. Closes rsms#648