• 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: specifying "text" language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: specifying "text" language


  • Subject: Re: specifying "text" language
  • From: Takaaki Naganoya <email@hidden>
  • Date: Tue, 9 Dec 2008 10:28:18 +0900

How about picking up one line from unidentified text object (UTO) and search the words by Google?
Result pages include each URL. URLs contain each country top level domain. :-)


The another serious approach is .. calculate character code distribution in each language.
Character code distribution and pick up characteristic character (ex: Umlaut) may help you to specify which language the text is.


JPEG image



On 2008/12/02, at 16:13, Jean-Christophe Helary wrote:

Is there a way to specify a text language without having to rely on the International preferences ?

The reference for "word" indicates:

A continuous series of characters, with word elements parsed according to the word-break rules set in the International preference pane.
Because the rules for parsing words are thus under user control, your scripts should not count on a deterministic text parsing of words.



But what if I need to parse a multilingual text, or a foreign text in a different environment, for ex, Japanese in a French "International" setting ?


Are there programatic ways to accomplish that ?

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


This email sent to email@hidden


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

PiyoCast Web (Podcasting with Music!)
http://www.piyocast.com
Free AppleScript Library "AS Hole"
http://www.piyocast.com/as/



 _______________________________________________
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

  • Follow-Ups:
    • Re: specifying "text" language
      • From: Jean-Christophe Helary <email@hidden>
References: 
 >specifying "text" language (From: Jean-Christophe Helary <email@hidden>)

  • Prev by Date: applescript shell script SCP?
  • Next by Date: Re: applescript shell script SCP?
  • Previous by thread: specifying "text" language
  • Next by thread: Re: specifying "text" language
  • Index(es):
    • Date
    • Thread