[NTG-context] Database of translations (was: Simple question)

2022-05-10 Thread Marco Patzer via ntg-context
On Tue, 10 May 2022 00:15:30 +0200 Gerben Wierda via ntg-context wrote: > What is the easiest way to have a ‘database’ of translations for > strings and maybe links? Here's an idea: \usemodule [translate] %% \mainlanguage [nl] \assigntranslation [en=alpha, nl=beta]\to\TRfoo \translateinput

[NTG-context] database module: the first letter is lost

2014-06-25 Thread Michael Green
This appears to be the same as the problem Peter Münster found with the letter module \usemodule[database] \defineseparatedlist[MyTable] [separator=tab, before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] \starttext The first letter of

Re: [NTG-context] database module: the first letter is lost

2014-06-25 Thread Hans Hagen
On 6/25/2014 7:21 PM, Michael Green wrote: This appears to be the same as the problem Peter Münster found with the letter module \usemodule[database] \defineseparatedlist[MyTable] [separator=tab, before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR,

Re: [NTG-context] database module: the first letter is lost

2014-06-25 Thread Wolfgang Schuster
Am 25.06.2014 um 21:44 schrieb Hans Hagen pra...@wxs.nl: On 6/25/2014 7:21 PM, Michael Green wrote: This appears to be the same as the problem Peter Münster found with the letter module \usemodule[database] \defineseparatedlist[MyTable] [separator=tab,

Re: [NTG-context] database module: the first letter is lost

2014-06-25 Thread Hans Hagen
On 6/25/2014 11:13 PM, Wolfgang Schuster wrote: Am 25.06.2014 um 21:44 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 6/25/2014 7:21 PM, Michael Green wrote: This appears to be the same as the problem Peter Münster found with the letter module \usemodule[database]

Re: [NTG-context] database module: the first letter is lost

2014-06-25 Thread Aditya Mahajan
On Thu, 26 Jun 2014, Hans Hagen wrote: but I’m interested what’s the purpose of the fifth argument for \buff_start_indeed. that was wrong; the pickup macro has a fifth argument (\plusone here) but goes unnoticed when you add \obeylines in which case the first 'obeyedline' ended up in #5

Re: [NTG-context] database module: the first letter is lost

2014-06-25 Thread Rik Kabel
On 2014-06-25 19:04, Hans Hagen wrote: On 6/25/2014 11:13 PM, Wolfgang Schuster wrote: Am 25.06.2014 um 21:44 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 6/25/2014 7:21 PM, Michael Green wrote: This appears to be the same as the problem Peter Münster found with the letter

Re: [NTG-context] database module: the first letter is lost

2014-06-25 Thread Aditya Mahajan
On Wed, 25 Jun 2014, Rik Kabel wrote: As I wrote before, I do not have a way to more extensively test the other effects of the change. Since this affects grabbuffer, it will also affect the filter module. I have an extensive set of tests for the filter module

Re: [NTG-context] database module: the first letter is lost

2014-06-25 Thread Wolfgang Schuster
Am 26.06.2014 um 01:19 schrieb Rik Kabel cont...@rik.users.panix.com: Adding \obeylines as Wolfgang indicated did not resolve the issue with my test case (shortened below), while removing #5 as Hans suggested does resolve it. There is a difference between \startFOO … \stopFOO and

Re: [NTG-context] database module: the first letter is lost

2014-06-25 Thread Rik Kabel
On 2014-06-25 19:34, Wolfgang Schuster wrote: Am 26.06.2014 um 01:19 schrieb Rik Kabel cont...@rik.users.panix.com: Adding \obeylines as Wolfgang indicated did not resolve the issue with my test case (shortened below), while removing #5 as Hans suggested does resolve it. There is a

Re: [NTG-context] Database module: asciimode and escapechar

2013-06-10 Thread Hans Hagen
On 6/8/2013 8:04 PM, Wolfgang Schuster wrote: Hi, there are another things that need to be fixed with the database module. 1. The quotechar character appears in the output. 2. The \asciimode command is ignored. in next upload -

[NTG-context] Database module: asciimode and escapechar

2013-06-08 Thread Wolfgang Schuster
Hi, there are another things that need to be fixed with the database module. 1. The quotechar character appears in the output. 2. The \asciimode command is ignored. \usemodule[database] \define[2]\TestCommand {Currency: #1, Value: #2 \par} \startbuffer[testdata] Euro,€ 100 Dollar,\$ 300

[NTG-context] Database module and command key

2013-06-04 Thread Wolfgang Schuster
Hi Hans, why has the meaning of the command key changed in MkIV? In MkII you can define a command which has as many argument as entries in the list. % engine=pdftex \usemodule[database] \starttext \define[3]\TestCommand{\ruledhbox{#1:#2:#3}}

Re: [NTG-context] Database module and command key

2013-06-04 Thread Hans Hagen
On 6/4/2013 6:07 PM, Wolfgang Schuster wrote: Hi Hans, why has the meaning of the command key changed in MkIV? Probably because it went unnoticed (I'm not using it myself). You can patch this: if j == 1 then context(command)

[NTG-context] Database module gives an error

2012-07-25 Thread Rogers, Michael K
There is an example of an address label in Mojca'shttp://dl.contextgarden.net/myway/csv.pdf that throws an error in the current beta. I changed \def\SendMe to \unexpanded\def.. which fixed one error. But now I get the following. Can it be fixed? \usemodule[database]

Re: [NTG-context] Database module gives an error

2012-07-25 Thread Wolfgang Schuster
Am 25.07.2012 um 17:13 schrieb Rogers, Michael K: There is an example of an address label in Mojca'shttp://dl.contextgarden.net/myway/csv.pdf that throws an error in the current beta. I changed \def\SendMe to \unexpanded\def.. which fixed one error. But now I get the following. Can it

[NTG-context] database module

2010-11-17 Thread Andreas Harder
Hi all, the database module don't seem to work as expected. I've tried an example from m-database.mkiv, no pdf is produced, or did I miss something? \usemodule[database] \starttext \defineseparatedlist [CSV] [separator={,}, before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR,

Re: [NTG-context] database module

2010-11-17 Thread Taco Hoekwater
On 11/17/2010 12:29 PM, Andreas Harder wrote: Hi all, the database module don't seem to work as expected. I've tried an example from m-database.mkiv, no pdf is produced, or did I miss something? Same here. Adding a single \eTABLE after \stopCSV makes the last line of the CSV appear in a PDF

Re: [NTG-context] database module

2010-11-17 Thread Hans Hagen
On 17-11-2010 2:18, Taco Hoekwater wrote: On 11/17/2010 12:29 PM, Andreas Harder wrote: Hi all, the database module don't seem to work as expected. I've tried an example from m-database.mkiv, no pdf is produced, or did I miss something? Same here. Adding a single \eTABLE after \stopCSV makes

Re: [NTG-context] database

2007-01-23 Thread Mojca Miklavec
On 1/23/07, Wolfgang Werners-Lucchini wrote: Hallo! I tried some examples with m-database and Mojca's 'My Way' and had some problems ==Example-1=== \defineseparatedlist[NaturalTable][separator=comma,%quotechar={},