Skip to content

Compression of punctuation marks at line end is not work in simple linebreak mode #3743

Closed

Description

@Jocs

Description

Acording to Compression of punctuation marks at line start or line end in W3C:Requirements for Chinese Text Layout

According to section 5.1.10 of the General Rules for Punctuation (GB/T 15834—2011), when a full-width punctuation character appears at the end of a line, it SHALL be trimmed to half-width.

But the punctuation at line end is not compressed when in simple linebreak mode.

截屏2024-03-21 11 48 17

The last 。 need to be compressed in the first line.

Reproduction URL

https://typst.app/project/rRsNaXqWFHfMXRYhTEiybG

Operating system

macOS

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Mar 21, 2024
  2. peng1999 commented on Mar 23, 2024

    @peng1999
    Contributor

    This is essentially the same as issue #2348

  3. Enivex commented on Mar 24, 2024

    @Enivex
    Collaborator

    This is essentially the same as issue #2348

    Are you saying this one should be closed?

  4. peng1999 commented on Mar 25, 2024

    @peng1999
    Contributor

    Are you saying this one should be closed?

    #2348 and #3743 are not duplicate, because one is about line start, and the other is about line end. But both can be closed by #3744.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions