Comments (2)
This is most likely a multi-layered issue, but we really do need better RTL support in Lip Gloss. It's hard to say exactly where the problem for this lies, but my guess is that go-runewidth isn't returning the correct width for Arabic glyphs. Also bear in mind that some terminals do a better job with Arabic than others (Kitty, in my experience, is excellent whilst many others seems to struggle). What terminal are you using in your screenshot?
Another note here: I've seen some frameworks, like QT, provide the option mirror the UI for RTL. So that's potentially a parallel feature that could make sense in either Lip Gloss or Bubble Tea.
from lipgloss.
I have tested almost all the available terminals out there for linux ofc, the one in the screenshot is termite, but there almost no difference between them all.
here is kitty :
I don't know if go-runewidth
returns wrong length, but the weird thing is that the windows terminal (the newer version), just displays the text almost perfectly :
I don't know what could possibly be the solution :'(
from lipgloss.
Related Issues (20)
- Piping to pager (eg. less -R) loses all color HOT 1
- Can someone `rewrite it with rust`? HOT 6
- Unable to provide lipgloss background on text highlighted by Chroma
- Provide ability to prevent insertion of Reset sequence
- Revision cannot be found HOT 2
- Faint style also affects the background HOT 1
- encoding issue HOT 1
- Emoji + Nerd Font Support? HOT 2
- Border Tearing after updating componnets iside of it. HOT 2
- feat: table renderer HOT 1
- feat: flexbox HOT 6
- Span entire terminal width HOT 2
- feat: Better border joining
- No colors when running the example HOT 1
- is boder bug? HOT 2
- Ghost text being left behind when using `Height` HOT 1
- Example to toggle full screen? HOT 7
- random output of ANSI escape sequences with 0.7.1 HOT 11
- Setting `BorderTop(false)` disappears entire border HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lipgloss.