Skip to content

lang: "fr" doesn't manage spaces before punctuation marks #4674

Closed as not planned

Description

@louleke7

Description

French "best practice" of typography requires "tall" punctuation marks (namely ! ? ; and : ) to be preceded by a fine unbreakable space (u202F) instead of a normal one (u0020) (or nothing at all).
Currently, these two examples output the exact same results

This sentence has spaces ; and a semicolon.

This one has an exclamation mark without typing a space before!

It wouldn't look correct in french.

and

#set text(lang: "fr")

This sentence has spaces ; and a semicolon.

This one has an exclamation mark without typing a space before!

It wouldn't look correct in french.

It would be nice if, when having lang set to "fr", such spaces (or lack thereof) are transparently replaced by the "correct" one, e.g. the above code (with lang set to "fr") would output the bottom lines
Capture d’écran_2024-08-04_16-46-36

Use Case

It would be very convenient for french users, having the punctuation mark that looks "correct" without having to input Unicode character via code-point. Modern editing/typesetting software generally handle that automatically.

Issue #4672 prevents a simple use of #show and regexp to fix this easily.

Activity

  1. added
    feature request
    on Aug 4, 2024
  2. Enivex commented on Aug 4, 2024

    @Enivex
    Collaborator

    Duplicate of #1920

    (More or less)

  3. added
    duplicate
    on Aug 4, 2024
  4. Thumuss commented on Aug 4, 2024

    @Thumuss

    Duplicate of #1920

    (More or less)

    It's really not the same because one is unbreakable quote and the other is just an automatic space

  5. Enivex commented on Aug 4, 2024

    @Enivex
    Collaborator

    Duplicate of #1920

    (More or less)

    It's really not the same because one is unbreakable quote and the other is just an automatic space

    See the comment on that issue as well. I don't see a reason to have two separate issues here.

  6. Thumuss commented on Aug 4, 2024

    @Thumuss

    Duplicate of #1920
    (More or less)

    It's really not the same because one is unbreakable quote and the other is just an automatic space

    See the comment on that issue as well. I don't see a reason to have two separate issues here.

    My bad, I get it!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicatefeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions