aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-10-19 23:02:08 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-10-19 23:02:08 -0700
commitb49ab06e9677cba05746f77a66c161603493895c (patch)
tree0a47ab8bbcbd7ac9a17f325d9eb23ddaf5d526b7 /README
parent5062e03a40a755058f88973a9c765db4d5bc7054 (diff)
parentfa2b26ddcb67fe99cc54688dfb4ce27232467b80 (diff)
downloadpandoc-b49ab06e9677cba05746f77a66c161603493895c.tar.gz
Merge pull request #2458 from mb21/lang-inlines
LaTeX and ConTeXt writers: support lang attribute on divs and spans
Diffstat (limited to 'README')
-rw-r--r--README17
1 files changed, 11 insertions, 6 deletions
diff --git a/README b/README
index e58dc6a0f..6f5f90f47 100644
--- a/README
+++ b/README
@@ -1047,12 +1047,21 @@ Language variables
format stored in the additional variables `babel-lang`,
`polyglossia-lang` (LaTeX) and `context-lang` (ConTeXt).
+ Native pandoc `span`s and `div`s with the lang attribute
+ (value in BCP 47) can be used to switch the language in
+ that range.
+
`otherlangs`
: a list of other languages used in the document
in the YAML metadata, according to [BCP 47]. For example:
`otherlangs: [en-GB, fr]`.
- Currently only used by `xelatex` through the generated
- `polyglossia-otherlangs` variable.
+ This is automatically generated from the `lang` attributes
+ in all `span`s and `div`s but can be overriden.
+ Currently only used by LaTeX through the generated
+ `babel-otherlangs` and `polyglossia-otherlangs` variables.
+ The LaTeX writer outputs polyglossia commands in the text but
+ the `babel-newcommands` variable contains mappings for them
+ to the corresponding babel.
`dir`
: the base direction of the document, either `rtl` (right-to-left)
@@ -1065,10 +1074,6 @@ Language variables
(e.g. the browser, when generating HTML) supports the
[Unicode Bidirectional Algorithm].
- LaTeX and ConTeXt assume by default that all text is left-to-right.
- Setting `dir: ltr` enables bidirectional text handling in a document
- whose base direction is left-to-right but contains some right-to-left script.
-
When using LaTeX for bidirectional documents, only the `xelatex` engine
is fully supported (use `--latex-engine=xelatex`).