![]() |
I need help with text wrap...
Would someone assist me in fixing the text wrap issue I am having when I bring in epub file converted from PDF using Calibre. For example, here is a sample:
text text text text text text text text text text text text text text text te xt text text text text text t ext text text If you notice the text are broke apart at the right margin. Is there a way to fix this for efficiently without having to use the backspace keys? I hope this makes sense. skammer1974 |
Quote:
This should take care of some of the issues. |
Also learn the basics of RegEx S&R. That will help.
|
Converting a document from PDF is the WORST case scenario. It will take a lot of elbow grease to fix the document after conversion.
I personally use these two Regexes to help combine broken paragraphs: Search #1: Code:
-</p>\s+<p>Search #2: Code:
([^>”\?\!\.])</p>\s+<p>Code:
\1Search #2 will look for a paragraph NOT ending with any of the characters in red, and will combine it with the next paragraph. For cleaning up directly from calibre's output you may need to use these Regexes for search instead: Code:
-</p>\s+<p class="calibre[0-9]+">Code:
([^>”\?\!\.])</p>\s+<p class="calibre[0-9]+"> |
| All times are GMT -4. The time now is 08:03 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.