02-25-2013, 06:10 PM | #151 | |
Addict
Posts: 371
Karma: 1002274
Join Date: Mar 2008
Location: Australia
Device: Kindle
|
Quote:
I have generated the raw markup language with kindleunpack.py but when I compare the locs from the xray file they don't exactly match up with the positions in the rawml file. For one book, each loc is 14 characters off the position in the rawml file. For another book, the discrepancy ranges from 22 to 2000 characters. Have you come across this? (I get the same issue using the version of mobi_unpack you link to.) |
|
02-25-2013, 07:19 PM | #152 | |
Addict
Posts: 328
Karma: 800105
Join Date: Feb 2013
Device: PW1
|
Quote:
I have been copying to pc, removing DRM, then using the DRM-free version on my Kindle. Edit: Also, I ran into issues with the locs being off because of the encoding being used. The books I've used are using UTF8, which causes things like quotes to take up more space than normal (I think 3 characters instead of 1). So if you're not loading the book and taking that into account, you will end up counting those characters as 1 loc instead of 3... hopefully that makes sense. Last edited by Ephemerality; 02-25-2013 at 08:35 PM. |
|
Advert | |
|
02-26-2013, 12:56 AM | #153 | |
Addict
Posts: 328
Karma: 800105
Join Date: Feb 2013
Device: PW1
|
Quote:
You can enable the use of spoilers with the --spoilers token. |
|
02-26-2013, 10:49 AM | #154 | |
Junior Member
Posts: 4
Karma: 470244
Join Date: Dec 2007
Device: sony prs 505
|
Quote:
|
|
02-26-2013, 12:52 PM | #155 | |
Addict
Posts: 328
Karma: 800105
Join Date: Feb 2013
Device: PW1
|
Quote:
Also, as rikkia found out, there is an issue running mobi_unpack.py if you do not have Python installed or if you have it installed but do not have the Python directory included in the Windows PATH var. I have updated with an option (-p) to specify this location. It will still default to using the original "python" command. You can test whether it works by opening a command prompt and typing "python". Download uploaded on original post (#145) Almost forgot about this. From the looks of things, the description can be ~550-560 characters or so (again, it depends on how much space it takes up due to the font, not the # of characters directly). If things work properly, if a description is too long you can click on the Shelfari link to be taken directly to the character/term's Shelfari page which includes all the books they are in and the full descriptions from each. Last edited by Ephemerality; 02-26-2013 at 01:37 PM. |
|
Advert | |
|
02-26-2013, 01:56 PM | #156 |
Addict
Posts: 328
Karma: 800105
Join Date: Feb 2013
Device: PW1
|
To whomever downloaded v1.11, please grab v1.12 instead. I forgot to remove the URL I was using to test the spoiler code so it will always download from that link. Sorry!
Last edited by Ephemerality; 09-01-2014 at 02:39 PM. |
02-26-2013, 02:15 PM | #157 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Done . thanks
|
03-01-2013, 03:08 AM | #158 |
Addict
Posts: 328
Karma: 800105
Join Date: Feb 2013
Device: PW1
|
Updated to v1.13. (#145)
It now includes a py2exe packed version of mobi_unpack.py, eliminating the need to have Python installed (again, I think this is ok?). I have not had a chance to test this on more than my two Win7 PCs, so let me know if this totally fails. If you have already saved a mobi_unpack location as the default, you can use the new exe by specifying "-u dist/mobi_unpack.exe". You can still use Python and mobi_unpack.py like before if you wish! Mobi2mobi is not needed anymore either. In theory, you should be able to download the binary and start drag-dropping mobi/azw files onto it without worrying about the pre-requisites! Last edited by Ephemerality; 03-01-2013 at 03:15 AM. |
03-01-2013, 09:18 AM | #159 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Thanks. : )
quick question.... Code:
Usage: xraybuilder [-o path] [--offset N] [-p] [-r] [-s shelfariURL] [--spoilers] [-u path] mobiPath
-o path (--outdir) Path defines the output directory
If not specified, uses ./out
--offset N Specifies an offset to be applied to every book location.
N must be a number (usually negative)
See README for more info
-p path (--python) Path must point to python.exe
If not specified, uses the command "python",
which requires the Python directory to be defined in
the PATH environment variable.
-r (--saveraw) Save raw book markup to the output directory
-s (--shelfari) Shelfari URL
If not specified, there will be a prompt asking for it
--spoilers Use descriptions that contain spoilers
Default behaviour is to use spoiler-free descriptions.
-u path (--unpack) Path must point to mobi_unpack.py
If not specified, searches in the current directory
After used once, mobi2mobi and mobi_unpack paths will be saved as default and are not necessary to include every time.
You can also drag and drop a number of mobi files onto the exe after those paths have been saved.
Books must be DRM-free. If you create an X-Ray file for a book, but still use the DRM copy on your Kindle,
you will run into issues. The X-Ray has to be used with the DRM-free version it was created from.
much obliged Last edited by twobob; 03-01-2013 at 09:26 AM. |
03-01-2013, 11:53 AM | #160 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
v 1.3 via Wine..
(and yes I am trying stupid things) I found one of Ians that someone had already done some work on... And wasnt already xray enabled me@dev ~/.wine/drive_c/Program Files/xray $ ./XRayBuilder.exe -s http://www.shelfari.com/books/18023565/Third-Sight -o /home/me/books ./3rd\ Sight_\ A\ Horror\ Novel_B00AJ7FC1Q.azw3 Quote:
Last edited by twobob; 03-01-2013 at 11:58 AM. |
|
03-01-2013, 12:06 PM | #161 | |
Addict
Posts: 328
Karma: 800105
Join Date: Feb 2013
Device: PW1
|
Yes, I suppose it should be updated a bit!
You can still specify the locations to mobi_unpack and python (if you point it to mobi_unpack, python needs to be specified or saved already), but otherwise it will try to use dist/mobi_unpack.exe. The new offset option is for DRM-enabled books, since the excerpts are normally offset by a certain amount when you open the X-Ray on the Kindle. The other options are pretty much the same. Quote:
Can you try adding -u and the full path to the mobi_unpack.exe? If that works, I'll make it default to the full path instead of the short path its using now. |
|
03-01-2013, 12:34 PM | #162 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
kk will do in a bit then
thanks for the feedback |
03-03-2013, 01:39 PM | #163 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2013
Device: Kindle Paperwhite
|
Not been able to reply sooner but for me V1.13 works perfect thanks for the work put into making it Ephemerality.
Unfortunately none of the books I have in my small library work. of 11 books 2 produce a x-ray file 9 crash the builder out usually failing at the unpack stage. The 2 xray files when loaded into the paperwhite give the "X-Ray is not available for the book" message with the centred "WG" at the bottom of the message window. I'll keep abreast of the thread just in case anyone manages to find a working solution to my issues Rikki |
03-03-2013, 01:54 PM | #164 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
me@dev ~/.wine/drive_c/Program Files/xray/dist $ chmod a+x ./mobi_unpack.exe
Duh! me@dev ~/.wine/drive_c/Program Files/xray $ ./XRayBuilder.exe -u /home/me/.wine/drive_c/Program\ Files/xray/dist/mobi_unpack.exe -s http://www.shelfari.com/books/18023565/Third-Sight -o /home/me/books ./3rd\ Sight_\ A\ Horror\ Novel_B00AJ7FC1Q.azw3 Quote:
hmm... looks close.. I'll attempt to get/make a mobi version? Last edited by twobob; 03-03-2013 at 01:59 PM. |
|
03-03-2013, 02:23 PM | #165 | ||
Addict
Posts: 328
Karma: 800105
Join Date: Feb 2013
Device: PW1
|
Quote:
That's definitely a start there. It should be able to process KF8 file, the error you got there was from mobi_unpack, it may just be unable to find the book file. You may have to specify the full path to the book on the cmd line a well! If I had a GUI setup for it, that would probably be less of issue. I could probably change it to expand to the full path on its own if only the local path is given (since mobi_unpack is in a different folder). I'll take a look at it when off work. If it still gives a similar error you could try a mobi file, but I think it's just not finding the file. Thanks for testing it out for me! Quote:
Could you PM me a log of the program when it crashes and I can try to identify where the issue is, as well as a log of the successful build that gives the WG error on the Kindle? The WG error refers to the GUID not matching what the Kindle is expecting. I ran into on only 1 of my books; in that case, the name Calibre had assigned to it was too long. I shortened the title in Calibre and it worked fine after that. You could also manually modify the database name of the book using mobi2mobi (mobi2mobi --databasename "New Name" "Path to file" --outfile "Path to file"). Last edited by Ephemerality; 03-03-2013 at 02:25 PM. |
||
Tags |
application, k5 tools, kindle, kindle tools, x-ray |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update AKC! - Automatic Kindle Collection Generator | thermopyle | Amazon Kindle | 79 | 05-13-2017 08:02 PM |
Koll3ctions - Free Kindle Collection generator (from folders) | erwinke | Amazon Kindle | 4 | 09-09-2011 09:31 AM |
NCX file generator (and html ToC and opf) | GiorgioC | Workshop | 0 | 07-12-2011 06:55 AM |
Automatic Kindle Collection Generator | thermopyle | Amazon Kindle | 0 | 11-28-2010 08:07 PM |
transfer android kindle file to ipod touch kindle | mnicholas | Amazon Kindle | 2 | 10-17-2010 02:36 PM |