[NTG-context] lpeg substitution

2009-08-11 Thread Thomas A. Schmitz
Hi all, I'm working on my Greek module again and am trying to filter and massage the input via lpeg, but there's something I don't quite get. As a minimal example: suppose I want to substitute A and B in my input with X and leave all other letters alone. Here's my attempt: \startluacode

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Hans Hagen
Thomas A. Schmitz wrote: Hi all, I'm working on my Greek module again and am trying to filter and massage the input via lpeg, but there's something I don't quite get. As a minimal example: suppose I want to substitute A and B in my input with X and leave all other letters alone. Here's my

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Thomas A. Schmitz
On Aug 11, 2009, at 12:59 PM, Hans Hagen wrote: Thomas A. Schmitz wrote: Hi all, I'm working on my Greek module again and am trying to filter and massage the input via lpeg, but there's something I don't quite get. As a minimal example: suppose I want to substitute A and B in my input

Re: [NTG-context] git repository

2009-08-11 Thread Matthijs Kooijman
Hi Patrick, I don't know if you have noticed that the git repository has been replaced by a newer one. I'm surprised that there is even a git repository at all. On the wiki and all documents I've seen so far, there is only talk about rsyncing from an ftp, git is never mentioned. However,

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Hans Hagen
Thomas A. Schmitz wrote: On Aug 11, 2009, at 12:59 PM, Hans Hagen wrote: Thomas A. Schmitz wrote: Hi all, I'm working on my Greek module again and am trying to filter and massage the input via lpeg, but there's something I don't quite get. As a minimal example: suppose I want to substitute

Re: [NTG-context] git repository

2009-08-11 Thread Hans Hagen
Matthijs Kooijman wrote: Hi Patrick, I don't know if you have noticed that the git repository has been replaced by a newer one. I'm surprised that there is even a git repository at all. On the wiki and all documents I've seen so far, there is only talk about rsyncing from an ftp, git is

Re: [NTG-context] git repository

2009-08-11 Thread Matthijs Kooijman
well, such messages would not help much unless they would be detailed (and then should be done for each file); as i work on all files at the same time it would cost me way to much time and it gains me nothing; looking at the diff in a git gui is more informative A git commit contains

[NTG-context] loop textext and \MPstring{… }

2009-08-11 Thread Andreas Harder
Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI} \starttext \startMPpage[offset=1ex,width=\paperwidth,height=\paperheight] for i=1 upto 3: draw textext(\MPstring{i}) shifted(i*cm,i*cm) ; endfor; \stopMPpage \stoptext There is no

[NTG-context] beta: \dopresetsymbol

2009-08-11 Thread Peter Rolf
Hi, the macro \dopresetsymbol is used in \dohandlefitfield (scrn-fld.mkiv), but no longer defined. Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] beta: \dopresetsymbol

2009-08-11 Thread Hans Hagen
Peter Rolf wrote: Hi, the macro \dopresetsymbol is used in \dohandlefitfield (scrn-fld.mkiv), but no longer defined. can you make a small example - Hans Hagen | PRAGMA ADE

Re: [NTG-context] git repository

2009-08-11 Thread Hans Hagen
Matthijs Kooijman wrote: well, such messages would not help much unless they would be detailed (and then should be done for each file); as i work on all files at the same time it would cost me way to much time and it gains me nothing; looking at the diff in a git gui is more informative A

Re: [NTG-context] beta: \dopresetsymbol

2009-08-11 Thread Peter Rolf
Hans Hagen schrieb: Peter Rolf wrote: Hi, the macro \dopresetsymbol is used in \dohandlefitfield (scrn-fld.mkiv), but no longer defined. can you make a small example yep! seems to be used with tooltips, as the attached example breaks with the same error.

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Thomas A. Schmitz
On Aug 11, 2009, at 2:35 PM, Hans Hagen wrote: what exactly do you want to replace ? Hans I'm trying to use the lpegs you have written for mtx-babel.lua, but instead of rewriting the greek ASCII stuff to a new file, I want to convert it to proper utf Greek and feed that to mkiv. As I

[NTG-context] Change whitespace before item?

2009-08-11 Thread U Avalos
Say I want to change the whitespace before an item in an enumeration. The diagram below: |.(a) Item 2 |.(b) item 2 Say I want to change the whitespace (represented by the dots) in a list? How can I do that? Tried various settings: changing margin, adding hskip, but nothing seems

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Wolfgang Schuster
Am 11.08.2009 um 17:41 schrieb U Avalos: Say I want to change the whitespace before an item in an enumeration. The diagram below: |.(a) Item 2 |.(b) item 2 Say I want to change the whitespace (represented by the dots) in a list? How can I do that? Tried various settings:

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Idris Samawi Hamid ادريس سماوي ح امد
Wolfgang answered your main question, so that leaves On Tue, 11 Aug 2009 09:41:26 -0600, U Avalos amscopub-m...@yahoo.com wrote: How can I get a question answered on this list, BTW? Very simple: politely send the question a second time if you don't get a response. I've had to do that

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Derek CORDEIRO
On Tue, Aug 11, 2009 at 9:11 PM, U Avalos amscopub-m...@yahoo.com wrote: Say I want to change the whitespace before an item in an enumeration. The diagram below: |.(a) Item 2 |.(b) item 2 Say I want to change the whitespace (represented by the dots) in a list? How can I do

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Stéphane Goujet
Wolfgang Schuster a écrit : Am 11.08.2009 um 17:41 schrieb U Avalos: How can I get a question answered on this list, BTW? It seems that no one either knows anything or are too busy for simple questions. FYI, devs, this language is going to die if you don't get more users You're really

[NTG-context] addtransparencygroup()

2009-08-11 Thread Peter Rolf
Hi, in the function codeinjections.addtransparencygroup() there is a tostring() around the dictionary. This results in '/Group ( dictionary )'. Removing the tostring function gives the desired result. BTW: thanks for keeping this part open. I'm currently trying to adapt my 'codeinjection'

[NTG-context] missing space between text and a formula

