![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2008
Device: PRS-505
|
rtf2lrf shows IOError: [Errno 2] if special characters in filename
Dear All,
tried to search forums but no trace of this error or similar Code:
C:\My Documents\My eBooks>cvt.bat Processing Agatha Christie - C'Era Una Volta....rtf Processing Agatha Christie - C'E Un Cadavere In Biblioteca.rtf Traceback (most recent call last): File "convert_from.py", line 207, in <module> File "convert_from.py", line 120, in main File "convert_from.py", line 82, in process_file IOError: [Errno 2] No such file or directory: "C:\\My Documents\\My eBooks\\Agatha Christie - C'E Un Cadavere In Biblioteca.rtf" C:\My Documents\My eBooks> Code:
@echo off FOR /F "tokens=*" %%a IN ('dir /b "*.rtf"') DO ( echo Processing %%a echo %%a | sed -e "s/\(.*\) - \(.*\)\.[rR][tT][fF]/\"C:\\Program Files\\libprs500\\rtf2lrf\" -a \"\1\" -t \"\2\" --category=Brivido --encoding=utf-8 --base-font-size=8 \"%%a\">NUL/" > tmp_.bat call tmp_.bat pause del tmp_.bat >NUL ) Code:
Agatha Christie - C'È Un Cadavere In Biblioteca.rtf Thanks, Xixix. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,230
Karma: 7145404
Join Date: Nov 2007
Location: Southern California
Device: Kindle Voyage & iPhone 7+
|
Change the file name?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,959
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2008
Device: PRS-505
|
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,959
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But do you really need to bulk convert 1000 eBooks at one time? Can you actually read them fast enough that you need them all NOW?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2008
Device: PRS-505
|
Quote:
[ ] Laughing? [ ] Arguing? [ ] Questioning about reasons for bulk converting? [ ] Supporting? Place "X" mark where needed; no multiple choices allowed! Only one answer is the right one ... others are OT ... you choose! |
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This works for me. Probably a result of having a non-standard windows file-system encoding, though I realy don't know enough about windows to say more.
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,959
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#9 |
Outside of a dog
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 871
Karma: 4457646
Join Date: Dec 2007
Location: Houston, TX
Device: Kindle Voyage
|
|
![]() |
![]() |
![]() |
#10 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2008
Device: PRS-505
|
Quote:
Thank you all for perspectives and support. Xixix. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to sent books to device with filename in non-ascii characters? | flyisland | Calibre | 8 | 10-16-2010 05:35 AM |
IOError: [Errno 22] Invalid argument | jkcoder | Calibre | 5 | 09-25-2010 09:28 AM |
Content PDF: Homescreen shows Filename instead of Title (Metadata) | bear4hunter | Amazon Kindle | 1 | 08-02-2010 12:35 AM |
IOError: [Errno 13] Permission denied | s3ntient | Calibre | 3 | 02-20-2010 02:01 PM |
IOError errno 5? | codemac | Calibre | 11 | 10-22-2009 02:36 PM |