![]() |
#511 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
I suspect that your PDB.pm might be an old version. Either that or the files are corrupted in some way... Or if you did get PDB.pm from CPAN maybe it is newer... Look in your PDB.pm and see what triggers the error message.
|
![]() |
![]() |
![]() |
#512 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 193
Karma: 1032826
Join Date: Mar 2008
Location: Miami, FL, USA
Device: iPhone 4, iPad 2
|
I have a very large MOBI book (200 MB) that locks up mobi2html (Win32 version).
I wonder if you ever did any work on the mobi2opf program? I could really use it to explode that mobi book, make my changes and then recompile. It locks up here, everytime: ------------------------------- C:\mobi>mobi2html wikipedia.prc TEST FULLFILENAME: WIKIPEDIA.prc FILENAME: Wikipedia.prc UNPACK DIRECTORY: TEST Name: WIKIPEDIA Version: 0 Type: BOOK Creator: MOBI baktime: -2082844800 Number of record: 44225 PDHEADER Version: 2 PDHEADER Length: 359699601 PDHEADER NRecords: 43910 PDHEADER Recsize: 8192 PDHEADER Unknown: 0 MOBIHEADER doctype: MOBI MOBIHEADER length: 228 MOBIHEADER type: 2 MOBIHEADER codep: 1252 MOBIHEADER uniqid: 1422104427 MOBIHEADER ver: 6 MOBIHEADER exthflg: 80 EXTH doctype: EXTH EXTH length: 220 EXTH n_items: 9 ITEM: 64 11 - 100 17 - Wikipedia ITEM: 65 11 - 101 17 - Wikipedia ITEM: 6e 11 - 110 17 - REF010000 ITEM: 69 15 - 105 21 - Encyclopedias ITEM: 67 2e - 103 46 - 1.5 Million Wikipedia english articles ITEM: 12c 36 - 300 54 - 0x300080000000000800000000000000000f9beefe41e01e71 e61d6 2a2 ITEM: c9 c - 201 12 - 0x0002 ITEM: cb c - 203 12 - 0x0000 ITEM: ca c - 202 12 - 0x0003 Version: 2 - 2 - DOC_COMPRESSED -------------------------------------------- Here is the file, in case you wish to experiment: http://www.artbatista.com/files/Wikipedia.prc Cheers Art Last edited by artbatista; 05-13-2008 at 05:48 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#513 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
I did not do anything about the mobi2opf idea. I added a ticket for this so it is not forgotten. Maybe I get inspired sometimes...
I will test the file but I have not tested so large files before. |
![]() |
![]() |
![]() |
#514 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
|
Quote:
Derek |
|
![]() |
![]() |
![]() |
#515 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
|
![]() |
![]() |
Advert | |
|
![]() |
#516 | |
Junior Member
![]() ![]() ![]() ![]() Posts: 6
Karma: 361
Join Date: May 2008
Device: kindle
|
Quote:
Unfortunately, I get "The selected item could not be opened..." on my kindle whenever I try to view these mobi files. |
|
![]() |
![]() |
![]() |
#517 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
When you say "name built into the mobifile" do you mean the datatase name? Could you give me the compleat commands you use to produce one book that cannot be unpacked and one that can be unpacked? Quote:
|
||
![]() |
![]() |
![]() |
#518 | |
Junior Member
![]() ![]() ![]() ![]() Posts: 6
Karma: 361
Join Date: May 2008
Device: kindle
|
Quote:
Code:
<html> <head><title>0123456789012345678901234567890</title></head> <body>The document goes here.</body></html> The following document will convert, but won't load on the kindle: Code:
<html> <head> <title>Broken Document </title> <script language="JavaScript1.2" src=""></script> </head> <body> <script type="text/javascript" src=""></script> The text goes here. </body></html> |
|
![]() |
![]() |
![]() |
#519 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Ah, yes the database name can be only 31 or 32 characters. I thought the Perl module that saves the file checked this length and truncated it but obviously it does not do this. I will add this in my code for the next version.
|
![]() |
![]() |
![]() |
#520 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#521 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
The Perl code that packs it is:
Code:
$header = pack "a32 n n N N N N N N a4 a4 N", $self->{name}, $attributes, |
![]() |
![]() |
![]() |
#522 |
Feedbooks.com Co-Founder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
I just saw that Mobipocket released an alpha version for mobigen: http://www.mobipocket.com/soft/prcge...n_linux.tar.gz
Anyone tried to compare Mobiperl with this alpha ? |
![]() |
![]() |
![]() |
#523 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Quote:
Code:
CxImage::SetPaletteColor(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char) PDBFile::release_raw_file() ElimTree::huffman_dico_codes_write(HuffmanEncoder&, PalmDatabase*) MBPJavaScript::find_labelled_statement(MBPJavaScript::SParsingContext&, unsigned long const MBPJavaScript::SLabelledStatement::*, MBPJavaScript::SLabelledStatement*&, StrDescriptor const*) MBPDate::from_string_iso_8601(String const&) _TIFFsetShortArray Octree::make_sorted_palette(RGBType*, bool) HtmlParser::on_write_css_deco(RawFile&, unsigned long) png_set_strip_alpha jas_image_strtofmt XmlNode::nullify() CharacterAnalyser::stat_entity(unsigned char const*, unsigned long) png_write_sCAL jpeg_set_colorspace f_need_translation_table(unsigned long, unsigned long, bool) |
|
![]() |
![]() |
![]() |
#524 |
Uebermensch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
|
|
![]() |
![]() |
![]() |
#525 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2007
|
Perl problem
Help, cannot get perl to make. I have a Mac (OS X) and a Linux tiny laptop (eeePC). Both of them report a reasonable version of Perl (5.8.8) but throw an error on any attempt to make anything, including Palm::PDB &c. I can download from cpan, but everything seems to crash & burn at the last minute.
I get up to "Checking if your kit is complete. Looks good" and then I get: Writing Makefile for [whatever] -- NOT OK Running make test. Can't test without successful make. Running make install make had returned bad status, install seems impossible 'which make' doesn't turn up anything. What am I doing wrong? |
![]() |
![]() |
![]() |
Tags |
mobi2mobi, mobils |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools | Jad | Kindle Formats | 476 | 03-15-2015 05:51 PM |
Tools for Editing Kindle .mobi Files? | GJN | Kindle Formats | 33 | 12-26-2013 02:05 PM |
Handy Perl Script to convert HTML0 files to smartquotes | maggotb0y | Sony Reader | 0 | 04-12-2007 11:49 AM |
PRS-500 Perl tools to generate Reader content | TadW | Sony Reader Dev Corner | 0 | 01-08-2007 05:55 AM |
gmail copy (gmcp) - Perl script to copy files to/from Gmail | Colin Dunstan | Lounge | 0 | 09-04-2004 01:24 PM |