Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2011, 02:03 PM   #1
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 225
Karma: 9102
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?
Rand Brittain is offline   Reply With Quote
Old 09-21-2011, 12:32 AM   #2
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 225
Karma: 9102
Join Date: Sep 2010
Device: Cybook Opus
On further experimentation, an actual emdash can be found, but — can't, even in Code View.
Rand Brittain is offline   Reply With Quote
 
Advertisement
Old 09-21-2011, 07:59 AM   #3
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,465
Karma: 986493
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 (&...; ).
user_none is offline   Reply With Quote
Old 09-21-2011, 08:19 AM   #4
LaoTseu
Member
LaoTseu began at the beginning.
 
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.
LaoTseu is offline   Reply With Quote
Old 09-23-2011, 03:21 PM   #5
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 225
Karma: 9102
Join Date: Sep 2010
Device: Cybook Opus
Quote:
Originally Posted by user_none View Post
Book view should show and match the actual unicode character. Code view should be translating em and en dashes to the entity (&...; ).
This seems to be so, but find/replace recognizes only the character and not the entity for me.
Rand Brittain is offline   Reply With Quote
Old 09-23-2011, 03:29 PM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,465
Karma: 986493
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Rand Brittain View Post
This seems to be so, but find/replace recognizes only the character and not the entity for me.
To be clear, you see — in code view but it is matching the actual character?
user_none is offline   Reply With Quote
Old 09-23-2011, 09:29 PM   #7
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 225
Karma: 9102
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.
Rand Brittain is offline   Reply With Quote
Old 09-24-2011, 05:35 AM   #8
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,885
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Rand Brittain View Post
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.
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.
DoctorOhh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RegEx find and replace iblesq Sigil 1 01-10-2011 10:26 PM
Find and Replace the symbol ¬ oldbwl Workshop 5 12-30-2010 08:52 AM
Find / replace bremler Sigil 6 12-17-2010 04:26 PM
REGEX find and replace help please potestus Sigil 13 09-18-2010 05:14 PM
Using Find/Replace with BD Otter Sony Reader 7 02-28-2009 02:49 PM


All times are GMT -4. The time now is 08:24 AM.


MobileRead.com is a privately owned, operated and funded community.