Fwd: Re: [sword-devel] request

Chris Little sword-devel@crosswire.org
Sun, 25 Feb 2001 15:30:33 -0800


done.  I grabbed roman.c from
http://downloads.excite.ca/linux/conhtml/preview/8968.html (GPLed) and
removed the standalone console app functions.  It has two functions:

char* to_rom(int, char*)
int from_rom(char*)

from_rom returns -1 when it finds an invalid numeral (assuming the original
author's logic was correct).

--Chris

> -----Original Message-----
> From: owner-sword-devel@crosswire.org
> [mailto:owner-sword-devel@crosswire.org]On Behalf Of Troy A. Griffitts
> Sent: Sunday, February 25, 2001 1:57 PM
> To: sword-devel@crosswire.org
> Subject: Re: Fwd: Re: [sword-devel] request
>
>
> > Thank you Troy for the information.
> > To fully support the ThML spec it would be nice if the parsing mechanism
> > could handle roman numberings like xii etc.
>
> Anyone willing to write a roman numeral parser?
>
> int romanParse(const char *romanNumberString);
>
> that returns a -1 if the string is not a roman numeral, otherwise the
> integer representation of the number.
>
> I'd be happy to try to integrate it into the verse parser.