Community
    • Login

    Editing Persian text

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 4 Posters 1.3k 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.
    • demon740D
      demon740
      last edited by

      I want to report a bug while editing Persian text.
      In a Persian text select one word then delete it, you will see another word is deleted.
      for example try to delete below word
      آزمایشی
      in the following sentence:
      این یک جمله آزمایشی به زبان فارسی است
      the result is:
      این یک جمله آزمایشان فارسی است
      that still has
      آزمایشی

      thanks

      1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse
        last edited by

        You are using rtl view, aren’t you?
        I have no experience in using npp with rtl languages
        but if you are certain this is a bug, you might consider reporting it here.
        BUT it is most likely that this isn’t an npp issue at all
        because the underlying control used is scintilla which might
        then be reported to their bug tracker.

        demon740D 1 Reply Last reply Reply Quote 1
        • PeterJonesP
          PeterJones
          last edited by

          Might be related to this RTL discussion from December – read down from the post I linked to the bottom. There are a couple of related RTL issues. At first, it was about RTL not rendering right-justified, caused by DSpellCheck plugin; but starting partway through, it was more focused on arrow-key direction in RTL and bad selection of RTL text.

          Unfortunately, it is really hard to disambiguate whether the problem lies in the underlying Scintilla component, or the glue that Notepad++ wraps around Scintilla, or in the interface between the two. In that last thread, we weren’t able to pin it down.

          demon740D 1 Reply Last reply Reply Quote 2
          • demon740D
            demon740 @Ekopalypse
            last edited by demon740

            @Ekopalypse
            Yes Persian is a rtl language and by viewing as rtl (ctrl+alt+r) I can select and delete words correctly.
            the problem happens when you are looking a Persian text in ltr.
            The expected behavior is select a word and delete the same word.
            this behavior exist in many editors like Ms Word (in rtl or ltr for a RTL language)
            I am sure this is a bug.
            another issue is when a word is deleted in RTL mode, if you return to LTR, you can not select words correctly.

            1 Reply Last reply Reply Quote 1
            • demon740D
              demon740 @PeterJones
              last edited by

              @PeterJones
              quote from that post: “correction: the problem is only on LTR layout (both NPP and SciTE). on NPP in RTL is working fine.”

              yes I have check this issue in RTL layout and it was correct, but even in LTR mode it could be correct.
              the result of selecting and deleting must be the same in RTL or LTR.
              I can see this behavior right now in this online text editor:

              این یک متن آزمایشی است

              by selecting and deleting each word, the same word is deleted and it does not matter I am using LTR or RTL (pressing LCTRL+Shift or RCTRL+Shift)

              anyway thanks for you answer.

              EkopalypseE 1 Reply Last reply Reply Quote 1
              • EkopalypseE
                Ekopalypse @demon740
                last edited by

                @demon740

                this might sound odd but can you give it a try to set
                python language to the current active document?
                Seems to solve the issue for me.

                Varoujan AdamianV 1 Reply Last reply Reply Quote 1
                • EkopalypseE
                  Ekopalypse
                  last edited by

                  Did further test and it seems that assigning any lexer solves the issue, even UDL.
                  So there is some initialization code missing if “normal text” aka “no lexer” is used.

                  1 Reply Last reply Reply Quote 2
                  • Varoujan AdamianV
                    Varoujan Adamian @Ekopalypse
                    last edited by

                    @Ekopalypse Thank You

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