andras_farkas Tetraglot Groupie Hungary Joined 4904 days ago 56 posts - 165 votes Speaks: Hungarian*, Spanish, English, Italian
| Message 33 of 51 16 January 2014 at 12:44am | IP Logged |
The ebook generator script hit a strange snag. I will resolve it somehow, I'm just not
sure how. If somebody really wants to generate bilingual ebooks now, I can provide a
clumsy workaround.
Meantime, I uploaded Kafka's Metamorphosis in German, English, Spanish and Hungarian.
This one is manually reviewed so there are no annoying misalignments.
2 persons have voted this message useful
|
conroy Newbie United Kingdom Joined 5078 days ago 36 posts - 51 votes Speaks: English* Studies: French
| Message 34 of 51 16 January 2014 at 6:34pm | IP Logged |
andras_farkas wrote:
The ebook generator script hit a strange snag. I will resolve it somehow, I'm just not
sure how. If somebody really wants to generate bilingual ebooks now, I can provide a
clumsy workaround. |
|
|
I'd like to give it a try.
I assume I first create an aligned text using aligner. What do I need to do after that?
1 person has voted this message useful
|
andras_farkas Tetraglot Groupie Hungary Joined 4904 days ago 56 posts - 165 votes Speaks: Hungarian*, Spanish, English, Italian
| Message 35 of 51 16 January 2014 at 9:04pm | IP Logged |
Here's a beta version: www.farkastranslations.com/download/Ebookmaker.zip
It's windows only, and it requires Calibre to be installed on your computer. Please
install calibre with default settings and let me know the path to ebook-convert.exe.
There's no readme but it should be pretty self-explanatory. Do not use file/folder names
with non-ASCII letters (űáúüöí).
Sometimes non-ASCII letters in the author/title get corrupted. If you run it with "leave
temporary files" enabled, you can run do.bat again and it might work correctly the second
time around. No idea why this happens.
Input files must be UTF-8 encoded tab txt files. I will eventually upload txt versions of
the books to the site, but you can also use any file generated with LF Aligner.
Let me know how it goes.
2 persons have voted this message useful
|
conroy Newbie United Kingdom Joined 5078 days ago 36 posts - 51 votes Speaks: English* Studies: French
| Message 36 of 51 16 January 2014 at 11:34pm | IP Logged |
andras_farkas wrote:
Here's a beta version: www.farkastranslations.com/download/Ebookmaker.zip
It's windows only, and it requires Calibre to be installed on your computer. Please
install calibre with default settings and let me know the path to ebook-convert.exe.
There's no readme but it should be pretty self-explanatory. Do not use file/folder names
with non-ASCII letters (űáúüöí).
Sometimes non-ASCII letters in the author/title get corrupted. If you run it with "leave
temporary files" enabled, you can run do.bat again and it might work correctly the second
time around. No idea why this happens.
Input files must be UTF-8 encoded tab txt files. I will eventually upload txt versions of
the books to the site, but you can also use any file generated with LF Aligner.
Let me know how it goes.
|
|
|
Thanks! I made a fr-en version of Zola's Therese Raquin using files from Gutenberg and ran ebookmaker. I already have Calibre installed and the default path on Win7 is
C:\Users\john>"c:\Program Files (x86)\Calibre2\ebook-convert.exe"
There wasn't a ebook-converter.exe, only an ebook-convert.exe in the directory.
Once I'd filled in the details in the GUI and clicked start I got this error...
Use of uninitialized value in open at script/ebookmaker_01_17.pl line 321.
Tk::Error:
Can't open temp file: No such file or directory
C:/Users/john/Desktop/Zola_Emile-Therese_Raquin/Zola_Emile-T herese-Raquin-fr-en.
txt
Tk callback for .frame2.button
Tk::__ANON__ at Tk.pm line 251
Tk::Button::butUp at Tk/Button.pm line 175
<ButtonRelease-1>
(command bound to event)
Once I'd checked the path to the aligned text was correct I ran it again. This time it worked! I loaded the ebook into Calibre and noted that the accents in the title hadn't come out properly. I can fix that easily in Calibre's own editor I think, but I decided to run ebookmaker again to see if it would handle the accents properly on the second try.
After clicking "Start" I got the Windows dialogue: Ebookmaker_01_17.exe has stopped working, close program. I've tried several more times, always with the same result. Could it have created a file somewhere that's preventing it from running on subsequent attempts?
I didn't see a do.bat anywhere even when I clicked keep temporary files.
Anyway, I'll have a browse through the aligned text I made and send it to you, probably tomorrow.
Edited by conroy on 17 January 2014 at 12:39am
2 persons have voted this message useful
|
andras_farkas Tetraglot Groupie Hungary Joined 4904 days ago 56 posts - 165 votes Speaks: Hungarian*, Spanish, English, Italian
| Message 37 of 51 17 January 2014 at 10:56am | IP Logged |
That's a bewildering array of problems.
Let's see a couple of them:
do.bat is saved where the .exe is located. A modified .txt is saved where the source txt
is located. The most reliable way of getting correct accented letters is to open the .bat
and copy-paste its contents to a console window.
Please check Ebookmaker/scripts/setup.txt
This is where the program saves the path to ebook-convert.exe. The reason why the app is
crashing is probably that the path is messed up somehow. Please post it here.
1 person has voted this message useful
|
conroy Newbie United Kingdom Joined 5078 days ago 36 posts - 51 votes Speaks: English* Studies: French
| Message 38 of 51 17 January 2014 at 5:00pm | IP Logged |
andras_farkas wrote:
That's a bewildering array of problems.
Let's see a couple of them:
do.bat is saved where the .exe is located. A modified .txt is saved where the source txt
is located. The most reliable way of getting correct accented letters is to open the .bat
and copy-paste its contents to a console window.
Please check Ebookmaker/scripts/setup.txt
This is where the program saves the path to ebook-convert.exe. The reason why the app is
crashing is probably that the path is messed up somehow. Please post it here. |
|
|
The scripts directory is completely empty.
I've now managed to get another successful run. The result this time was that I got the same error in the console as before with the same line numbers. So I clicked Start again and it worked.
This time I did get a do.bat file, but again the scripts directory is empty. I think the reason I wasn't seeing do.bat before was that on the only successful run I had I mustn't have ticked "keep temporary files." On all the other occasions I get the Windows "program has stopped working" dialog after clicking Start. There's is nothing in the console window when this happens, so I presume the crash is happening before any files have been written.
3 persons have voted this message useful
|
andras_farkas Tetraglot Groupie Hungary Joined 4904 days ago 56 posts - 165 votes Speaks: Hungarian*, Spanish, English, Italian
| Message 39 of 51 17 January 2014 at 6:08pm | IP Logged |
When you say "it worked", did you get a working .mobi file?
This sometimes-it-works-sometimes-it-doesn't phenomenon is often caused by some other
interfering software, so please repeat the tests while disabling your antivirus sw, and
disabling any backup utility you might have running. Place all files (ebookmaker AND
the input file) in some unmolested folder on C:\ (not Program Files, not your dropbox
folder etc.)
I uploaded a new version that prints status reports to the console so we can see where
it fails. The URL is the same. I also added a readme with instructions for a manual
process that you can use without running ebookmaker at all. Please do test it, though.
It works reliably for me so I can't tell what the error is from my testing.
Please post a screenshot or the copy-pasted contents of the console if you get crashes.
3 persons have voted this message useful
|
conroy Newbie United Kingdom Joined 5078 days ago 36 posts - 51 votes Speaks: English* Studies: French
| Message 40 of 51 17 January 2014 at 9:21pm | IP Logged |
andras_farkas wrote:
When you say "it worked", did you get a working .mobi file?
This sometimes-it-works-sometimes-it-doesn't phenomenon is often caused by some other
interfering software, so please repeat the tests while disabling your antivirus sw, and
disabling any backup utility you might have running. Place all files (ebookmaker AND
the input file) in some unmolested folder on C:\ (not Program Files, not your dropbox
folder etc.)
I uploaded a new version that prints status reports to the console so we can see where
it fails. The URL is the same. I also added a readme with instructions for a manual
process that you can use without running ebookmaker at all. Please do test it, though.
It works reliably for me so I can't tell what the error is from my testing.
Please post a screenshot or the copy-pasted contents of the console if you get crashes. |
|
|
Yes, "it worked", meaning I got a working .mobi file.
I've done as you suggested - moved the Ebookmaker folder to c:\, putting my aligned text in the same folder and shutting off extraneous programs. I actually booted to safe mode to get as "clean" a system as possible. I ran the program several times in safe mode and it crashed in the same spot every time. Here's the console output:
Path to ebook-convert.exe: c:/Program Files (x86)/Calibre2/ebook-convert.exe
Input file picked: C:/Ebookmaker/Zola_Emile-Therese-Raquin-fr-en.txt
Start button pressed; settings:
Input file: C:/Ebookmaker/Zola_Emile-Therese-Raquin-fr-en.txt
output file: C:/Ebookmaker/Zola_Emile-Therese-Raquin-fr-en.mobi
ebook-convert.exe: c:/Program Files (x86)/Calibre2/ebook-convert.exe
format: mobi
opening C:/Ebookmaker/Zola_Emile-Therese-Raquin-fr-en.txt
So you see where it fails. Wondering whether the long filename could be the problem I renamed the input file as test.txt and tried again, but it failed in the same way.
On the upside I tried the commandline version that you suggested which ran without errors, except I notice that the .mobi ebooks it produced concatenates the French and English paragraphs without a break and without the markers that you get with your GUI app.
Thanks for doing this!
1 person has voted this message useful
|