Skip to content

Support hanging-punctuation in the left margin #7231

@ashton314

Description

@ashton314

Description

Punctuation such as quotation marks should hang into the left margin. (See Thinking with Type, Ellen Lupton, 3rd edition, p. 76) The microtype package does this in LaTeX.

Here is the current behavior:

Image

Here is what it looks like with hanging punctuation:

Image

Use Case

This would be useful because hanging punctuation is good in both the left and the right margins. :)


I am sorry if I am submitting this issue to the wrong place—I'm new here. Please point me in the right direction if this is the wrong place. How new I am: I tried out Typst yesterday, fell in love with it, and started work on this feature shortly thereafter. I actually have a mock-up in my fork. It took very little effort to get a hacky version working.

Please let me know where to go with this feature from here. It's working for me in this one little case. If there are tests I need to add, documentation, switches, etc. please let me know and give me a nudge in the right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions