Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • BB

      Search accented and non-accented characters alike with one simple setting?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      94 Views
      CoisesC

      @PeterJones said in Search accented and non-accented characters alike with one simple setting?:

      the near-impossible task that @Coises hinted at

      In a C++ plugin, not near-impossible, just tedious. In anything other than C++, maybe near-impossible.

      it might not handle all cases, but it’d definitely handle the single-codepoint accentented characters even if it doesn’t handle all the cases with combing-accent characters – my test with [[=a=]] shows that it just matches the a when my doc is a followed by U+0301 Combining Acute á, but obviously matches the U+00E1 á single-character but my guess is that most of the people who have been asking for accent-insensitive searching are just using simple single-character accented characters, rather than the combing versions. but that is just a guess.

      It could be that (?=[[=a=]])\X would catch most if not all of the combining cases and not add false positives. Matching the full character is important because you’d want to string characters together, and the intervening combining marks would make the match fail.

      And once @coises added the simple version, I am sure he would be innundated with requests to make it handle the combining, and might not like that.

      If I get into this, I will almost certainly go the iterator route. The modify-the-search-string route is plausible, though, for someone who might want to tackle this in Python Script, or probably anything other than a C++ plugin calling Boost::regex directly.

    • Troglo37T

      Is There a Way to Prevent Pasted Text from Spreading Out with Rows of Spaces?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      13
      0 Votes
      13 Posts
      751 Views
      PeterJonesP

      @Troglo37 said in Is There a Way to Prevent Pasted Text from Spreading Out with Rows of Spaces?:

      @PeterJones I’m confused about a couple of things.

      I’m not sure what you mean by supplying the following debug info. How do I do that? The only thing I know how to do is what I provided to you.

      ?-menu’s Debug Info

      Right. That was the Debug Info that was in your last post.

      dir “c:\Program Files\Notepad++”
      dir “c:\Program Files\Notepad++\Plugins”
      dir “c:\Program Files\Notepad++\Plugins\PythonScript”

      Since that same syntax has been used for directory listings in the Microsoft OS command -line environment since the 80s (in DOS back then, and in cmd.exe in modern Windows), I assumed my meaning was obvious. Since it wasn’t, I will explain: Those are me asking for directory listings for each of those directories.

      Please give exact instructions on how and where to extract the file.

      Do you not know how to unzip a .zip in Windows? You right click, and choose to extract all. Easiest is to put it in a temporary directory to start. Then copy all the contents of that directory, and put it into C:\Program Files\Notepad++\Plugins\PythonScript (which is the destination directory that I already told you about, above)

      After you have done that, the directory should contain the files and subdirectories I mentioned above.

      If it doesn’t, give me something to work with: Screenshots, text dumps of directory listings, whatever you can do to give me real information, rather than vague responses.