help about lines arabic
-
hey
long story short i am here to Translate a game to the arabic but in my note after the auto translate i got the lines upside down
the first line in the bottom and the last line first !!! i need to flip it back but i don’t know how … i wana do it manually but its 35000 line ,
it will take too long and i wana add [keep.text] at the start of every line …it will be so helpful if you give me any hint
-
is it really the case that you need to flip text from
fifth fourth third second first
to
first second third fourth fifth
if so, install the python script plugin and once done do
Plugins->Python Script->Show Console and execute the following
editor.setText('\r\n'.join(reversed(editor.getText().splitlines())))
in the run area of the python console.Cheers
Claudia -
done and it work fine thank you very much Claudia
the last thing is to add “[keep.text]” at the start of every line
-
a little bit cryptic but this one can do it
editor.setText('\r\n'.join(reversed(['[keep.text]{}'.format(x) for x in editor.getText().splitlines()])))
Cheers
Claudia