[NTG-context] Typescript Bodoni Old Fashion

2010-12-03 Thread Philipp Gesang
[ file=type-bodoniof, %Dversion=2010-12-03 23:47:43+0100, %D title=\CONTEXT\ Typescript Macros, %D subtitle=Font Definitions for URW++ Bodoni Old Fashion, %D author=Philipp Gesang, %D date=\currentdate, %D copyright=Philipp Gesang] %C %C This

Re: [NTG-context] howto make hyperrefs? (url/mail)

2010-12-03 Thread Philipp Gesang
Hi Jonas, in context the hyperlink stuff is called “interaction”. On 2010-12-03 <19:56:50>, Jonas Stein wrote: > i saw it once in the documentation but i dont find > it again now. * http://wiki.contextgarden.net/url * http://wiki.contextgarden.net/Interaction > How can i make a mailaddress cl

Re: [NTG-context] Module Namespaces

2010-11-29 Thread Philipp Gesang
Hi all, On 2010-11-29 <19:17:00>, Wolfgang Schuster wrote: > > Am 18.11.2010 um 19:33 schrieb luigi scarso: > > > I just want to register my namespace(s) to be sure to avoid conflicts > > not only for modules but also for lua code > > Good idea and it’s not a problem to reserve „lscarso“ for yo

[NTG-context] referencing position on page in index

2010-11-23 Thread Philipp Gesang
Hi all, one of my favorite grammars contains rather elaborated indices: to a given entry they not only list the page numbers, but also the position on the respective page. To this end any page is subdivided into four regions to which the entries may refer separately. For instance, these entries

Re: [NTG-context] heading in margin + grid

