04-10-2015, 05:53 AM | #1 |
Evangelist
Posts: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Find/Replace no longers sees unbreakable space in Normal mode
This is a very minor change that happened with the latest update. It might be a by-product of another change or an intended change, I just wanted to point it out in case.
For various reasons, in my fanfiction 'books' it is often easier to do a find/replace in 'Normal' mode, which touches on Unbreakable spaces (fanfic author uses section breaks that a line with lots of " * " or "?" or even "." - and I like section breaks in all my fanfics to be uniform); or the formatting from the author includes an unbreakable space and a regular space side by side. I would generally just copy, then do a find replace in normal mode (especially if they used some "." in there!). Easier and quicker than escaping everything each time. Thanks! Oh, and sorry I'm so wordy...I can't really help it. Just imagine - I cut it down A LOT! |
04-10-2015, 05:58 AM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Can you post an example book where that happens. It's certianly not an intended change.
|
04-10-2015, 07:42 AM | #3 |
Evangelist
Posts: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
I'm not great at screenshots. I have an example, not the best, but it does show it not 'finding' the unbreakable space. The part to find is lines 18 to 20. After, I changed it to regex and the unbreakable space to '\s' and it worked.
This one isn't bad, but it's when you need to find a line filled with other symbols that need to be escaped that it will get tedious. Sometimes there's no choice, but when there is it's nice not to have to. Last edited by MerlinMama; 04-10-2015 at 08:13 AM. |
04-10-2015, 08:00 AM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I need the book you are editing not a screenshot.
|
04-10-2015, 08:17 AM | #5 |
Evangelist
Posts: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Oh...I have absolutely no idea what you're asking for and/or how to do that. I've only just realize lately that '\s' and '\S' do not both look for the same things (and that \s is for more than spaces)!
|
04-10-2015, 11:00 AM | #6 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
Kovid, I have also encountered some replacement problems with non-breaking spaces. For some reason it seems I cannot replace them with calibre 2.24, which previous versions could.
See attached file as an example. |
04-10-2015, 11:16 AM | #7 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
What I did was copy the non-breaking space from the text and use it in S&R as the search object, and replace it with anything else. What actually is replaced is the normal space character.
When you use the "Insert Special Character" option, choose the nps from there, then it works like intended. |
04-10-2015, 11:18 AM | #8 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@DrChiper: The problem comes from Qt, it converts the nbsp character into an ordinary space when copying using a keyboard shortcut. Fix will be in the next release. In the meantime simply copy by selecting and clicking the copy button instead of using the keyboard shortcut.
|
04-10-2015, 11:24 AM | #9 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
Yes, that works
Qt seems to have a lot of side-effects ... |
04-14-2015, 05:36 AM | #10 |
Junior Member
Posts: 2
Karma: 10
Join Date: Apr 2014
Device: Boox
|
I have the same problem. But if I replace those spaces with and I put the book (BeBook Neo) and try to read them The text stops after the first encounter with a non-breaking space.
So If you are going to fix it please hurry Walter |
04-14-2015, 08:42 AM | #11 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Kovid already said it has been fixed. Just wait until the next release, usually every Friday.
|
04-14-2015, 08:21 PM | #12 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
In the meantime, if you have inserted lots of entities just run the Check Book option. It will flag that you have named entities in the book and offers an option to fix them automatically.
|
04-15-2015, 07:11 AM | #13 |
Junior Member
Posts: 2
Karma: 10
Join Date: Apr 2014
Device: Boox
|
Thanks jackie_w
You solution solved my problem. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find/Replace ? | Otter | Calibre | 2 | 10-08-2012 08:48 PM |
Find Replace | unrulyguides | Sigil | 5 | 02-17-2012 08:38 PM |
Find/Replace Won't Find | Rand Brittain | Sigil | 7 | 09-24-2011 04:35 AM |
search replace puts \1(space) in text | isabelle1231 | Sigil | 2 | 05-21-2011 04:46 PM |
Find / replace | bremler | Sigil | 6 | 12-17-2010 03:26 PM |