Mobileread
Libraries starting with Non-Latin Characters
#1  HAL.Unke 05-25-2020, 09:37 AM
Libraries/Folders are sorted alphabetically in the quick switch list.
One can move them to the end of the list by starting the name with z (e.g. z_boring_books).
I thought it would be nicer to use unused unicode letters (e.g. 􏿽test),
but if I edit author or title I get an error
calibre, version 4.14.0 (also with 4.17-64bit)
ERROR: Failed to set data: Could not set data, click Show Details to see why.

Traceback (most recent call last):
File "site-packages\calibre\gui2\library\models.py", line 1122, in setData
File "site-packages\calibre\gui2\library\models.py", line 1197, in _set_data
File "site-packages\calibre\db\legacy.py", line 442, in set
File "site-packages\calibre\db\cache.py", line 62, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 1122, in set_field
File "site-packages\calibre\db\cache.py", line 1136, in update_path
File "site-packages\calibre\db\backend.py", line 1621, in update_path
File "site-packages\calibre\utils\filenames.py", line 471, in delete_originals
error: (123, 'DeleteFile', 'Die Syntax f\xfcr den Dateinamen, Verzeichnisnamen oder die Datentr\xe4gerbezeichnung ist falsch.')

The texteditor np++ has no problems with the folder 􏿽test.

Why has calibre (or python) problems with non-latin unicode paths?
I use Win10/german language
Reply 

#2  theducks 05-25-2020, 09:46 AM
I suspect this is your (known) problem:
https://manual.calibre-ebook.com/faq.html#how-do-i-convert-my-file-containing-non-english-characters-or-smart-quotes

Avoidance is the simplest answer.
Reply 

#3  kovidgoyal 05-25-2020, 12:59 PM
I dont see how that is possible. non-ascii character are stripped from the filenames used for books in the calibre library automatically. How are you getting that to happen?
Reply 

#4  BetterRed 05-25-2020, 06:33 PM
Quote kovidgoyal
... how are you getting that to happen?
Press F2 on an Author - e.g. 'Better Red', paste a high order char from clipboard (e.g, an Omega 'Ω') at start of name and press enter.

Despite the message the Author name changes to 'ΩBetter Red', and under the covers I get two author folders 'Better Red' and 'OBetter Red' with hardlinks in the book folders from what I assume is a half done move.

BR
Reply 

#5  kovidgoyal 05-25-2020, 10:19 PM
The author name will change, the filenames should be ascii-ized however. I cannot reproduce on my linux machine, but will try on windows when I have a moment.
Reply 

#6  kovidgoyal 05-25-2020, 11:44 PM
I tried those steps on my windows system as well, no errors. Anything else unusual you can think of? Are you running the python 3 calibre betas? Does it happen when starting calibre with --ignore-plugins?
Reply 

#7  BetterRed 05-26-2020, 12:53 AM
Not py3, but the error doesn't happen with --ignore plugins.

These are the PIs I run

CalibreSpy.zip
Count Pages.zip
Drop Search Results.zip
EpubSplit.zip
Extract ISBN.zip
Favourites Menu.zip
Find Duplicates.zip
GetFileName.zip
Job Spy.zip
Modify ePub.zip
Quality Check.zip
Reading List.zip
Resize Cover.zip
View Manager.zip

The only PI that looked a likely cause was GetFileName, so I it knocked out. And hey presto, no errors.

The only other File Type PIs I know of are: Alf's deDRM tool and DaltonST's RIS extraction tool but I don't have either, nor the inclination to install either of them.

BR
Reply 

#8  kovidgoyal 05-26-2020, 02:22 AM
You should report it in that plugins thread then.
Reply 

#9  BetterRed 05-26-2020, 04:48 AM
Quote kovidgoyal
You should report it in that plugins thread then.
Done

@HAL.Unke - do you use the GetFileName plugin?

BR
Reply 

#10  Terisa de morgan 05-26-2020, 12:37 PM
Quote kovidgoyal
You should report it in that plugins thread then.
I'm able to reproduce the error... Without any FileType plugin (that includes GetFileName), so there is something more. What could I check? If I start calibre in debug mode, I get this trace:

Spoiler Warning below






Traceback (most recent call last):
File "site-packages\calibre\gui2\library\models.py", line 1122, in setData
File "site-packages\calibre\gui2\library\models.py", line 1197, in _set_data
File "site-packages\calibre\db\legacy.py", line 442, in set
File "site-packages\calibre\db\cache.py", line 62, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 1122, in set_field
File "site-packages\calibre\db\cache.py", line 1136, in update_path
File "site-packages\calibre\db\backend.py", line 1621, in update_path
File "site-packages\calibre\utils\filenames.py", line 471, in delete_originals
error: (123, 'DeleteFile', 'El nombre de archivo, el nombre de directorio o la sintaxis de la etiqueta del volumen no son correctos.')
Reply 

  Next »  Last »  (1/3)
Today's Posts | Search this Thread | Login | Register