Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-16-2012, 01:31 PM   #1
mfioretti
Junior Member
mfioretti began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2012
Location: Italy
Device: none
how to avoid non alfanumeric characters inside Calibre folder?

Greetings,

I have ONE issue with the folders and files in the Calibre library. No, I do not want to change its structure! I HAVE read the post titled "Want to change the folder structure of the Calibre library?" at
https://www.mobileread.com/forums/sho...d.php?t=119175 and understand the point.

I don't care how Calibre structures files and folders in its library, or which names it chooses.

My ONLY question about this is: can I just tell Calibre to use ONLY alfanumeric characters plus dash and underscore for all those folder and file names, avoiding parentheses, spaces and what not? I haven't recognized any option in the user interface to do it. I would be willing to hack the code, if I had the right pointers to where and what to change.

Having files and folder names without "weird" characters would be really great for me, as it would let me keep unchanged the many scripts I already run for backups and other administrative tasks, and also guarantee that I can move the whole library to many filesystems, online storage, physical media, whatever without any "library rebuilding" or similar manual operations.

If it matters, I'm using Calibre 0.8.33 on Linux

Thanks in advance for any feedback,
Marco
mfioretti is offline   Reply With Quote
Old 11-17-2012, 01:49 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Welcome to Mobileread.

I don't believe there is a way to do what you want to do, but every time I think that, I'm proved wrong. The main developer is away for a few more days. Maybe someone else will stop by and prove me wrong.

Good Luck.

Moderator Notice
Moved the thread to general calibre forum. The development forum is not the place to ask general questions. Please read the "PLEASE READ BEFORE POSTING - The purpose of this subforum" sticky post from the top of the Development forum.

For those new to the forum at the top of all calibre forums are sticky posts with information on many frequently asked questions.
DoctorOhh is offline   Reply With Quote
Advert
Old 11-17-2012, 09:56 PM   #3
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: 45,304
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Simply change the construct_file_name and construct_path_name functions in database2.py. Instructions for running from source are in the User manual.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OPF inside OEBPS folder - Obligatory or strongly recommended ?? Diegnum ePub 7 06-26-2012 09:28 AM
non-English characters in calibre library folder structure ursus101 Library Management 3 09-11-2011 07:37 PM
Page-break-inside:avoid and mobi AlexBell Kindle Formats 3 06-01-2011 06:03 AM
Can you make a folder inside a Collection on Kindle? davtay Amazon Kindle 20 01-14-2011 10:52 PM
Is it possible to avoid the numbers between parenthesis in the folder name of a book? superplinio Calibre 5 11-08-2009 09:52 PM


All times are GMT -4. The time now is 01:29 PM.


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