8000 Support the document language when generating PDFs via LaTeX · Issue #5443 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support the document language when generating PDFs via LaTeX #5443
Closed
@Wandmalfarbe

Description

@Wandmalfarbe

Pandoc already supports the lang variable for setting the document language (following the BCP 47 standard). PDFs can include such a language definition as described in the

One can set the PDF language parameter via the hyperref package with the option pdflang. The W3C page mentions that the PDF language definition has to use the ISO 639 language code but the hyperref documentation states support for RFC 3066 language codes. I don't know much about these standards but the pandoc language code looks quite similar so that we might be able to simply pass it to hyperref like this:

\hypersetup{
  pdflang={$lang$},
}

It also might be trivial to map between codes, should it be necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0