Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 11-13-2022, 01:30 PM   #1
FacetiousKnave
Unconscionable
FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.
 
FacetiousKnave's Avatar
 
Posts: 89
Karma: 25000
Join Date: Sep 2022
Location: Helsinki
Device: Kindle
Losing special characters when sending books via email

My apologies in advance if this topic has already been discussed.

The problem:

As a Spanish speaker, a significant number of my books have special characters in their titles such as: ¿? and vowels with accents such as á, é, í, ó, ú.

When I add books with these special characters in their titles to my Calibre's library, they appear correctly in the list, but as soon as I email them to my Kindle, they lose all of them.

As I understand it, the reason this happens is that Calibre replaces the characters in the files saved in the library folder, so in order to preserve the characters, I have to edit the files externally and send them directly through my personal email. Characters are kept correctly by Amazon after the files are converted to whatever their native format is.

Suggestion:

Would it be possible for Calibre to save the files without altering the special characters, so that people can send their books internally?

Last edited by FacetiousKnave; 11-13-2022 at 01:35 PM.
FacetiousKnave is offline   Reply With Quote
Old 11-13-2022, 03:22 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: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Calibre ASCIIizes file names to avoid later issues with file handling by other parties/apps.
I don't believe this will change. Most modern reading apps use metadata, not file names. So the bookshelf on the device should be correct.
theducks is offline   Reply With Quote
Advert
Old 11-13-2022, 05:03 PM   #3
FacetiousKnave
Unconscionable
FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.
 
FacetiousKnave's Avatar
 
Posts: 89
Karma: 25000
Join Date: Sep 2022
Location: Helsinki
Device: Kindle
Amazon is definitely reading the file name to generate the tittle, although it must be also reading the metadata to generate the author.

However, this is something relatively new, since it started happening after the last Kindle software update, Version 5.15.1 – September 2022

An example:

Title of the book (shown in Calibre): ¿Qué hora es?

Calibre renames the file as: _Que hora es_

The file lands on the Kindle with the file name instead of the title in the metadata.

Anyway, I know it is not up to me to decide what changes to make on Calibre, but I would just like to kindly suggest the developers to have a look into it whenever they have a chance, considering that this issue must be affecting all non-English readers who use Kindle devices.
FacetiousKnave is offline   Reply With Quote
Old 11-13-2022, 06:44 PM   #4
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,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
FWIW: The ? character is not allowed in Windows file names, along with these: \ / : * " < > |. One way around that it to replace the ? with U+FF1F (Full width question mark)

Then with these save settings

Click image for larger version

Name:	1.jpg
Views:	122
Size:	107.2 KB
ID:	197718

You'll get this when you do a save to disk

Code:
¿Qué hora es? - Don Quixote.epub
I have no idea if that would work in Send by Mail to a Kindle.

BR

Last edited by BetterRed; 11-14-2022 at 04:04 PM.
BetterRed is offline   Reply With Quote
Old 11-13-2022, 07:36 PM   #5
FacetiousKnave
Unconscionable
FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.
 
FacetiousKnave's Avatar
 
Posts: 89
Karma: 25000
Join Date: Sep 2022
Location: Helsinki
Device: Kindle
Thanks for the advice, but unfortunately it did not work. I copied your settings, but Calibre stills replace the alternative question mark with an underscore symbol.

Just to clarify, I am able to manually include the special characters on the file name because I am using a mac. I forgot that you cannot do the same on Windows.

Anyway, I hope Amazon eventually decide to bring back things as they were before. Their unpractical decision to generate the title from the file name is making everything incredibly difficult.

EDIT: Sorry, you were right, I missed the "save to disk" step. In fact, I just tried with a title full of vowels with accents and it all work! Many thanks.

EDIT 2: Just out of curiosity, if Calibre is able to do that when you "save to disk", why cant it just save the files on the library with the special characters included?

Last edited by FacetiousKnave; 11-13-2022 at 07:41 PM.
FacetiousKnave is offline   Reply With Quote
Advert
Old 11-13-2022, 09:19 PM   #6
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,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You just have to wait for amazon to fix their software, if they ever will. In the meantime use a USB cable to send books to your kindle.

