Roman Numeral Conversion API 0.0.4 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News Roman Numeral Conversion API 0.0.4 (Default branch)
# 1  
Old 02-02-2008
Roman Numeral Conversion API 0.0.4 (Default branch)

ImageRoman Numeral Conversion API performs Romannumeral conversions and formats date data usingRoman numerals and Latin. The romandate command issimilar to the standard Unix date command. Theromannum command provides command line conversionto and from Roman numerals. Libroman contains the functions roman_ctime(), roman_asctime(), and roman_strftime(). These functions provide the same functionality as ctime(), asctime(), and strftime() using Roman numerals to generate the strings.License: GNU General Public License v2Changes:
The long2roman() and roman2long() were re-named to int2roman() and roman2int(), which more closely match the actual data types used by these functions. The old function names will still work. roman2int() is more strict about the Roman numeral syntax. Invalid numerals such as VX, VV, IIIII, IC, and IXI now produce an error. Romannum now auto-detects the type of conversion to perform instead of depending on a command line switch.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Numeral conversion in awk

I am running into conversion of string to numbers in awk that I can't understand and don't know how to deal with properly My script checks for numeric only field, I use this approach to do that: $1 + 0 == $1 It works most of the time, but in some cases it does not behave how I expect it to... (5 Replies)
Discussion started by: migurus
5 Replies
Login or Register to Ask a Question
XHPKeysymToRoman8(3X)													     XHPKeysymToRoman8(3X)

NAME
XHPKeysymToRoman8, XHPRoman8ToKeysym - convert between X KeySyms and HP Roman8 characters SYNTAX
int XHPKeysymToRoman8(keysym, r8_return) KeySym keysym; char *r8_return; KeySym XHPRoman8ToKeysym(r8_char) char r8_char; ARGUMENTS
keysym An X11 KeySym. r8_return A pointer to a location to receive the converted Roman 8 character corresponding to keysym, if any. r8_char An HP Roman 8 character. DESCRIPTION
XHPKeysymToRoman8 takes an X11 KeySym and converts it to an HP Roman 8 character. The character is returned to the location pointed to by r8_return. If no Roman 8 equivalent for keysym exists, then XHPKeysymToRoman8 returns 0 and *r8_return is unchanged. If the conversion suc- ceeds, then XHPKeysymToRoman8 returns 1. XHPRoman8ToKeysym takes an HP Roman8 character and returns an X11 KeySym. Most of the KeySyms returned by XHPRoman8ToKeysym will be in the ISO Latin 1 set and TTY functions . Two of the characters in the Roman 8 set ('S' with caron and 's' with caron) convert to KeySyms in the ISO Latin 2 set. Some KeySyms returned are unique to HP because Roman 8 contains characters that were not encoded in the KeySyms distributed by MIT. ORIGIN
Hewlett-Packard Company SEE ALSO
XLookupKeysym(3X) Programming With Xlib X Version 11 Release 5 XHPKeysymToRoman8(3X)