06-12-2011, 03:02 PM | #1 |
Fanatic
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
|
adding paragraphs marks in search/replace
Often in converting a book from a pdf file into an epub, there are many instances of having two paragraphs run together. It's very disturbing to me when there are two paragraphs, one ending with a quote and the other beginning with a quote, that have been run together so that there is a " " or "" within a single paragraph.
Usually I edit these out using MS Word or EditPro, but occasionally I forget and end up with a largely completed epub with the offenders still present. I've tried to use search/replace with some sort of paragraph marker in the replace box but have been unable to find the proper expression. I have been simply finding in the epub a location where there is an invisible paragraph mark, copy that small section, and then substitute " where appropriate. This is a pretty cumbersome procedure and I wonder if anyone knows how to add a paragraph symbol in the replace box. Last edited by bobcdy; 06-12-2011 at 03:06 PM. |
06-12-2011, 03:12 PM | #2 | |
Well trained by Cats
Posts: 29,703
Karma: 54369092
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
What does that look like in Codeview? are the " straight or Curly? |
|
Advert | |
|
06-12-2011, 03:34 PM | #3 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I think you can use a regular expression for that. It is even easier if you have curly quotes.
|
06-12-2011, 04:25 PM | #4 |
Fanatic
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
|
They are straight quotes, in code view, but when I try to do a search/replace I've tried:
search " " replace "\r\n" and it replaces IN THE TEXT: "\r\n" It does not produce a new paragraph. |
06-12-2011, 04:45 PM | #5 | |
Well trained by Cats
Posts: 29,703
Karma: 54369092
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I replace with the </p> <p class... Tidy will make it look good |
|
Advert | |
|
06-12-2011, 05:18 PM | #6 |
Fanatic
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
|
theducks
Thanks. Great - That works fine! I don't know why I didn't think of that. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
search and replace - drops blanks in replace ? | cybmole | Conversion | 10 | 03-13-2011 03:07 AM |
need regex help search and replace | schuster | Calibre | 4 | 01-10-2011 09:00 AM |
tips for research reading- notes/search/marks | 1611mac | General Discussions | 6 | 07-13-2010 12:14 PM |
Search and replace in 0.2.0 | paulpeer | Sigil | 7 | 03-13-2010 11:59 AM |
Why no search and replace? | charleski | Sigil | 10 | 11-24-2009 04:13 PM |