Filenames are ascii-ized for maximum *robustness*. In your case, aazon's email service has been known to reject email with non-ascii filenames. No one knows exactly what it doesnt like, so calibre errs on the side of safety and just ascii-zes it completely and removes any filename unsafe characters.
kovidgoyal is offline   Reply With Quote
Old 11-13-2022, 09:23 PM   #7
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,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by FacetiousKnave View Post

EDIT 2: Just out of curiosity, if Calibre is able to do that when you "save to disk", why cant it just save the files on the library with the special characters included?
First reason is cross platform compatibility. Not only does calibre run on multiple operating systems (Windows, MacOS and Linux), it can also be used on several file systems including: FAT32, NTFS, Ext 2, 3 & 4, HFS+, NFS, AFS…. Each platform has its own idiosyncrasies with respect to path, directory and file names. Rather than cater to each platform Kovid made the decision to adopt a lowest common denominator approach - 'normalise' them to ASCII, truncate, disallow some characters etc - the TINAW rule rules.

Second reason is that the author and book folders only exist because to put the format and cover files into the database as blobs (where a theoretical information purest would say they belong) would result in operations that use those files not only being painfully slow, but a lot more error prone.

I sometimes wonder if Kovid regrets not just having book directories with the database rowid as the name, with format files names as book.EPUB, book.PDF. book.MOBI etc. I think I would.

BR

Last edited by BetterRed; 11-13-2022 at 09:27 PM.
BetterRed is offline   Reply With Quote
Old 11-14-2022, 06:50 AM   #8
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,049
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
The purist approach might work with an SQL Server, not SQLite and would not work on FAT32. Last time I tried big binary blobs it resulted in excess RAM usage, poorer performance and a giant file, that was using MS SQL Server with NTFS.
So storing the files as-is in a directory structure is what I did. The current system aids human debugging and backups. Using the current naming allows human merging and also fixing/recovery of broken systems which the Row ID wouldn't.
I've seen backups on NTFS fail because the overall path was too long or a file name had accented characters.
So I think on balance Kovid made the right decision. Or whoever started the system for the Sony ereader; my understanding was that the embryonic library was taken over by Kovid when it only supported Sony?

Not quite related, but databases are not as simple as beginners think
https://www.explainxkcd.com/wiki/ind...loits_of_a_Mom

Quote:
Her daughter is named Help I'm trapped in a driver's license factory.

Last edited by Quoth; 11-14-2022 at 06:56 AM.
Quoth is offline   Reply With Quote
Old 11-14-2022, 07:37 AM   #9
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,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Quoth View Post
Or whoever started the system for the Sony ereader; my understanding was that the embryonic library was taken over by Kovid when it only supported Sony?
Nope calibre was originally libprs500 for the sony prs500, also developed by me. The calibre database is almost entirely my code. The other major contributor was chaley who added custom columns to it.

Last edited by kovidgoyal; 11-14-2022 at 09:24 AM.
kovidgoyal is offline   Reply With Quote
Old 11-14-2022, 09:19 AM   #10
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,049
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by kovidgoyal View Post
Nope calibre was originally libprs500 for the sony prs500, also developed by me. The calibre database is almost entirely my code.
Thanks. I knew it was for Sony first. Well, you have done a great job from the beginning and outlasted Sony ereaders!
Quoth is offline   Reply With Quote
Old 11-14-2022, 11:01 AM   #11
FacetiousKnave
Unconscionable
FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.FacetiousKnave knows what's going on.
 
FacetiousKnave's Avatar
 
Posts: 89
Karma: 25000
Join Date: Sep 2022
Location: Helsinki
Device: Kindle
Quote:
In the meantime use a USB cable to send books to your kindle.
Thanks for your response, but I think it would be more practical for me to take the approach of BetterRed, which is saving to disk the books I want to send by email, as they keep all the special characters except for "?". That way, setting Calibre to save the files without the name author, I can just attach them all in an email.
FacetiousKnave is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending books via email troubleshooting jrango Library Management 1 04-12-2022 07:47 AM
Problem Sending Books via email mtmjimenez5 Devices 2 07-01-2014 09:25 PM
Sending books to Amazon Email Beamer92 Calibre 1 01-27-2014 01:20 PM
Losing Info when sending books Bobioden Calibre 4 08-28-2013 10:21 AM
Sending books via email 357mag Calibre 3 11-03-2010 10:56 PM


All times are GMT -4. The time now is 02:13 PM.


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