View Single Post
Old 02-28-2021, 05:13 PM   #1
fred410
Junior Member
fred410 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2021
Device: Kindle Keyboard (3rd gen, B006)
search & replace doesnt work with "newlines" in PDF to MOBI conversion

Hello,
(btw, this program is great, have used it on several conversions without issue)
I am trying to convert a PDF to MOBI for a Kindle keyboard (called a 3rd edition, that does 3G and WiFi built in)

Anyway -- on straight conversion - several "paragraph" or "section" headers in PDF get converted with the text squashed together without spaces.
Meaning in pdf file you would see "first second third" but after conversion to MOBI you get "firstsecondthird"

I tried doing "search & replace" in conversion - to no avail -- in my test (screen prints attached) you can see i tried replacing "newline" with a string of letter "j"s -- which didnt happen.

From the "log file" -- I see:
Conversion options changed from defaults:
read_metadata_from_opf: 'C:\\Users\\whatever\\AppData\\Local\\Temp\\calibr e_pxif23tg\\48a3wg9b.opf'
output_profile: 'kindle_pw3'
search_replace: '[["[a-z]\\\\n", "jjj"]]'
verbose: 2

++AND++
'search_replace': '[["[a-z]\\\\n", "jjj"]]',

No other references to "\n" to remove the newline or linefeed.

See attached screen prints for actual screens, "test" results and ebook viewer.

Is this is bug? Or do you have another regular expression that would match the paragraph/section "newlines" that the converter would except?

Thanks for your Help !
Attached Thumbnails
Click image for larger version

Name:	search_replace_screen.png
Views:	131
Size:	64.2 KB
ID:	185684   Click image for larger version

Name:	EBookViewer_examples_screen.png
Views:	134
Size:	18.4 KB
ID:	185685  
fred410 is offline   Reply With Quote