Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-10-2009, 06:28 AM   #1
hekkel
Enthusiast
hekkel is on a distinguished road
 
Posts: 33
Karma: 54
Join Date: Apr 2008
Device: PRS-505, Cybook Opus
japi - a text editor capable of editing ePub directly

I've been writing text editors for many years and since I wanted to change the layout of a recently downloaded .epub I decided it would be best to add support for this format into my editor directly.

Japi is an open-source Gtk2 application and should be able to run on any OS that has GNOME installed. I've created two binaries for Ubuntu 8.10:

http://www.xs4all.nl/~hekkel2/japi-a....9.7-b1.tar.gz
http://www.xs4all.nl/~hekkel2/japi-i386-0.9.7-b1.tar.gz

To use this software, download the appropriate file and unpack it. There's only one file inside the archive and it does not need to be installed to be used. However, you can install it system wide by running the command (from a terminal):

sudo ./japi -i /usr/local/bin/japi

As you can see from the version number, Japi is still considered to be beta quality. But I thought some of you might find this interesting. And of course, I'm very interested in feedback.

-maarten
hekkel is offline   Reply With Quote
Old 02-10-2009, 04:10 PM   #2
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 hekkel View Post
I've been writing text editors for many years and since I wanted to change the layout of a recently downloaded .epub I decided it would be best to add support for this format into my editor directly.

Japi is an open-source Gtk2 application and should be able to run on any OS that has GNOME installed. I've created two binaries for Ubuntu 8.10:

http://www.xs4all.nl/~hekkel2/japi-a....9.7-b1.tar.gz
http://www.xs4all.nl/~hekkel2/japi-i386-0.9.7-b1.tar.gz

To use this software, download the appropriate file and unpack it. There's only one file inside the archive and it does not need to be installed to be used. However, you can install it system wide by running the command (from a terminal):

sudo ./japi -i /usr/local/bin/japi

As you can see from the version number, Japi is still considered to be beta quality. But I thought some of you might find this interesting. And of course, I'm very interested in feedback.

-maarten
Now if ONLY you'd create a standalone Windows version, you might have something here. (Of course, having a Mac-runtime version wouldn't hurt either. )

Derek
delphidb96 is offline   Reply With Quote
Advert
Old 02-10-2009, 05:25 PM   #3
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Don't get me wrong, but I don't see much point in this. It's not a WYSIWYG editor. It's rather spartan. I open an epub file (and I had to go through a fair few until I found one that would open without an error dialog), and I'm presented with a dialog that let's me edit the metadata? In some tab I can see a list of files in the archive and if I double-click a file, I get the source view?

From what I can tell, using this editor won't give me much beyond creating/editing the epub by hand in some HTML editor. If I'm missing something (entirely possible), please elaborate.

Not to sound too negative, I'm sure this could have its uses. I just don't see it. I still can't help but feel I'm missing some key point.

Last edited by Valloric; 02-10-2009 at 05:29 PM.
Valloric is offline   Reply With Quote
Old 02-11-2009, 02:13 AM   #4
hekkel
Enthusiast
hekkel is on a distinguished road
 
Posts: 33
Karma: 54
Join Date: Apr 2008
Device: PRS-505, Cybook Opus
Quote:
Originally Posted by Valloric View Post
Don't get me wrong, but I don't see much point in this. It's not a WYSIWYG editor. It's rather spartan. I open an epub file (and I had to go through a fair few until I found one that would open without an error dialog), and I'm presented with a dialog that let's me edit the metadata? In some tab I can see a list of files in the archive and if I double-click a file, I get the source view?

From what I can tell, using this editor won't give me much beyond creating/editing the epub by hand in some HTML editor. If I'm missing something (entirely possible), please elaborate.

Not to sound too negative, I'm sure this could have its uses. I just don't see it. I still can't help but feel I'm missing some key point.
Yup, you're completely right. After all it is a spartan text editor, it certainly looks like one.

The ePub support does a little more than what you describe here. It generates the OPF and NCX files automatically based on what you enter on tab 2 and 3 of the interface. And I've tried to make this as simple as possible, hence the spartan looking interface. Just use the mouse to manipulate the items. So you end up with an HTML editor that reads and writes its files directly from an ePub file while maintaining an up-to-date OPF.

Japi is not a WYSIWYG editor, and never will be. But I'm planning on adding a good XHTML formatter and validator. I understood from the other discussion here on ePub editing that HTMLTidy is not good enough so I will come up with something else (probably using libtidy as the basis).

BTW, I'm very interested in the errors you have seen.

-maarten
hekkel is offline   Reply With Quote
Old 02-11-2009, 08:27 AM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by hekkel View Post
BTW, I'm very interested in the errors you have seen.
I saw one that said the epub was "truncated" and another that the said the mimetype was missing. You should be more lenient when it comes to opening epubs. If it's missing the mimetype, throw a warning but do open it up, and then when the user saves the file, add the mimetype to the file.

The "truncated" error I still don't understand.
Valloric is offline   Reply With Quote
Advert
Old 02-20-2009, 08:46 AM   #6
hekkel
Enthusiast
hekkel is on a distinguished road
 
Posts: 33
Karma: 54
Join Date: Apr 2008
Device: PRS-505, Cybook Opus
Thumbs down

Quote:
Originally Posted by Valloric View Post
I saw one that said the epub was "truncated" and another that the said the mimetype was missing. You should be more lenient when it comes to opening epubs. If it's missing the mimetype, throw a warning but do open it up, and then when the user saves the file, add the mimetype to the file.

The "truncated" error I still don't understand.
You're right, there were quite a few problems left in handling ePub. After all, it was a first attempt. I made several improvements. E.g. Japi will now collect all problems during opening and will report them while still trying to work around these.

And another change has to do with the big news in ePub land this week.

You can download japi here, source code can be found there as well. Japi is hosted on Berlios BTW.

Finally, I understand if you're underwhelmed by Japi and its features. Yes, it is not much more than a text editor and using emacs you sure can get a long way too. But it works for me and I thought some might be interested in this.

-maarten
hekkel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Word directly to ePub Lady Fitzgerald Workshop 6 09-11-2010 05:21 AM
Onyx Text Editor? Risto Andere Lesegeräte 1 05-25-2010 05:34 AM
Do need help editing text files? Nate the great Workshop 3 04-01-2009 01:18 PM
eBook Text Editing Gideon Workshop 5 01-28-2008 12:26 PM


All times are GMT -4. The time now is 07:14 AM.


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