Hi folks. Is there any composable or any custom so...
# compose
t
Hi folks. Is there any composable or any custom solution to handle text line-break and hyphenation? Any plans to support hyphenation in compose in the future?
👍 1
z
I don't think there are any plans to support custom logic here. The line breaking in android (and compose) is very performance critical and is implemented in native code (c++ I think). But if you have a use case that you can't solve with stuff like it is now, definitely file a feature request!
t
Thanks @Zach Klippenstein (he/him) [MOD]. My use case is -Hyphenation for various languages-. Where can I file a feature request?
z
Tracker link is in the channel topic
👍 1
What language(s) aren’t hyphenating correctly?
That should just work out of the box
t
Some languages with long words or with unsupported spacing rules like Japanese, Korean, Russian, etc
For instance, the following code breaks the line but doesn’t add a hyphen (or at least not out of the box)
Copy code
Text(
    text = "AndroidJetPackComposeWithoutSpaces",
    fontSize = 30.sp
)
s
b/122477237 and b/122476122
please vote them
🙏 1
z