Community
    • Login

    help about lines arabic

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 1.2k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors