Open AdrianMiska opened 4 years ago
Also from my point of view that would indeed be the best solution. I would definitely not implement this as part of easytable though but that should be a library of its own.
There are already libraries that can do more elaborated line breaking (as discussed on stackoverflow) like:
One could think about integrating any of those (maybe with scope provided
in the pom.xml
file) and creating a property for text cells where one can select the library or function to use for word wrapping.
Not sure though if it is worth the effort. Issue #77 for instance is easy to solve with a cell type of its own and issue #79 is already improving the current mechanism.
There are already some implementations in other languages:
There isn't any for java seemingly though.
Line breaking seems to be a common issue (#79 #77) that could be addressed once and for all by implementing the Unicode Line Breaking Algorithm.
It's probably a lot of effort to implement fully but would also allow correct hyphenation on long words.