Community
    • Login

    UDL keywords do not work for Cyrillic letters at encoding other than ANSI or UTF

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 24 Views 2 Watching
    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.
    • EvgenyVenalainenE Offline
      EvgenyVenalainen
      last edited by

      Hi, All!

      Trying to use custom UDL to highlight lisp file that still requires a Windows-1251 code page. Words of Cyrillic letters do not work. Is it way to fix it?

      Do not works:
      UDL1.png

      Works:
      UDL2.png

      Settings:
      UDL3.png

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @EvgenyVenalainen
        last edited by

        @EvgenyVenalainen ,

        Is it way to fix it?

        For the end user? Sorry, no, there isn’t.

        With a change to the program? That’s a more involved answer:

        UDL has never been great at characters outside the ASCII range. As you say, for keywords, it works for those in “ANSI” and UTF-8, but not with other encodings. This is because of the fundamental design choices made decades ago in the UDL lexer, and it does not look like an easy code fix. (I once wanted to try to get it so that non-ASCII characters would work right in both operator lists, but discovered at that point how fundamentally “wrong” and internally inconsistent the UDL-lexer’s treatment is of characters vs bytes vs encodings, and I could never sort out the mess. Someday, I might revisit, but I haven’t found the mental fortitude to dig in deep enough to figure it all out yet).

        There are bunches of Issues in the official issue tracker, asking for various improvements to make UDL better at handling non-Western characters and character sets, but there have been no significant improvements to UDL in over a decade.

        So technically, with a rewrite or at least significant debugging, it might be done. But there’s been no volunteer to do it in more than a decade, and the Developer focuses his energies on other components of the application, having deemed UDL sufficient for his needs.

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors