Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 118322
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: jidanni [...] jidanni.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: wide characters skew columns
Date: Mon, 10 Oct 2016 14:12:40 +0800
To: bug-Perl-Tidy [...] rt.cpan.org
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
Version: 20140328-1 (newest on Debian) One notices that my @genres = ( ["S&?M|\\bM\\b|奴|軍火|調教|虐|奇異幻想|封嘴|綁|責"], [ "台中|Taichung|guanxi", "radio" ], [ "Taiwan|Free Market", "維基" ], ); has "radio" not exactly line up with the thing below it.
Subject: Re: [rt.cpan.org #118322] wide characters skew columns
Date: Mon, 10 Oct 2016 09:28:41 -0700
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <s7078hancock [...] gmail.com>
Dan, Thanks. This will be difficult to fix unless the character display widths of all characters are well defined. This is a good research project for someone. Steve On Sun, Oct 9, 2016 at 11:12 PM, Dan Jacobson via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Mon Oct 10 02:12:55 2016: Request 118322 was acted upon. > Transaction: Ticket created by jidanni@jidanni.org > Queue: Perl-Tidy > Subject: wide characters skew columns > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: jidanni@jidanni.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=118322 > > > > Version: 20140328-1 (newest on Debian) > > One notices that > my @genres = ( > ["S&?M|\\bM\\b|奴|軍火|調教|虐|奇異幻想|封嘴|綁|責"], > [ "台中|Taichung|guanxi", "radio" ], > [ "Taiwan|Free Market", "維基" ], > ); > has "radio" not exactly line up with the thing below it. > >
On 2016-10-10 09:29:00, s7078hancock@gmail.com wrote: Show quoted text
> Dan, > Thanks. This will be difficult to fix unless the character display widths > of all characters are well defined. This is a good research project for > someone.
They are defined. See these unicode cookbook entries: http://www.perl.com/pub/2012/05/perlunicook-unicode-column-width-for-printing.html http://www.perl.com/pub/2012/05/perlunicook-string-length-in-graphemes.html http://www.perl.com/pub/2012/06/perlunicook-demo-of-unicode-collation-and-printing.html
Subject: Re: [rt.cpan.org #118322] wide characters skew columns
Date: Tue, 11 Oct 2016 17:41:39 -0700
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <perltidy [...] users.sourceforge.net>
Thanks Karen. Steve On Mon, Oct 10, 2016 at 7:47 PM, Karen Etheridge via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Queue: Perl-Tidy > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=118322 > > > On 2016-10-10 09:29:00, s7078hancock@gmail.com wrote:
> > Dan, > > Thanks. This will be difficult to fix unless the character display widths > > of all characters are well defined. This is a good research project for > > someone.
> > They are defined. > > See these unicode cookbook entries: > > http://www.perl.com/pub/2012/05/perlunicook-unicode-column- > width-for-printing.html > http://www.perl.com/pub/2012/05/perlunicook-string-length- > in-graphemes.html > http://www.perl.com/pub/2012/06/perlunicook-demo-of-unicode-collation-and- > printing.html > >
version 20200619 has option -gcs to fix this issue