NAME

ltxwords - generate LaTeX macro to convert numbers to written format

SYNOPSIS

ltxwords [ options ] > inwords.sty

From LaTeX:

UsePackage{inwords}

... \Words{section} ...

Options:

--language=XX        language code, defaults to $LANG
--max=NN             number of entries, default = 20
--ident		show identification
--help		brief help message
--verbose		verbose information

OPTIONS

--language=code

ISO code of the language to generate the macro for.

--max=max

The highest number that should be convertible.

--verbose

More verbose information.

--version

Print a version identification to standard output and exits.

--help

Print a brief help message to standard output and exits.

--ident

Prints a program identification.

DESCRIPTION

inwords writes to standard output a LaTeX sty file that defines a macro Words that converts a number to written format.

For example, when \thesection equals seven, \Words{section} will return the string "Seven".

Basic usage:

$ inwords --language=nl > inwords.sty

And then, from LaTeX:

UsePackage{inwords}

...  \Words{section} ...

For each target language, it requires the corresponding Lingua::XX::Numbers module to be installed, where XX is the uppercased ISO code for the desired language.

For Dutch, the module Lingua::NL::Numbers::GroeneBoekje is required.

BUGS

Due to the collective wishdom of the authors, the Lingua::*::Numbers modules do not have any sensible common API. They don't even follow the naming convention Lingua::*::Numbers!

This program tries to guess a way to get the module to work, but there's no guarantee that it will work with your choice of language. Patches welcome.

AUTHOR

Johan Vromans <jvromans@squirrel.nl>

COPYRIGHT

This programs is Copyright 2006 Squirrel Consultancy.

This program is free software; you can redistribute it and/or modify it under the terms of the Perl Artistic License or the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.