View Single Post
Old 08-15-2021, 09:03 AM   #1881
stillstill
Junior Member
stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.stillstill shapes the world with his or her thoughts.
 
Posts: 7
Karma: 105302
Join Date: Aug 2021
Device: Kindle PW2
Quote:
Originally Posted by stillstill View Post
Hello,

Is there any possible way to remove hyphen when in the original pdf we have a line ending with a word and hyphen (without a space between them):

This is an original example where we do not need to pre-
serve the hyphen in the word "preserve" if it is not broken
in two lines in the output file. The algorithm/rule is simple.
If we have any character (not a space) preceding the hyphen,
it means we have a word break between the lines.

And in opposite - this is an original example where we need
to keep the dash in the destination file.

If the line ended with a word and dash like this -
that would mean we still need to preserve this dash in the
destination (since there is a space preceding the dash)

Not sure if that's possible at all, could not find any set of parameters
that would work like this...

Thank you very much.
Using KPW2, if that matters...
Attaching the screenshots - original and converted, problematic place is red marked.
Attached Thumbnails
Click image for larger version

Name:	original.png
Views:	268
Size:	85.1 KB
ID:	188702   Click image for larger version

Name:	converted.png
Views:	262
Size:	206.4 KB
ID:	188703  
stillstill is offline   Reply With Quote