Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 11-22-2011, 02:36 AM   #1
Lebewesen
Junior Member
Lebewesen has a complete set of Star Wars action figures.Lebewesen has a complete set of Star Wars action figures.Lebewesen has a complete set of Star Wars action figures.Lebewesen has a complete set of Star Wars action figures.Lebewesen has a complete set of Star Wars action figures.
 
Lebewesen's Avatar
 
Posts: 6
Karma: 444
Join Date: May 2011
Device: OYO
Lightbulb Creat new Output plugin (LaTeX and/or txt2tags)

Hi,

I'm thinking about creating a Output Plugin. Either LaTeX(z) or txt2tags(z).

The background:

If I have a badly converted pdf I convert it to htmlz and convert the html to txt2tags and then back to html which is the input for calibre to convert it to epub. Another benefit would be to use txt2tags to generate other output such as LaTeX.

Sometimes I want to print an epub… The conversation to pdf is dissatisfying for that purpose IMO. That's why I'm thinking about making an LaTeX output.

My questions:

1. Are the plugins interesting for the public - if not I'll use htmlz and my Perl Parser.

2. If the plugins are interesing, what do I need to know to develop this plugins? Do I need to know Python or can I use other Languages and work with an API?

Thanks
Bastian
Lebewesen is offline   Reply With Quote
Old 11-22-2011, 05:29 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Plugins are definitely of interest as once they are developed they can extend Calibre basic functionality and are then usable even by inexperienced users.

If you are developing for Calibre you really want to use Python. Setting up a calibre development envionment is extremely easy. In crude terms it simply invloves getting the Calibre source and then setting the CALIBRE_DEVELO_FROM environment variable to point to the source. Once that nis doen starting calibre runs from the downloaded source. This is covered in the Calibre documentation.

Python as a language is very easy to pick up if you have any programming experience. It would also have the advantage that the existing source for the plugins for other formats would provide useful starting points and code that can be referenced.
itimpi is offline   Reply With Quote
Advert
Old 11-22-2011, 07:27 AM   #3
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I don't know if I qualify as "public", but I'd be interested in a LaTeX plugin. It would have to be done correctly, though, so \include, \input and graphics should be collected into, say, a ZIP file like for HTML or something similar. It would be very nice if math were to be rendered as to be legible in, say, ePub output- that would save me a ton of paper for proofreading printouts and such.
Manichean is offline   Reply With Quote
Old 11-22-2011, 11:10 AM   #4
Lebewesen
Junior Member
Lebewesen has a complete set of Star Wars action figures.Lebewesen has a complete set of Star Wars action figures.Lebewesen has a complete set of Star Wars action figures.Lebewesen has a complete set of Star Wars action figures.Lebewesen has a complete set of Star Wars action figures.
 
Lebewesen's Avatar
 
Posts: 6
Karma: 444
Join Date: May 2011
Device: OYO
Quote:
Originally Posted by Manichean View Post
It would be very nice if math were to be rendered as to be legible in, say, ePub output- that would save me a ton of paper for proofreading printouts and such.
I think you speak of an input plugin, what i wana do is an OUTput plugin.

But you don't need an input plugin for LaTeX, this is IMHO an absurd to do… There is nothing better then TeX4ht. You should use html as output or odt.

But you have a point. Maybe I do a tutorial which cover this.

Quote:
Originally Posted by itimpi View Post
Plugins are definitely of interest as once they are developed they can extend Calibre basic functionality and are then usable even by inexperienced users.
I'm considering if my idea isn't to unique, especially for inexperienced users?

I think I overwork my Perlscript's and post them here. If there are enough interest, I'll do a Plugin (I don't know anything 'bout Python)

Last edited by Lebewesen; 11-22-2011 at 12:10 PM. Reason: Spelling mistake
Lebewesen is offline   Reply With Quote
Reply

Tags
calibre, latex, output plugin, txt2tags

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New MOBI output plugin, testing needed kovidgoyal Conversion 30 11-19-2011 04:52 PM
AZW Conversion Output Plugin tylau0 Plugins 59 08-14-2011 10:36 PM
can calibre creat a TOC by reading numerals as chapter marks p3aul Calibre 7 10-04-2010 04:18 AM
Hacks Creat your own document. jgumphress Amazon Kindle 5 09-11-2010 02:55 PM
Firmware Update How to creat update file for Kindle 1st? michaelyzy Amazon Kindle 0 04-21-2010 09:04 PM


All times are GMT -4. The time now is 02:10 PM.


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