Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 03-10-2014, 05:32 PM   #1
Under the Covers
Night Reader
Under the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura about
 
Under the Covers's Avatar
 
Posts: 127
Karma: 4314
Join Date: Oct 2010
Location: Rocky Mountains (US)
Device: Sony PRS-650
Disable search history?

Using the stand-alone capability of the Editor, I edit a fair number of books, but the drop-down lists (history) in the Find and Replace fields just get in my way, although I recognize that others may find this helpful.

What I would really like is to be able to set a preference to *not* remember contents of the Find and Replace fields -- also workable would be a quick and easy way (button?) to delete prior searches as I work. Is this possible? (It would be great to have this capability in the stand-alone Viewer, as well, but not as critical there.)

Kovid, I absolutely *love* the work you've done on the Editor, and I only wish I could support your work more substantively than I can -- but should my ship come in, you're on my short list.

Last edited by Under the Covers; 03-10-2014 at 05:37 PM.
Under the Covers is offline   Reply With Quote
Old 03-10-2014, 11:26 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Can you elaborate on how/why they get in your way. As far as I know, if you dont press the up or down arrot keys, they are never used and you can just pretend they dont exist.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-10-2014, 11:49 PM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
It is very distracting, when you type a match and it pops up, but mostly because for some reason the cursor seems to be missing.

I would like the ability to delete them, though, to make the search history more useful. In the main GUI, it doesn't really matter so much, since you will end up with a bunch of totally different things which you can ignore, but when editing, spelling is crucial, and you may also need to just slightly tweak that regex...

I find myself with a list of 10 or 12 more or less identical regexes, and no way to tell which one is which. If I could delete them once I get the right one, only that one would be left, which would make the history useful, but right now there's just too much garbage in it.

Of course, I could edit the config files by hand, but...

Last edited by eschwartz; 03-11-2014 at 01:27 AM. Reason: typo
eschwartz is offline   Reply With Quote
Old 03-11-2014, 12:14 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I have fixed the problem of the cursor disappearing
kovidgoyal is offline   Reply With Quote
Old 03-11-2014, 12:43 AM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Thanks!
eschwartz is offline   Reply With Quote
Advert
Old 03-11-2014, 01:29 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
What are your thoughts on adding in the ability to delete entries from the history?
eschwartz is offline   Reply With Quote
Old 03-11-2014, 01:38 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Since the history list is sorted by most-recently-used entries, those that you would want to delete should naturally just drop of the list with time. So I dont really see the point of deleting entries.
kovidgoyal is offline   Reply With Quote
Old 03-11-2014, 07:26 AM   #8
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Is it possible to just make it an option to pop up or not? I have to work with variations of the paragraph marker all the time but at any given time, like right now, I am working with just one. The one time searches and replaces get in the way. For me there is such a clutter of them, the choices just get into way. It takes longer to go through the list than just type it or use my macro program.

It is just a relatively minor annoyance, though.
mrmikel is offline   Reply With Quote
Old 03-11-2014, 11:53 AM   #9
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
As I posted in other thread what I don't like about history is that initial or ending spaces are ignored. I would really apreciate them being treated like any other char.

I use them a lot in a regex search which I use for detecting dashes joined to words (a situation which Spanish books use a lot in the way we write dialogue sentences).
arspr is offline   Reply With Quote
Old 03-11-2014, 12:28 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@arspr: You should never use initial and ending spaces. For one thing, how would you know how many spaces characters are there at the start, or if there are space characters at the end? Use \s+ or if for some reason you want to match only the single space character and not tabs or other white space characters, use [ ]

@mrmikel: If you dont wish to use the list, just ignore it. I still dont see how it gets in the way.
kovidgoyal is offline   Reply With Quote
Old 03-11-2014, 04:10 PM   #11
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Quote:
Originally Posted by kovidgoyal View Post

@mrmikel: If you dont wish to use the list, just ignore it. I still dont see how it gets in the way.
When it pops up it covers part of the bottom of the "code" window. If the text you are working on is in the lower part of that window (more likely if you have a lower-res screen) it can be annoying.

