Community
    • Login

    Unicode in shortcuts.xml

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 4 Posters 690 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.
    • Stefan TravisS
      Stefan Travis
      last edited by

      I’ve been using this code in the shortcuts.xml file to insert a unicode bullet character at the start of a selected paragraph:

      <Action type="3" message="1700" wParam="0" lParam="0" sParam="// Insert Point Bullet //" />
      <Action type="3" message="1601" wParam="0" lParam="0" sParam="(^.+)" />
      <Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
      <Action type="3" message="1602" wParam="0" lParam="0" sParam="$1&#x2022; " />
      <Action type="3" message="1702" wParam="0" lParam="642" sParam="" />
      <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />
      

      But after the 8.3.5 update, it inserts the literal text "& # x 2 0 2 2 ; " instead of the characters "• ". Pasting the characters into shortcuts.xml gives a crash, but reverting to 8.3.4 returns to the old behavior.

      Presumably the way to reference unicode has changed, so can anyone tell me the new way?

      Terry RT Alan KilbornA 2 Replies Last reply Reply Quote 0
      • Terry RT
        Terry R @Stefan Travis
        last edited by

        @Stefan-Travis

        Have you read the FAQ post here?

        Terry

        Stefan TravisS 1 Reply Last reply Reply Quote 1
        • Stefan TravisS
          Stefan Travis @Terry R
          last edited by Stefan Travis

          @Terry-R Thank you - I had missed that.

          It seems most of the time we can replace “& # x 0 0 0 A ;” etc with " \ x { 0 0 0 A }" etc, and the old " \ x 0 A" will work too - but not always.

          1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Stefan Travis
            last edited by

            @Stefan-Travis

            But after the 8.3.5 update, it inserts the literal text "& # x 2 0 2 2 ; " instead of the characters "• ". Pasting the characters into shortcuts.xml gives a crash, but reverting to 8.3.4 returns to the old behavior.

            Please be accurate in your statements. You mean 8.5.3…and (presumably) 8.5.2 here.

            1 Reply Last reply Reply Quote 0
            • wonkawillyW
              wonkawilly
              last edited by

              @Stefan-Travis said in Unicode in shortcuts.xml:

              to insert a unicode bullet character

              To insert a unicode bullet character did you already tried to use directly the bullet into the macro instead of its entity? In other words you might want to try to transform the Replace parameter from
              "$1• "
              to
              "$1• "
              Restart notepad and execute the macro.

              Alan KilbornA 1 Reply Last reply Reply Quote 0
              • Alan KilbornA
                Alan Kilborn @wonkawilly
                last edited by

                @wonkawilly said in Unicode in shortcuts.xml:

                you might want to try to transform the Replace parameter from

                I think the forum changed your first thing from entity notation to the real character. People have been putting spaces between each character to avoid this when posting, reference & # x 2 0 2 2 ; usage above.

                wonkawillyW 1 Reply Last reply Reply Quote 0
                • wonkawillyW
                  wonkawilly @Alan Kilborn
                  last edited by

                  @Alan-Kilborn @Stefan-Travis said in Unicode in shortcuts.xml:

                  to insert a unicode bullet character
                  think the forum changed your first thing from entity notation to the real character. People have been putting spaces between each character to avoid this when posting, reference & # x 2 0 2 2 ; usage above.

                  Ops… I didn’t notice… than let me reformulate whit corrections:
                  To insert a unicode bullet character did you already tried to use directly the bullet into the macro instead of its entity? In other words you might want to try to transform the Replace parameter from

                  "$1&#x2022; "
                  to
                  "$1• "
                  Restart notepad and execute the macro.
                  Now the Npp macrosystem supports unicode.

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