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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-24-2009, 07:21 PM   #1
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,034
Karma: 3973186
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Tools for adjusting ePub for specifi readers?

What tools exists for automatically convert an ePub to something suitable for a specific reader? Just playing around with my Gen3 and ePub a couple of hours I have noticed tha you need to remove text-align from the css file to be able to choose justification or not in the Gen3. You also need to adjust the top margin.

So have anybody started writing any libraries for this or should I just write the tools myself (maybe a good project for learning Python...).
tompe is offline   Reply With Quote
Old 12-26-2009, 04:16 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,605
Karma: 17734032
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by tompe View Post
What tools exists for automatically convert an ePub to something suitable for a specific reader? Just playing around with my Gen3 and ePub a couple of hours I have noticed tha you need to remove text-align from the css file to be able to choose justification or not in the Gen3. You also need to adjust the top margin.

So have anybody started writing any libraries for this or should I just write the tools myself (maybe a good project for learning Python...).
If I was converting ePub to something else, I would use Calibre.
JSWolf is offline   Reply With Quote
 
Enthusiast
Old 12-26-2009, 04:22 PM   #3
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,034
Karma: 3973186
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by JSWolf View Post
If I was converting ePub to something else, I would use Calibre.
Well, I was not talking about converting to something else. I was talking about e.g. modifying the css file in an existing ePub and avoid modifying anything else.
tompe is offline   Reply With Quote
Old 12-26-2009, 04:50 PM   #4
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
I believe that Sigil opens your CSS as a style-sheet at the top of the document. Make your changes, and save should do it.

The new 2.0 will actually have a separate CSS editor, too, I think. Should be great.

m a r
rogue_ronin is offline   Reply With Quote
Old 12-26-2009, 04:54 PM   #5
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,613
Karma: 1620342
Join Date: Oct 2008
Location: Luxembourg
Device: PB360░
Quote:
Originally Posted by rogue_ronin View Post
I believe that Sigil opens your CSS as a style-sheet at the top of the document. Make your changes, and save should do it.

The new 2.0 will actually have a separate CSS editor, too, I think. Should be great.

m a r
Sigil works great, but you have to have a little elementary CSS knowledge.
mtravellerh is offline   Reply With Quote
Old 12-26-2009, 05:13 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,605
Karma: 17734032
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by tompe View Post
Well, I was not talking about converting to something else. I was talking about e.g. modifying the css file in an existing ePub and avoid modifying anything else.
What I do is I have .epub associated with WinRAR so all I have to do is right click the .epub and select open with and then select WinRAR and it opens and I can extract the contents. I then make my changes to the HTML & CSS as needed and re-zip the files I've changed.

I use Notepad++ to make the changes.
JSWolf is offline   Reply With Quote
Old 12-26-2009, 05:53 PM   #7
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,034
Karma: 3973186
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
I will test Sigil.

Yes, I cal also unzip the ePub, modify it in Emacs, and zip it together again. But that is kind of primitive when you can have a clever script that do all the things automatically.
tompe is offline   Reply With Quote
Old 12-26-2009, 06:40 PM   #8
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
Quote:
Originally Posted by tompe View Post
I will test Sigil.

Yes, I cal also unzip the ePub, modify it in Emacs, and zip it together again. But that is kind of primitive when you can have a clever script that do all the things automatically.
Yeah, you're looking to make it easier -- that's what computers are supposed to do!

You might have to make a fairly smart script, one that can check for various values that you discover, as most CSS are going to be different from one another in layout.

Or, you might be able to create a "generic" CSS that you like and simply substitute the entire file. Depends on how the XHTML is structured, of course.

Or, just add your preferences to the end of the existing CSS file. The rules are processed such that the last read rules are dominant, I think.

m a r
rogue_ronin is offline   Reply With Quote
Old 12-26-2009, 06:51 PM   #9
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,034
Karma: 3973186
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by rogue_ronin View Post
You might have to make a fairly smart script, one that can check for various values that you discover, as most CSS are going to be different from one another in layout.
The plan was to take one book at the time. And hope that the number of way to specify body text is limited or that you easily can identify body text and what "tag" it has.
tompe is offline   Reply With Quote
Old 12-26-2009, 07:22 PM   #10
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
The empirical approach.

Should work!

Do share it with others if you get a good script working.

m a r
rogue_ronin is offline   Reply With Quote
Old 12-30-2009, 03:26 PM   #11
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,905
Karma: 2909045
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
You could try the tweak_epub tool specified in another thread.

With the tool you can easily edit only a few files. You still need some basic CSS knowledge though. Not that difficult usually.
Toxaris is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub creation tools : what's missing ? wishlist / dialogue zelda_pinwheel ePub 103 02-08-2013 04:36 AM
tools for epub creation Toxaris ePub 15 03-05-2010 04:54 AM
Your actual and (near) future situation: Readers, tools, formats, ... mgmueller Which one should I buy? 15 09-09-2009 07:19 AM
Help adjusting line size, please. Stitchawl Calibre 4 04-05-2009 10:53 PM
epub creation tools jbenny ePub 20 03-13-2009 12:30 PM


All times are GMT -4. The time now is 05:19 PM.


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