Quote:
Originally Posted by scubaddictions
Yeah, I enabled the heuristics and played around with unwrapping. Sometimes it works, other times...not so much! Occasionally I just like to do things manually and the end result of my e-book won't always be on my phone. I like having the flexibility of using a robust text editor and knowing how to fall back on it when Calibre doesn't quite get things right.
Any ideas on how to port this stuff over to another text editor?
Sorry for the delay in reply, Internet out here is kinda flaky.
Thanks!
Ryan
|
You can post bugs with the non-working variants if they're consistently not unwrapping lines. Also note you might need to reduce the 'line unwrap factor' - the unwrap function looks at the median (or average, can't remember) line length, and only unwraps lines that exceed that length. That works well for a book with consistent breaks in roughly the same location for every line (OCR, pdf, many well formatted text files), but it will fail where the hard breaks are inconsistent/infrequent. Reducing the unwrap factor basically tells Calibre to look for shorter lines than the median. The fewer or more erratic the breaks the lower you need to go, sometimes all the way down to 0.05
The only type of line breaks that aren't currently supported by the function are ones where the document abuses <br> tags - heuristics currently ignores those. There also a couple minor cases where it's conservative about unwrapping that some users have complained about, but I have a strong preference for false negatives vs. false positives.
emeditor is another editor I liked with Regex support when I was in the windows world. On the Mac TextWrangler is the way to go.