Community
    • Login

    The Column count of Zenkaku chr. is 1?

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 150 Views 1 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.
    • H Offline
      Hiroki-H1974
      last edited by

      The status bar shown below, column count is little strange for ZENKAKU chrs.
      I usually use Japanese language and think that Zenkaku chrs. is counted as 2 columns.
      But, npp counts Zenkaku chr as 1 column.
      So, the position is not the same even if Col: count is same because the line contains some Zenkaku chrs.
      Are there anyone who found the same issue?

      CoisesC 1 Reply Last reply Reply Quote 0
      • CoisesC Offline
        Coises @Hiroki-H1974
        last edited by

        @Hiroki-H1974 said in The Column count of Zenkaku chr. is 1?:

        So, the position is not the same even if Col: count is same because the line contains some Zenkaku chrs.

        I don’t know Japanese; please forgive me if I’ve missed the point in some way.

        The column (“col:”) in the status bar is just a count of characters from the beginning of the line, starting at one. (That’s not even always what you might expect; combining characters that form a single visible character are still counted separately.)

        Aside from a few things like cursor positioning, line wrapping and selection with the mouse, Notepad++ (like the Scintilla control it uses for editing) doesn’t concern itself with the physical space occupied by characters. In English, we can use a proportional font, and a line of twelve characters will show the next “column” as 13, whether they are IIIIIIIIIIII or WWWWWWWWWWWW.

        So (though I haven’t attempted to test it), regardless of font, I would expect that there would be no recognition of the difference between half-width and full-width characters.

        1 Reply Last reply Reply Quote 0

        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