-
Notifications
You must be signed in to change notification settings - Fork 3
Add Possibilities to Keep Classical Whitespaces (Solve Line Break Issues) #212
Description
🚀 Feature Request
Current Problem
Currently, the default Watermarker for text replaces all whitespaces with the current whitespace alphabet. In real-world use cases, this leads to problems with line breaks because different applications don't know where to break, since no classical whitespaces exist anymore. This is caused by the end user applications that interpret a text including a watermark as one single word / String instead of a text made of different words.
Proposed Solution
To solve the problem, a keep whitespaces function could be added. In this case, not all whitespaces are replaced, but only a specific number.
It is important to give the user different possibilities to define a specific number of whitespaces that are replaced or kept.
One possibility would be to define a number, like "keep every X whitespace," where X is a number. If X = 3, the first two whitespaces would be replaced, the third whitespace would stay, the fourth and fifth would be replaced, the sixth would stay, etc.
Another possibility or additional function could be an automatic mode. In such a case, the library decides on its own how many whitespaces are replaced or kept. Factors like the length of the watermark and the length of the watermark could be taken into account to make a decision.
Additional Context
It should be checked if the functionality can be added more easily by updating the existing Watermarker or creating a new Watermarker.