08-17-2011, 12:01 PM | #31 | |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
The replacement dialog has related issues I'm working on fixing. I need to rectify using that dialog with malformed data in the code view. I want to limit the potential for data loss. Such as replace then switch to the book view and not having the well formed check happen because the code view never had focus to trigger the check. Also, I don't want the error dialog to open after every replacement. Or when trying to open the replace dialog in order to fix the errors. |
|
08-17-2011, 02:49 PM | #32 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Just thinking of all the possible sequences of focus changes and race conditions and such makes my brain melt.
Perhaps it would be simpler to provide an option to disable the automatic well-formed check completely, and have a button so the user could decide when to run it manually. For similar reasons, I usually run with Tidy turned off, because it sometimes wanted to make changes while I was in the middle of editing something. Just because I change window focus doesn't necessarily mean I'm finished editing. |
08-17-2011, 03:31 PM | #33 |
Zealot
Posts: 103
Karma: 57138
Join Date: May 2010
Device: Sony 505, iPad 1 & 3, Galaxy Note 8.1
|
|
08-17-2011, 03:58 PM | #34 |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
I thought about doing this but I don't think it will really help. The issue is the book view can alter the code and if it is malformed this can lead to unexpected changes. This can lead to data loss which the dialog is warning you about and trying to prevent. Turning off the dialog won't prevent the data from being altered. The only way to prevent the book view from altering the data is to make it read only...
|
08-17-2011, 06:56 PM | #35 | ||
Jr. - Junior Member
Posts: 586
Karma: 2000358
Join Date: Aug 2010
Location: Alabama
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
|
Quote:
Quote:
Regard - John P.S. Thanks for all the good work. It is greatly appreciated. |
||
08-17-2011, 10:31 PM | #36 | |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
I'm not entirely sure that these changes will fix whatever obscure cache issues are still floating around, but hopefully they will make Sigil run a bit faster. |
|
08-18-2011, 04:48 PM | #37 |
Bookmaker
Posts: 416
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
Could these problems be related to the way that "replace in all HTML files" keeps finding 0 things to replace, which "replace in this page only" still works normally?
I need to experiment with this one a little more to figure out exactly when it's happening. |
08-18-2011, 09:11 PM | #38 |
Well trained by Cats
Posts: 29,944
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I noticed that Replace All (Down):
1) does not All from current insert point to EOF(last segment), but loops around . Ekample a book whe al headers were H1 and I set up to change all (insert point is)past the Title page to be H3. Nope, the title page gets changed. 2)Could the Not found be because the last (from previous activity) insert point was left mid file in a segment and the target was before the insert point? Clicking at the top of section always finds on a retry. |
08-18-2011, 10:05 PM | #39 |
Bookmaker
Posts: 416
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
Having investigated Replace All a bit more, I found that it seems to dislike special characters. It won't recognize — and refuses to find it, but it will recognize the actual mdash, which is confusing, since Code View seems to always show the HTML code in 0.4.0.
I also am getting the impression that having an HTML open in Sigil has an effect on whether or not find/replace will find things in it. I'll have to experiment with that more. |
08-18-2011, 11:04 PM | #40 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
We thought we'd fixed that, but it seems a function wasn't working as expected. In the next release the mdashes, ndashes and soft hyphens will show up in Code View in entity form and can be found as — etc.
|
08-18-2011, 11:33 PM | #41 |
Bookmaker
Posts: 416
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
Your kindness is much appreciated and will mean I'm not stuck with British-style endashes. My brain refuses to admit to their validity.
|
08-20-2011, 01:52 PM | #42 | |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
You're doing a replace all and it shows no instances when you have the cursor someplace in the file and there is a match before the cursor? |
|
08-20-2011, 04:54 PM | #43 | ||
Well trained by Cats
Posts: 29,944
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Quote:
|
||
08-20-2011, 05:30 PM | #44 | |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Sorry. I was asking a question not making a statement. I'm not sure I'm understanding the behavior you were talking about. So were talking about searching using "All HTML Files"? When you use this and have a direction set it uses the direction from the cursor postion in the other files? If so does this happen only with files open in a tab or are you also seeing it with files that are not open in a tab? |
|
08-20-2011, 06:49 PM | #45 | |
Well trained by Cats
Posts: 29,944
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I have also seen S&R open one tab after another (Why did it do this on a Find Next if no target found on the Tab??. Note: this does not normally happen when it works and does not always happen when it fails.) and no (exists) target found. We are seeing results of a really odd bug . |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with Hebrew Epub file | LevAizik | PocketBook | 4 | 02-26-2012 11:31 PM |
Troubleshooting Problem with pdf File | StuMcBill | Amazon Kindle | 7 | 03-17-2011 09:29 AM |
PRS-650 problem pdfs - is it the file or the reader | mazmac | Sony Reader | 7 | 02-24-2011 03:24 AM |
mobi file metadata problem | stargate | Kindle Formats | 4 | 02-02-2011 05:23 PM |
Renaming File Problem... | Howard098 | Sony Reader | 3 | 02-01-2010 10:57 PM |