![]() |
#136 | |
Tech Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,027
Karma: 10080
Join Date: Aug 2007
Location: Earth
Device: iPad, MotoXStyle, OnePlusOne
|
Quote:
Redoing it with Ver2 did generate a usable file, the only problem is that with the scrip just showing Working... I was unsure whether it was processing until I checked the Task manager and saw Python working away. Anyone have any general guidelines as to how long it usually takes for scripts like this to run. Is it more dependent on size or on somthing else? |
|
![]() |
![]() |
![]() |
#137 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,955
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
It's size. And how much of that size is text rather than illustrations, as only the text is encoded. Most eBooks are about 1/100th the size of the Chambers dictionary (250KiB rather than 25MiB).
On my system most books decode in under a minute. Paul Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#138 | |
Tech Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,027
Karma: 10080
Join Date: Aug 2007
Location: Earth
Device: iPad, MotoXStyle, OnePlusOne
|
Edit - Found My Mistake
As a complete novice, I was taking the [Tab][Tab] in reference to the line above it as opposed to the whole script. D'oh! Still It does show that even silly things can trow you off. Quote:
Last edited by bbusybookworm; 09-27-2008 at 06:44 PM. |
|
![]() |
![]() |
![]() |
#139 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Python is a bit sticky with indents (I think). So if that is the case, that could be your problem.
If I can find the diff program and remember how to use it, I might be able to put up a diff file. I'll have to have a go and see what I can do. |
![]() |
![]() |
![]() |
#140 | |
Tech Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,027
Karma: 10080
Join Date: Aug 2007
Location: Earth
Device: iPad, MotoXStyle, OnePlusOne
|
Quote:
As I said, I ended up finding the mistake, it was as you would say PBCK, Problem between Chair and Keyboard, i.e. User Error. ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#141 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Then no need for a diff for the two versions. Well done sorting it out. I've not had a problem with 0.04 at all since I've been using it.
|
![]() |
![]() |
![]() |
#142 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Jun 2008
Device: Kindle and Kindle Touch
|
I have three files that cannot be processed by mobidedrm01/02/03/or 04. Return either
Error: invalid encryption type: 0 or Error: invalid file format Is it possible that something has changed and the scripts no longer work. Have been over the changes for 04 several times and can't find where I've made a mistake. Perhaps a .diff would indeed be simpler so at least the source is not a variable in solving these issues? Thanks, Rob |
![]() |
![]() |
![]() |
#143 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,955
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Encryption type 0 is unencrypted. Are you sure these are DRMed files?
Paul Quote:
|
|
![]() |
![]() |
![]() |
#144 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Or could this be one of those PRC that need a UN/PW in Mobipocket Reader and then sent to another device?
|
![]() |
![]() |
![]() |
#145 | |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Jun 2008
Device: Kindle and Kindle Touch
|
![]() Quote:
I found the problem after re-creating MobiDeDRM 0.04 from a fresh copy of 0.02 -- and using the patch instructions from the bottom up. Apparently there was a difference between the version of MobiDeDRM04.py that worked and the one that failed -- caused by me. Comparison of the two files shows an extra couple of blank lines after line 64. It probably wouldn't be difficult to port diff from *nix over to Windows. I'm surprised this hasn't been done by someone. Not that it would be trivial for me necessarily, but sort of recall some info about diff from an intro programming class decades ago :=) Anyway, as expected, the problem was mine. Happy camper, now! rob |
|
![]() |
![]() |
![]() |
#146 | |
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
http://www.thefreecountry.com/progra...mparison.shtml http://gnuwin32.sourceforge.net/packages/diffutils.htm http://www.componentsoftware.com/Products/CSDiff/ http://winmerge.org/ http://www.prestosoft.com/edp_examdiff.asp http://kdiff3.sourceforge.net/ Command line versions are available as part of Cygwin and MinGW. ______ Dennis |
|
![]() |
![]() |
![]() |
#147 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOB |
|
![]() |
![]() |
![]() |
#148 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Jun 2008
Device: Kindle and Kindle Touch
|
![]()
Hey Dennis,
Thanks for the pointers. I must have written the complaint about "no diff" just after I found there was no native DOS diff command (in Vista). Tried the COMP command and it did not actually report the differences, just "files are different sizes". It was a bit annoying to have to go look for a third party version of something that should just be there. I was spoiled by working on Unix many years ago :-) I eventually found and installed a trial of DiffDoc which accomplished the immediate task. Your list of sites for tools gives me way more places to look than downloads.com or simtel.net. Much appreciated. Rob |
![]() |
![]() |
![]() |
#149 | |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Jun 2008
Device: Kindle and Kindle Touch
|
![]() Quote:
I was looking for a tool that did the diff function to produce a delta and show me the difference between the two hand-patched versions of mobidedrm04.py that I had produced. The person who produced the modifications simply supplied the lines to change and the expected location of the line preceding the change. I found that I had added one or two cr/lf pairs after one of the changes, causing the resulting code to be wacko. Thanks, Rob |
|
![]() |
![]() |
![]() |
#150 | ||
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
I'm a *nix admin, among other things, and had a *nix box at home before I had an MS-DOS PC. I've been keeping my eye out for things that add capabilities I'm used to from Unix to Windows for some time. The links a posted are just a surface scratch, biased toward free/open source. The topic surfaced elsewhere recently: I'm on the mailing list for NaNoWriMo (an organized effort to write a novel in a month), and various folks involved in it were looking for things like revision control systems they could incorporate in their writing workflow. Quote:
If you want as full an emulation of Unix under Windows as possible, install Cygwin. Cygwin is an attempt by Cygnus Development (now part of Red Hat) to port the Gnu toolchain from *nix to Win32. Rather than rewrite every utility to use Win32 system calls, the Cygnus developers wrote a POSIX compatibility layer encapsulated as a DLL that includes the most common *nix system calls. Code built under Cygwin links against the DLL, sees the *nix calls it expects, and a lot of Unix code builds "out of the box" under Cygwin. Cygwin includes the Gnu compiler suite, plus all of the standard untilites you would expect like ls, cp, mv and ln, plus the vi editor and bash shell. It's a little quirky to use, because it uses *nix conventions, like / as a PATH separator and - as the option delimiter, so you can't jsut mix and match *nix and Windows commands, but it works very well. Free, and open source, from http://www.cygwin.com. ______ Dennis |
||
![]() |
![]() |
![]() |
Tags |
conversion, drm, formatting, mobipocket |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Epub/Mobipocket creation tool: Jutoh | Julian Smart | ePub | 78 | 03-28-2014 07:28 AM |
eReader Decoder Tool | wallcraft | Workshop | 177 | 09-27-2009 08:46 PM |
Secure Mobipocket Decoder | ebookfab | Kindle Formats | 3 | 12-09-2008 08:50 PM |
Secure Mobipocket Decoder v0.3 | Aenea | Kindle Formats | 74 | 07-10-2008 09:57 AM |
Secure Mobipocket Decoder is no more... | Aenea | Kindle Formats | 26 | 04-12-2008 09:53 AM |