ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* some minor problems (mkiv)
@ 2008-05-16 11:12 Peter Rolf
  2008-05-16 11:41 ` Taco Hoekwater
  2008-05-16 11:42 ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Rolf @ 2008-05-16 11:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

hi,

i'm still trying to make my code run with mkiv. here are two minor 
problems. the first one is easy to deal with, but the second one 
currently breaks my testbed.


% engine=luatex
\setupcolors[state=start]

\starttext

\startMPcode
label("no color",origin) withcolor red; % always black
\stopMPcode

\string{\{}

\stoptext


greetings, peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: some minor problems (mkiv)
  2008-05-16 11:12 some minor problems (mkiv) Peter Rolf
@ 2008-05-16 11:41 ` Taco Hoekwater
  2008-05-16 12:44   ` Peter Rolf
  2008-05-17 15:46   ` Hans Hagen
  2008-05-16 11:42 ` Wolfgang Schuster
  1 sibling, 2 replies; 6+ messages in thread
From: Taco Hoekwater @ 2008-05-16 11:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Peter Rolf wrote:
> hi,
> 
> i'm still trying to make my code run with mkiv. here are two minor 
> problems. the first one is easy to deal with, but the second one 
> currently breaks my testbed.
> 
> 
> % engine=luatex
> \setupcolors[state=start]
> 
> \starttext
> 
> \startMPcode
> label("no color",origin) withcolor red; % always black
> \stopMPcode

Interesting problem, that one. The lack of color is easily explained
because there is an implied textext() around the string., but it is
not that easily solved, I suspect.

> \string{\{}

Side note wrt. the example: don't you want \string\{ instead?

Anyway, the underlying problem is something for Aditya to look at,
maybe. Too many commands are now 'math mode only' because of changes
in char-def.lua.

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: some minor problems (mkiv)
  2008-05-16 11:12 some minor problems (mkiv) Peter Rolf
  2008-05-16 11:41 ` Taco Hoekwater
@ 2008-05-16 11:42 ` Wolfgang Schuster
  2008-05-16 12:57   ` Peter Rolf
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2008-05-16 11:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, May 16, 2008 at 1:12 PM, Peter Rolf <indiego@gmx.net> wrote:
> hi,
>
> i'm still trying to make my code run with mkiv. here are two minor
> problems. the first one is easy to deal with, but the second one
> currently breaks my testbed.
>
>
> % engine=luatex
> \setupcolors[state=start]
>
> \starttext
>
> \startMPcode
> label("no color",origin) withcolor red; % always black
> \stopMPcode
>
> \string{\{}

\string{

\char`{

\letterleftbrace

\char123

\char"7B

> \stoptext
>
>
> greetings, peter

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: some minor problems (mkiv)
  2008-05-16 11:41 ` Taco Hoekwater
@ 2008-05-16 12:44   ` Peter Rolf
  2008-05-17 15:46   ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Rolf @ 2008-05-16 12:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Taco Hoekwater schrieb:
> 
> Peter Rolf wrote:
>> hi,
>>
>> i'm still trying to make my code run with mkiv. here are two minor 
>> problems. the first one is easy to deal with, but the second one 
>> currently breaks my testbed.
>>
>>
>> % engine=luatex
>> \setupcolors[state=start]
>>
>> \starttext
>>
>> \startMPcode
>> label("no color",origin) withcolor red; % always black
>> \stopMPcode
> 
> Interesting problem, that one. The lack of color is easily explained
> because there is an implied textext() around the string., but it is
> not that easily solved, I suspect.
>
i currently use sometxt() instead (was label because of much better 
runtime in mkii). i guess it's one of the last places where i use text 
inside mp, so it doesn't hurt that much. mh, maybe i should extract the 
outlines (it's only one char) instead.

>> \string{\{}
> 
> Side note wrt. the example: don't you want \string\{ instead?
> 
nope. the argument is a formal macro description with parameters in 
braces and brackets. it's part of the testbed for my graphic macros.

> Anyway, the underlying problem is something for Aditya to look at,
> maybe. Too many commands are now 'math mode only' because of changes
> in char-def.lua.
>
thanks for the detailed answer.

best wishes, peter


> Best wishes,
> Taco
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: some minor problems (mkiv)
  2008-05-16 11:42 ` Wolfgang Schuster
@ 2008-05-16 12:57   ` Peter Rolf
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Rolf @ 2008-05-16 12:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster schrieb:
> On Fri, May 16, 2008 at 1:12 PM, Peter Rolf <indiego@gmx.net> wrote:
>> hi,
>>
>> i'm still trying to make my code run with mkiv. here are two minor
>> problems. the first one is easy to deal with, but the second one
>> currently breaks my testbed.
>>
>>
>> % engine=luatex
>> \setupcolors[state=start]
>>
>> \starttext
>>
>> \startMPcode
>> label("no color",origin) withcolor red; % always black
>> \stopMPcode
>>
>> \string{\{}
> 
> \string{
> 
> \char`{
> 
> \letterleftbrace
> 
> \char123
> 
> \char"7B
>
thanks wolfgang! but sadly it's not the only argument of \string (my 
example was bad).

best wishes, peter


>> \stoptext
>>
>>
>> greetings, peter
> 
> Wolfgang
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: some minor problems (mkiv)
  2008-05-16 11:41 ` Taco Hoekwater
  2008-05-16 12:44   ` Peter Rolf
@ 2008-05-17 15:46   ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2008-05-17 15:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Taco Hoekwater wrote:
> 
> Peter Rolf wrote:
>> hi,
>>
>> i'm still trying to make my code run with mkiv. here are two minor 
>> problems. the first one is easy to deal with, but the second one 
>> currently breaks my testbed.
>>
>>
>> % engine=luatex
>> \setupcolors[state=start]
>>
>> \starttext
>>
>> \startMPcode
>> label("no color",origin) withcolor red; % always black
>> \stopMPcode
> 
> Interesting problem, that one. The lack of color is easily explained
> because there is an implied textext() around the string., but it is
> not that easily solved, I suspect.

actually this was a bug but probably only taco has the version that 
fixes it (after all, we must stay at least a week ahead of you)

>> \string{\{}
> 
> Side note wrt. the example: don't you want \string\{ instead?
> 
> Anyway, the underlying problem is something for Aditya to look at,
> maybe. Too many commands are now 'math mode only' because of changes
> in char-def.lua.


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-05-17 15:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-16 11:12 some minor problems (mkiv) Peter Rolf
2008-05-16 11:41 ` Taco Hoekwater
2008-05-16 12:44   ` Peter Rolf
2008-05-17 15:46   ` Hans Hagen
2008-05-16 11:42 ` Wolfgang Schuster
2008-05-16 12:57   ` Peter Rolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).