Skip to content

Use Unicode UAX#14 to format multi-line string #3281

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

Closed
wada314 opened this issue Jan 9, 2019 · 2 comments
Closed

Use Unicode UAX#14 to format multi-line string #3281

wada314 opened this issue Jan 9, 2019 · 2 comments

Comments

@wada314
Copy link
Contributor

wada314 commented Jan 9, 2019

A FIXME introduced by PR #3275 .

Currently we are using our own break_string() method to wrap multi-line string.
But Unicode has a standard algorithm to wrap a string:
http://www.unicode.org/reports/tr14/
It will be good if we can use this algorithm instead of our current code.
We can use xi-unicode crate:
https://crates.io/crates/xi-unicode

@topecongiro
Copy link
Contributor

Closed via #3275.

@ahl
Copy link
Contributor

ahl commented Dec 6, 2023

This appears to have been closed prematurely. #3275 introduced this... it didn't close it. @topecongiro can you re-open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants