lambdoc icon indicating copy to clipboard operation
lambdoc copied to clipboard

language tags support

Open edwintorok opened this issue 10 years ago • 0 comments

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}

edwintorok avatar Oct 12 '14 16:10 edwintorok