Community
    • Login

    help about lines arabic

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 942 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • saud s.kS
      saud s.k
      last edited by

      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

      Claudia FrankC 1 Reply Last reply Reply Quote 2
      • Claudia FrankC
        Claudia Frank @saud s.k
        last edited by Claudia Frank

        @saud-s.k

        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

        1 Reply Last reply Reply Quote 2
        • saud s.kS
          saud s.k
          last edited by

          done and it work fine thank you very much Claudia

          the last thing is to add “[keep.text]” at the start of every line

          Claudia FrankC 1 Reply Last reply Reply Quote 1
          • Claudia FrankC
            Claudia Frank @saud s.k
            last edited by

            @saud-s.k

            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

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors