Re: [NTG-context] xml, language, btx problems

2018-06-18 Thread Pablo Rodriguez
On 06/17/2018 10:10 PM, Thomas A. Schmitz wrote: > On 06/17/2018 09:37 PM, Pablo Rodriguez wrote: > [...] > Thank you for your suggestion, Pablo, but this is just a slightly > different syntax to express the same test, this doesn't change anything. > Maybe this document is clearer in explaining m

Re: [NTG-context] xml, language, btx problems

2018-06-18 Thread Thomas A. Schmitz
sometimes you need to do \starttexcode   ... \stoptexcode when inside some special caocode regime (which happens in xml) Hans Hans, thank you - that was the golden hint! It works now as I've always wanted! And I realize once again that I know far less about ConTeXt than I wished and thou

Re: [NTG-context] xml, language, btx problems

2018-06-18 Thread Hans Hagen
On 6/18/2018 12:19 PM, Thomas A. Schmitz wrote: Hi Alan, thanks for joining the discussion! Just to answer your two queries about my setup: On 06/18/2018 12:58 AM, Alan Braslau wrote: Thomas, Why would the definitions need to be loaded before \starttext? The bibliographic data can be loaded

Re: [NTG-context] xml, language, btx problems

2018-06-18 Thread Thomas A. Schmitz
Hi Alan, thanks for joining the discussion! Just to answer your two queries about my setup: On 06/18/2018 12:58 AM, Alan Braslau wrote: Thomas, Why would the definitions need to be loaded before \starttext? The bibliographic data can be loaded independent of any rendering or use definitions.

Re: [NTG-context] xml, language, btx problems

2018-06-17 Thread Alan Braslau
On Sun, 17 Jun 2018 19:52:35 +0200 "Thomas A. Schmitz" wrote: > However, this implies a \starttext. And the btxdefinitions need to be > loaded before \starttext, or so it seems. Thomas, Why would the definitions need to be loaded before \starttext? The bibliographic data can be loaded independ

Re: [NTG-context] xml, language, btx problems

2018-06-17 Thread Wolfgang Schuster
One option is to load your document at the beginning with different setups where you only process the language information. Another option is to put the language dependent options in a setups block and load them when you process the XML file. \startbuffer[test] test \stopbuffer \startxm

Re: [NTG-context] xml, language, btx problems

2018-06-17 Thread Thomas A. Schmitz
On 06/17/2018 09:37 PM, Pablo Rodriguez wrote: Hi Thomas, this may work in your case: \startxmlsetups xml:document \mainlanguage[\xmlatt{#1}{language}] \doifmodeelse{**en} {\usebtxdefinitions [english]} {\usebtxdefinitions [deutsch]} \stopxmlsetups I have just c

Re: [NTG-context] xml, language, btx problems

2018-06-17 Thread Pablo Rodriguez
On 06/17/2018 07:52 PM, Thomas A. Schmitz wrote: > Hi, > > I have a conceptual problem integrating btx into my xml workflow. There > are too many files involved, so no minimal example, but a minimal > description. Root of my xml document: > > > ... > > > I have two files with btx definitions

[NTG-context] xml, language, btx problems

2018-06-17 Thread Thomas A. Schmitz
Hi, I have a conceptual problem integrating btx into my xml workflow. There are too many files involved, so no minimal example, but a minimal description. Root of my xml document: ... I have two files with btx definitions: publ-imp-deutsch.mkvi publ-imp-english.mkvi Loading one of these