• 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: Japanese backslash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Japanese backslash


  • Subject: Re: Japanese backslash
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 23 Apr 2007 09:27:29 -0400

This problem goes way back.  In the original ASCII spec, there were
international variants, and even those national standards bodies who
made up their own character sets tended to base them on ASCII.  In all
of these, code 92 was a popular target for replacement, usually with
the local currency symbol.

In Unicode, decimal 92 is always backslash, but in localized
environments, that's not always true.  However, AFAIK, the Unix
programs that use  backslash for escape just check for code 92
irrespective of locale.    So if you build your command string with (
ASCII code 92 ) it should work everywhere.



On 4/22/07, Takaaki Naganoya <email@hidden> wrote:
In Japanese environment, Yen mark was equal to backslash. Japanese
Yen mark was the escape character.
But the rule was changed in Tiger with NO announcement.

<keyboard input in Tiger>
set a to "¥¥" -- [note] This is not single byte character.  To
avoid the silent translation in each language environment
</keyboard input in Tiger>

[compile]

<result>
set a to "\¥"
</result>

If you want to use the Japanese yen mark, you'd better to indicate it
by ascii character code.
It is the best way to write "Japanese safe" script.

<Japanese safe scripting>
set a to ASCII character 92
</Japanese safe scripting>


//// Japanese safe way scripting ////

(1) Use Japanese yen mark in indirect way
(2) If you want to convert alias into text, cast them into string.
And then cast the string into unicode text to normalize the encoding
of Unicode text (But this method can not use if you want to use roman
number characters in file names).
(3) Don't belive the example scripts bundled with each Mac OS X
pachage box. Apple *NEVER* test them in Japanese enviroment before
shipment.
(4) Don't believe Apple :-)

--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden

On 2007/04/23, at 6:55, email@hidden wrote:

> Hello,
>
> I understand there is a long-standing bug in Applescript that
> translates backslashes to Yen marks, even when scripts are distributed
> in pre-compiled form. I have tried substituting the literal backslash
> with its ASCII character number to no avail. So my question is: what's
> the work-around? Please tell me there is one...
>
> Cheers,
> Fabian
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (applescript-
> email@hidden)
> Help/Unsubscribe/Update your Subscription:
> mark.nu
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>

 _______________________________________________
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



--
Mark J. Reed <email@hidden>
 _______________________________________________
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: 
 >Japanese backslash (From: email@hidden)
 >Re: Japanese backslash (From: Takaaki Naganoya <email@hidden>)

  • Prev by Date: Finding colors in InDesign
  • Next by Date: Re: Finding colors in InDesign
  • Previous by thread: Re: Japanese backslash
  • Next by thread: Re: Re: Japanese backslash
  • Index(es):
    • Date
    • Thread