• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reformatting a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reformatting a string


  • Subject: Re: Reformatting a string
  • From: Jon Pugh <email@hidden>
  • Date: Sat, 28 Jan 2012 10:29:12 -0800

>>>> Only three codes treated it correctly.
>>>>
>>>> Using alphabetic order, they are :
>>>> the one triggering ASObjC Runner
>>>> the one triggering Python
>>>> the two triggering Satimage
>
>> I apologize but from my point of view, the three are wrongly treating ß
>>
>> Python leave it as is
>>
>> Satimage and ASObjC Runner replace it by SS.
>> This late choice is a sad remembrance of the typewriter era (and it's really not a good idea).
>>
>> Since 2007/2008, Unicode define the uppercase version of
>> ß ($DF, LATIN SMALL LETTER SHARP S)
>> as :
>> ẞ ($1E9E, LATIN CAPITAL LETTER SHARP S)
>>
>> It seems that it's time for these languages to take care of the official character.
>> As I know that Emmanuel is visiting this forum, I hope that Satimage will be the first one to deliver an up to date converter.
>
> I tend to disagree.
> The "Capital ß" character in Unicode is pretty controversial as far as I know and is actually not part of the official German orthography (yet?).
> So for now I am happy enough with the "SS" version (although the acronym carries unpleasant connotations).
> The "SS" as such hasn't anything to do with typewriters but is due to the fact that German words don't start with an ß, so there is no need for a capital ß unless you capitalise whole words. Personally, I find the present typographic solutions not really convincing (see http://de.wikipedia.org/wiki/Großes_ß).

This whole argument is one reason why my SmartString class is valuable.  My upper/lower/titlecase routines use a customizable table so you can ensure that the transformations you want are properly made, as it’s all in AppleScript.  Currently the table is a unicode to unicode single character mapping, but it would be simple enough to use a list in place of a string so that you could do a multi-character mapping, if that were necessary.

I’m not overly worried about it as I’m a classic American monolingual ethnocentrist, but I’m happy to oblige the world’s assorted conventions.

As such, SmartString is delivered as pure-AppleScript source, free for the use and modification.

It adjusts KŒNIG properly, and I just updated it with the ß to ẞ transformation, because it is simple, ignoring the argument about whether it’s the most accurate transformation or not.  ;)

http://www.seanet.com/~jonpugh/software/SmartString.applescript

Sorry to keep flogging it, but software you can control is worth a lot these days.

Jon


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >Reformatting a string (From: Angelo <email@hidden>)
 >Re: Reformatting a string (From: Michelle Steiner <email@hidden>)
 >Re: Reformatting a string (From: KOENIG Yvan <email@hidden>)
 >Re: Reformatting a string (From: KOENIG Yvan <email@hidden>)
 >Re: Reformatting a string (From: Shane Stanley <email@hidden>)
 >Re: Reformatting a string (From: KOENIG Yvan <email@hidden>)
 >Re: Reformatting a string (From: Thomas Fischer <email@hidden>)

  • Prev by Date: Re: setting a preference with do Shell Script
  • Next by Date: Re: Reformatting a string
  • Previous by thread: Re: Reformatting a string
  • Next by thread: Re: Reformatting a string
  • Index(es):
    • Date
    • Thread