03-24-2018, 06:47 PM | #1 |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
|
Feature Request: Correct Typos in Viewer
Let me be perfectly clear here: I know about the editor, I use it frequently. It's overkill for what I would like to do.
I often spot typos in books while I'm reading. They're annoying, but fixing them is even more annoying, because I have to close the viewer, open the book in the editor, find the typo, correct it, save the change, close the editor, and reopen my book. What I'd love to be able to do is select the error using the existing selection functionality, and choose "Replace" (or something similar) from the context menu. That would open a small text entry dialog. I'd type the correction and hit OK. Behind the scenes, the viewer would update the file, the same way it updates the file to track the current reading position. Is this feasible, and would anyone else find it useful? Or am I the only obsessive around here? |
03-25-2018, 04:46 AM | #2 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Well, maybe not in that way because for my understanding a viewer should be not an editor. But I also often thought there should be a way to mark text like an annotation for using that in the editor for making the changes I like to do later.
|
Advert | |
|
03-25-2018, 05:32 AM | #3 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
The problem with doing the corrections in the viewer would be the same as Book View (WYSIWYG) editing in Sigil, which has a number of problems. So much so that the current developers often threaten/promise to remove it. KG is well aware of the problems it creates in Sigil, and it was probably a factor in him not including a similar feature in the calibre editor. BR |
|
03-25-2018, 06:00 AM | #4 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Yes, I know and to the second yeah, that's why I think too that is not a good idea. But now Kovid need to add an additional point to the list: An editor interface to manage/use annotations for corrections and what ever else we could think about
[Only dreaming around this...] But using this will be a bit tricky too. E.g. think about one want to change thinks in a book where positions are changing in the file during those changes. I like the idea having such a tool @Kovid, one out and one in to your list |
03-26-2018, 02:59 AM | #5 |
Fanatic
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
If the Browser Viewer, in the future, will support annotations, which can be exported to a list, something like
text 1=text I; text 2=text II; text 3=text III; text n=text N; I think we can use Regex Function and Saved Searches to do a batch replacement in Editor. I don't know anything about Python functions but I can make use of existing shared codes to convert the above list to a saved-searches file, which can be imported. It is now cumbersome, but at least it is faster than manually find and replace one by one. Of course it would be best, I think, if the Browser Viewer and/or Viewer can export the list to .json format which can be directly imported to Editor for use (and then be removed) Last edited by nqk; 03-26-2018 at 03:35 AM. |
Advert | |
|
03-26-2018, 11:51 AM | #6 | |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
|
Quote:
If it makes a difference, and in case I wasn't clear, I would neither want nor need any ability to edit the layout/HTML. I'm thinking strictly in terms of text editing, and very small chunks of text at that. That said, I'd be very wary of any sort of batch search/edit/replace functionality. If I find (as happened last night) a spot where the text had "of" instead of "off", I'd just want to add the missing "f" without risking changing every "of" to "off"! |
|
03-26-2018, 03:52 PM | #7 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
I recently edited and formatted four OpenLibrary books by one of my favorite authors. I wanted to make sure there were no remaining errors in the books, so I read each of them using the Calibre editor. While reading, I was able to correct all the remaining errors (in the middle section of the editor) and then hit F9 to save the file each time (F9 is my "save" hotkey set up in Calibre's editor preferences).
Before I started reading each book, I highlighted all the HTML files for the paragraphs, right-clicked on them, and then chose to merge them all into the top file. After I completed each book, I converted the file, so the HTML files would be recreated. Before I did each conversion, I did a regex find for all the lines for page-breaks (such as, blahblah_pb(\d+)...) and removed them all. This worked well, even though it was more of a hassle than just reading the books in ADE and ignoring the errors. Doing this is the only way I know to be able to correct errors as I read the book. |
03-26-2018, 07:20 PM | #8 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Maybe KevinH or DiapDealer (Sigil devs) have a summary tucked away on their GIT repo, if not, I'm sure they'll respond to a post asking for details. BR |
|
04-01-2018, 12:18 AM | #9 |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
|
Okay, I've spent some time poking around in the Sigil forum.
As I understand it, the major concern seems to be, in essence, "where do you put the cursor" relative to the actual HTML markup that's not visible when looking at a WYSIWYG view. I see the relevance. BUT. In the form I've described the functionality I'd like, I think it's nearly a non-issue. As a general rule, you don't get tags in mid-word. So if the "Typo Corrector" is only available when the user selects a single word (i.e. a string of printable characters bounded by whitespace (or possibly an HTML tag), and you only allow limited space for entry, the chances of screwing up your document are somewhere between slim and infinitesimal. Really, it's more of a "search and replace" without the "search" than an actual editor. Does that simplify the problem space enough to make it feasible? And again, am I the only person obsessive enough to want to fix typos but not obsessive enough to launch the editor? |
04-01-2018, 12:31 AM | #10 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
THe viewer is never going to have editing features, the closest you will get is annotations, which you can then use to do corrections in an editor.
|
04-01-2018, 12:34 AM | #11 | |
Addict
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
|
Quote:
*Kobo lets you just tap the upper-right corner of the screen to dog-ear a page, which bookmarks it for later reference; dunno whether Kindles and other devices do this as well. |
|
04-08-2018, 11:22 AM | #12 | |
Guru
Posts: 919
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
|
Quote:
Having said that, what if you opened the viewer and editor at the same time, would it be helpful to add a feature that would let you click/mark a spot in the text in the viewer and instantly have the editor jump to that spot? |
|
04-08-2018, 12:06 PM | #13 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
04-08-2018, 12:19 PM | #14 | |
Wizard
Posts: 1,264
Karma: 10203040
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
|
Quote:
(Besides the other day I "fixed" some typos only to discover later that they were legitimate alternate spellings.) |
|
04-08-2018, 05:59 PM | #15 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Feature Request: Reading Timer and Speed in Calibre Viewer | truth1ness | Calibre | 23 | 09-24-2016 07:54 PM |
Feature request - Ebook viewer pages | ukepyoo11 | Calibre | 1 | 02-15-2015 12:01 AM |
Feature Request for Ebook Viewer / Windows | dwig | Calibre | 3 | 10-17-2014 12:24 PM |
Feature request: E-book Viewer TOC doesn't show where you are | alessandro | Calibre | 5 | 11-21-2013 10:16 AM |
Feature Request: limit viewer windows to one instance only. | Belfaborac | Calibre | 7 | 04-23-2012 02:05 PM |