Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-05-2012, 06:18 PM   #1
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Process/modify files as they are transferred to a device?

Hi folks,

Is there any way for Calibre to process or modify a file as it's being transferred to a device?

A little background - over on this Sony PRS T1 thread we're discussing ways of emulating PRS+'s "User CSS" and one way of doing this is adding an @import to the top of the stylesheet inside an epub. It would be handy if this could be automated when the epub is transferred to the device.

A special bonus point if this could be disabled on a per-book basis too, if that's not asking too much!

I wasn't sure which Calibre sub-forum was best for this query, so I've posted it in the main Calibre forum. Mods - please move if necessary.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 01-05-2012, 11:35 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre already modifies files (updating metadata) when they are sent to the device, so in principle, this is easy to do. But you would have to modify calibre to do it. And I'm not really clear on what the benefit of User CSS is as opposed to just converting the file with your settings.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-06-2012, 12:34 AM   #3
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by kovidgoyal View Post
calibre already modifies files (updating metadata) when they are sent to the device, so in principle, this is easy to do. But you would have to modify calibre to do it.
At least it's good to know it's possible.

Quote:
Originally Posted by kovidgoyal View Post
And I'm not really clear on what the benefit of User CSS is as opposed to just converting the file with your settings.
Two main reasons are to avoid doing anything manual (whether conversion, plugin, etc) to add the required line to the css in the epub, and also that this particular modification is specific to a given reader type (PRS T1 in this case).

A third reason is that by having a User CSS on the device means that you don't need to make a decision at conversion or transfer to device time. If I decide next year that I like a different font or wider margins I have a single file to edit to make that change.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 01-06-2012, 01:08 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Seems like a lot easier to just modify the firmware on the reader. Is PRS+ not being ported to the T1?

Last edited by kovidgoyal; 01-06-2012 at 01:12 AM.
kovidgoyal is offline   Reply With Quote
Old 01-06-2012, 06:18 AM   #5
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by kovidgoyal View Post
Seems like a lot easier to just modify the firmware on the reader. Is PRS+ not being ported to the T1?
That would be good! At the moment I don't believe there are any plans to port PRS+.

On the T1, you do have the freedom to use alternate epub viewers if you "root" your T1 (hack it to allow extra privileges including allowing you to run software you install), but the alternate viewers (FBReader, CoolReader, MoonReader) don't do as good a job of rendering epubs as the Sony viewer in some people's opinions.

At this stage, it doesn't appear that the Sony viewer can be told to pre-load some CSS like PRS+ does.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Content How are Titles for transferred Mobi files sorted? mkelley Amazon Kindle 10 12-24-2011 01:01 PM
Mobi files lose page-numbering when not transferred via Calibre markpearl Conversion 2 09-29-2011 04:11 PM
I can't modify tags on device anymore mva1985 Calibre 4 06-15-2010 06:41 PM
How do I know files have transferred, and an 'eject' question. suzymca Astak EZReader 16 09-28-2009 12:14 AM
Linux-based ebook device and able to modify the software? timofonic Which one should I buy? 5 01-09-2008 08:25 PM


All times are GMT -4. The time now is 04:13 PM.


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