• Login
Community
  • Login

Editing Persian text

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 4 Posters 1.4k 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.
  • D
    demon740
    last edited by Feb 17, 2020, 9:58 AM

    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
    • E
      Ekopalypse
      last edited by Feb 17, 2020, 12:01 PM

      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.

      D 1 Reply Last reply Feb 19, 2020, 4:16 AM Reply Quote 1
      • P
        PeterJones
        last edited by Feb 17, 2020, 2:03 PM

        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.

        D 1 Reply Last reply Feb 19, 2020, 4:34 AM Reply Quote 2
        • D
          demon740 @Ekopalypse
          last edited by demon740 Feb 19, 2020, 4:18 AM Feb 19, 2020, 4:16 AM

          @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
          • D
            demon740 @PeterJones
            last edited by Feb 19, 2020, 4:34 AM

            @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.

            E 1 Reply Last reply Feb 19, 2020, 12:01 PM Reply Quote 1
            • E
              Ekopalypse @demon740
              last edited by Feb 19, 2020, 12:01 PM

              @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.

              V 1 Reply Last reply May 24, 2023, 5:17 AM Reply Quote 1
              • E
                Ekopalypse
                last edited by Feb 19, 2020, 12:32 PM

                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
                • V
                  Varoujan Adamian @Ekopalypse
                  last edited by May 24, 2023, 5:17 AM

                  @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