Re: Roman Numbers
Re: Roman Numbers
- Subject: Re: Roman Numbers
- From: kai <email@hidden>
- Date: Mon, 22 May 2006 15:55:12 +0100
On 22 May 2006, at 08:53, Takaaki Naganoya wrote:
Roman number characters in AppleScript seems wrong.
<sample>
set aText to "XIXIIXIIIabc" as Unicode text
set b to offset of "c" in aText
--> this script returns 10 on Mac OS X 10.4.6 Japanese Environment
-- I think this should be 6.
</sample>
The Unicode range of characters designated as Roman numerals
evidently runs from U+2160 to U+2183. This includes some pre-combined
glyphs for certain numbers up to 12 (mainly to represent numbers on
clock faces). I understand that these pre-combined glyphs are
intended for use where individual glyphs are not wanted, but are not
generally meant to replace compounded numbers.
This example is a single line of code (watch for wraps):
---------
choose from list characters of («data
utxt2160216121622163216421652166216721682169216A216B21702171217221732174
21752176217721782179217A217B» as Unicode text) with prompt "The 24
Roman clock face numerals (upper and lowercase versions) contain 18
pre-combined glyphs representing 2-4, 6-9 & 11-12:" with empty
selection allowed
---------
So, to represent the Roman numeral for 13, you'd need multiple
characters:
---------
«data utxt2169216021602160» as Unicode text
---------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Roman Numbers (From: Takaaki Naganoya <email@hidden>) |