Community
    • Login

    The Column count of Zenkaku chr. is 1?

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 22 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.
    • H
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors