Skip to main content
FarzanaA
Inspiring
March 29, 2018
Answered

Arabic text flow

  • March 29, 2018
  • 1 reply
  • 2526 views

Hello All,

I am new in After Effects and thus need help. I am writing a javascript which reads the text from the Json file and replaces the content under the text frame in the AE Project file. This works fine if the Text is in English. But If I try to replace the Arabic text then the text looses the formation and breaks the words. I tried changing the keyboard language to Arabic. But it still doesn't work.

The value under the javascript variable looks correct.

Can anyone please help.

Thanks all in advance.

Farzana.

This topic has been closed for replies.
Correct answer Paul Tuersley

No we did not change anything in the template after changing the settings. I guess you are right we will try to create a new project first change the settings and then create the Frames.

Thanks for all the help. Will let you know if it was successful.

Regards

Farzana.


Doesn't have to be a new project, just a new text layer created when text engine is set correctly. Maybe you could have one text layer for Arabic, one for not, and maybe they'll then work as expected regardless of the current text engine pref setting, but I haven't tried that yet.

Paul

1 reply

Inspiring
March 29, 2018

Have you tried changing Preferences > Type > Text Engine to South Asian and Middle Eastern? The last few versions of AE have included native support for right to left languages like Arabic and this is by far the easiest approach to use.

Paul

FarzanaA
FarzanaAAuthor
Inspiring
March 29, 2018

Hi Paul,

Thanks for the quick reply, but I tried and it didn't work. It does work If I try to type the Text directly. But with replacement of Text using through javascript code [layername].sourcetext.setValue(javaScriptvalue)  it is not replacing correctly.

Farzana.

Inspiring
March 29, 2018

It's definitely possible to do through a script as my pt_ImportSubtitles script does when that pref is selected. I guess the next thing I'd look at is whether the text is being preserved correctly both inside and during import of the json file. Maybe you should start by just reading it from a basic UTF-8 encoded text file (i.e. not json) and work from there.

Paul