Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-27-2020, 10:49 PM   #1
GullyOak
Junior Member
GullyOak began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2020
Device: Kindle Paperwhite
Stop Calibre from changing Titles

My main use for Calibre is to convert personal .rtf files so that I can read them on my Kindle.

I have hundreds rtf files and they all use space-hyphen-space sequences and commas in their filenames. There is no author name or series name or anything else embedded in the .rtf filename: nothing except the full title. I'd like to instruct Calibre to keep the full filename as the full title--hyphens and spaces and all--without making any changes to it whatsoever (other than stripping away the ".rtf" file type).

Is there a simple way to do that? (Renaming my files is not an option: my filenames interact with other programs.)

GullyOak is offline   Reply With Quote
Old 05-27-2020, 11:20 PM   #2
Mikou
Zealot
Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.
 
Posts: 148
Karma: 5052779
Join Date: May 2007
Location: Long Island, NY
Device: Kobo Libra, Amazon Fire 10, Kobo Clara, Kobo Aura One
I tested it this out and I believe this would work for you:
1. In Calibre, open Preferences
2. In Preferences, choose Adding Books (in the Import/export section)
3. In Adding Books, uncheck "Read metadata from file contents rather than file name"
4. In the "Configure metadata from filename box", there is a drop down menu under Regular expression. Choose (?P<title>.+)
5. Click Apply, close Preferences and you are done.

Note: if you want to test it out before saving the change, use the Test box where you type in a sample of a file name (e.g. Melville, Herman - Moby Dick.rtf). When you click test, you will see how Calibre would process the filename. After the change, there is an option to restore the default settings, if you need to do so.

Good luck!

Last edited by Mikou; 05-27-2020 at 11:23 PM.
Mikou is offline   Reply With Quote
Old 05-28-2020, 09:40 AM   #3
GullyOak
Junior Member
GullyOak began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2020
Device: Kindle Paperwhite
Quote:
Originally Posted by Mikou View Post
Good luck!
Mikou: Wow--thank you!

I looked all through preferences and settings, and couldn't make heads or tails of what I read. I thought there must be an easy solution and that an expert with Calibre could solve my problem in a moment--which you have!

So thank you!
GullyOak is offline   Reply With Quote
Old 05-28-2020, 12:28 PM   #4
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,083
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by GullyOak View Post
Mikou: Wow--thank you!

I looked all through preferences and settings, and couldn't make heads or tails of what I read. I thought there must be an easy solution and that an expert with Calibre could solve my problem in a moment--which you have!

So thank you!
From the calibre user manual:

https://manual.calibre-ebook.com/gui.html#add-books

Quote:
The Add books action can read metadata from a wide variety of e-book formats. In addition, it tries to guess metadata from the filename. See the Guessing metadata from file names section, to learn how to configure this.
bernie
gbm is offline   Reply With Quote
Old 05-28-2020, 11:31 PM   #5
Mikou
Zealot
Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.Mikou ought to be getting tired of karma fortunes by now.
 
Posts: 148
Karma: 5052779
Join Date: May 2007
Location: Long Island, NY
Device: Kobo Libra, Amazon Fire 10, Kobo Clara, Kobo Aura One
Quote:
Originally Posted by GullyOak View Post
Mikou: Wow--thank you!

I looked all through preferences and settings, and couldn't make heads or tails of what I read. I thought there must be an easy solution and that an expert with Calibre could solve my problem in a moment--which you have!

So thank you!
You're welcome. Glad I could help.
Mikou is offline   Reply With Quote
Old 05-29-2020, 12:15 PM   #6
GullyOak
Junior Member
GullyOak began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2020
Device: Kindle Paperwhite
Thank you, also, gbm.

Another change I made was to stop Calibre from appending "- Unknown" to the end of all my filenames (e.g., "the author"):

Go to Preferences, "Sending books to devices":
Change "save template" to {author_sort}/{title}
(You can also get rid of {author sort}/ if you don't mind everything being put into the same directory.)
GullyOak is offline   Reply With Quote
Old 09-04-2020, 06:38 AM   #7
irmar
Member
irmar began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Nov 2010
Location: Athens, Greece
Device: Pocketbook plus 360
This doesn't work for me.
The way I like filenames is Author - Title.
So, instead of the standard expression for extracting metadata which is
(?P<title>.+) - (?P<author>[^_]+)
I put:
(?P<author>[^_]+) - (?P<title>.+)

As a test, I put "Homer - The Iliad.epub"
and Calibre said that
Title: The
Authors: Homer

then I tried "Mark Twain - Tom Sawyer.epub"
and Calibre again interpreted it as the title being "Tom"
So it seems that it doesn't recognize more than one word as the title.

Last edited by irmar; 09-04-2020 at 07:16 AM.
irmar is offline   Reply With Quote
Reply

Tags
hyphens, titles


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to stop calibre from moving my "a" and "the" in titles? burnafterreading Library Management 6 11-14-2022 06:52 PM
How to Stop Calibre from Automatically Changing OPF metadata Sneddles Conversion 10 07-19-2014 06:57 PM
How to stop Calibre changing location numbers D0nQu1x0te Conversion 4 01-22-2013 08:39 PM
How to stop Sigil from changing my HTML? seanos Sigil 29 05-25-2012 12:49 AM
How do I stop Calibre from changing my book titles? HarryT Calibre 2 12-16-2010 11:41 AM


All times are GMT -4. The time now is 11:40 PM.


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