Fwd: Re: [sword-devel] request
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*)
from_rom returns -1 when it finds an invalid numeral (assuming the original
author's logic was correct).
> -----Original Message-----
> From: email@example.com
> [mailto:firstname.lastname@example.org]On Behalf Of Troy A. Griffitts
> Sent: Sunday, February 25, 2001 1:57 PM
> To: email@example.com
> 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.