I think I found a bug in \at
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
Cecil Westerhof
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
On Sat, 5 Mar 2011, Peter Münster wrote:
Cecil Westerhof
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
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
participants (4)
-
Aditya Mahajan
-
Cecil Westerhof
-
pmlists@free.fr
-
Wolfgang Schuster