BobC
BobC is offline   Reply With Quote
Old 03-11-2014, 05:28 PM   #12
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by kovidgoyal View Post
@arspr: You should never use initial and ending spaces. For one thing, how would you know how many spaces characters are there at the start, or if there are space characters at the end? Use \s+ or if for some reason you want to match only the single space character and not tabs or other white space characters, use [ ]
Why Kovid? Why are spaces "forbidden"? Why are they different from any other character?

Let's explain my usage and you'll see that not using spaces is pretty weird, while using them is pretty simple and straightforward. More over spaces DO work perfectly, what doesn't work is the history saving of my strings in the Find and Replace text boxes, just because those spaces are ignored and deleted.

In Spanish books, dialogue sentences like
Code:
<p>"Bla, Bla, Bla," John said. "More bla, bla, bla."</p>
are usually written in this way:
Code:
<p>—Bla, Bla, Bla, —John said—. More bla, bla, bla.</p>
And the problem is that between "—" and "John" or "said" and "—", (or even "—" and "."), you can get horrible line wraps if you are unlucky. Dashes are considered as possible wrap points in HTML, not as indivisible punctuation marks. (I suppose HTML was thought over English grammar, not Spanish one ). And it's just a matter of pages finding one of that horrible renderings.

So I use the next two searches and replacements systematically in my Spanish ebooks (I use quotes to make spaces visible):
  1. " (—[^ <]+)( |</p>)" replaced by " <span class="nw">\1</span>\2".
  2. " ([^ >]+—)(\.|\.\.\.|,|;|:|&hellip;|…)? " replaced by " <span class="nw">\1\2</span> ".
Where .nw{white-space:nowrap;}

And it works, I promise you. My only trouble is that my saved strings in the history have lost the initial/final spaces. I have to re-type or fix them every single time I use them.

More over I can understood your trick in the Find string where, instead of " ", you suggest using "[ ]", but, how do I type the replacement string? Are you suggesting:
  1. "([ ])(—[^ <]+)( |</p>)" replaced by "\1<span class="nw">\2</span>\3"
  2. "([ ])([^ >]+—)(\.|\.\.\.|,|;|:|&hellip;|…)?([ ])" replaced by "\1<span class="nw">\2\3</span>\4".
Why should I make it so complicated in order to avoid directly typing a space? What is so "dangerous" about spaces?
arspr is offline   Reply With Quote
Old 03-11-2014, 05:34 PM   #13
Under the Covers
Night Reader
Under the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura about
 
Under the Covers's Avatar
 
Posts: 127
Karma: 4314
Join Date: Oct 2010
Location: Rocky Mountains (US)
Device: Sony PRS-650
Quote:
Originally Posted by kovidgoyal View Post
Can you elaborate on how/why they get in your way. As far as I know, if you dont press the up or down arrot keys, they are never used and you can just pretend they dont exist.
The moment I type anything, the list drops down (using Win7), and I have to hit Escape just to get past it to the Find button or the Replace box. Ignoring the list is difficult when I always have to hit Escape. Hitting Tab (out of longstanding habit from database usage) selects the first item on the list, requiring that I then stop and fix the entry before tabbing on to the next field. I do many of these search-and-replace operations over the course of editing a book, so I bump into this many times over.

My searches are for just normal text and/or scanning errors -- and I too often use surrounding spaces to quickly isolate specific instances -- something that serves perfectly in text searches. I don't use regex; I realize it is second-nature for many, but for me it has been too much of a struggle, and simple text searches serve very well for what I do.
Under the Covers is offline   Reply With Quote
Old 03-11-2014, 09:12 PM   #14
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
I have the same experience in Win7 with the lists popping up.
mrmikel is offline   Reply With Quote
Old 03-11-2014, 09:13 PM   #15
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
and on linux. (Ubuntu 12.04 LTS)
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable/disable search highlighting katiez Library Management 2 12-05-2013 02:42 PM
Disable indexing (search) = longer battery life! statethatiamin Kindle Developer's Corner 58 05-02-2012 07:58 AM
Disable search-while-typing for authors in Edit Metadata QuantumBeep Library Management 2 06-03-2011 12:44 AM
Search History is getting in my way RichieTheK Calibre 10 09-26-2010 09:11 AM
Search History joserramon Calibre 3 12-22-2009 11:15 AM


All times are GMT -4. The time now is 06:42 AM.


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