• 0 Votes
    2 Posts
    7k Views
    guy038G

    Hello, @jaack-mcmahon, and All,

    Here, is, bellow, a NON-exhaustive table of some Unicode characters, with code-point, above 007Fh, taken from the following Unicode blocks :

    Latin 1 Supplement General Punctuation Mathematical Operators Miscellaneous Symbols Specials

    which can be replaced by a similar standard ASCII character, with code-point < 0080h :

    +--------------------------------------------------------------+---------------------------------------------+ | NON-ASCII Character with Code > \x{007F} | Similar Character(s) with Code < \x{0080} | +--------------------------------------------------------------+---------------------------------------------+ | Code | Char | Character Name | Code | Char | Character Name | +--------+------+----------------------------------------------+--------+---------+--------------------------+ | 00A0 |   | NO-BREAK SPACE | 0020 | | SPACE | | 00A6 | ¦ | BROKEN BAR | 007C | | | VERTICAL LINE | | 00AB | « | LEFT-POINTING DOUBLE ANGLE QUOTATION MARK | 0022 | " | QUOTATION MARK | | 00AD | ­ | SOFT HYPHEN | 002D | - | HYPHEN-MINUS | | 00B4 | ´ | ACUTE ACCENT | 0027 | ' | APOSTROPHE | | 00B7 | · | MIDDLE DOT | 002E | . | FULL STOP | | 00BB | » | RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK | 0022 | " | QUOTATION MARK | | 00BC | ¼ | VULGAR FRACTION ONE QUARTER | | 1/4 | | | 00BD | ½ | VULGAR FRACTION ONE HALF | | 1/2 | | | 00BE | ¾ | VULGAR FRACTION THREE QUARTERS | | 3/4 | | | 00D7 | × | MULTIPLICATION SIGN | 0078 | x | LATIN SMALL LETTER X | +--------+------+----------------------------------------------+--------+---------+--------------------------+ | 2000 |   | EN QUAD | | \x20{2} | | | 2001 |   | EM QUAD | | \x20{4} | | | 2002 |   | EN SPACE | | \x20{2} | | | 2003 |   | EM SPACE | | \x20{4} | | | 2004 |   | THREE-PER-EM SPACE | 0020 | | SPACE | | 2005 |   | FOUR-PER-EM SPACE | 0020 | | SPACE | | 2007 |   | FIGURE SPACE | | \x20{2} | | | 2008 |   | PUNCTUATION SPACE | 0020 | | SPACE | | 2010 | ‐ | HYPHEN | 002D | - | HYPHEN-MINUS | | 2011 | ‑ | NON-BREAKING HYPHEN | 002D | - | HYPHEN-MINUS | | 2012 | ‒ | FIGURE DASH | | -- | | | 2013 | – | EN DASH | 002D | - | HYPHEN-MINUS | | 2014 | — | EM DASH | 002D | - | HYPHEN-MINUS | | 2015 | ― | HORIZONTAL BAR | 002D | - | HYPHEN-MINUS | | 2016 | ‖ | DOUBLE VERTICAL LINE | | || | | | 2018 | ‘ | LEFT SINGLE QUOTATION MARK | 0027 | ' | APOSTROPHE | | 2019 | ’ | RIGHT SINGLE QUOTATION MARK | 0027 | ' | APOSTROPHE | | 201A | ‚ | SINGLE LOW-9 QUOTATION MARK | 002C | , | COMMA | | 201B | ‛ | SINGLE HIGH-REVERSED-9 QUOTATION MARK | 0060 | ` | GRAVE ACCENT | | 201C | “ | LEFT DOUBLE QUOTATION MARK | 0022 | " | QUOTATION MARK | | 201D | ” | RIGHT DOUBLE QUOTATION MARK | 0022 | " | QUOTATION MARK | | 201E | „ | DOUBLE LOW-9 QUOTATION MARK | | ,, | | | 201F | ‟ | DOUBLE HIGH-REVERSED-9 QUOTATION MARK | 0022 | " | QUOTATION MARK | | 2022 | • | BULLET | 002E | . | FULL STOP | | 2024 | ․ | ONE DOT LEADER | 002E | . | FULL STOP | | 2025 | ‥ | TWO DOT LEADER | | .. | | | 2026 | … | HORIZONTAL ELLIPSIS | | ... | | | 2032 | ′ | PRIME | 0027 | ' | APOSTROPHE | | 2033 | ″ | DOUBLE PRIME | | '' | | | 2034 | ‴ | TRIPLE PRIME | | ''' | | | 2035 | ‵ | REVERSED PRIME | 0060 | ` | GRAVE ACCENT | | 2036 | ‶ | REVERSED DOUBLE PRIME | | `` | | | 2037 | ‷ | REVERSED TRIPLE PRIME | | ``` | | | 2039 | ‹ | SINGLE LEFT-POINTING ANGLE QUOTATION MARK | 003C | < | LESS-THAN SIGN | | 203A | › | SINGLE RIGHT-POINTING ANGLE QUOTATION MARK | 003E | > | GREATER-THAN SIGN | | 203D | ‽ | INTERROBANG | | !? | | | 2044 | ⁄ | FRACTION SLASH | 002F | / | SOLIDUS | +--------+------+----------------------------------------------+--------+---------+--------------------------+ | 2212 | − | MINUS SIGN | 002D | - | HYPHEN-MINUS | | 2215 | ∕ | DIVISION SLASH | 002F | / | SOLIDUS | | 2216 | ∖ | SET MINUS | 005C | \ | REVERSE SOLIDUS | | 2217 | ∗ | ASTERISK OPERATOR | 002A | * | ASTERISK | | 2223 | ∣ | DIVIDES | 007C | | | VERTICAL LINE | | 2225 | ∥ | PARALLEL TO | | || | | | 2227 | ∧ | LOGICAL AND | 005E | ^ | CIRCUMFLEX ACCENT | | 2228 | ∨ | LOGICAL OR | 0056 | V | LATIN CAPITAL LETTER V | | 222A | ∪ | UNION | 0055 | U | LATIN CAPITAL LETTER U | | 2236 | ∶ | RATIO | 003A | : | COLON | | 2237 | ∷ | PROPORTION | | :: | | | 2239 | ∹ | EXCESS | | -: | | | 223C | ∼ | TILDE OPERATOR | 007E | ~ | TILDE | | 2254 | ≔ | COLON EQUALS | | := | | | 2255 | ≕ | EQUALS COLON | | =: | | | 2264 | ≤ | LESS-THAN OR EQUAL TO | | <= | | | 2265 | ≥ | GREATER-THAN OR EQUAL TO | | >= | | | 226A | ≪ | MUCH LESS-THAN | | << | | | 226B | ≫ | MUCH GREATER-THAN | | >> | | | 2276 | ≶ | LESS-THAN OR GREATER-THAN | | <|> | | | 2277 | ≷ | GREATER-THAN OR LESS-THAN | | >|< | | | 22C0 | ⋀ | N-ARY LOGICAL AND | 005E | ^ | CIRCUMFLEX ACCENT | | 22C1 | ⋁ | N-ARY LOGICAL OR | 0056 | V | LATIN CAPITAL LETTER V | | 22C3 | ⋃ | N-ARY UNION | 0055 | U | LATIN CAPITAL LETTER U | | 22C5 | ⋅ | DOT OPERATOR | 002E | . | FULL STOP | | 22C6 | ⋆ | STAR OPERATOR | 002A | * | ASTERISK | | 22D8 | ⋘ | VERY MUCH LESS-THAN | | <<< | | | 22D9 | ⋙ | VERY MUCH GREATER-THAN | | >>> | | | 22EF | ⋯ | MIDLINE HORIZONTAL ELLIPSIS | | ... | | +--------+------+----------------------------------------------+--------+---------+--------------------------+ | 2639 | ☹ | WHITE FROWNING FACE | | :-( | | | 263A | ☺ | WHITE SMILING FACE | | :-) | | +--------+------+----------------------------------------------+--------+---------+--------------------------+ | FFFD | � | REPLACEMENT CHARACTER | 003F | ? | QUESTION MARK | +--------+------+----------------------------------------------+--------+---------+--------------------------+

    Now, let’s suppose that, from the list, below, you would like to replace these 14 Unicode characters, on the left, with their similar standard character, on the right :

    | 00A6 | ¦ | BROKEN BAR | 007C | | | VERTICAL LINE | | 00BD | ½ | VULGAR FRACTION ONE HALF | | 1/2 | | | 2000 |   | EN QUAD | | \x20{2} | | | 2001 |   | EM QUAD | | \x20{4} | | | 2018 | ‘ | LEFT SINGLE QUOTATION MARK | 0027 | ' | APOSTROPHE | | 2019 | ’ | RIGHT SINGLE QUOTATION MARK | 0027 | ' | APOSTROPHE | | 201C | “ | LEFT DOUBLE QUOTATION MARK | 0022 | " | QUOTATION MARK | | 201D | ” | RIGHT DOUBLE QUOTATION MARK | 0022 | " | QUOTATION MARK | | 203D | ‽ | INTERROBANG | | !? | | | 2264 | ≤ | LESS-THAN OR EQUAL TO | | <= | | | 2265 | ≥ | GREATER-THAN OR EQUAL TO | | >= | | | 2639 | ☹ | WHITE FROWNING FACE | | :-( | | | 263A | ☺ | WHITE SMILING FACE | | :-) | | | FFFD | � | REPLACEMENT CHARACTER | 003F | ? | QUESTION MARK |

    Then :

    Open the Replace dialog, in N++ ( Ctrl + H )

    Type in the regex (¦)|(½)|( )|( )|(‘)|(’)|(“)|(”)|(‽)|(≤)|(≥)|(☹)|(☺)|(�), in the Find what: zone

    Type in the regex (?1|)(?{2}1/2)(?3\x20\x20)(?4\x20\x20\x20\x20)(?5')(?6')(?7")(?8")(?9!?)(?{10}<=)(?{11}>=)(?{12}\:-\()(?{13}\:-\))(?{14}?), in the Replace with: zone

    Tick the Wrap around option

    Select the Regular expression search mode

    Click, once , on the Replace All button, or several times on the Replace button

    Et voilà !

    Notes :

    In search, we, simply, put each character, to be replaced, between round parentheses, in order to be stored as group 1, 2 and so on…

    In replacement, we use a special conditional syntax (?#xxxx:yyyy) or (?{#..#}xxxx:yyyy), where :

    # or #...# represents a group number

    The part xxxx is rewritten, if group # or #...# exists

    The part yyyy is rewritten, if group # or #...# does not exist

    In our case, the ELSE part, in each conditional replacement, is not present

    If a part xxxx or yyyy contains the character :, ( or ), it must be escaped ( preceded ) with a \ symbol

    For the second conditional replacement, I used the syntax (?{2}1/2), on purpose ! Indeed, if I would have used the (?21/2) syntax, the regex engine would have, wrongly, tried to replace any searched group 21 with the /2 string !!

    To end with, note that quantifiers, as {#}, do not work, in replacement. So we need to change, for instance, the \x20{2} syntax ( 2 space characters) by the simple \x20\x20 one !

    Best Regards,

    guy038

  • Counting Characters

    4
    0 Votes
    4 Posts
    33k Views
    Gogo NeatzaG

    Notepad-plus-plus can do better. Check the View menu - Summary.
    This is the report about my test file:
    “Summary
    Characters (without blanks): 210
    Words: 10
    Lines: 10
    Current document length: 228
    9 selected characters (9 bytes) in 2 ranqes”

    The last line is displayed because I had two selected blocks at the time I wanted the ‘Summary’.

  • Print Preferences for the header - BOLD and Italics won't save

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    cipher-1024C

    All I can do is confirm this is the behavior I see on my machine. I tried removing the header information and re-adding it but nothing seems to make the Italic setting stick.

    On a separate note, I’m curious why the European company got your code in pdf. The only reason I can think of that the line spacing/header info would make a hoot of difference would be if you’re trying to compare the old code with the new code side-by-side. Can’t you just take your copy (not pdf) of the old code and the current version and stick them in WinMerge and send them a diff file? You cold even make the diff file a pdf if that’s some sort of company requirement for sending them code. I hate to side track a topic, but I just had to ask.

  • KOS in KSP word wraping???

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Robert McQuillenR

    Thanks Ill try that.

  • Elevated privileges when saving, doesn't work if different user

    Locked
    1
    0 Votes
    1 Posts
    768 Views
    No one has replied
  • Recent files menu item completely disappears after several runs

    Locked
    1
    0 Votes
    1 Posts
    565 Views
    No one has replied
  • Line spacing issue - File compare problem

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    Wayne CampbellW

    Ok all. Discovered that the Adobe Pro print driver was defaulting to A4 instead of letter, like it does here in the us. so… That’s fixed…

  • NP++ Standard control characters

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    David BaileyD

    Well, you would have to start again, but I think by far the best thing to do is to switch to using UTF-8. This encodes the full set of UNICODE characters and is supported by NP++.

    I am assuming that when you say ‘made a font’ you haven’t actually created a font with your own glyphs, but simply want to write files using some UNICODE characters.

    David

  • Notepad++ just won't work for me?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    David BaileyD

    I would guess you have just typed that into Notepad++ with no file attached. If you save the file in a file called test.html, then suddenly Notepad++ will ‘realise’ the file is HTML and colour it accordingly. Remember that Notepad++ can be used on many different types of files, and they all need highlighting differently.

    David

  • BUG: Hang when network-based documents open

    Locked
    2
    0 Votes
    2 Posts
    960 Views
    gstaviG

    This was discussed many times. 2 examples are here and there.

    Background, asynchronous and non-blocking are not simple for a legacy single threaded GUI application that was not designed for them.
    Just turn the detection off.

  • Plugin to import PHP builtin fucntions and displayed in FunctionList

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Mpho DondoloM

    Thank you so much. Your response was quite helpful

  • how to move text to other location in notepad

    Locked
    7
    -1 Votes
    7 Posts
    4k Views
    Vuvanvui VuiV

    thanks @guy038 , I started to really enjoy python, thankyou verymuch :)

  • When I reopen Notepad++ then it should display all files.

    Locked
    3
    1 Votes
    3 Posts
    1k Views
    ZaelotZ

    Apparently there’s a handy path where there’s a chance to find the unsaved ones in Settings > Backup > Backup path

  • Newb, I need to replace a varible?

    Locked
    2
    0 Votes
    2 Posts
    907 Views
    Eric A. StilesE

    Confusing on what you want, but I take it the Find and Replace wont work for this?

  • Notepad++ version 7.5.4 plugin manager doesnt work

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    chcgC

    See https://github.com/bruderstein/nppPluginManager/issues/98. Maybe this is a similar issue, otherwise please create a new one with the n++ debug infos under ?->Debug Info…

  • Reporting a Notepad++ crash and CrashDumps files

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    chcgC

    At least the debug info of n++ at ?->Debug Info … is of interest regarding win version, n++ version, plugins. With the matching pdb files it is possible to open the dmp file in VS debugger, see e.g. https://social.msdn.microsoft.com/Forums/vstudio/en-US/4c10f189-9338-4b9f-a980-1ad297c8ad16/loading-source-files-for-post-mortem-debugging-with-a-minidump-file?forum=vsdebug. Please report at https://github.com/notepad-plus-plus/notepad-plus-plus/issues.

  • TCL Syntax Highlighting Error

    Locked
    1
    0 Votes
    1 Posts
    734 Views
    No one has replied
  • Cloning/Moving to new view changes the font size

    Locked
    2
    1 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @mukundjalan

    I haven’t heard of this happening before but maybe adjusting the Zoom level of one of the views (to hopefully match the other) would be a workaround.

    Your keyboard options for Zoom are found here: View (menu) -> Zoom -> …
    Your mouse option is to hold Ctrl while scrolling the mouse wheel.

  • FTP plugin problem | errorcode 123

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    Евгений ПикаловЕ

    @PeterJones , thank you so much. I was looking for this pathethic mistake for few days.

  • How to convert

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    cipher-1024C

    The XML Tools plugin has a Pretty Print function that should help you out, provided your XML is valid.