On 9-5-2010 10:47, Wolfgang Schuster wrote:
Am 06.05.10 22:16, schrieb Hans Hagen:
Also I would like to ask if file lang-spe.mkii have some equivalent in MkIV and where the language specifics are defined (in which file)? Or is it treated in enco files?
in mkiv we don't have (want) language specifics ... why do yoi need them?
languagespecifics are not needed but we need a method to load language dependend setups, e.g. for french you can have in lang-ger
\startsetups [fr] [punctuation]
\setcharacterspacing[frenchpunctuation]
\stopsetups
\startsetups [fr] [itemize]
\setupitemize[symbol=2]
\stopsetups
and in your document you can load them with
\setuplanguage[fr][setups={punctuation,itemize}]
or
\enablelanguagesetups[punctuation,itemize]
indeed setups is the way to go \enablelanguagesetups is somewhat tricky as we then also want to disable them selectively which boils down to either tagging them all internally or let lua deal with sets in which case we need some optimization to prevent redundant calls also, we need the reverse actions then i.e. for german we want to disable the punctuation \startsetups [fr] [punctuation:reset] \resetcharacterspacing \stopsetups and for style changes that's quite some extra code (and adding an extra level of language hashes to each mechanism is also no solution) so, we might distinguish between 'mainlanguage' and local 'language' \startlanguagesetups [fr:punctuation:set] % local language \setcharacterspacing[frenchpunctuation] \stopsetups \startlanguagesetups [fr:punctuation:reset] % local language \resetcharacterspacing \stopsetups \startlanguagesetups [fr:itemize] % mainlanguage \setupitemize[symbol=2] \stopsetups or so ... needs bit of thinking Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------