|
|
#1 |
|
Connoisseur
![]() Posts: 70
Karma: 10
Join Date: Jun 2020
Device: Kobo Aura HD
|
Name Upper with calibre/sqlite but Lower with ls -ld under Unix
I'm having an issue with Calibre 8.16 directories.
Some Unix-based book names begin with a lowercase letter, while in the SQLite database (metadata.db) and within Calibre itself, they all begin with an uppercase letter. This is a very rare occurrence and likely results from remnants of older versions, but Calibre (via maintenance) never detects it. This causes conflicts between Unix and Windows. Is there any way to control this? example ls -ld [a-z]* ==> 'une troublante coincidence (1000)' sqlite> select title, from books where id=1000; Une troublante coincidence|1000 Last edited by Doum; 01-10-2026 at 06:41 PM. |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,409
Karma: 62500208
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Be very careful *fixing* folder or file names outside of Calibre
Have you tried the Quality Check Plugin: Fix: Check and Rename Book paths That is Calibre making changes. Also Case differences are because the Entries in Calibre are that way. Open the Tag Browser: Authors: right click: Manage <this is where you can see and adjust the Authors case and spelling and everything follows. As to Titles : Again Quality check: Check metadata, check titles for case (at the bottom). Once you have the problem kids discovered, select All: Tap 'E' (Metadata edit bulk mode): The form has change Title case to: (and update the sort) |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,837
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Dont share a library folder between unix and windows, its a recipe for data loss as the two have very different semantics. If you do insist on doing so make the folder of the calibre library case insensitive on Linux, that will at least remove one source of semantic differences.
|
|
|
|
|
|
#4 |
|
Connoisseur
![]() Posts: 70
Karma: 10
Join Date: Jun 2020
Device: Kobo Aura HD
|
Thank you for your replies. The "quality check" is quite useful, but I'm going to use an SQLite script combined with "ls" to verify the consistency of the authors/titles with my actual file paths.
For your information, I encountered errors with the PHP function `imagecreatefromjpeg`. I passed it the path retrieved via an SQL query, but it generated a "Failed to open stream: No such file or directory" error because the actual path had a different lowercase/uppercase character. (I use it to create minicovers from the cover.jpg file in Calibre files.) Last edited by Doum; Yesterday at 06:27 AM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Upper to Lower Case Regex - I'm stuck! | Chris_Snow | Sigil | 20 | 11-03-2023 04:54 PM |
| Change case to Title fails with mix of upper and lower cases | paperback | Editor | 2 | 03-12-2022 09:19 PM |
| Spellcheck filter - upper/lower case | Binchen | Sigil | 8 | 10-29-2021 10:49 PM |
| Replace UPPER with lower? | vr8ce | Editor | 4 | 07-06-2018 10:43 PM |
| Buy Sony PRS-505 Ornamental Plates both lower and upper | pnyc | Flea Market | 2 | 05-24-2009 12:17 PM |