2009-08-11 Thread Bostjan Vesnicer
Hi, I found the solution to my problem about missing space between text and a formula in MKII when using \indenting[next] (see http://archive.contextgarden.net/message/20080424.112935.a81d9346.en.html), however it seems to me that the proposed fix hasn't been applied to the ConTeXt

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 11 Aug 2009 11:13:02 -0600, Stéphane Goujet stephane.gou...@wanadoo.fr wrote: Simple questions from end-users are barely answered while questions from developpers/people with experience are generaly answered and generate rather long threads. This is simply not true AFAICT. I've been

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread U Avalos
Like I said, I tried margin and it does NOT work. Margin has no effect on sub-lists. \startitemize[n] \item top level \startitemize[a,margin=5cm] \item sub item 1 \item sub item 2 \stopitemize \stopitemize margin does NOT affect the sublist at all. Oh I apologize for the rant. (At

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread U Avalos
No, actually. The documentation says to use margins but that command does not seem to work for sub-lists. Unless my notation is wrong, it would seem that the margin values for a sub-list are hardcoded. For example, the following code does NOT work for me: \startitemize[n] \item top level

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 11 Aug 2009 11:13:02 -0600, Stéphane Goujet stephane.gou...@wanadoo.fr wrote: I have tried posting questions once or twice and I never got a single answer. The result is that, now, I do not post them here any more. Just try again and don't take it personally. That's what I've done

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread U Avalos
You're right I should know better On Tuesday 11 August 2009 14:32:32 Idris Samawi Hamid ادريس سماوي حامد wrote: On Tue, 11 Aug 2009 11:13:02 -0600, Stéphane Goujet stephane.gou...@wanadoo.fr wrote: I have tried posting questions once or twice and I never got a single answer. The result

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Wolfgang Schuster
Am 11.08.2009 um 20:29 schrieb U Avalos: Like I said, I tried margin and it does NOT work. Margin has no effect on sub-lists. You *never* wrote anything about sublevels before, who do you expect we should know what do you mean without enough information? The value for 'margin' as added to

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Wolfgang Schuster
Am 11.08.2009 um 19:13 schrieb Stéphane Goujet: Perhaps it would be time to split this mailing-list in 2 parts, one really for users and the other for developpers, beta testers, package programmers, etc. We already have two different lists:

Re: [NTG-context] type problems

2009-08-11 Thread Wolfgang Schuster
Am 09.08.2009 um 23:09 schrieb Wolfgang Werners-Lucchini: is \mono the youngest incarnation of \type, \retype ...? no, \mono is just \tt but you can write it as {\mono text} or \mono{text} What about \mono{Dies|Das}? Is'nt it frustrating? '|' has a special meaning i context, you can

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Thomas A. Schmitz
On Aug 11, 2009, at 8:48 PM, U Avalos wrote: You're right I should know better OK, since you're a brave man and can admit a mistake: here's an answer to your original question. I'm not sure if it's the best way to do this, but it allows you to finetune the whitespace and the distance

Re: [NTG-context] Using verbatim text with combinations

2009-08-11 Thread Thomas A. Schmitz
On Aug 11, 2009, at 8:46 PM, Črt Gorup wrote: Hi, I am having some problems using two (side by side) frames containing verbatim text. Can anybody suggest the right approach to this problem? As long as indents are at the right position, I can also survive without the frame around the

Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread U Avalos
It works! That also was Wolfgang's solution ... however, the intext was not necessary. Funny thing is I could have sworn I tried left=\hskip before... Thanx On Tuesday 11 August 2009 14:55:44 Thomas A. Schmitz wrote: On Aug 11, 2009, at 8:48 PM, U Avalos wrote: You're right I should know

Re: [NTG-context] Using verbatim text with combinations

2009-08-11 Thread Črt Gorup
Exactly. Thank you. Crt On Aug 11, 2009, at 9:12 PM, Thomas A. Schmitz wrote: On Aug 11, 2009, at 8:46 PM, Črt Gorup wrote: Hi, I am having some problems using two (side by side) frames containing verbatim text. Can anybody suggest the right approach to this problem? As long as

Re: [NTG-context] addtransparencygroup()

2009-08-11 Thread Hans Hagen
Peter Rolf wrote: Hi, in the function codeinjections.addtransparencygroup() there is a tostring() around the dictionary. This results in '/Group ( dictionary )'. Removing the tostring function gives the desired result. ok BTW: thanks for keeping this part open. I'm currently trying to

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Hans Hagen
Thomas A. Schmitz wrote: On Aug 11, 2009, at 2:35 PM, Hans Hagen wrote: what exactly do you want to replace ? Hans I'm trying to use the lpegs you have written for mtx-babel.lua, but instead of rewriting the greek ASCII stuff to a new file, I want to convert it to proper utf Greek and

Re: [NTG-context] beta: \dopresetsymbol

2009-08-11 Thread Hans Hagen
Peter Rolf wrote: Hans Hagen schrieb: Peter Rolf wrote: Hi, the macro \dopresetsymbol is used in \dohandlefitfield (scrn-fld.mkiv), but no longer defined. can you make a small example yep! seems to be used with tooltips, as the attached example breaks with the same error. there were a

Re: [NTG-context] loop textext and \MPstring{… }

2009-08-11 Thread Hans Hagen
Andreas Harder wrote: Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI} \starttext \startMPpage[offset=1ex,width=\paperwidth,height=\paperheight] for i=1 upto 3: draw textext(\MPstring{i}) shifted(i*cm,i*cm) ; endfor; \stopMPpage

Re: [NTG-context] problem with layers and line spacing

2009-08-11 Thread Hans Hagen
Brian R. Landy wrote: Hi, I am attempting to do some work with layers that can repeat (and update) using \startsetups \stopsetups. However I find that the line spacing in a \framed in the layers is not alterable and instead tracks the font size on the page. I'm attaching a simple example

Re: [NTG-context] \currentdate and language deo

2009-08-11 Thread Hans Hagen
Thomas A. Schmitz wrote: Hi all, something doesn't work with language deo in the latest current. Testfile: \mainlanguage[deo] \starttext test: \currentdate \stoptext Switching language to de makes the file compile. fixed -

Re: [NTG-context] problem with layers and line spacing

2009-08-11 Thread Brian R. Landy
Understood, but actually it is obeying the 12pt switchtobodyfont for the interline spacing in the backgrounds. It is not using either the layer's switchtobodyfont, which I think should be correct behavior, nor is it obeying the setupbodyfont. Note that the font size is correct, it is the

Re: [NTG-context] missing space between text and a formula

2009-08-11 Thread Aditya Mahajan
On Tue, 11 Aug 2009, Bostjan Vesnicer wrote: Hi, I found the solution to my problem about missing space between text and a formula in MKII when using \indenting[next] (see http://archive.contextgarden.net/message/20080424.112935.a81d9346.en.html), however it seems to me that the proposed

Re: [NTG-context] problem with layers and line spacing

2009-08-11 Thread Wolfgang Schuster
Am 10.08.2009 um 23:09 schrieb Brian R. Landy: Hi, I am attempting to do some work with layers that can repeat (and update) using \startsetups \stopsetups. However I find that the line spacing in a \framed in the layers is not alterable and instead tracks the font size on the page. I'm

Re: [NTG-context] loop textext and \MPstring{…}

2009-08-11 Thread Aditya Mahajan
On Tue, 11 Aug 2009, Andreas Harder wrote: Hi, I am trying to achieve the following: \setMPtext{1}{ABC} \setMPtext{2}{DEF} \setMPtext{3}{GHI} \starttext \startMPpage[offset=1ex,width=\paperwidth,height=\paperheight] for i=1 upto 3: draw textext(\MPstring{i}) shifted(i*cm,i*cm) ;