![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, 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...). |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,702
Karma: 134319572
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
|
![]() |
![]() |
![]() |
#4 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#5 |
book creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,656
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
|
Sigil works great, but you have to have a little elementary CSS knowledge.
|
![]() |
![]() |
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,702
Karma: 134319572
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I use Notepad++ to make the changes. |
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, 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. |
![]() |
![]() |
![]() |
#8 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
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.
|
![]() |
![]() |
![]() |
#10 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
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. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub creation tools : what's missing ? wishlist / dialogue | zelda_pinwheel | ePub | 106 | 03-28-2023 05:23 PM |
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 |