wtpsplit icon indicating copy to clipboard operation
wtpsplit copied to clipboard

Add option to limit the maximum length of each split text segment

Open Swarzox opened this issue 5 months ago • 1 comments

Hello,

I am using the wtpsplit library to split text into segments. However, I would like to have the ability to limit the maximum length of each segment to a specific number of characters, such as 250 characters.

Currently, I don't see an option in the split() method to set a maximum length for the segments. It would be very helpful if such a feature could be added to the library.

If adding this feature is not feasible or aligned with the library's design goals, I would greatly appreciate any recommendations or alternative approaches to achieve the desired functionality of splitting text while keeping each segment within a specified maximum length.

Thank you for your time and consideration.

Swarzox avatar Sep 05 '24 17:09 Swarzox