wolfgangw commented on an issue in terminaltexteffects
github.com·1d
🔠Terminal Fonts
Preview
Report Post

This is an enhancement suggestion for supporting CJK wide characters.

Many CJK characters are two columns wide in terminals. For example, "人" is a Chinese character and appears as wide as "xx" in a terminal, though len("人")==1. Many calculations and codes are based on the assumption that each character take only occupies one column. This issue breaks many of the effects like in beams, the vertical beams break into segments and in print the rows are not cleaned correctly because the length of rows are miscalculated. It also breaks the shapes of spotlights etc.

I made some modification to fix the issue, main...tjwei:terminaltexteffects:main It use `unicodedata.east_asia…

Similar Posts

Loading similar posts...