Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2015, 10:34 AM   #1
Dyslexia
Junior Member
Dyslexia began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2015
Device: SonyTRS
Diacritical characters get 'translated'

Hi,

New to this forum.
I'm just a simple point-and-click type user and using Calibre is great to keep my collection organised.
However, there is one thing that annoys me greatly.
Whenever I have a diacritical character in an author name or a book title, calibre 'translates' this into the normal character form on disk in the folder name created for the author, as well as in the file-name created for the epub file. eg. ö becomes plain o; é becomes e; etc.
Funny thing is, in the library calibre accepts and maintains those , but once out on disk the 'translation' has taken place.

Have I got something configured incorrectly?, although I can't imagine what, since I'm basically using a next-next-finish type installation (can you tell I'm using a Windows box?), i.e. apart from choosing my language and reader I haven't made any configuration changes.

Or, is it not possible at all to have calibre maintain these characters?

Appreciate your insight(s) here.

Dyslexia is offline   Reply With Quote
Old 10-11-2015, 10:42 AM   #2
Dyslexia
Junior Member
Dyslexia began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2015
Device: SonyTRS
Forgot to mention, also when eg. the author name is something like Persson, Leif G.W. (ie. ends in initials followed by a period, calibre turns this into Persson, Leif G.W_ - <booktitle>.epub, ie. changes the final period into an underscore.
Why? Windows handles this perfectly well, as I'm sure other OS's do too, so why?

(Sorry for tagging this onto my own thread)
Dyslexia is offline   Reply With Quote
Advert
Old 10-11-2015, 11:48 AM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
See Preferences ==> Saving books to disk

Uncheck the option "Convert non-English characters to English equivalents".


As for the underscores, calibre will always replace filepath-unsafe characters with an underscore. One of those unsafe characters is "period at the end of a pathname component".


The OS/filesystem may allow a pathname component ending with a period to be created, but Windows can and will do some seriously funky things when you do. (The Win32 API has Issues with a capital I. Officially, you Cannot create filepaths ending in a period, and if you try Windows will simply create it without the period. But there are hacks to circumvent that -- Cygwin is one -- and then your troubles start, because all the usual ways of dealing with those filepaths will choke hard on it.)
calibre does what it does for good reasons. And there certainly aren't any bad side effects when replacing that period with an underscore (even on linux and OSX).


EDIT: Here's your proof. MSDN has this to say about Naming Files, Paths, and Namespaces

Quote:
  • Do not end a file or directory name with a space or a period. Although the underlying file system may support such names, the Windows shell and user interface does not. However, it is acceptable to specify a period as the first character of a name. For example, ".temp".

Last edited by eschwartz; 10-11-2015 at 12:00 PM.
eschwartz is offline   Reply With Quote
Old 10-11-2015, 12:02 PM   #4
Dyslexia
Junior Member
Dyslexia began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2015
Device: SonyTRS
Hello eschwartz,

Thank you for taking the time to 'set me straight'.
I will look into the settings you suggested.

However your following statement peaked my interest:
"The OS/filesystem may allow a pathname component ending with a period to be created, but Windows can and will do some seriously funky things when you do."

Could I impose on you to elaborate a little more on this?
What funky things eg.?

Thanks
Dyslexia is offline   Reply With Quote
Old 10-11-2015, 12:14 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, the file or folder will exist on disk -- IF it gets created by sneaking around the Win32 API -- but most (standard) ways of interacting with it (read: anything that uses the Win32 API) won't be able to create it, open it, move it, or delete it. (I believe it may show up as a zero-byte file???)


Windows has plenty of legacy issues surrounding filenames inherited from the DOS days.


Just take a stroll down these Google Search results: folder ending in a period



Bottom line: not wise to take a dive in the uncharted waters of Windows-land.

Last edited by eschwartz; 10-11-2015 at 12:20 PM.
eschwartz is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Android] CC can now be translated into other languages chaley Calibre Companion 35 03-04-2019 02:50 PM
Translated from: which metadata for the original language of a translated book? fxp33 ePub 5 08-12-2014 02:05 PM
Kobo Touch - Fonts for Sanskrit and diacritical marks panmanthe2nd Kobo Reader 27 03-11-2014 11:41 AM
¿Convert unicode decomposed characters to unique/normal characters? JohnQwerty Calibre 3 04-05-2012 12:08 PM
translated literature zeppo General Discussions 6 12-09-2010 04:55 PM


All times are GMT -4. The time now is 04:46 PM.


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