Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script to change language

New Here ,
Feb 17, 2008 Feb 17, 2008
I need to find all cyrillic characters in a file and set their language to Russian. CS3 cannot find them with grep, so I reckon on doing them one at a time, can anyone help me with an Applescript line which would find X and set its language to Russian? The cyrillic characters in the font in question (Baskerville 10 by Storm) are unicode 0401 through 0491, I'm not sure if the script line needs to be of text or glyph type...

Thanks!

Andrew Brown

(PS. I use the sample find-replace script a lot, but don't know how to adapt it to this purpose.)
TOPICS
Scripting
556
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 17, 2008 Feb 17, 2008
>CS3 cannot find them with grep

Try this: search for [\x{0401}-\x{0491}] and set Rusian in the Change Format pane. That should doe what you want.

Peter
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 18, 2008 Feb 18, 2008
LATEST
That works perfectly, thanks Peter ! -- AB

On 17 Feb 2008, at 18:16, Peter Kahrel wrote:

> A new message was posted by Peter Kahrel in
>
> InDesign Scripting --
> Script to change language
>
> CS3 cannot find them with grep
>
> Try this: search for [\x{0401}-\x{0491}] and set Rusian in the
> Change Format pane. That should doe what you want.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines