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 a lang 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 the lang 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}
lambcmd
already supports specifying the languages via-l
, however it doesn't set the document'slang
attribute. For automatic hyphenation to be turned on (via CSS) and work correctly the following should happen:<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.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 correctlyProposed syntax: