Mobileread
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools
#471  DiapDealer 03-01-2015, 07:35 AM
Quote waterqds
3. Now the hard part. Make mobiperl translate its command line parameters into UTF8 before update mobi file. You can not exec mobi2mobi.exe in command line or perl system() call to pass the UTF8 arguments. Program exec will go via local encoding.
Does this offer any help? I'm not really much of a Perl guy.
http://stackoverflow.com/questions/2037467/how-can-i-treat-command-line-arguments-as-utf-8-in-perl

Uses the I18N::Langinfo module to detect the original encoding of the arguments, which you can then convert to Perl strings. Output can then be changed to whatever encoding is desired/required.

EDIT: Oops. It appears (from the comments) that I18N::Langinfo may not be available on win32.
Reply 

#472  waterqds 03-01-2015, 08:26 AM
Actually I have completed the work.

Mobi2mobiGUI created .bat in system encoding. mobi2mobi.pl convert the parameters to UTF8 and call m2mrun.pm module (no exec call) using Perl's subroutine call. The output is in UTF8 encoding and mobi2mobi.pl convert it to system encoding.
The GUI will read the system encoding file and works correctly.

I don't know how to upload files so I hope the above details are enough for anyone to make it work.
Reply 

#473  eschwartz 03-01-2015, 11:15 AM
The Go Advanced editing button includes a pane for uploading attachments.
Reply 

#474  waterqds 03-01-2015, 06:32 PM
The attached is the Mobi2mobiGUI with mobiperl for GBK system encoding.

You can change the mobi2mibi.pl to make it work with other system encoding. Just change the line my $system_encoding = "gbk";

You have to install Perl for Windows and needed modules.
Encode; # also install Encode submodule for your system
Palm::PDB;
Palm:: Doc;
Date::Format; # for ctime call
Getopt::Mixed;
Image::Size; # Used to recognize the first record that is an image

Good luck.
[zip] mobi2mobiGUI.zip (96.0 KB, 982 views)
Reply 

#475  waterqds 03-01-2015, 06:43 PM
The attached file is the unofficial Mobi2mobiGUI v12 source which create batch file in system encoding, instead of UTF8.
[zip] Mobi2Mobi_GUI_v12_Source_GPL.zip (60.7 KB, 934 views)
Reply 

#476  mirkorm 03-15-2015, 12:59 PM
Hi everybody,
I've just downloaded mobi2mobi and really can't figure out why it doesn't load my ebooks' metadata.
I've downloaded both mobiperl 0.0.36 and 0.0.43 and loaded them on the GUI; I already had MS .NET Framework 4.5.2 installed so I didn't remove it to install the 3.5 version.
Anyway when I try to load a file (I tried azw, mobi, prc and lit but nothing worked) this message appears (look image) and if I click continue no metadata is loaded anyway.
ps if I try to remove the m2mcmds.bat file it says access denied, even if I try to change permissions and ownerships.

this is the detailed error message:
Code
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Users\Mirko\Desktop\mobiperl-0.0.43_Win32\m2mcmds.bat' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path, Boolean append) at System.IO.File.CreateText(String path) at WindowsApplication1.progbOpenFile.BuildBatch(String path, String output) at WindowsApplication1.progbOpenFile.btnOpenFile_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Mobi2Mobi_GUI_VB Assembly Version: 0.0.0.6 Win32 Version: 0.0.0.6 CodeBase: file:///C:/Users/Mirko/Downloads/Mobi2Mobi_GUI_VB_v10/Mobi2Mobi_GUI_VB_v10/Mobi2Mobi_GUI_VB_Slim.exe
----------------------------------------
Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5488 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Thanks in advance
Capture.PNG 
Reply 

#477  Doitsu 03-15-2015, 05:51 PM
Quote mirkorm
Hi everybody,
I've just downloaded mobi2mobi and really can't figure out why it doesn't load my ebooks' metadata.
I can't help you with your specific problem, but if you only want to change the metadata of a Kindle book, check out Java Mobi Metadata Editor.
Reply 

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