lambdoc
lambdoc copied to clipboard
language tags support
lambcmd
already supports specifying the languages via -l
, however it doesn't set the document's lang
attribute.
For automatic hyphenation to be turned on (via CSS) and work correctly the following should happen:
- the root
<html>
tag should have alang
attribute, defaulting to the language specified by-l
. This would define the language of the whole document, the language of references, captions, etc. - locally change the
lang
for certain blocks, for example showing a french quote in an otherwise english document would need thelang
tag set to french for that part so that hyphenation would work correctly
Proposed syntax:
\lang{en} -- for setting whole document's language
\p<lang=fr>{Some french text}