You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unicode characters can have different widths. Typical western characters are halfwidth, while some eastern scripts have fullwidth characters (which are twice as wide). To calculate the display width of a character or string, it is paramount to take these character widths into consideration.
A Crystal implementation is already available as a shard in https://github.com/naqvis/uni_char_width
It would be great to include this in the standard library because it's universally useful and we have a use case in the compiler (formatter): #11034
The text was updated successfully, but these errors were encountered:
Unicode characters can have different widths. Typical western characters are halfwidth, while some eastern scripts have fullwidth characters (which are twice as wide). To calculate the display width of a character or string, it is paramount to take these character widths into consideration.
A Crystal implementation is already available as a shard in https://github.com/naqvis/uni_char_width
It would be great to include this in the standard library because it's universally useful and we have a use case in the compiler (formatter): #11034
The text was updated successfully, but these errors were encountered: