Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-23-2016, 03:40 PM   #1
Frenchdummy
Enthusiast
Frenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipse
 
Frenchdummy's Avatar
 
Posts: 29
Karma: 8300
Join Date: Apr 2013
Location: France
Device: Kobo glo, Apple devices
About a regex research

I do not understand regular expressions yet. But someone might be able to tell me how to build one.
goal: find in all text in "ebook Edit" in Calibre such strings in order to delete them.
<a id="page_9" class="calibre2"></a>

In which the number in red could be any numbers from 1 to 500 or even more.

Thanks for your help.
Is there an online tool or Mac software that can help in building regular expressions from examples of what one want to select ? It would be great!

Last edited by Frenchdummy; 07-23-2016 at 03:51 PM. Reason: Maybee a software for Dummy
Frenchdummy is offline   Reply With Quote
Old 07-23-2016, 05:12 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Frenchdummy View Post
I do not understand regular expressions yet. But someone might be able to tell me how to build one.
goal: find in all text in "ebook Edit" in Calibre such strings in order to delete them.
<a id="page_9" class="calibre2"></a>

In which the number in red could be any numbers from 1 to 500 or even more.

Thanks for your help.
Is there an online tool or Mac software that can help in building regular expressions from examples of what one want to select ? It would be great!
This site is highly regarded ==>> Regex Tutorial, Examples and Reference

It has a couple of utilities, RegExMagic and RegExBuddy, that some people find useful.

You should be able to remove those tags with this Editor plugin ==>> Diaps Editing Toolbag

BR
BetterRed is offline   Reply With Quote
Advert
Old 07-23-2016, 05:33 PM   #3
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: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
replace the digit (keeping the rest) with
Code:
\d+
\d+ means 1 or more digits TOGETHER

eg'
5.23 is not 3 digits 'together'
Code:
\d\.\d+
1 digit followed by a escaped. (because it is a wild card) followed by 1 or more digits.

REGEX can be fun
theducks is offline   Reply With Quote
Old 07-24-2016, 04:47 AM   #4
Frenchdummy
Enthusiast
Frenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipseFrenchdummy can illuminate an eclipse
 
Frenchdummy's Avatar
 
Posts: 29
Karma: 8300
Join Date: Apr 2013
Location: France
Device: Kobo glo, Apple devices
What a time saver for research in Calibre! provided one knows where to put such a request. The Calibre Editor in French deserves a review: Thus REGEX research is "Expression rationnelle" which is not easily interpretable by French.
The manual in French is only speaking Functions, if I'm not mistaken and this is downright impressive. But it's really for programmers.

Off Topic: On top of that,
  • I fear I have accidentally changed some settings in Calibre itself a long time ago. What has changed (despite updates) the Calibre epub filenames inside the tree of its Database.
    What I wanted to get at the time and even today is reformatted names of files like this:
    Code:
    [Author Name without spaces]_[Firstname without spaces]-[Name of the volume]-[N°]_[/total of volume]-[Title]-[Language] with the extension of the file (.epub, .mobi, .docx, …)
    I'll have to investigate why this is not possible for me. (And maybe also for others)
  • I'm not sure to know where to list the bugs I see in the French part of Calibre in order let David Koyal see them. Because he left a few, in my humble user review.
  • I feel the need to extend the duration of sessions before disconnection on this site. Because I translate in English with difficulty, once the correct formulation found, I often lose everything I have written before because of this disconnect.
Frenchdummy is offline   Reply With Quote
Old 07-24-2016, 07:37 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Frenchdummy View Post
What a time saver for research in Calibre! provided one knows where to put such a request. The Calibre Editor in French deserves a review: Thus REGEX research is "Expression rationnelle" which is not easily interpretable by French.
The manual in French is only speaking Functions, if I'm not mistaken and this is downright impressive. But it's really for programmers.
Translations are done by volunteers rather than the developer Kovid Goyal.

See ==>> calibre - Get Involved: Contributing translations to calibre. It's quite easy to make adjustments.

"Regular Expression" is a technical term used in Computing (English) with a specific meaning relating to searching of text. The literal meaning of the two words is best ignored, it is a 'label'. It could have been labelled as "Kleene filter", seeing as the inventor of the technique was Stephen Kleene.

Perhaps "Expression rationnelle" is used Computing (French) rather than a more literal translation such as "Expression régulière". You'd need to ask a French speaking Computing guru.

Also see [Tutorial] All about using regular expressions in calibre

Quote:
Originally Posted by Frenchdummy View Post
Off Topic: On top of that,
  • I fear I have accidentally changed some settings in Calibre itself a long time ago. What has changed (despite updates) the Calibre epub filenames inside the tree of its Database.
    What I wanted to get at the time and even today is reformatted names of files like this:
    Code:
    [Author Name without spaces]_[Firstname without spaces]-[Name of the volume]-[N°]_[/total of volume]-[Title]-[Language] with the extension of the file (.epub, .mobi, .docx, …)
    I'll have to investigate why this is not possible for me. (And maybe also for others)
  • You cannot change the names of the library folders and files (and that has always been so), see ==>> Want to change folder structure or file names in the Calibre library?

    You can control the structure and names of folders and files for the Send To Device and Save to Disk features, in the relevant Preferences dialogues, using ==>> [Tutorial] The calibre template language.

    There are some sample templates in this sticky thread in Library Management subforum ==>> Plugboard, template, and custom composite column recipes

    Quote:
    Originally Posted by Frenchdummy View Post
  • I'm not sure to know where to list the bugs I see in the French part of Calibre in order let David Koyal Kovid Goyal see them. Because he left a few, in my humble user review.
  • This is the place to report software bugs ==>> calibre - Bugs

    However, the French translation is maintained by MR Member Ptitprince. I suggest you take up your translation issues directly with him via a Private Message. BTW I discovered that by following the links from the the About\Contributors page at the main calibre site.

    Quote:
    Originally Posted by Frenchdummy View Post
  • I feel the need to extend the duration of sessions before disconnection on this site. Because I translate in English with difficulty, once the correct formulation found, I often lose everything I have written before because of this disconnect.
That's an MR forum issue not a calibre issue - you could do what I do when posting in French - write my post in English in an offline text editor (with spellcheck on), copy and paste it into Google's English->French Translator and post the results.

BR

Last edited by BetterRed; 07-24-2016 at 08:45 PM.
BetterRed is offline   Reply With Quote
Advert
Reply

Tags
regexp


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need research help Harper Kingsley Writers' Corner 2 01-25-2012 11:09 PM
Reading for Research Telly Which one should I buy? 13 11-03-2010 11:46 PM
iLiad using iLiad for research? Matt iRex Developer's Corner 62 12-14-2009 11:40 PM
Research Rudi Chendra Writers' Corner 1 06-23-2009 07:38 AM
Anyone want to help me out with a little research? PorterHarbold Lounge 2 10-24-2008 03:52 AM


All times are GMT -4. The time now is 11:51 AM.


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