Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 05-11-2008, 08:05 PM   #511
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by JeffElkins View Post
>>/usr/local/share/perl/5.8.8/Palm/PDB.pm line 537.

Tommy, I'm starting to think that this isn't your error. You don't install anything into /usr/local/share/perl, AFAIK. I'm going to mull this one over for a while...
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.
tompe is offline   Reply With Quote
Old 05-13-2008, 05:06 PM   #512
artbatista
Groupie
artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.artbatista ought to be getting tired of karma fortunes by now.
 
artbatista's Avatar
 
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


Quote:
Originally Posted by tompe View Post

I am also planning to write a mobi2opf program that explodes a MobiPocket file and tries to create an OPF structure.

Last edited by artbatista; 05-13-2008 at 05:48 PM.
artbatista is offline   Reply With Quote
Advert
Old 05-13-2008, 06:51 PM   #513
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
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.
tompe is offline   Reply With Quote
Old 05-13-2008, 09:32 PM   #514
delphidb96
Wizard
delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by tompe View Post
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.
I know I've seen it somewhere but I can't seem to find it... Again, where's the webpage with the header information of a typical mobi/prc ebook file?

Derek
delphidb96 is offline   Reply With Quote
Old 05-13-2008, 09:35 PM   #515
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
The command mobi2oeb, part of calibre is another alternative, which works for all MOBI compression schemes. It produces a .opf file, but not a full feature .opf file.
wallcraft is offline   Reply With Quote
Advert
Old 05-22-2008, 07:05 PM   #516
achatham
Junior Member
achatham has a complete set of Star Wars action figures.achatham has a complete set of Star Wars action figures.achatham has a complete set of Star Wars action figures.achatham has a complete set of Star Wars action figures.
 
Posts: 6
Karma: 361
Join Date: May 2008
Device: kindle
Quote:
Originally Posted by tompe View Post
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.
It's caused by the name built into the mobi file not being null-terminated. If I pass --title "Foo" to html2mobi, I can then use mobi2html to extract it.

Unfortunately, I get "The selected item could not be opened..." on my kindle whenever I try to view these mobi files.
achatham is offline   Reply With Quote
Old 05-23-2008, 06:01 AM   #517
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by achatham View Post
It's caused by the name built into the mobi file not being null-terminated. If I pass --title "Foo" to html2mobi, I can then use mobi2html to extract it.
But --title is the book title and that should not matter...

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:
Unfortunately, I get "The selected item could not be opened..." on my kindle whenever I try to view these mobi files.
If you give me one of these files I will test if it can be opened on my Cybook.
tompe is offline   Reply With Quote
Old 06-02-2008, 10:47 PM   #518
achatham
Junior Member
achatham has a complete set of Star Wars action figures.achatham has a complete set of Star Wars action figures.achatham has a complete set of Star Wars action figures.achatham has a complete set of Star Wars action figures.
 
Posts: 6
Karma: 361
Join Date: May 2008
Device: kindle
Quote:
Originally Posted by tompe View Post
But --title is the book title and that should not matter...

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?

If you give me one of these files I will test if it can be opened on my Cybook.
It turns out that it's the title length that it has a problem with. This works:

Code:
<html>
<head><title>0123456789012345678901234567890</title></head>
<body>The document goes here.</body></html>
Add one more character to the title, and it'll barf with the "bogus database name" error. I'm running "html2mobi foo.html && mobi2html foo.mobi foo/" on a mac, with dependencies retrieved via cpan and fink.

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>
If I comment out the first script tag, it will load on the kindle, but I can't see "The text goes here." If I remove both script tags, I can see the text. I've attached test.mobi, which I generated with "html2mobi test.html".
Attached Files
File Type: mobi test.mobi (720 Bytes, 380 views)
achatham is offline   Reply With Quote
Old 06-03-2008, 09:05 AM   #519
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
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.
tompe is offline   Reply With Quote
Old 06-03-2008, 09:49 AM   #520
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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:
Originally Posted by tompe View Post
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.
As I recall it also needs to be terminated C style with a null byte.

Dale
DaleDe is offline   Reply With Quote
Old 06-03-2008, 10:28 AM   #521
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
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,
a32 means a string with maximum length 32 that will be null padded. So the length 31 should work in the current version but 32 will not work.
tompe is offline   Reply With Quote
Old 06-03-2008, 11:02 AM   #522
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
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 ?
Hadrien is offline   Reply With Quote
Old 06-04-2008, 06:53 AM   #523
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Quote:
Originally Posted by Hadrien View Post
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 ?
Mmm, unstripped symbols, yummy!
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)
igorsk is offline   Reply With Quote
Old 06-05-2008, 06:24 PM   #524
TadW
Uebermensch
TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.
 
TadW's Avatar
 
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
Quote:
Originally Posted by igorsk View Post
Mmm, unstripped symbols, yummy!
It's like reading the source code, isn't it?

Well, they must have discovered their mistake -- the file has already been pulled.

Does anyone have a copy of the Linux version??
TadW is offline   Reply With Quote
Old 06-09-2008, 09:50 AM   #525
woofb
Junior Member
woofb began at the beginning.
 
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?
woofb is offline   Reply With Quote
Reply

Tags
mobi2mobi, mobils


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:16 PM.


MobileRead.com is a privately owned, operated and funded community.