Skip to content

Use HTML <q> Tag Instead of Curly Quotes for Smart Punctuation #2723

Open
@GiFuJo

Description

@GiFuJo

Problem

Currently, when enabling output.html.smart-punctuation, double quotes in the HTML output are rendered as curly quotes. However, these curly quotes are not appropriate or standard for many languages - as detailed in this overview.

Proposed Solution

Instead of replacing straight double quotes with curly quotes when smart-punctuation is enabled, the renderer should use the HTML <q> tag. This would allow browsers to render quotation marks according to the book's language metadata in book.toml with fallback options to the user's locale or browser language settings.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-HTMLArea: HTML RenderingA-LocalizationArea: Localization, language support, etc.C-enhancementCategory: Enhancement or feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions