Description
First and foremost, thank you very much for this library! I really like how you managed to use LineBreak-12.1.0.txt
as a direct build source (through your build.rs
) 👏
I have two use-cases, where I am looking for a line breaking algorithm. However, in my use-cases, I don't have one single &str
that I can provide to linebreaks
. Instead, I usually have different types of tree-based data structures. The issue with that is, that I cannot call linebreaks
for each node, since this would add an EOT
after each node.
I think a good solution for that would be having a method that takes an iterator of strings, instead of one single string. I did a prototypical implementation of that here: rkusa@33f6c6e - and am now wondering whether you'd be interested in a PR bringing this method upstream? It would just require some additional cleanup (reduce redundancy between both methods and most importantly, find a better name for the method ...) - I just wanted to ask first, before I invest the additional time required for the cleanup.