![]() |
#872 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,684
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
|
![]() |
![]() |
![]() |
#873 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
|
Mobi2mobi.exe does not recognize non-ascii characters in its parameters, including the filenames. For example, even if I have the file "fișier.mobi", trying mobi2mobi fișier.mobi says file not found. This happens under windows 8.1 from command line.
|
![]() |
![]() |
![]() |
#874 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
What do you need mobi2mobi for? Much of its functionality is also present in, say, calibre.
Or Java Mobi Metadata Editor, which also handles AZW3 IIRC. |
![]() |
![]() |
![]() |
#875 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
|
Quote:
Now that we have seen this, could you please answer the question or admit you do not know the answer? Thank you. |
|
![]() |
![]() |
![]() |
#876 | |
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 |
|
![]() |
![]() |
![]() |
#877 |
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
|
I did a search and found the following:
Try: chcp 65001 which will change the code page to UTF-8. Also, you need to use Lucida console fonts. There are limitations using this code page. Scripts may just stop working and other problems may occur. Dale |
![]() |
![]() |
![]() |
#878 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
|
@DaleDe: yes, I got as well the solution with chcp 65001. This solves all problems with file interaction in the script file, except correctly passing the non-english characters to the perl script.
Maybe some string change before calling the mobi2mobi script would solve the problem. File rename is indeed a (partial) solution. The major problem remains: mobi2mobi is supposed to write title and author metadata. Which will be incorrect since the non-english characters are not played right. |
![]() |
![]() |
![]() |
#879 |
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
|
Good that you have a partial solution. I am not sure which Perl was used to compile this program. It may be that it is not unicode compliant. Seach unicode Perl to see a list of ideas. Perhaps there is a solution I am not aware of.
There is also a wiki page on Mobiperl that has pointers to download sites and other data. You may need to build your own version if you can solve the Perl issue. Dale Last edited by DaleDe; 02-24-2015 at 07:12 PM. |
![]() |
![]() |
![]() |
#880 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
I can however offer solutions for using calibre to do rather a lot. ... As DaleDe said, there might not really be a solution. ... ![]() |
|
![]() |
![]() |
![]() |
#881 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,743
Karma: 103020327
Join Date: Apr 2011
Device: pb360
|
After considering a number of options, I've decided to use this package to learn more about the mobi format. As part of preparation, I've imported the extracted tar files into a git repository and uploaded that to github. I did the import with a script that I wrote for that purpose which is attached here.
The repository is at https://github.com/jps-e/mobi-perl.git On creation of the bare repo at github, I was surprised to learn that the default primary branch is now main. I wend with the flow and renamed the branch on my local repo before pushing it to github. That seemed to work out OK. I also named the repo mobi-perl instead of mobiperl to leave that name available in case something went horribly wrong or tompe wants to make his own and I want to clone or fork it. topme hasn't posted since 2016 or logged in since 2017. (The script took 0.8 seconds to import the 22 tar files.) |
![]() |
![]() |
![]() |
#882 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,210
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#883 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,743
Karma: 103020327
Join Date: Apr 2011
Device: pb360
|
All my questions below are rhetorical. This thread is reserved to mobiperl tools. KindleUnpack has its own thread and Calibre has its own forum and numerous subforums.
I welcome comments regarding the details of my implementation or any errors I may have made. Part of my motivation for this is preserving the package and its history even though KF experts consider it obsolete and no longer good for anything (even though they found it valuable as a learning tool in its time). For me, I think it is better for my learning than anything else I know about. Quote:
I am interested in learning the details of amazon book structure, except KFX. I use and like KindleUnpack a lot, but I've looked at some of its source with a goal of controlling its verbosity and that was hopeless. That, combined with its large number of output products by default and options only exist to make more of them, make it too overwhelming for my purpose at hand. In addition, it is written in a language that I am unlikely to progress beyond baby talk. In contrast, mobils is relatively compact and already does a good bit of what I am looking for and written in a language I am much more comfortable with. Quote:
Why do you think a Calibre plugin would be remotely appropiate for what I am trying to do? |
||
![]() |
![]() |
![]() |
#884 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,684
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
You might find the one-file mobiunpack.py interesting to look at too.
https://www.mobileread.com/forums/at...4&d=1342902594 I probably have earlier versions around somewhere if you'd like. [Edit: mobiunpack.py 0.02 from 2009 attached] [Wow - it got a lot bigger from Nov. 2009 to Oct. 2011!] Last edited by pdurrant; 01-14-2021 at 08:16 AM. |
![]() |
![]() |
![]() |
#885 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,210
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Because Most non-KFX eBooks from Amazon are in KF8 (unless you have a K1, K2, or KDXG) you won't be able to download Mobi from Amazon) and these tools handle Mobi format. The KindleUnpack plugin handles KF8 (as well as Mobi) and to learn more about Amazon eBook formats, you should be learning about KF8. These Pearl tools will not help you do that.
|
![]() |
![]() |
![]() |
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 |