Ticket #2291 (closed enhancement: fixed)

Opened 14 years ago

Last modified 10 years ago

mcview: Half of a CJK character: Inconsistent replacement symbol used

Reported by: egmont Owned by:
Priority: trivial Milestone: 4.8.14
Component: mcview Version: 4.7.3
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

In mcview view a file containing lots of CJK (double-width) characters. Turn off wordwrapping, and start scrolling horizontally.

When there's only a single cell on the right hand side, which is not enough to display the next CJK character, a replacement '>' symbol is displayed. When there's only a single cell at the beginning of the line, a space is shown instead.

I think these two should be consistent, e.g. either display space on both ends if there's not enough room for the CJK character, or '<' and '>'.

Attachments

cjk_quick_brown.txt (1.3 KB) - added by egmont 14 years ago.
Demo with many double-width characters

Change History

Changed 14 years ago by egmont

Demo with many double-width characters

comment:1 Changed 14 years ago by andrew_b

  • Component changed from mc-core to mcview

comment:2 Changed 13 years ago by andrew_b

  • Branch state set to no branch
  • Milestone changed from 4.7 to Future Releases

comment:3 Changed 12 years ago by angel_il

  • Type changed from defect to enhancement

comment:4 Changed 10 years ago by egmont

The '>' sign is slang's choice when a CJK is printed in the rightmost column of the terminal. Ncurses uses a space instead.

When the viewer doesn't take up the whole width of the terminal (e.g. one of the file manager panels is in "Quick view" mode), such CJK characters overflow out of the viewer into the frame.

Obviously, both in wrap and unwrap mode, mcview should be clever enough never to print a CJK that would overflow from the actual viewer area.

In unwrap mode, we might choose to print '<' and '>' (or some other characters) for partial CJKs, but this should be explicit by mc, not implicit by slang.

comment:5 Changed 10 years ago by egmont

This was fixed in #3250, please close the bug.

comment:6 Changed 10 years ago by andrew_b

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Future Releases to 4.8.14
Note: See TracTickets for help on using tickets.