02-10-2009, 07:28 AM | #1 |
Enthusiast
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 |
02-10-2009, 05:10 PM | #2 | |
Wizard
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:
Derek |
|
02-10-2009, 06:25 PM | #3 |
Created Sigil, FlightCrew
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 06:29 PM. |
02-11-2009, 03:13 AM | #4 | |
Enthusiast
Posts: 33
Karma: 54
Join Date: Apr 2008
Device: PRS-505, Cybook Opus
|
Quote:
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 |
|
02-11-2009, 09:27 AM | #5 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
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. |
02-20-2009, 09:46 AM | #6 | |
Enthusiast
Posts: 33
Karma: 54
Join Date: Apr 2008
Device: PRS-505, Cybook Opus
|
Quote:
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 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
MS Word directly to ePub | Lady Fitzgerald | Workshop | 6 | 09-11-2010 06:21 AM |
Onyx Text Editor? | Risto | Andere Lesegeräte | 1 | 05-25-2010 06:34 AM |
Do need help editing text files? | Nate the great | Workshop | 3 | 04-01-2009 02:18 PM |
eBook Text Editing | Gideon | Workshop | 5 | 01-28-2008 01:26 PM |