ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* I think I found a bug in \at
@ 2011-03-05 19:21 Cecil Westerhof
  2011-03-05 20:01 ` Peter Münster
  2011-03-06  5:21 ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Cecil Westerhof @ 2011-03-05 19:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 419 bytes --]

I have the folowing code:
\setuplanguage[nl][
  lefthyphenmin=5,
  righthyphenmin=4,
]
\mainlanguage[nl]
\language[nl]

\enableregime[utf]

\starttext

Alleen een test om te laten zien dat de verwijzing
naar \at{page}[test] niet goed gaat.

\reference[test]{}

\stoptext

I would expect that \at{page}[test] gives:
    pagina 1
but it gives:
    page 1

Is it a bug, or am I doing something wrong?

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 521 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: I think I found a bug in \at
  2011-03-05 19:21 I think I found a bug in \at Cecil Westerhof
@ 2011-03-05 20:01 ` Peter Münster
  2011-03-05 20:41   ` Aditya Mahajan
  2011-03-06  5:21 ` Wolfgang Schuster
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Münster @ 2011-03-05 20:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Cecil Westerhof <cldwesterhof@gmail.com> writes:

> I would expect that \at{page}[test] gives:
>     pagina 1
> but it gives:
>     page 1
>
> Is it a bug, or am I doing something wrong?

Probably the latter.

Solution a:
\at{pagina}[test]

Solution b:
\usemodule[googletranslate]
\setupgoogletranslate[from=en, to=nl]
Problem: this module is not written yet... ;-)

Cheers,
-- 
           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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: I think I found a bug in \at
  2011-03-05 20:01 ` Peter Münster
@ 2011-03-05 20:41   ` Aditya Mahajan
  0 siblings, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2011-03-05 20:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 515 bytes --]

On Sat, 5 Mar 2011, Peter Münster wrote:

> Cecil Westerhof <cldwesterhof@gmail.com> writes:
>
>> I would expect that \at{page}[test] gives:
>>     pagina 1
>> but it gives:
>>     page 1
>>
>> Is it a bug, or am I doing something wrong?
>
> Probably the latter.
>
> Solution a:
> \at{pagina}[test]
>
> Solution b:
> \usemodule[googletranslate]
> \setupgoogletranslate[from=en, to=nl]
> Problem: this module is not written yet... ;-)

Solution c:

\at{\labeltext{page}}[test]

Aditya

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: I think I found a bug in \at
  2011-03-05 19:21 I think I found a bug in \at Cecil Westerhof
  2011-03-05 20:01 ` Peter Münster
@ 2011-03-06  5:21 ` Wolfgang Schuster
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2011-03-06  5:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 05.03.2011 um 20:21 schrieb Cecil Westerhof:

> I have the folowing code:
> \setuplanguage[nl][
>   lefthyphenmin=5,
>   righthyphenmin=4,
> ]
> \mainlanguage[nl]
> \language[nl]
> 
> \enableregime[utf]
> 
> \starttext
> 
> Alleen een test om te laten zien dat de verwijzing
> naar \at{page}[test] niet goed gaat.
> 
> \reference[test]{}
> 
> \stoptext
> 
> I would expect that \at{page}[test] gives:
>     pagina 1
> but it gives:
>     page 1
> 
> Is it a bug, or am I doing something wrong?

This just prevents a line break between the text in the braces and the pagenumber, for language dependent labels you need \definereferenceformat.

\mainlanguage[nl]

\definereferenceformat
  [AtPage]
  [label=page,
  %autocase=no,
   ]

\starttext

\reference[test]{\pagenumber}

\at{page}[test]

\AtPage[test]

\stoptext

@Hans: What happend with “command=\at” for \definereferenceformat?

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2011-03-06  5:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-05 19:21 I think I found a bug in \at Cecil Westerhof
2011-03-05 20:01 ` Peter Münster
2011-03-05 20:41   ` Aditya Mahajan
2011-03-06  5:21 ` Wolfgang Schuster

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).