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 01-16-2016, 08:50 PM   #1
atux
Junior Member
atux began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2016
Device: none
Missing "function mode" for editor's Search & Replace

Hello everyone,

I apologize if this was answered before (I did some searches and skimmed through the first pages of this sub-section of forum to no avail).

In short, I installed calibre (v.2.5 apparently, even though on the official site the last version appears as 2.49) today on my Linux Jessie, in order to convert a PDF ebook to ePub.
As it turned out for some reason it made many of the words on the beginning of phrases, lowercase, therefore I was trying to use the editor with RegEx in order to re-capitalize the first letter for the words in question.

For some reason, the function mode is missing in the Search panel of the editor, when I click on the Mode drop-down box. Is this normal for this version?
From what I see in the changelog function mode for RegEx was introduced since v.2.11 and unless it was dropped lately I guess it should still be there.

If it's not available anymore, does anyone know what RegEx expression I could use in the Replace box in order to capitalize what was found by the Find function (if that's possible at all)?

I've been testing with the following RE string for finding lowercase words at the beginning at paragraphs for starters (and it identifies the words fine): (<p class="calibre1">)([a-z]).

From what I see, in the Replace box I can retrieve the second group by using the: \2 RE backwards reference but I cannot figure out for the life of me how to capitalize that (I'm quite a noob in RegEx yet).

If anyone has an idea how to do that or how to bring back the function mode in the editor (in case it's depending on some setting) or any other method to make a whole bunch of different words propercase, I would appreciate that a lot.

Thanks for your time.
atux is offline   Reply With Quote
Old 01-16-2016, 08:57 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
No, you installed 2.5 (AKA 2.05) not 2.50

Rev numbers are strings

Most Linux distros are waaaaay behind and never update until the next distro release (and then, that is weeks stale)
theducks is offline   Reply With Quote
Advert
Old 01-17-2016, 03:11 AM   #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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
version 2.5 comes before version 2.11 (read up on Semantic Versioning, that "5" vs. "11" is the minor number).

Please install the latest calibre from https://calibre-ebook.com/download_linux

Your distro is horribly out of date, but that is most distros for you.
I love Arch Linux...
eschwartz is offline   Reply With Quote
Old 01-17-2016, 08:40 AM   #4
atux
Junior Member
atux began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2016
Device: none
Wow! That was a major oversight from my part.

Thanks a bunch guys; I've installed the last version, 2.49, from the official site and now the function mode is there, of course.
And on top of it, the built-in Python function Title-case did exactly the trick I needed!

Which is freaking awesome!

Thanks again and a big thank you also to Kovid and everyone else who contributed to this suite of amazing software.
atux is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search & Replace: A few "How to" flopis Calibre 4 08-21-2017 07:27 AM
Search and Replace; delete "author" name from "serie" roosten Library Management 6 12-17-2015 11:38 AM
Function mode in editor S&R -- coming soon eschwartz Editor 12 11-21-2014 08:26 AM
Choice lists for "Search" and "Replace" korben Editor 7 07-18-2014 04:03 PM
Search & Replace "wildcards"? LoveMyKobo Calibre 3 05-26-2011 06:12 PM


All times are GMT -4. The time now is 02:14 AM.


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