tv icon indicating copy to clipboard operation
tv copied to clipboard

Unicode strings break layout

Open honzajde opened this issue 3 years ago • 6 comments

Unicode strings break layout.

I have tried xsv table for comparison that handles it well.

honzajde avatar Oct 13 '22 09:10 honzajde

Can I see some examples. I do use a library that is supposed to handle unicodes, but it must be falling short if you are experiencing this issue.

alexhallam avatar Oct 13 '22 09:10 alexhallam

name,count
太吾绘卷,123
A line,123
        tv dim: 2 x 2
        name   count 
     1  太吾绘卷   123   
     2  A line 123  

honzajde avatar Oct 13 '22 11:10 honzajde

Makes sense. I am away on a work trip the rest of the week I will follow up next week.

alexhallam avatar Oct 13 '22 12:10 alexhallam

If I recall correctly, you need to consider both graphemes and unicode width to be able to do this correctly, and this has some perf cost. Is this possible to help you on this somehow? Should I try a PR?

Yomguithereal avatar Mar 21 '23 10:03 Yomguithereal

Please do submit a PR

Get Outlook for iOShttps://aka.ms/o0ukef


From: Guillaume Plique @.> Sent: Tuesday, March 21, 2023 6:36:31 AM To: alexhallam/tv @.> Cc: Alex Hallam @.>; Comment @.> Subject: Re: [alexhallam/tv] Unicode strings break layout (Issue #154)

If I recall correctly, you need to consider both graphemes and unicode width to be able to do this correctly, and this has some perf cost. Is this possible to help you on this somehow? Should I try a PR?

— Reply to this email directly, view it on GitHubhttps://github.com/alexhallam/tv/issues/154#issuecomment-1477605888, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACG6GBLTTASWXIPYSYL6MZDW5GAC7ANCNFSM6AAAAAARECOUKU. You are receiving this because you commented.Message ID: @.***>

alexhallam avatar Mar 21 '23 10:03 alexhallam

May I kindly ask if there has been any progress so far?

zy6p avatar Aug 28 '23 06:08 zy6p