* \definecharacter
@ 2008-11-11 22:51 Thomas A. Schmitz
2008-11-11 22:58 ` \definecharacter Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Thomas A. Schmitz @ 2008-11-11 22:51 UTC (permalink / raw)
To: mailing ConTeXt users list for
Hi all,
is the command \definecharacter deprecated in mkiv? Some of my
environments stopped working. Minimal example:
%\definecharacter mytest \char"00F8
\define\mytest{\getglyph{name:lmroman10book}{\char"00F8}}
\starttext
Hello w\mytest rld!
\stoptext
I expected lines 1 and 2 to work, but line 1 gives an error
("Undefined control sequence"). So: is this command no longer
available in mkiv?
All best
Thomas
___________________________________________________________________________________
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] 8+ messages in thread
* Re: \definecharacter
2008-11-11 22:51 \definecharacter Thomas A. Schmitz
@ 2008-11-11 22:58 ` Wolfgang Schuster
2008-11-12 22:54 ` \definecharacter Thomas A. Schmitz
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2008-11-11 22:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 11.11.2008 um 23:51 schrieb Thomas A. Schmitz:
> Hi all,
>
> is the command \definecharacter deprecated in mkiv? Some of my
> environments stopped working. Minimal example:
>
>
> %\definecharacter mytest \char"00F8
> \define\mytest{\getglyph{name:lmroman10book}{\char"00F8}}
>
> \starttext
>
> Hello w\mytest rld!
>
> \stoptext
>
> I expected lines 1 and 2 to work, but line 1 gives an error
> ("Undefined control sequence"). So: is this command no longer
> available in mkiv?
from enco-ini.mkiv
\def\definecharacter#1 #2 %
{}
You could use \definecommand.
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] 8+ messages in thread
* Re: \definecharacter
2008-11-11 22:58 ` \definecharacter Wolfgang Schuster
@ 2008-11-12 22:54 ` Thomas A. Schmitz
2008-11-13 7:43 ` \definecharacter Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Thomas A. Schmitz @ 2008-11-12 22:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Nov 11, 2008, at 11:58 PM, Wolfgang Schuster wrote:
> from enco-ini.mkiv
>
> \def\definecharacter#1 #2 %
> {}
>
> You could use \definecommand.
>
> Wolfgang
Wolfgang, thanks for pointing me to this. What is the reason of this
unfriendly behavior? I can understand if the \definecharacter command
is gone in mkiv, but simply taking the arguments and sending them into
nirvana? It was a bit difficult for me to see where the errors in my
environments came from, so I'm really wondering what this is supposed
to do.
Thomas
___________________________________________________________________________________
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] 8+ messages in thread
* Re: \definecharacter
2008-11-12 22:54 ` \definecharacter Thomas A. Schmitz
@ 2008-11-13 7:43 ` Hans Hagen
2008-11-13 8:06 ` \definecharacter Thomas A. Schmitz
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-11-13 7:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thomas A. Schmitz wrote:
> On Nov 11, 2008, at 11:58 PM, Wolfgang Schuster wrote:
>
>> from enco-ini.mkiv
>>
>> \def\definecharacter#1 #2 %
>> {}
>>
>> You could use \definecommand.
>>
>> Wolfgang
>
> Wolfgang, thanks for pointing me to this. What is the reason of this
> unfriendly behavior? I can understand if the \definecharacter command
> is gone in mkiv, but simply taking the arguments and sending them into
> nirvana? It was a bit difficult for me to see where the errors in my
> environments came from, so I'm really wondering what this is supposed
> to do.
well, i was not aware of users using \definecharacter
(i can make it a chardef if needed)
Hans
-----------------------------------------------------------------
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] 8+ messages in thread
* Re: \definecharacter
2008-11-13 7:43 ` \definecharacter Hans Hagen
@ 2008-11-13 8:06 ` Thomas A. Schmitz
2008-11-13 8:12 ` \definecharacter Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Thomas A. Schmitz @ 2008-11-13 8:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Nov 13, 2008, at 8:43 AM, Hans Hagen wrote:
> Thomas A. Schmitz wrote:
>> On Nov 11, 2008, at 11:58 PM, Wolfgang Schuster wrote:
>>
>>> from enco-ini.mkiv
>>>
>>> \def\definecharacter#1 #2 %
>>> {}
>>>
>>> You could use \definecommand.
>>>
>>> Wolfgang
>>
>> Wolfgang, thanks for pointing me to this. What is the reason of this
>> unfriendly behavior? I can understand if the \definecharacter command
>> is gone in mkiv, but simply taking the arguments and sending them
>> into
>> nirvana? It was a bit difficult for me to see where the errors in my
>> environments came from, so I'm really wondering what this is supposed
>> to do.
>
> well, i was not aware of users using \definecharacter
>
> (i can make it a chardef if needed)
>
Hey, you should know that your users use ConTeXt for all kinds of
weird and deviant purposes :-)
I have it in some of my private modules/environments, e.g. for
creating symbols and a metrical font. What would you suggest using
instead?
Best
Thomas
___________________________________________________________________________________
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] 8+ messages in thread
* Re: \definecharacter
2008-11-13 8:06 ` \definecharacter Thomas A. Schmitz
@ 2008-11-13 8:12 ` Hans Hagen
2008-11-13 9:51 ` \definecharacter Mojca Miklavec
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-11-13 8:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thomas A. Schmitz wrote:
> On Nov 13, 2008, at 8:43 AM, Hans Hagen wrote:
>
>> Thomas A. Schmitz wrote:
>>> On Nov 11, 2008, at 11:58 PM, Wolfgang Schuster wrote:
>>>
>>>> from enco-ini.mkiv
>>>>
>>>> \def\definecharacter#1 #2 %
>>>> {}
>>>>
>>>> You could use \definecommand.
>>>>
>>>> Wolfgang
>>> Wolfgang, thanks for pointing me to this. What is the reason of this
>>> unfriendly behavior? I can understand if the \definecharacter command
>>> is gone in mkiv, but simply taking the arguments and sending them
>>> into
>>> nirvana? It was a bit difficult for me to see where the errors in my
>>> environments came from, so I'm really wondering what this is supposed
>>> to do.
>> well, i was not aware of users using \definecharacter
>>
>> (i can make it a chardef if needed)
>>
> Hey, you should know that your users use ConTeXt for all kinds of
> weird and deviant purposes :-)
>
> I have it in some of my private modules/environments, e.g. for
> creating symbols and a metrical font. What would you suggest using
> instead?
\definecharacter etc were closely related to font encoding, so unless
you defined them in 'default' encoding you had to replicate the
definitions in each fotn encoding
a more natural variant for your case is \definesymbol or just
\def\MyFunnySymbol{...}
-----------------------------------------------------------------
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] 8+ messages in thread
* Re: \definecharacter
2008-11-13 8:12 ` \definecharacter Hans Hagen
@ 2008-11-13 9:51 ` Mojca Miklavec
2008-11-13 12:38 ` \definecharacter Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Mojca Miklavec @ 2008-11-13 9:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, Nov 13, 2008 at 9:12 AM, Hans Hagen wrote:
> Thomas A. Schmitz wrote:
>> On Nov 13, 2008, at 8:43 AM, Hans Hagen wrote:
>>> well, i was not aware of users using \definecharacter
>>>
>>> (i can make it a chardef if needed)
>>>
>> Hey, you should know that your users use ConTeXt for all kinds of
>> weird and deviant purposes :-)
>>
>> I have it in some of my private modules/environments, e.g. for
>> creating symbols and a metrical font. What would you suggest using
>> instead?
>
> \definecharacter etc were closely related to font encoding, so unless
> you defined them in 'default' encoding you had to replicate the
> definitions in each fotn encoding
Even in XeTeX or LuaTeX one had to define a character only once.
\definecharacter worked just fine in both of them some time ago and I
find it a pitty to remove it (if there is no serious reason to do so).
Mojca
___________________________________________________________________________________
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] 8+ messages in thread
* Re: \definecharacter
2008-11-13 9:51 ` \definecharacter Mojca Miklavec
@ 2008-11-13 12:38 ` Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2008-11-13 12:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Mojca Miklavec wrote:
> On Thu, Nov 13, 2008 at 9:12 AM, Hans Hagen wrote:
>> Thomas A. Schmitz wrote:
>>> On Nov 13, 2008, at 8:43 AM, Hans Hagen wrote:
>
>>>> well, i was not aware of users using \definecharacter
>>>>
>>>> (i can make it a chardef if needed)
>>>>
>>> Hey, you should know that your users use ConTeXt for all kinds of
>>> weird and deviant purposes :-)
>>>
>>> I have it in some of my private modules/environments, e.g. for
>>> creating symbols and a metrical font. What would you suggest using
>>> instead?
>> \definecharacter etc were closely related to font encoding, so unless
>> you defined them in 'default' encoding you had to replicate the
>> definitions in each fotn encoding
>
> Even in XeTeX or LuaTeX one had to define a character only once.
> \definecharacter worked just fine in both of them some time ago and I
> find it a pitty to remove it (if there is no serious reason to do so).
\def\definecharacter#1 #2 %
{\doifnumberelse{\string#2}
{\setevalue{\string#1}{\utfchar{#2}}}
{\unexpanded\setvalue {\string#1}{#2}}}
\def\definecommand#1 #2 %
{\unexpanded\setvalue{\string#1}{#2}}
-----------------------------------------------------------------
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] 8+ messages in thread
end of thread, other threads:[~2008-11-13 12:38 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-11 22:51 \definecharacter Thomas A. Schmitz
2008-11-11 22:58 ` \definecharacter Wolfgang Schuster
2008-11-12 22:54 ` \definecharacter Thomas A. Schmitz
2008-11-13 7:43 ` \definecharacter Hans Hagen
2008-11-13 8:06 ` \definecharacter Thomas A. Schmitz
2008-11-13 8:12 ` \definecharacter Hans Hagen
2008-11-13 9:51 ` \definecharacter Mojca Miklavec
2008-11-13 12:38 ` \definecharacter Hans Hagen
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).