Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contextual .case punctuation should take effect only in-between figures #648

Closed
HolgerGerhardt opened this issue Nov 25, 2023 · 2 comments
Closed
Assignees
Labels
bug Something that is now the way it's supposed to be technical About a technical aspect like font file format details

Comments

@HolgerGerhardt
Copy link

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
Contextual alternates

Environment

@HolgerGerhardt
Copy link
Author

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>
    <link rel="stylesheet" href="inter.css">
  </head>
  <body>
    <span style="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<span style="color: gray;">:</span>2. 1&#8239;:&#8239;<b>2</b>.
      <i>1</i>&#8239;:&#8239;2. <i>1</i>&#8239;:&#8239;<b>2</b>. <b>1</b>&#8239;:&#8239;<b>2</b>.
      <b>1</b>&#8239;<span style="color: gray;">:</span>&#8239;<b>2</b>.
    </span>
    <br>
    <span style="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<span style="color: gray;">:</span>2. 1&#8239;:&#8239;<b>2</b>.
      <i>1</i>&#8239;:&#8239;2. <i>1</i>&#8239;:&#8239;<b>2</b>. <b>1</b>&#8239;:&#8239;<b>2</b>.
      <b>1</b>&#8239;<span style="color: gray;">:</span>&#8239;<b>2</b>.
    </span>
  </body>
</html>

This is the output (identical across Chrome, Firefox, and Safari):

Inter-colon

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.

@rsms rsms added bug Something that is now the way it's supposed to be technical About a technical aspect like font file format details labels Mar 23, 2024
@rsms rsms 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 Mar 23, 2024
@rsms rsms closed this as completed in aa71d61 Mar 25, 2024
@rsms
Copy link
Owner

rsms commented Mar 25, 2024

After aa71d61:

For your example @HolgerGerhardt, see last row

@rsms rsms self-assigned this Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is now the way it's supposed to be technical About a technical aspect like font file format details
Projects
None yet
Development

No branches or pull requests

2 participants