Path: blob/main/src/resources/schema/document-language.yml
12921 views
- name: lang1schema: string2description:3short: Identifies the main language of the document (e.g. `en` or `en-GB`).4long: |5Identifies the main language of the document using IETF language tags6(following the [BCP 47](https://www.rfc-editor.org/info/bcp47) standard),7such as `en` or `en-GB`. The [Language subtag lookup](https://r12a.github.io/app-subtags/)8tool can look up or verify these tags.910This affects most formats, and controls hyphenation11in PDF output when using LaTeX (through [`babel`](https://ctan.org/pkg/babel)12and [`polyglossia`](https://ctan.org/pkg/polyglossia)) or ConTeXt.1314- name: language15schema:16anyOf:17- path18- object19description: YAML file containing custom language translations2021- name: shorthands22tags:23formats: [pdf, beamer]24schema: boolean25default: false26description:27short: Enable babel language-specific shorthands in LaTeX output.28long: |29Enable babel language-specific shorthands in LaTeX output. When `true`,30babel's language shortcuts are enabled (e.g., French `<<`/`>>` for guillemets,31German `"` shortcuts, proper spacing around French punctuation).3233Default is `false` because language shorthands can interfere with code blocks34and other content. Only enable if you need specific typographic features35for your language.3637- name: dir38schema:39enum: [rtl, ltr]40description:41short: The base script direction for the document (`rtl` or `ltr`).42long: |43The base script direction for the document (`rtl` or `ltr`).4445For bidirectional documents, native pandoc `span`s and46`div`s with the `dir` attribute can47be used to override the base direction in some output48formats. This may not always be necessary if the final49renderer (e.g. the browser, when generating HTML) supports50the [Unicode Bidirectional Algorithm].5152When using LaTeX for bidirectional documents, only the53`xelatex` engine is fully supported (use54`--pdf-engine=xelatex`).555657