![]() |
#1 |
Bookmaker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
Find/Replace Won't Find
Even using 0.4.2, I'm still having trouble getting Sigil's find/replace function to work properly, especially when I'm using emdashes and the like. When trying to replace space-ndash-space with a single mdash, Sigil announces that it's found 0, even when I highlight the ndashes for it to be helpful and use Ctrl-H. This happens on Mac and Linux both.
What's up with that? |
![]() |
![]() |
![]() |
#2 |
Bookmaker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
On further experimentation, an actual emdash can be found, but — can't, even in Code View.
|
![]() |
![]() |
![]() |
#3 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Book view should show and match the actual unicode character. Code view should be translating em and en dashes to the entity (&...; ).
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 20
Karma: 12
Join Date: Sep 2011
Device: Kindke
|
When use use a &nnnn; character in Sigil, it get transformed into the actual unicode character so you no longer can search for the string "&nnn;". What I do to work around this is to copy the character I want to search for into the search popup in order to build my search expression.
The regular expression search use Qt’s QRegExp. There must be a syntax in there to specify unicode character using their number but I don't know the syntax to do this. |
![]() |
![]() |
![]() |
#5 |
Bookmaker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
|
![]() |
![]() |
![]() |
#6 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
![]() |
![]() |
![]() |
#7 |
Bookmaker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
Yes, I see — when I'm in Code View and — when I'm in Book View.
But in Code View I try to do a Find/Replace looking for "—" and it tells me it found 0 instances. Trying to find "—" works. |
![]() |
![]() |
![]() |
#8 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
On occasion when my search says 0 and I know there are more, I change search mode from Regular Expression to Normal or vice-a-versa.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
RegEx find and replace | iblesq | Sigil | 1 | 01-10-2011 09:26 PM |
Find and Replace the symbol ¬ | oldbwl | Workshop | 5 | 12-30-2010 07:52 AM |
Find / replace | bremler | Sigil | 6 | 12-17-2010 03:26 PM |
REGEX find and replace help please | potestus | Sigil | 13 | 09-18-2010 04:14 PM |
Using Find/Replace with BD | Otter | Sony Reader | 7 | 02-28-2009 01:49 PM |