Any ideas?
thanks,
nate
How do you plan to represent MMIV? Or, VIII for that matter. Gosh darn, this font has Roman Numerals at my finger tips. XI. There, I did it again. III.I IV I V IX II VI V III V VIII IX VII IX III II III VIII IV VI II VI IV
That's Pi (to 23 decimal places), except that Roman Numerals can't really be used for decimals.
Dave
tell application "iTunes"
set myRomNums to {"I. ", "II. ", "III. ", "IV. ", "V. ", "VI. ", "VII. ", "VIII. ", "IX. ", "X. ", "XI. "}
copy selection to allTracks
repeat with i from 1 to count of allTracks
set aTrack to item i of allTracks
set temp1 to name of aTrack
set AppleScript's text item delimiters to " "
set myParts to every text item of temp1
set AppleScript's text item delimiters to ""
set myNum to characters 1 thru -2 of item 1 of myParts
set AppleScript's text item delimiters to " "
set myParts to rest of myParts
set myName to item myNum of myRomNums & (every item of myParts as string)
set aTrack's name to myName
end repeat
end tell
Dave
I suspect that if you want to convert arbitrarily large numbers, you need a different approach that the one I chose.
Dave
It is only 10 lines of code, but some are macros, making it difficult to extract for this message.
The main technique is to do some calculations with the original number and the string "m2d5c2l5x2v5i". It is quite a clever algorithm.
-dp-
Here in the East, it's now VIII:LII PM. Can we take a break until the AM?
<lol>
Neil
They're Roman, Roman, Roman, Roman.... <vbg>
Neil
What do the gurus say about this in this day and age?
You guessed it: MM.
A credit to the university and the Great State of California. :-)
Victor
Wasn't the reason Roman numerals were initially used for the copyright dates in movies to make it harder for the average viewer to work out when the film was made? I recall it was also supposed to have some relation to television (maybe making it harder for people to realise they were seeing a very old film on TV?), but though I've seen this sort of information repeated often, I'm still not sure if it's an urban myth.
Nor I. One of the glories of a state institution.
Victor
> Well, when my wife started her job in the Classics dept at UC
> Davis, she was required to establish that she had in fact received
> her Ph. D.
In my entire post-Ph.D. academic career, I have never been asked to
Unicode 2167 is "VIII"
Unicode 216B is "XII"
Unicode 2178 is "ix"
etc.
<http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=2167>
<http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=216B>
<http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=2178>
Just being objectionary....
T
I am not working on a project where roman numerals are used as part of an identifying label. I have no idea why. Anyway, I'd use the dedicated symbols if they existed. I normally use cronos, minion, myriad, and other common typefaces (not all in the same document).
I didn't see them browsing through InDesign's glyph palette.
> I am not working on a project where roman numerals are used as
> part of an identifying label. I have no idea why.
I'm not either.
Regards,
T
The Mac OS X Character Palette with its Font Variation pane is a wonderful thing, no?
Kari
Neil
And the answer is: typing the letters is easier -- but, is the result the same?
Aha! InDesign's glyph palette shows me that the result is the same; the numerals are sans serif. Mind you, the spacing is different. I guess the spacing doesn't matter if you only want to count from 1 to 12 with the occasional use of 50, 100, 500, and 1,000. Start using combinations and you're going to have spacing issues.
InDesign's custom glyphs sets would make these pretty easy to access. But generally speaking, it seems to me, the numerals ought to be serifed. I'll often swith to a serif font if the need arises for Roman Numerals, even when the body is set in sans serif.
Dave
I found the Lucida Grande sans-serif Roman Numerals using the Apple Character Palette. However it's not found in the "Roman" view, surprisingly enough! You have to use either the "Unicode" or "Glyph" view (the pop-up in the upper left corner of the Character Palette.
The Unicode view has three tabbed sections: Unicode Blocks, Unicode Table, and Favorites. Select "Unicode Blocks". The Block with the Roman numerals is named "Number Forms" about halfway down the list. Then you should see the Roman Numerals.
If you then select one of the Roman Numerals, then you can select the "Font Variation" drop-down menu. This will show *all* of your loaded fonts which have that particular character.
Then if you select one of the font variations like for Lucida Grande Bold, then you can change the View to "Glyph". This shows the character of interest in the font you selected, along with other nearby characters. And if you "hover" over a character, you can see the Unicode, UTF8, and Character-ID numbers for that particular glyph. And then you can "Insert with Font" into whatever document you have open.
Teach a man to fish, and eventually he'll find the sideways Latin Characters in Kozuka Mincho Std. ;)
My Character Palette doesn't seem to have that pop-up.
Dave
It works for me the way Darryl describes in Mac OS X 10.3.4. Do you have Panther installed? This enhancement came with Panther, I believe.
Ah, that's interesting. I see the same palette as you on my iMac/20 but not on my iMac G3/700. And they're both running 10.3.4.
Hmmm again.
Dave
Teach a man to fish, and eventually he'll find the sideways Latin Characters
in Kozuka Mincho Std. ;)
Well said!
I’m wondering why Unicode actually has distinct characters for roman numerals. The Wikipedia article
<http://en.wikipedia.org/wiki/Roman_numerals>
mentions compatibility with non-Western-European character sets. But the way the article displays in my browser makes it hard to understand what it’s really trying to say.
What’s also interesting is that the Lucida Grande font with these characters uses a slightly different shape for the second and third ‘I’ and ‘i’ of the numerals VII, VIII, XII, vii, viii, and xii. At first glance this looks like a mistake, but it seems pretty consistent. Anybody know why?
Dave
The article displayed fine for me, they even used a couple of the Unicode Roman Numerals.
And if I had 65,000 Unicode slots to fill, I wouldn't begrudge giving Roman numerals a small number of slots.