09-02-2010, 06:38 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2009
Device: None
|
Plugin for .net program
Hi all
I am thinking of making a new text editor for fiction, creation of books, with various features. It can make pdf, htm, rtf. Is there a way to use some of the conversion routines (from Calibre OS) inside the program (ie in the save as or export routines)? It is using the standard MS rtf editor. To quote "for the Kindle, you really only need to worry about Mobipocket (MOBI), and for the Sony Reader line (PRS) you only need to worry about EPUB (same for the Nook)." How to get that inside a C# .NET program? Any tips welcome. Thanks Geoff |
09-03-2010, 04:39 AM | #2 |
Enthusiast
Posts: 49
Karma: 14
Join Date: Jul 2010
Location: Harrogate, England
Device: iPad
|
I wouldn't bother if you are a programmer.
epub is simply a zip file with some (x) html files, a stylesheet and some management files. It's terribly easy to write (though there are one or two gotchas - mainly that one file must appear at the start at a fixed location which means you must write this ('mimetype') first and esnure that the zip has no added attributes on the files. I've attached a .cs file which will do this. Mainly you will need to add something which generates html files (IDCDoc parses Word2007 and generates html snippets). Disclaimer. The usual applies. This code produces legal perfect epub files (according to epubchecker), but they still don't always work in all devices! I'm looking into that... |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |
Plugin for .net prgram | geoffd99 | Workshop | 1 | 08-30-2010 11:04 AM |
Possible storage plugin? | Krystian Galaj | Plugins | 15 | 06-20-2010 03:18 PM |
metadata plugin | redneck_momma | Plugins | 1 | 05-21-2010 08:41 PM |
plugin iRexDR800S | MarkNL | Plugins | 2 | 02-09-2010 03:51 AM |