question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't tabulate correctly with zero-width characters (Devanagari)

See original GitHub issue

This is how it renders

Name            Score
------------  -------
राष्ट्र परीक्षण    19.25
Test             0

versus

Name               Score
---------------  -------
Devanagari here    19.25
Test                0

How it should render:

Name            Score
------------  -------
राष्ट्र परीक्षण         19.25
Test             0

I have the extra widechars libs installed.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Delta456commented, Jul 8, 2020

wcwidth doesn’t supports Devangari yet.

0reactions
siddhpantcommented, Mar 1, 2021

I think it’s just the problem of calculating visible length and formatting properly, probably the wcwidth devs would look into it better. HTML is not an option for me, so I use codeblocks to format it on the UX side (and also internally for docs).

Thank you for taking out your time!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Beauty of Unicode: Zero-Width Characters - PTIGlobal
The zero-width non-joiner is a non-printing character used in writing systems that make use of ligatures. When placed between two characters ...
Read more >
Zero-width space - Wikipedia
The zero-width space (​), abbreviated ZWSP, is a non-printing character used in computerized typesetting to indicate word boundaries to text-processing systems ...
Read more >
Zero Width Joiner and Zero Width Non Joiner on Talk:Search ...
Hi. I'm curious as to what behaviour search has when an input string has a ZWJ or ZWNJ unicode character. Are results without...
Read more >
Unicode spaces - Jukka K. Korpela
Previously MONGOLIAN VOWEL SEPARATOR (U+180E) was classified as a space character, now as formatting characters (with no width). The characters ZERO WIDTH SPACE...
Read more >
79928 - Zero-width space (unicode x200b) not interpreted
What should happen is that mozilla interprets the character and lays out the text accordingly and doesn't use the font. Samuel Sieb.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found