Mobileread
Mobiperl Mobiperl - Perl tools for handling MobiPocket files
#871  EbokJunkie 05-30-2014, 01:48 PM
@tears0fshad0w
Look here.
Reply 

#872  pdurrant 05-30-2014, 02:59 PM
Quote tears0fshad0w
I did calibre. It didn't work. There was still the default blue cover.
Change the cover in the calibre database. Then do a save to disk. Calibre doesn't change the cover of the file in the database, only in exported copies.
Reply 

#873  hfpop 02-24-2015, 03:11 PM
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.
Reply 

#874  eschwartz 02-24-2015, 03:30 PM
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.
Reply 

#875  hfpop 02-24-2015, 05:41 PM
Quote eschwartz
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.
Calibre is 200 MB. Java itselfis 200 MB. Mobi2mobi compiled as exe is 2 MB.

Now that we have seen this, could you please answer the question or admit you do not know the answer?

Thank you.
Reply 

#876  DaleDe 02-24-2015, 05:48 PM
Quote hfpop
Calibre is 200 MB. Java itselfis 200 MB. Mobi2mobi compiled as exe is 2 MB.

Now that we have seen this, could you please answer the question or admit you do not know the answer?

Thank you.
Actually there is likely no good answer. The shell used from the command line has a restricted list of characters for filenames. You can try renaming the file but if you use the command line even that is not likely to work. The shell is not unicode compliant. You could try making a shortcut to Mobi2mobi and then dragging the file to the shortcut. This will bypass the command line but it still might not work. Sorry

Dale
Reply 

#877  DaleDe 02-24-2015, 05:53 PM
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
Reply 

#878  hfpop 02-24-2015, 06:01 PM
@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.
Reply 

#879  DaleDe 02-24-2015, 07:02 PM
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@Wiki » 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
Reply 

#880  eschwartz 02-24-2015, 08:08 PM
Quote hfpop
Calibre is 200 MB. Java itselfis 200 MB. Mobi2mobi compiled as exe is 2 MB.

Now that we have seen this, could you please answer the question or admit you do not know the answer?

Thank you.
Being as I happen to use calibre extensively, for a variety of reasons, I have never used mobi2mobi and thus cannot offer help in that regard. But perhaps the issue is simply the lack of proper unicode support in CMD... which is a slightly difficult thing to work around. Which I guess would mean it would work properly on linux/osx, and perhaps Cygwin as well.

I can however offer solutions for using calibre to do rather a lot.

... As DaleDe said, there might not really be a solution.

...

There is a Windows GUI version of mobi2mobi, which *might* circumvent issues arising from CMD.
Reply 

 « First  « Prev   (88/88)
Today's Posts | Search this Thread | Login | Register