* Re: page numbering in words?
@ 2007-04-16 12:52 Robin Kirkham
0 siblings, 0 replies; 14+ messages in thread
From: Robin Kirkham @ 2007-04-16 12:52 UTC (permalink / raw)
To: ntg-context
Hi all,
There are still a few problems with \numstr when you get beyond the
hundreds. Perhaps this is unlikely when it is a page number, but I
was interested in using this macro for contracts, where an amount of
money is often written out in words.
\input numstr.tex
\starttext
\numstr{-1}\par
\numstr{0}\par
\numstr{101}\par
\numstr{1001}\par
\numstr{1000001}\par
\numstr{1200021}
\stoptext
This produces output:
null
null
one hundred and one
one thousand one
one millionone
one million two hundred thousand twenty-one
which should be:
minus one
zero
one hundred and one
one thousand and one
one million and one
one million, two hundred thousand and twenty-one
In English, the tens/units (if not zero) should be preceded by "and"
if the number exceeds 100 (so 101 is correct in the above output).
This applies whether the tens/units is truly tens/units, or is a
thousands or millions multiplier (120000 = "one hundred and twenty
thousand").
The use of a comma after millions and sometimes thousands is helpful
but not essential, and it only appears in certain cases. I'll have to
think a bit more about a rule for that!
The use of a hyphen between tens and units ("twenty-one") is not
incorrect but is nowadays probably regarded as a little old-fashioned
(but personally, I like it).
Best,
Robin
> Date: 2007-03-29 17:38 +1000
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] page numbering in words?
> cormullion.at.remove.this.mac.com wrote:
> > On 2007-03-28, at 16:49.0, Zhichu Chen wrote:
> >
> >> I modified Wolfgang's macro as the attached file. But I'm really
> >> not a native American, so there must be some special rules that
> >> I've ignored. Wish you good luck.
> >
> > Yes - this works great now. Thank you for sorting out the TeX code,
> > which is like no other language I know ;-). I've changed only one
> > spelling (fourty -> forty) and the rest looks perfect.
>
> It would be nice if someone (one of the module tutorial attendants :-)
> could wrap this command in a module for the contextgarden page.
>
> Cheers,
> Taco
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-29 7:39 ` Taco Hoekwater
@ 2007-04-17 11:09 ` Mojca Miklavec
0 siblings, 0 replies; 14+ messages in thread
From: Mojca Miklavec @ 2007-04-17 11:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 2793 bytes --]
Hello,
I have just noticed this thread (I cannot really catch up reading all
the stuff here) and remembered that I have some really old files lying
somewhere on my computer.
The file dates back to the time when Brooks Moses & Hans have implemented
\defineconversion [sl] [a] [\sloveniancharacters]
for me, so I needed to make sure that I understood the concept.
I didn't review the content, I have just added a small demo at the end.
On 4/16/07, Robin Kirkham wrote:
> Hi all,
>
> There are still a few problems with \numstr when you get beyond the
> hundreds. Perhaps this is unlikely when it is a page number, but I
> was interested in using this macro for contracts, where an amount of
> money is often written out in words.
>
> \input numstr.tex
> \starttext
> \numstr{-1}\par
> \numstr{0}\par
> \numstr{101}\par
> \numstr{1001}\par
> \numstr{1000001}\par
> \numstr{1200021}
> \stoptext
>
> This produces output:
>
> null
> null
> one hundred and one
> one thousand one
> one millionone
> one million two hundred thousand twenty-one
I didn't follow the thread, but the problems might result from the
fact that it was translated from a german counter rather than written
from scratch following some rules.
> which should be:
>
> minus one
> zero
> one hundred and one
> one thousand and one
> one million and one
My example fails on this one, but I guess that it could be fixed if
you tell me the rule to distinguish the two cases.
> one million, two hundred thousand and twenty-one
>
> In English, the tens/units (if not zero) should be preceded by "and"
> if the number exceeds 100 (so 101 is correct in the above output).
> This applies whether the tens/units is truly tens/units, or is a
> thousands or millions multiplier (120000 = "one hundred and twenty
> thousand").
>
> The use of a comma after millions and sometimes thousands is helpful
> but not essential, and it only appears in certain cases. I'll have to
> think a bit more about a rule for that!
>
> The use of a hyphen between tens and units ("twenty-one") is not
> incorrect but is nowadays probably regarded as a little old-fashioned
> (but personally, I like it).
>
> Best,
>
> Robin
I have used this page as a source:
http://www.ego4u.com/en/cram-up/vocabulary/numbers/cardinal
Mojca
Note 1: If the functionality/documentation can be polished out nicely,
the core or m-something might be a better place for such a module than
third-party modules. But I guess that Hans would want to split this
into *.mkii and *.mkiv anyway, so I would probably need to write the
lua implementation for it before asking for inclusion ;)
Note 2: there are some switches which would need to be implemented in
a higher level user interface. Note that the German counter might be
useless since I have never finished it.
[-- Attachment #2: t-counting.tex --]
[-- Type: application/x-tex, Size: 7892 bytes --]
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-28 22:15 ` cormullion
@ 2007-03-29 7:39 ` Taco Hoekwater
2007-04-17 11:09 ` Mojca Miklavec
0 siblings, 1 reply; 14+ messages in thread
From: Taco Hoekwater @ 2007-03-29 7:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
cormullion@mac.com wrote:
> On 2007-03-28, at 16:49.0, Zhichu Chen wrote:
>
>> I modified Wolfgang's macro as the attached file. But I'm really
>> not a native American, so there must be some special rules that
>> I've ignored. Wish you good luck.
>
> Yes - this works great now. Thank you for sorting out the TeX code,
> which is like no other language I know ;-). I've changed only one
> spelling (fourty -> forty) and the rest looks perfect.
It would be nice if someone (one of the module tutorial attendants :-)
could wrap this command in a module for the contextgarden page.
Cheers,
Taco
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-28 15:49 ` Zhichu Chen
@ 2007-03-28 22:15 ` cormullion
2007-03-29 7:39 ` Taco Hoekwater
0 siblings, 1 reply; 14+ messages in thread
From: cormullion @ 2007-03-28 22:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 2007-03-28, at 16:49.0, Zhichu Chen wrote:
> I modified Wolfgang's macro as the attached file. But I'm really
> not a native American, so there must be some special rules that
> I've ignored. Wish you good luck.
Yes - this works great now. Thank you for sorting out the TeX code,
which is like no other language I know ;-). I've changed only one
spelling (fourty -> forty) and the rest looks perfect.
thanks again!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-28 15:09 ` cormullion
@ 2007-03-28 15:49 ` Zhichu Chen
2007-03-28 22:15 ` cormullion
0 siblings, 1 reply; 14+ messages in thread
From: Zhichu Chen @ 2007-03-28 15:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1113 bytes --]
Hi, cormullion
I modified Wolfgang's macro as the attached file. But I'm really not a
native American, so there must be some special rules that I've ignored. Wish
you good luck.
On 3/28/07, cormullion@mac.com <cormullion@mac.com> wrote:
>
> Thanks, Wolfgang and Zhichu. I've managed to get it working. The only
> problem now is to work out how to modify the original macros.
> Numbering is OK up to 20. Then we get onetwenty, twotwenty,
> threetwenty (I did find out how to remove the 'und'). So that's
> another project!
>
> thanks again
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
--
Sincerely yours,
Chen
----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn
----------------------------------------------------------------
[-- Attachment #1.2: Type: text/html, Size: 2112 bytes --]
[-- Attachment #2: numstr.tex --]
[-- Type: application/x-tex, Size: 2741 bytes --]
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-28 12:09 ` Wolfgang Schuster
@ 2007-03-28 15:09 ` cormullion
2007-03-28 15:49 ` Zhichu Chen
0 siblings, 1 reply; 14+ messages in thread
From: cormullion @ 2007-03-28 15:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thanks, Wolfgang and Zhichu. I've managed to get it working. The only
problem now is to work out how to modify the original macros.
Numbering is OK up to 20. Then we get onetwenty, twotwenty,
threetwenty (I did find out how to remove the 'und'). So that's
another project!
thanks again
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-28 11:03 ` cormullion
2007-03-28 11:59 ` Zhichu Chen
@ 2007-03-28 12:09 ` Wolfgang Schuster
2007-03-28 15:09 ` cormullion
1 sibling, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2007-03-28 12:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 961 bytes --]
2007/3/28, cormullion@mac.com <cormullion@mac.com>:
>
> On 2007-03-26, at 17:39.0, cormullion@mac.com wrote:
>
> > is it possible to adjust options so as to get page numbering done in
> > words? Eg
> >
> > "one" "two" ..... "eighty-nine" ... "three hundred and sixty seven" ?
>
> I can't see how to do this in ConText. I can see that the first task
> - converting an integer to a string - could be done by a macro or
> external command, such as Wolfgang's zahl2string.... But how to do
> the second job - feed in a 'raw' pagenumber and output and print a
> converted one?
Hi,
the last to feed in the pagenumber is very easy. I show in next example
how the print the pagenumber in the header with words rather than numbers:
\usemodule[zahl2string]
\starttext
\setuppagenumbering[location=]
\setupheadertexts[\numstr\pagenumber]
Text
\stoptext
BTW, these are not my macros, they come from Jonathan Sauerand
I convertred them only to plain TeX.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1441 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-28 11:03 ` cormullion
@ 2007-03-28 11:59 ` Zhichu Chen
2007-03-28 12:09 ` Wolfgang Schuster
1 sibling, 0 replies; 14+ messages in thread
From: Zhichu Chen @ 2007-03-28 11:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1232 bytes --]
\defineconversion [numstring][\numstr]
\setuppagenumbering[conversion=numstring]
On 3/28/07, cormullion@mac.com <cormullion@mac.com> wrote:
>
> On 2007-03-26, at 17:39.0, cormullion@mac.com wrote:
>
> > is it possible to adjust options so as to get page numbering done in
> > words? Eg
> >
> > "one" "two" ..... "eighty-nine" ... "three hundred and sixty seven" ?
>
> I can't see how to do this in ConText. I can see that the first task
> - converting an integer to a string - could be done by a macro or
> external command, such as Wolfgang's zahl2string.... But how to do
> the second job - feed in a 'raw' pagenumber and output and print a
> converted one?
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
--
Sincerely yours,
Chen
----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn
----------------------------------------------------------------
[-- Attachment #1.2: Type: text/html, Size: 2277 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-26 16:39 cormullion
2007-03-26 18:16 ` Wolfgang Schuster
2007-03-26 18:40 ` Wolfgang Schuster
@ 2007-03-28 11:03 ` cormullion
2007-03-28 11:59 ` Zhichu Chen
2007-03-28 12:09 ` Wolfgang Schuster
2 siblings, 2 replies; 14+ messages in thread
From: cormullion @ 2007-03-28 11:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 2007-03-26, at 17:39.0, cormullion@mac.com wrote:
> is it possible to adjust options so as to get page numbering done in
> words? Eg
>
> "one" "two" ..... "eighty-nine" ... "three hundred and sixty seven" ?
I can't see how to do this in ConText. I can see that the first task
- converting an integer to a string - could be done by a macro or
external command, such as Wolfgang's zahl2string.... But how to do
the second job - feed in a 'raw' pagenumber and output and print a
converted one?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-26 18:40 ` Wolfgang Schuster
@ 2007-03-26 21:31 ` cormullion
0 siblings, 0 replies; 14+ messages in thread
From: cormullion @ 2007-03-26 21:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 2007-03-26, at 19:40.0, Wolfgang Schuster wrote:
> On Mon, 26 Mar 2007 17:39:38 +0100
> cormullion@mac.com wrote:
>
>> is it possible to adjust options so as to get page numbering done in
>> words? Eg
>>
>> "one" "two" ..... "eighty-nine" ... "three hundred and sixty seven" ?
>>
>> Or does this require some more work/code?
>
> I converted the macro to the plain TeX format. The only thing you need
> to do now is to change the german text you own.
thanks - looks like it's do-able, perhaps!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-26 18:16 ` Wolfgang Schuster
@ 2007-03-26 18:44 ` cormullion
0 siblings, 0 replies; 14+ messages in thread
From: cormullion @ 2007-03-26 18:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 2007-03-26, at 19:16.0, Wolfgang Schuster wrote:
> On Mon, 26 Mar 2007 17:39:38 +0100 cormullion@mac.com wrote:
>
>> is it possible to adjust options so as to get page numbering done in
>> words?
> I don't think there is something like this in ConTeXt.
>
> You can try to make somthing by yourself and start with the
> zahl2string
> [1] package for LaTeX and adapt it to ConTeXt. This should be not such
> a big problem, you need only to replace the \newcommand defintions
> with \def and replace the german texts with english ones or whatever
> language you like.
Thanks - it does look quite complicated! But this is a good start...
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-26 16:39 cormullion
2007-03-26 18:16 ` Wolfgang Schuster
@ 2007-03-26 18:40 ` Wolfgang Schuster
2007-03-26 21:31 ` cormullion
2007-03-28 11:03 ` cormullion
2 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2007-03-26 18:40 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
On Mon, 26 Mar 2007 17:39:38 +0100
cormullion@mac.com wrote:
> is it possible to adjust options so as to get page numbering done in
> words? Eg
>
> "one" "two" ..... "eighty-nine" ... "three hundred and sixty seven" ?
>
> Or does this require some more work/code?
I converted the macro to the plain TeX format. The only thing you need
to do now is to change the german text you own.
Wolfgang
[-- Attachment #2: zahl2string.tex --]
[-- Type: text/x-tex, Size: 3593 bytes --]
\catcode`\@=11
\def\numstring#1{\expandafter\@numstring\csname c@#1\endcsname}
\def\Numstring#1{\expandafter\@Numstring\csname c@#1\endcsname}
\def\ordstring#1{\expandafter\@ordstring\csname c@#1\endcsname}
\def\Ordstring#1{\expandafter\@Ordstring\csname c@#1\endcsname}
\def\@numstring#1{\ns@numstr{#1}\ns@neunzehns{null}{}}
\def\@Numstring#1{\expandafter\@@Numstring\expandafter{\number#1}}
\def\@@Numstring#1%
{\edef\@tempa{\@numstring{#1}}%
\expandafter\MakeUppercase\@tempa}
\def\@ordstring#1{\ns@numstr{#1}\ns@neunzehnord{null\-te}{te}}
\def\@Ordstring#1{\expandafter\@@Ordstring\expandafter{\number#1}}
\def\@@Ordstring#1%
{\edef\@tempa{\@ordstring{#1}}%
\expandafter\MakeUppercase\@tempa}
\let\numstr\@numstring%
\let\Numstr\@Numstring%
\let\ordstr\@ordstring%
\let\Ordstr\@Ordstring%
\def\ns@numoutofrange#1#2{\number#1#2}
\def\ns@numstr#1#2#3#4%
{\ifnum\number#1<\@ne%
#3%
\else\ifnum\number#1<1000000000 %
\expandafter\ns@numstring\expandafter{\number#1}#2%
\else%
\ns@numoutofrange{#1}{#4}%
\fi\fi}
\def\ns@numstring#1#2{%
\expandafter\ns@@numstring%
\ifcase%
\ifnum#1<10 1%
\else\ifnum#1<100 2%
\else\ifnum#1<\@m 3%
\else\ifnum#1<\@M 4%
\else\ifnum#1<100000 5%
\else\ifnum#1<1000000 6%
\else\ifnum#1<10000000 7%
\else\ifnum#1<100000000 8%
\else9%
\fi\fi\fi\fi\fi\fi\fi\fi %
\or00000000#1% case 1: Add 8 leading zeros
\or0000000#1% case 2: Add 7 leading zeros
\or000000#1% case 3: Add 6 leading zeros
\or00000#1% case 4: Add 5 leading zeros
\or0000#1% case 5: Add 4 leading zeros
\or000#1% case 6: Add 3 leading zeros
\or00#1% case 7: Add 2 leading zeros
\or0#1% case 8: Add 1 leading zero
\or#1% case 9: Add no leading zeros
\or%
\@nil#2%
\fi}
\def\ns@@numstring#1#2#3#4#5#6#7\or#8\@nil#9%
{\ifnum#1#2#3>\z@
\ns@million#1#2#3%
\ifnum#4#5#6>\z@\space\fi%
\fi%
\ifnum#4#5#6>\z@%
\ns@hundred#4#5#6{#1#2#3}{#4#5}\ns@neunzehn%
\ifnum#4#5#6>\@ne\-\fi%
tau\-send%
\ifnum#7>\z@\-\fi%
\fi%
\ns@hundred#7{#4#5#6}1#9}
\def\ns@million#1#2#3%
{\ifnum#1#2#3=\@ne%
\ns@hundred#1#2#301\ns@neunzehne%
\space%
Mil\-lion%
\else%
\ns@hundred#1#2#301\ns@neunzehns%
\space%
Mil\-lio\-nen%
\fi}
\def\ns@hundred#1#2#3#4#5#6%
{\ifnum#1>\z@%
\ifnum#4#1>\@ne\ns@neunzehn#1\-\fi%
hun\-dert%
\ifnum#2#3>\z@\-\fi%
\fi%
\ifnum#2#3<20 %
\ifnum#5#2#3>\@ne#6{#2#3}\fi%
\else%
\ifnum#3>\z@\ns@neunzehn#3\-und\-\fi%
\ns@neunzig#2%
#60%
\fi}
\def\ns@neunzehn#1%
{\ifcase#1\empty\or ein\or zwei\or drei\or vier\or f\"unf\or sechs\or%
sie\-ben\or acht\or neun\or zehn\or elf\or zw\"olf\or drei\-zehn\or%
vier\-zehn\or f\"unf\-zehn\or sech\-zehn\or sieb\-zehn\or%
acht\-zehn\or neun\-zehn\fi}
\def\ns@neunzehns#1{\ifcase#1\empty\or eins\else\ns@neunzehn{#1}\fi}
\def\ns@neunzehne#1{\ifcase#1\empty\or ei\-ne\else\ns@neunzehn{#1}\fi}
\def\ns@neunzehnord#1%
{\ifcase#1\-ste%
\or er\-ste%
\or zwei\-te%
\or drit\-te%
\or vier\-te%
\or f\"unf\-te%
\or sech\-ste%
\or sieb\-te%
\or ach\-te%
\or neun\-te%
\or zehn\-te%
\or elf\-te%
\or zw\"olf\-te%
\or drei\-zehn\-te%
\or vier\-zehn\-te%
\or f\"unf\-zehn\-te%
\or sech\-zehn\-te%
\or sieb\-zehn\-te%
\or acht\-zehn\-te%
\or neun\-zehn\-te%
\fi}
\def\ns@neunzig#1%
{\ifcase#1
\or
\or zwan\-zig%
\or drei\ss ig%
\or vier\-zig%
\or f\"unf\-zig%
\or sech\-zig%
\or sieb\-zig%
\or acht\-zig%
\or neun\-zig%
\fi}
\catcode`\@=12
\endinput
[-- Attachment #3: zahltest.tex --]
[-- Type: text/x-tex, Size: 1058 bytes --]
\input zahl2string
\long\def\zahlexamples#1
{0 $\Longrightarrow$ #1{0}\endgraf
7 $\Longrightarrow$ #1{7}\endgraf
13 $\Longrightarrow$ #1{13}\endgraf
23 $\Longrightarrow$ #1{23}\endgraf
42 $\Longrightarrow$ #1{42}\endgraf
99 $\Longrightarrow$ #1{99}\endgraf
127 $\Longrightarrow$ #1{127}\endgraf
999 $\Longrightarrow$ #1{999}\endgraf
1000 $\Longrightarrow$ #1{1000}\endgraf
1001 $\Longrightarrow$ #1{1001}\endgraf
2004 $\Longrightarrow$ #1{2004}\endgraf
2017 $\Longrightarrow$ #1{2017}\endgraf
2029 $\Longrightarrow$ #1{2029}\endgraf
9999 $\Longrightarrow$ #1{9999}\endgraf
10000 $\Longrightarrow$ #1{10000}\endgraf
101101 $\Longrightarrow$ #1{101101}\endgraf
999999 $\Longrightarrow$ #1{999999}\endgraf
1000000 $\Longrightarrow$ #1{1000000}\endgraf
1234567 $\Longrightarrow$ #1{1234567}\endgraf
123456789 $\Longrightarrow$ #1{123456789}\endgraf
101101101 $\Longrightarrow$ #1{101101101}\endgraf
999999999 $\Longrightarrow$ #1{999999999}}
\zahlexamples{\numstr}
\zahlexamples{\ordstr}
\bye
[-- Attachment #4: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: page numbering in words?
2007-03-26 16:39 cormullion
@ 2007-03-26 18:16 ` Wolfgang Schuster
2007-03-26 18:44 ` cormullion
2007-03-26 18:40 ` Wolfgang Schuster
2007-03-28 11:03 ` cormullion
2 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2007-03-26 18:16 UTC (permalink / raw)
To: ntg-context
On Mon, 26 Mar 2007 17:39:38 +0100
cormullion@mac.com wrote:
> is it possible to adjust options so as to get page numbering done in
> words? Eg
>
> "one" "two" ..... "eighty-nine" ... "three hundred and sixty seven" ?
>
> Or does this require some more work/code?
Hi ???,
I don't think there is something like this in ConTeXt.
You can try to make somthing by yourself and start with the zahl2string
[1] package for LaTeX and adapt it to ConTeXt. This should be not such
a big problem, you need only to replace the \newcommand defintions
with \def and replace the german texts with english ones or whatever
language you like.
[1] http://ctan.org/tex-archive/macros/latex/contrib/sauerj/
Wolfgang
^ permalink raw reply [flat|nested] 14+ messages in thread
* page numbering in words?
@ 2007-03-26 16:39 cormullion
2007-03-26 18:16 ` Wolfgang Schuster
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: cormullion @ 2007-03-26 16:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
is it possible to adjust options so as to get page numbering done in
words? Eg
"one" "two" ..... "eighty-nine" ... "three hundred and sixty seven" ?
Or does this require some more work/code?
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-04-17 11:09 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16 12:52 page numbering in words? Robin Kirkham
-- strict thread matches above, loose matches on Subject: below --
2007-03-26 16:39 cormullion
2007-03-26 18:16 ` Wolfgang Schuster
2007-03-26 18:44 ` cormullion
2007-03-26 18:40 ` Wolfgang Schuster
2007-03-26 21:31 ` cormullion
2007-03-28 11:03 ` cormullion
2007-03-28 11:59 ` Zhichu Chen
2007-03-28 12:09 ` Wolfgang Schuster
2007-03-28 15:09 ` cormullion
2007-03-28 15:49 ` Zhichu Chen
2007-03-28 22:15 ` cormullion
2007-03-29 7:39 ` Taco Hoekwater
2007-04-17 11:09 ` Mojca Miklavec
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).