2010-11-21 Thread Philipp Gesang
On 2010-11-21 <13:22:32>, Wolfgang Schuster wrote: > > Am 21.11.2010 um 12:28 schrieb Philipp Gesang: > > > Dear fellow Contexters, > > > > there are some subheadings I’d like to place in the margin > > approximately like that: > > \setuplayout[grid

[NTG-context] heading in margin + grid

2010-11-21 Thread Philipp Gesang
Dear fellow Contexters, there are some subheadings I’d like to place in the margin approximately like that: ···8< \def\text{knuth} \setuplayout[grid=yes] \showgrid \setuphead[section][ %grid=yes, style={\tf\bf\color[red]}, comma

Re: [NTG-context] Module Namespaces

2010-11-18 Thread Philipp Gesang
On 2010-11-18 <10:13:07>, luigi scarso wrote: > Nice > http://wiki.contextgarden.net/Module_Namespaces > > Can I register lscarso[a-zA-Z]* ? Maybe we should consider an auction; in the future this could get as busy as trading domain names. Philipp > -- > luigi >

Re: [NTG-context] \definenamespace (was: The visual counter module)

2010-11-18 Thread Philipp Gesang
On 2010-11-18 <04:56:27>, Wolfgang Schuster wrote: > > Am 18.11.2010 um 01:36 schrieb Philipp Gesang: > > > Hi Wolfgang, > > > > of course you are always welcome to deliver this kind of > > thorough discussion! The wiki is grateful … > > > &

Re: [NTG-context] \definenamespace (was: The visual counter module)

2010-11-17 Thread Philipp Gesang
On 2010-11-17 <22:53:20>, Wolfgang Schuster wrote: > > Am 17.11.2010 um 20:10 schrieb Philipp Gesang: > > > Hi Aditya, > > > > you seem to be familiar with some of the features of the new > > namespace model that I was not able to infer from Wolfgang’s >

Re: [NTG-context] The visual counter module

2010-11-17 Thread Philipp Gesang
On 2010-11-14 <18:16:05>, Aditya Mahajan wrote: > The module only works with MkIV because I am using the new namespace > code. So MkII support is unlikely. Hi Aditya, you seem to be familiar with some of the features of the new namespace model that I was not able to infer from Wolfgang’s code.

[NTG-context] column breaks and TABLE

2010-11-14 Thread Philipp Gesang
Hi all, with natural tables I can’t seem to get column breaks right. Example: ··8<· \setuppapersize[A5][A5] \definecolumnset[three][n=3] \starttext \startcolumnset[three] \dorecurse{5}{ \subject{Test nr. \recurselevel} Some paragra

Re: [NTG-context] Wiki: ConTeXt vs. LaTeX and others

2010-11-04 Thread Philipp Gesang
On 2010-11-04 <15:18:24>, Jonas Stein wrote: > for many users it is interesting, to get an overview > how problems are solved in ConTeXt compared to the other > TeX-Flavours. > > I like the wikimatrix for Wikis and i thought it could be > nice to have a simple matrix for TeX. > > I started a tab

[NTG-context] tex.toks & cld -- something weird

2010-10-30 Thread Philipp Gesang
Hi all, while playing with the new extended cld stuff I encountered this: 8<--- context.starttext() context("\\toks0 = {Something}") context("\\the\\toks0") -- works --context(tex.toks[0]) -- fails print("

Re: [NTG-context] transliteration russian

2010-10-30 Thread Philipp Gesang
On 2010-10-30 <01:06:33>, Andrzej Orłowski-Skoczyk wrote: > On 10/30/2010 12:47 AM, Philipp Gesang wrote: > > As others already pointed out, with a small number of strings > > Steffen might get acceptable results by using the patterns of a > > similar language. Although

Re: [NTG-context] transliteration russian

2010-10-29 Thread Philipp Gesang
On 2010-10-29 <23:25:20>, Mojca Miklavec wrote: > > The best thing to do would be to transliterate Russian patterns into > Latin script (under one condition: transliteration needs to be > one-to-one; if one cyrillic glyph transliterates into two latin The one in question is rather a transcription

Re: [NTG-context] hyphenated url

2010-10-28 Thread Philipp Gesang
On 2010-10-28 <08:46:55>, Steffen Wolfrum wrote: > > Am 28.10.2010 um 00:05 schrieb Philipp Gesang: > > > % Usage example here: > > > > \startuseURL[anotherurl][urldescription] > > http://test%it.example.com > > \stopuseURL > > > > \sta

Re: [NTG-context] hyphenated url

2010-10-27 Thread Philipp Gesang
y.pdf] [] > [http://www.kommers.se/upload/Analysarkiv/In\letterpercent > English/Analyses/Woolcock\letterpercent paper\letterpercent on\letterpercent > impact\letterpercent of\letterpercent Lisbontreaty\letterpercent > on\letterpercent tradepolicy.pdf] > > test \from[aurl] te

[NTG-context] line correction and section marking

2010-10-27 Thread Philipp Gesang
Hi all, line corrected headings seem to lose their marking. ···8< \showgrid \setuppagenumbering[state=start,alternative=doublesided,location=] \setuplayout[grid=yes] \setupheadertexts [{\tfx\sc\getmarking[section]}] [{\tfx\pagenum

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
On 2010-10-25 <17:00:39>, Aditya Mahajan wrote: > On Mon, 25 Oct 2010, Steffen Wolfrum wrote: > > > > >Am 25.10.2010 um 19:30 schrieb Aditya Mahajan: > > > >>On Mon, 25 Oct 2010, Steffen Wolfrum wrote: > >> > >>>Hi, > >>> > >>>the "%" is a frequently used character in URL. > >>>But \hyphenatedurl{

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
On 2010-10-25 <12:45:17>, Steffen Wolfrum wrote: > > Am 25.10.2010 um 12:26 schrieb Philipp Gesang: > > \unexpanded\gdef\hyphenatedurl > > > > Should work in footnotes. Regards, Philipp > > > No, it doesn't (see below). > Do you have an other

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
On 2010-10-25 <12:05:37>, Steffen Wolfrum wrote: > > \let\normalhyphenatedurl\hyphenatedurl > > \bgroup > > \catcode`\%=11 > > \gdef\hyphenatedurl \unexpanded\gdef\hyphenatedurl Should work in footnotes. Regards, Philipp > {\bgroup > \catcode`\%=11 > \expandafter\egroup > \normalhyphe

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
On 2010-10-25 <11:39:12>, Steffen Wolfrum wrote: > > Am 25.10.2010 um 11:16 schrieb Philipp Gesang: > > > On 2010-10-25 <10:25:55>, Steffen Wolfrum wrote: > >> Hi, > >> > >> the "%" is a frequently used character in URL. > >&

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
On 2010-10-25 <10:25:55>, Steffen Wolfrum wrote: > Hi, > > the "%" is a frequently used character in URL. > But \hyphenatedurl{} can deal with it ... > > Does someone has a fix? > > > \starttext > text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. Ugly, but it works: text\footnote

Re: [NTG-context] frameoffset by direction

2010-10-23 Thread Philipp Gesang
On 2010-10-23 <06:16:22>, Wolfgang Schuster wrote: > > There is only one offset for the frame but you can set > different offsets for the content, e.g. Awesome, thanks! Btw, during wikification I noticed that the tag urgently needs to be relinked to mkiv lest we run out of displayable examples v

[NTG-context] frameoffset by direction

2010-10-22 Thread Philipp Gesang
Hi again, is there a way to specify the frame offset of ‘\framed’ for vertical and horizontal orientations separately? Consider this example: ···8< \starttext \framed[frameoffset=1em,width=5cm,height=5.5cm,align=lohi]{\input ward } \sto

[NTG-context] function ‘trace_context’ o ut of scope in mult-cld.lua

2010-10-21 Thread Philipp Gesang
Hi, the following code calls ‘trace_context()’ which is created only later on line 254. This is triggered if the first arg of ‘context()’ is of type ‘table’. ·· function test (str) context.starttext() context(str) context.stoptext()

Re: [NTG-context] itemize

2010-10-20 Thread Philipp Gesang
On 2010-10-20 <10:33:40>, Herbert Voss wrote: > In the documentation I found \setupitemgroup, \setupitemize > and in the list of all commands \setupitems. I didn't > find any example for the \setupitems. However, I can set > all parameters with the other two commands. So the > question is: when do

[NTG-context] quoted environment arguments

2010-10-18 Thread Philipp Gesang
Hi, there’s a behaviour concerning how context handles forced quotes in command line arguments that I do not understand. ··· ··· for i=-1,#environment.rawarguments do print(i, environment.rawarguments[i], environment.originalarguments[i]) end

[NTG-context] mnmls under windows

2010-10-14 Thread Philipp Gesang
Hi all, I just discovered that the windows pcs in the library have certain adobe stuff installed that comes with a neat collection of adobe fonts. So I thought I’d want to use them in context and prepared a minimals for windows on a usb stick using wine. I haven’t used windows in ages so I’d like

Re: [NTG-context] vertical space between \framed’s

2010-10-13 Thread Philipp Gesang
On 2010-10-13 <11:33:24>, Wolfgang Schuster wrote: > > Am 13.10.2010 um 11:25 schrieb Philipp Gesang: > > >> \testbox\nointerlineskip\testbox > > > > Thanks, that does it. Is there, perhaps, an ‘official’ setup for this? > > The small space is inser

Re: [NTG-context] vertical space between \framed’s

2010-10-13 Thread Philipp Gesang
On 2010-10-13 <10:58:51>, Andreas Harder wrote: > > Am 13.10.2010 um 10:54 schrieb Philipp Gesang: > > > Hi, > > > > > > how do I get rid of the space between two consecutive framed > > texts? In the following example: > > I think its \i

[NTG-context] vertical space between \framed’ s

2010-10-13 Thread Philipp Gesang
Hi, how do I get rid of the space between two consecutive framed texts? In the following example: ···8< \def\testbox{\framed[frame=on,width=2em,height=2em]{A\par}} \setupinterlinespace[0pt] \starttext \testbox\testbox \stoptext ···8<

Re: [NTG-context] two buglets

2010-10-05 Thread Philipp Gesang
On 2010-10-05 <23:27:33>, Hans Hagen wrote: > On 5-10-2010 11:17, Philipp Gesang wrote: > > >I guess there is some testing going on in order to determine > >whether to proceed with the current entry or switch to the next > >one. The position is the same, however t

Re: [NTG-context] two buglets

2010-10-05 Thread Philipp Gesang
On 2010-10-05 <15:29:38>, Thomas A. Schmitz wrote: >And someone (me) might > say that they want three Greek terms in their German index at > logical places. Try the definitions in the attachment. For three words only they will be fine. But if the count

Re: [NTG-context] two buglets

2010-10-05 Thread Philipp Gesang
On 2010-10-03 <17:43:21>, Thomas A. Schmitz wrote: > OK, I'll write something for German and English, but the thing > is that we need more input what users expect. For mixtures with > foreign languages, there might not be generally accepted rules at > all, so people will define something on an ad-h

Re: [NTG-context] \definenamespace and module setup (was: Info about creating modules for beginners.)

2010-09-27 Thread Philipp Gesang
Hi all! On 2010-09-25 <19:35:31>, Wolfgang Schuster wrote: > > Am 25.09.2010 um 17:07 schrieb Philipp Gesang: > > > Could you please explain what these other parameters do: > > style=yes, > > parent=fb > > Also, what other values would the par

[NTG-context] \definenamespace and module setup (was: Info about creating modules for beginners.)

2010-09-25 Thread Philipp Gesang
On 2010-09-23 <23:43:15>, Wolfgang Schuster wrote: > These are namespaces but you don't need these constructs > anymore in mkiv because there is now a \definenamespace command > which takes care of this. Hi Wolfgang, following your fancybreak module I put together dummy module. ··8<·

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Philipp Gesang
On 2010-09-23 <12:24:05>, Aditya Mahajan wrote: > On Thu, 23 Sep 2010, Alan BRASLAU wrote: > > >On Thursday 23 September 2010 15:49:07 Hans Hagen wrote: > >> > >>we know and we will take a look at it next week (as it takes some time > >>to nail down node allocation bugs) > >> > > > >As Hans indica

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Philipp Gesang
On 2010-09-21 <21:47:35>, Hans Hagen wrote: > On 21-9-2010 8:39, Philipp Gesang wrote: > > > >* Can be circumvented via “\dontleavehmode”. > Alan ran into this at the ctx conference and it is under investigation. Hi, in case this helps with debugging: you can’t work arou

Re: [NTG-context] Lua:mplib

2010-09-23 Thread Philipp Gesang
On 2010-09-23 <09:53:38>, Procházka Lukáš wrote: > So I'd like to find a tutorial or examples or a deeper > reference about how to call MP via Lua from ConTeXt. - Any idea? Hi Lukáš, this doesn't seem to be implemented yet, cf. this post: http://archive.contextgarden.net/message/20100805.225554.4

Re: [NTG-context] new beta

2010-09-22 Thread Philipp Gesang
On 2010-09-22 <12:22:12>, Hans Hagen wrote: > On 22-9-2010 12:13, Philipp Gesang wrote: > >Great news! At the moment I’m reading the new language > >definitions. How exactly do I set the “method” switch on a > >per-language basis? > > each definition can have

Re: [NTG-context] new beta

2010-09-22 Thread Philipp Gesang
On 2010-09-22 <09:43:21>, Hans Hagen wrote: > Hi, > > I'm dealing with the bugs/anomalies/wishes that showed up during the > ctx conference. The following has been done so far: > > (1) With respect to registers, Jano had a wish to deal with mixed > language indexes. As a result the current sortin

[NTG-context] Lettrines in MkIV

2010-09-21 Thread Philipp Gesang
Hi all, the lettrine module leads to an error with this example and MkIV. MkII is fine. 8<··· \usemodule[lettrine] \starttext \chapter{And Now: an Error} \lettrine{E}{rror} \stoptext 8<···

Re: [NTG-context] offset for enumeration counter

2010-09-17 Thread Philipp Gesang
On 2010-09-17 <15:02:00>, Wolfgang Schuster wrote: > Am 17.09.2010 um 13:11 schrieb Philipp Gesang: > > Regardless of if there's a practical use for that: is this > > possible as well without resorting to repeated \setnumber'ing? > > \starttext > \star

Re: [NTG-context] offset for enumeration counter

2010-09-17 Thread Philipp Gesang
On 2010-09-17 <12:31:41>, Wolfgang Schuster wrote: > \starttext > > \startitemize[n][start=30] > \dorecurse{4}{\item text} > \stopitemize > > \stoptext Great, that's exactly what I was looking for. Now that we're at it: actually the spec wants this on per-item basis. This would amount to having

[NTG-context] offset for enumeration counter

2010-09-17 Thread Philipp Gesang
Hi all, some specification requests that a numbered list start at arbitrary counter values. I'm using the following line after “\startitemize[...]” to accomplish this: ··8<· \setnumber[itemgroup:itemize]{42} ··8<·

Re: [NTG-context] \setuplines[space=on] (was: HOWTO: Typesetting Poetry in ConTeXt)

2010-09-16 Thread Philipp Gesang
On 2010-09-15 <22:26:38>, John Haltiwanger wrote: > Apologies, as a very significant aspect of this process was omitted in the > previous email! > > Don't forget to do: > > \setuplines[space=on] Hi all, I'm sorry to hijack the thread but I have trouble understanding how the [space=on] works. In

[NTG-context] natural tables -- split 'n grid

2010-09-11 Thread Philipp Gesang
Hi, line correction leads to unwanted vertical spacing in split natural tables. Example (in both MkII and MkIV): ··8<· %\setuplayout[grid=yes] % not required to reproduce it \starttext \dorecurse{4}{\input knuth\par} \startlinecorrection

Re: [NTG-context] ConTeXt Minimals: some statistics of usage

2010-09-04 Thread Philipp Gesang
On 02/09/2010, Mojca Miklavec wrote: > Hello, > > As I have promised some time ago here is some raw statistics from the > last month (older statistics is not kept on server): > > There are 29917 different jobs. > There are 379 different IP numbers. Hi Mojca, have you tried checking them against

Re: [NTG-context] questions regarding `\date`

2010-08-31 Thread Philipp Gesang
On 2010-08-31 <13:41:06>, Taco Hoekwater wrote: > On 08/31/2010 11:48 AM, Philipp Gesang wrote: > >unfortunately I can only come up with a negative answer: I > >skimmed the Bringhurst and although he does discuss date strings > >with slashes as separators, > > Th

Re: [NTG-context] questions regarding `\date`

2010-08-31 Thread Philipp Gesang
Hi Paul, On 2010-08-31 <10:29:39>, Paul Menzel wrote: > > 3. Spacing between numbers. Using LaTeX there were some suggestions to > > typeset a date using small spaces like `29.\,8.\,2010`. I guess this > > depends on the fonts used and personal taste? If there is a rule, maybe > > that could be ad

[NTG-context] io.readnumber / l-io.lua (with patch)

2010-08-30 Thread Philipp Gesang
Hi, the function io.readnumber fails to call itself. I append a patch. Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --- l-io.lua2010-08-18 17:37:25.0 +0200 +++ /home/laokoon/versuche/lua/dok/examples/io/l-io.lua

Re: [NTG-context] collecting user wishes for streams related functionalities

2010-08-20 Thread Philipp Gesang
On 2010-08-19 <00:18:49>, Hans Hagen wrote: > On 18-8-2010 4:52, Kevin D. Robbins wrote: > >Hi everyone, > > > >I second the request to support horizontally split page layouts with one > >stream typeset above another on each page. > > it would help to see mockups for such requests I got a less co

Re: [NTG-context] polish sorting

2010-08-19 Thread Philipp Gesang
On 2010-08-19 <11:41:43>, Hans Hagen wrote: > Hi, > > a > aaa 1 > Aaa 1 > aab 1 > Aab 1 > > aaa > aab > Aaa > Aab > > so, what order do you expect here? Exactly this! Could you please post an example how to achieve this in lua using comparers.basic (the registers implementation gives me headache

Re: [NTG-context] polish sorting

2010-08-19 Thread Philipp Gesang
;ll just put it on the wiki which will be fine enough, I guess. Philipp On 2010-08-19 <00:48:14>, Hans Hagen wrote: > On 18-8-2010 6:08, Philipp Gesang wrote: > >Hi, > > > >I'm creating some sorting tables. While researching this topic I > >stumbled on the

[NTG-context] polish sorting

2010-08-18 Thread Philipp Gesang
Hi, I'm creating some sorting tables. While researching this topic I stumbled on the Polish dictionary sorting rules: if two strings are equal except for case then the one gets precedence that begins lowercase.[1] (This seems to apply to the Swedish order as well but I have no means to verify that

Re: [NTG-context] collecting user wishes for streams related functionalities

2010-08-18 Thread Philipp Gesang
On 2010-08-18 <06:23:20>, Salil Sayed wrote: >Hi All, >Hans will starting looking into the development of 'streams' for mkvi >soon. So let us gather our wishes for these functions so that the >interface can be well thought of beforehand. Please respond to this >thread with your

Re: [NTG-context] interface file parameter

2010-08-16 Thread Philipp Gesang
Wolfgang, Taco: thanks very much for your answers! Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgp9AEU2tYYAp.pgp Description: PGP signature ___

[NTG-context] interface file parameter

2010-08-16 Thread Philipp Gesang
Hi all, in an interface xml definition, what is the notation for an argument value that is a filename? I'm just unsure whether to specify it as “cd:text” or “cd:name”. Example: ···8<·· ···8<

Re: [NTG-context] other markup to ConTeXt

2010-08-14 Thread Philipp Gesang
On 2010-08-14 <11:52:12>, Hans Hagen wrote: > On 14-8-2010 11:23, Philipp Gesang wrote: > > >Has somebody already made some steps in that way? (I'm thinking about > >doing so for quite some time now but then, it's not that pressing > >either.) > >

Re: [NTG-context] other markup to ConTeXt

2010-08-14 Thread Philipp Gesang
On 2010-08-14 <07:19:17>, Gour D. wrote: > Finally, for the high-quality output, we plan to convert to ConTeXt > (via pandoc since there is no ConTeXt writer for sphinx/docutils) for > high-quality PDF output (if rst2pdf won't be satisfying or if we would > like to provide paper putput. Hi Gour, H

Re: [NTG-context] Footnote numbers not following \setupinteraction color

2010-08-13 Thread Philipp Gesang
On 2010-08-13 <17:54:02>, John Haltiwanger wrote: > I seem to be full of problems today: > > --- > \setupcolors[state=start] > \setupinteraction[state=start, color=black] Hi John, it's a link to the same page: \setupinteraction[state=start, color=black, contrastcolor=black]

Re: [NTG-context] checking for module parameters

2010-08-13 Thread Philipp Gesang
On 2010-08-13 <05:16:40>, Wolfgang Schuster wrote: > Am 13.08.10 00:20, schrieb Philipp Gesang: > >Hi, > > > >is there a way to check whether an option was specified through \usemodule? > >Couldn't find anything like that in core-fil.mkiv. > > >

[NTG-context] checking for module parameters

2010-08-12 Thread Philipp Gesang
Hi, is there a way to check whether an option was specified through \usemodule? Couldn't find anything like that in core-fil.mkiv. I'd imagined some branching as with the system macros: ·· Wishful thinking ··· \doifmoduleparameter{modulena

[NTG-context] 949 more named colors

2010-08-08 Thread Philipp Gesang
Hi, I've put up a small script that generates color definitions from Randall Munroe's color survey for use with ConTeXt.[1] This yields 949 more rgb colors that might be more adequately labeled than e.g. those from X11. You can find it at < http://bitbucket.org/phg/xcs-colors/ > From the usage n

Re: [NTG-context] metapost and lua

2010-08-06 Thread Philipp Gesang
On 2010-08-06 <13:44:14>, Hans Hagen wrote: > Hi, > > I've added \MPdrawing and \MPcode so that less calls are needed Great! Many thanks for this. Philipp pgp7YJZdtu02k.pgp Description: PGP signature ___ If your qu

Re: [NTG-context] metapost and lua

2010-08-06 Thread Philipp Gesang
On 2010-08-06 <13:34:20>, Hans Hagen wrote: > how about: > > \starttext > > \startluacode > context.startMPcode() > context("draw fullcircle scaled 10cm;") > context.stopMPcode() > > context.resetMPdrawing() > > context.startMPdrawing() > context("fill fullcircle scaled 10cm;") > context.stopMP

[NTG-context] metapost and lua

2010-08-05 Thread Philipp Gesang
Hi all! [1] Is there a Lua interface for metapost? I'm thinking of something like cld is for TeX here. All I figured out so far is how to generate mp code (as strings) in Lua and then having it processed by mplib, but as the metafun manual is from 2002 and with

Re: [NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Philipp Gesang
On 2010-07-22 <11:55:38>, Hans Hagen wrote: > On 22-7-2010 11:51, Philipp Gesang wrote: > >Hi all, > > > >what would be an elegant way to make out the current interpreter from inside > >lua? > > > >For now I'm branching thin

[NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Philipp Gesang
Hi all, what would be an elegant way to make out the current interpreter from inside lua? For now I'm branching things at the top of the script like this: ···8<·· if arg[-1] == "texlua" then utf=unicode.utf8 else req

Re: [NTG-context] tooltips and glossary

2010-05-05 Thread Philipp Gesang
-- DESCRIPTION: ad-hoc glossary -- AUTHOR: Philipp Gesang (Phg), -- VERSION: 1.0 -- CREATED: 04/05/10 13:00:54 CEST -- REVISION: 1 -- gloss = {} gloss.tracker, gloss.content = {}, {} function

Re: [NTG-context] tooltips and glossary

2010-05-05 Thread Philipp Gesang
Hello again, On 2010-05-04 <23:36:17>, Michael Saunders wrote: > III. Philipp Gesang's lua-based solution connects headwords to > entries just as \definesynonyms[gentry][gentries][\infull][\inshort] > does, and it produces something that looks like a glossary, but the > entries have no link back

Re: [NTG-context] tooltips and glossary

2010-05-04 Thread Philipp Gesang
On 2010-05-04 <08:32:36>, Michael Saunders wrote: > > (Preliminary remark to M.S.: please, please, configure your MUA to > > correctly reply to the current thread!) > > (What's wrong with my subject line?  I'm merely hitting "reply" in gmail.) Strange, judging from my inbox some of your replies ar

Re: [NTG-context] tooltips and glossary

2010-05-04 Thread Philipp Gesang
The glossary entry \usegloss[exp]{index} is explained here. \page Here \usegloss{index} just occurs again. \page Here we'll deal with \usegloss[exp]{glossary} in detail. \page Here \usegloss{index} just occurs again. \page Here \usegloss{index} just occurs again. \page Here we mention \usegloss{glossary}.

Re: [NTG-context] sort-lan.lua nitpicks and sorting

2010-05-03 Thread Philipp Gesang
On 2010-05-02 <15:59:53>, Philipp Gesang wrote: > Hi again, > > > 1. In sort-lan.lua, line 101 should read «['r'] = "r"», and line 144 > «['r'] = 26, -- r». In lines 152 and 109 concerning the character “ů” (uring in unicode speak) there'

[NTG-context] sort-lan.lua nitpicks and sorting

2010-05-02 Thread Philipp Gesang
Hi again, 1. In sort-lan.lua, line 101 should read «['r'] = "r"», and line 144 «['r'] = 26, -- r». 2. Although I read the disclaimer about said file being “preliminary and incomplete” -- is there some rationale behind the range of integers for each language mapping? The mapping for English goes

Re: [NTG-context] right aligned footnote

2010-04-30 Thread Philipp Gesang
On 2010-04-30 <10:19:49>, Wolfgang Schuster wrote: > Am 30.04.10 09:53, schrieb Philipp Gesang: > >Hi Honza and Wolfgang, > > > >what about this one: > >---8<-- > >%\showframe >

Re: [NTG-context] right aligned footnote

2010-04-30 Thread Philipp Gesang
On 2010-04-30 <09:22:44>, Wolfgang Schuster wrote: > Am 29.04.10 23:17, schrieb Honza Pohanka: > >Thanks for the answer, but it does not work. I tried MKII and > >MKIV. Text is still on the left. > > > >min example > > > >\setupoutput[pdftex] > > > >\starttext > > > >\setupfootnotes[location=page]

Re: [NTG-context] requesting multipass

2010-04-29 Thread Philipp Gesang
On 2010-04-27 <23:47:03>, Hans Hagen wrote: > On 27-4-2010 11:09, Philipp Gesang wrote: > >On 2010-04-27<20:02:27>, Hans Hagen wrote: > >>On 27-4-2010 5:04, Philipp Gesang wrote: > >>>Hi all, > >>> > >>> > >&g

Re: [NTG-context] requesting multipass

2010-04-27 Thread Philipp Gesang
On 2010-04-27 <20:02:27>, Hans Hagen wrote: > On 27-4-2010 5:04, Philipp Gesang wrote: > >Hi all, > > > > > >how do I trigger another pass? > > > >Using md5 and io I want to save data to a helper file and reuse it in a > >second pass (like e.g. mt

[NTG-context] requesting multipass

2010-04-27 Thread Philipp Gesang
Hi all, how do I trigger another pass? Using md5 and io I want to save data to a helper file and reuse it in a second pass (like e.g. mtx-context.lua) or update the file if appropriate. But I couldn't quite figure out how to request another pass from the lua end. Thanks for any help, Philipp

Re: [NTG-context] Ligaturing in footnotes.

2010-04-18 Thread Philipp Gesang
On 2010-04-18 <10:07:35>, Wolfgang Schuster wrote: > Am 17.04.10 12:49, schrieb Philipp Gesang: > >After switching to the "smallcaps” font feature set, the surrounding > >“default” set is not restored when leaving the group if and only if > >the \bgroup was the

[NTG-context] Ligaturing in footnotes.

2010-04-17 Thread Philipp Gesang
Hi again, footnotes keep me busy: ···8<·· \def\sc{\setfontfeature{smallcaps}} \definefontfeature [default][default] [mode=node,onum=yes,liga=yes] \definefontfeature [smallcaps][default] [mode=node,onum=yes,smcp=y

Re: [NTG-context] lua, footnotes, interaction

2010-04-17 Thread Philipp Gesang
Hi Peter, hi all! On 2010-04-17 <08:52:05>, Peter Münster wrote: > On Fri, Apr 16 2010, Philipp Gesang wrote: > > > I'd naively expect \track#1 to behave identically regardless of > > interaction. How do I make it interaction-proof > > Sorry, I had for

[NTG-context] lua, footnotes, interaction

2010-04-16 Thread Philipp Gesang
Good evening all, interaction remains a mystery to me. When tracking things I encountered the following deviation in footnotes: ---8<-- \startluacode track = {} track.preceding = "" function track.simple(arg) context(

Re: [NTG-context] character spacing

2010-04-10 Thread Philipp Gesang
On 2010-04-10 <11:39:14>, Philipp Gesang wrote: > Hi, > > > I'm looking for a non-bureaucratic way to add some space to parentheses. > typo-spa.mkiv looked most promising, so I did Sorry, it came to me a second after sending the mail: the character codes are in he

[NTG-context] character spacing

2010-04-10 Thread Philipp Gesang
Hi, I'm looking for a non-bureaucratic way to add some space to parentheses. typo-spa.mkiv looked most promising, so I did ---8<-- \definecharacterspacing[parens] \setupcharacterspacing[parens] ["0040] [right=.2,alternative

Re: [NTG-context] Multiple bibliographies (bib-module, mkiv)

2010-04-08 Thread Philipp Gesang
On 2010-03-31 <20:31:48>, marfin wrote: > I need two bibliographies for my document, »Primary sources« and > »Secondary sources«. > > Two bibliographies was created and loaded with > \setupbibtex[database={prim,sec}]. > > But for the last step in my intention I’m looking for something to the > ef

Re: [NTG-context] xml and catcode switching

2010-03-24 Thread Philipp Gesang
Good morning! On 2010-03-23 <18:48:15>, Hans Hagen wrote: > On 22-3-2010 10:53, Philipp Gesang wrote: > >Hi, > > > > > >I'm formatting lots of urls and as some of them have ampersands in them > >I switch& to letter wherever they are placed. T

[NTG-context] xml and catcode switching

2010-03-22 Thread Philipp Gesang
Hi, I'm formatting lots of urls and as some of them have ampersands in them I switch & to letter wherever they are placed. This works fine unless combined with XML which seems to impose its own catcodes on things. How could I fix things in the following example? Thanks for any suggestions, P

[NTG-context] sort-lan.lua line 157

2010-03-21 Thread Philipp Gesang
Hi, I had a look at sort-lan.lua, here are lines 156--158: ['y']= 38, -- y ['z']= 49, -- z [uc(0x017E)] = 40, -- zcaron I guess the correct value for “z” should be “39”? Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - agains

Re: [NTG-context] Footnotes and interaction again

2010-03-17 Thread Philipp Gesang
On 2010-03-17 <22:58:11>, Hans Hagen wrote: > On 17-3-2010 18:53, Philipp Gesang wrote: > >\setupinteraction[state=start,focus=standard] > > > >\starttext > >\startfootnote > >A label \reference[label:1]{} we will refer to. > >\stopfootnote > >\p

[NTG-context] Footnotes and interaction again

2010-03-17 Thread Philipp Gesang
Hi again, I just ran into the footnote problem again, this time when referring to labels inside footnotes. As in the earlier thread the issue occurs with mkiv only. Example: ---8<-- \setupinteraction[state=start,focus=stand

Re: [NTG-context] xml TeX expansion?

2010-03-17 Thread Philipp Gesang
On 2010-03-17 <11:28:30>, Hans van der Meer wrote: > Typesetting material containing macro's from inside a xml-node does > not give TeX-ed results. > How can this be accomplished? Hi Hans, I'm using extra tags with setups because no TeX code seems to be processed directly from the xml file. ---8<

Re: [NTG-context] interaction fails with footnotes

2010-03-16 Thread Philipp Gesang
On 2010-03-16 <11:48:20>, Wolfgang Schuster wrote: > Am 16.03.10 10:58, schrieb Philipp Gesang: > >On 2010-03-16<00:33:12>, Wolfgang Schuster wrote: > >>Am 16.03.10 00:20, schrieb Philipp Gesang: > >>>\def\startsomething{% > >>&

Re: [NTG-context] interaction fails with footnotes

2010-03-16 Thread Philipp Gesang
On 2010-03-16 <00:33:12>, Wolfgang Schuster wrote: > Am 16.03.10 00:20, schrieb Philipp Gesang: > >\def\startsomething{% > > \bgroup% > > \dosingleempty\dostartsomething > >} > \unexpanded\def\startsomething{...} > > \let\stopsomething\relax Tha

Re: [NTG-context] interaction fails with footnotes

2010-03-15 Thread Philipp Gesang
On 2010-03-15 <22:40:39>, Wolfgang Schuster wrote: > Am 15.03.10 19:01, schrieb Philipp Gesang: > >Of course. I could narrow it down to this. Try commenting out the > >interaction part. > >---8<

Re: [NTG-context] typescript

2010-03-15 Thread Philipp Gesang
On 2010-03-15 <16:32:23>, Michael Saunders wrote: > I am trying to get a minimal working example so that I have something > to tinker with. > > C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only: > > \starttypescript [serif] [garamondprem] > \definetypeface [garamondprem] [rm]

Re: [NTG-context] interaction fails with footnotes

2010-03-15 Thread Philipp Gesang
On 2010-03-15 <14:10:10>, Hans Hagen wrote: > On 15-3-2010 0:32, Philipp Gesang wrote: > >On 2010-03-15<00:12:03>, Philipp Gesang wrote: > >>Good evening all, > >> > >> > >>I'm experiencing a weird behaviour when using my module to

Re: [NTG-context] interaction fails with footnotes (was: xml with interaction fails in footnotes)

2010-03-15 Thread Philipp Gesang
t minimals but I remember already experiencing this error a while ago and ignoring it back then (by switching off interaction). And note that I don't even have clickable stuff _in_ the footnote, it is the raised footnote marker itself that is clickable. Thanks anyways, Philipp > &g

<    1   2   3   4   5   6   >