Skip to content

Unable to display some CJK characters when breaking the line #1013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cppHusky opened this issue Mar 17, 2025 · 2 comments
Open

Unable to display some CJK characters when breaking the line #1013

cppHusky opened this issue Mar 17, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@cppHusky
Copy link

I found that sometimes CJK characters cannot show when breaking the line.

So I created a file with the following content:

南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。
i南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。
ii南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。
iii南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。
iiii南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。
iiiii南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。
iiiiii南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。南去经三国,东来过五湖。

てなきりさけくなす雲鵜ホッネチウ「留都へみそっつ保留」よた絵個名素ふな野野夜譜ッツニ知阿手目まねふかお。
iてなきりさけくなす雲鵜ホッネチウ「留都へみそっつ保留」よた絵個名素ふな野野夜譜ッツニ知阿手目まねふかお。
iiてなきりさけくなす雲鵜ホッネチウ「留都へみそっつ保留」よた絵個名素ふな野野夜譜ッツニ知阿手目まねふかお。
iiiてなきりさけくなす雲鵜ホッネチウ「留都へみそっつ保留」よた絵個名素ふな野野夜譜ッツニ知阿手目まねふかお。
iiiiてなきりさけくなす雲鵜ホッネチウ「留都へみそっつ保留」よた絵個名素ふな野野夜譜ッツニ知阿手目まねふかお。

피어나는 착목한는 이것이야말로 사랑의 쓸쓸하랴? 가치를 그것을 놀이 싸인 무엇이 이것이다. 주며. 보는 힘있다. 불어 대중을 놀이 하는 때에.
i피어나는 착목한는 이것이야말로 사랑의 쓸쓸하랴? 가치를 그것을 놀이 싸인 무엇이 이것이다. 주며. 보는 힘있다. 불어 대중을 놀이 하는 때에.
ii피어나는 착목한는 이것이야말로 사랑의 쓸쓸하랴? 가치를 그것을 놀이 싸인 무엇이 이것이다. 주며. 보는 힘있다. 불어 대중을 놀이 하는 때에.
iii피어나는 착목한는 이것이야말로 사랑의 쓸쓸하랴? 가치를 그것을 놀이 싸인 무엇이 이것이다. 주며. 보는 힘있다. 불어 대중을 놀이 하는 때에.
iiii피어나는 착목한는 이것이야말로 사랑의 쓸쓸하랴? 가치를 그것을 놀이 싸인 무엇이 이것이다. 주며. 보는 힘있다. 불어 대중을 놀이 하는 때에.

And then cat it:

Image

It seems that, if there are odd spaces left in this line of the terminal, CJK characters (each one occupies 2 spaces) between some special characters ( and in this example) and the end of the line will not display well.

@cppHusky
Copy link
Author

The environment of my rio is:

                  -`                     cpphusky@archHusky
                 .o+`                    ------------------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: 21LF (ThinkBook 14 G6+ AHP)
              `+oooooo:                  Kernel: Linux 6.13.7-arch1-1
              -+oooooo+:                 Uptime: 1 hour, 12 mins
            `/:-:++oooo+:                Packages: 628 (pacman)
           `/++++/+++++++:               Shell: fish 4.0.1
          `/++++++++++++++:              Display (LEN8AB1): 3072x1920 @ 60 Hz (as 1755x1097) ]
         `/+++ooooooooooooo/`            WM: niri (Wayland)
        ./ooosssso++osssssso+`           Cursor: default (24px)
       .oossssso-````/ossssss+`          Terminal: rio 0.2.10
      -osssssso.      :ssssssso.         CPU: AMD Ryzen 7 8845H (16) @ 5.14 GHz
     :osssssss/        osssso+++.        GPU: AMD Phoenix3 [Integrated]

@raphamorim
Copy link
Owner

Thank you for the issue @cppHusky , will mark to take a look.

@raphamorim raphamorim added the bug Something isn't working label Mar 17, 2025
@raphamorim raphamorim moved this to In Progress in Rio terminal 0.2.x Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

2 participants