ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Getting property values
@ 2001-09-10  0:40 Olya Briginets
  2001-09-10 21:14 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Olya Briginets @ 2001-09-10  0:40 UTC (permalink / raw)


Hello ConTeXt gurus,

I use the following simple command for debugging purposes:

  \def\thevalue#1#2#3{\csname @@#1#2#3\endcsname}

but maybe there exists a more advanced interface?

Olya


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

* Re: Getting property values
  2001-09-10  0:40 Getting property values Olya Briginets
@ 2001-09-10 21:14 ` Hans Hagen
  2001-09-12 23:01   ` Getting property values (and problem defining accents) Olya Briginets
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2001-09-10 21:14 UTC (permalink / raw)
  Cc: ConTeXt mailing list

At 03:40 AM 9/10/2001 +0300, Olya Briginets wrote:
>Hello ConTeXt gurus,
>
>I use the following simple command for debugging purposes:
>
>   \def\thevalue#1#2#3{\csname @@#1#2#3\endcsname}
>
>but maybe there exists a more advanced interface?

thos is probably ok for your purpose, although it depends a bit on what you 
want to show but in most cases this is ok, but keep in mind that low level 
deep down is dutch [still, but it's slowly changing]

\unprotected \def\thevalue#1#2%
   {\csname @@#1\csname\k!prefix!#2\endcsname\endcsname}

is also a way to handle it, in which case the interface is the current one,

why do you need this?

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: Getting property values (and problem defining accents)
  2001-09-10 21:14 ` Hans Hagen
@ 2001-09-12 23:01   ` Olya Briginets
  2001-09-13 10:26     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Olya Briginets @ 2001-09-12 23:01 UTC (permalink / raw)


Hello Hans,

Hans Hagen wrote:

> >I use the following simple command for debugging purposes:
> >
> >   \def\thevalue#1#2#3{\csname @@#1#2#3\endcsname}
> >
> >but maybe there exists a more advanced interface?
> 
> thos is probably ok for your purpose, although it depends a bit on what you
> want to show but in most cases this is ok, but keep in mind that low level
> deep down is dutch [still, but it's slowly changing]
> 
> \unprotected \def\thevalue#1#2%
>    {\csname @@#1\csname\k!prefix!#2\endcsname\endcsname}
> 
> is also a way to handle it, in which case the interface is the current one,
> 
> why do you need this?

I used it to check some values like  \thevalue{la}{ua}{status} or
\thevalue{la}{ua}{encoding}  to ensure that language is installed properly,
because I had troubles defining some characters.

Specifically, I have a problem defining accented glyphs. I try to use
\defineaccent command:

  \defineaccent " {\cyrillicE} {\cyrillicYO}

But this works only if one writes exactly \"\cyrillicE, which does not make
sense, as symbols are usually entered as 8bit (via different regimes).
Analogously, the example from enco-ini:

  \defineaccent ' {\dotlessi} 237

works if used as \'\dotlessi, not as \'\i. But \dotlessi is usually inputed as
\i, which is the intended way to use it? 
Is there a way to \defineindirectaccent or something alike, which will expand
the next token?

Olya

PS. I hope to send some working support of russian and ukrainian languages in
couple of days.


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

* Re: Getting property values (and problem defining accents)
  2001-09-12 23:01   ` Getting property values (and problem defining accents) Olya Briginets
@ 2001-09-13 10:26     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2001-09-13 10:26 UTC (permalink / raw)
  Cc: ConTeXt mailing list

At 02:01 AM 9/13/2001 +0300, Olya Briginets wrote:

>   \defineaccent " {\cyrillicE} {\cyrillicYO}
>
>But this works only if one writes exactly \"\cyrillicE, which does not make
>sense, as symbols are usually entered as 8bit (via different regimes).
>Analogously, the example from enco-ini:
>
>   \defineaccent ' {\dotlessi} 237
>
>works if used as \'\dotlessi, not as \'\i. But \dotlessi is usually inputed as
>\i, which is the intended way to use it?
>Is there a way to \defineindirectaccent or something alike, which will expand
>the next token?

do you think that \"\cyrrilicE will be used in an 8 bit environment?

it is not so much problem to define something that works, but how obscure 
will docs then get?

let's look into it when you got the basics running

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

end of thread, other threads:[~2001-09-13 10:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-10  0:40 Getting property values Olya Briginets
2001-09-10 21:14 ` Hans Hagen
2001-09-12 23:01   ` Getting property values (and problem defining accents) Olya Briginets
2001-09-13 10:26     ` 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).