06-01-2010, 08:38 AM | #31 |
Grand Sorcerer
Posts: 11,732
Karma: 128354696
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: T100TA,PW2,PRS-T1,KT,FireHD 8.9,K2, PB360,BeBook One,Axim51v,TC1000
|
|
06-09-2010, 05:01 PM | #32 |
Addict
Posts: 378
Karma: 1107420
Join Date: Dec 2009
Location: Western New York state (USA)
Device: Kindle Oasis & the Kindle app on iDevices
|
Well, I'm late to the party, tselling, but thanks for this hack! I've just installed it, put my own font information in and it's working great.
I read my own books (mostly epub) in FBreader180, but I am a regular visitor to the online libraries for which I have accounts. This makes it MUCH easier to read the library books. Karma to you for this! Marilyn |
Advert | |
|
06-10-2010, 04:20 AM | #33 |
Orisa
Posts: 1,999
Karma: 1035571
Join Date: Feb 2010
Location: Ireland
Device: Onyx Poke 5
|
Could anyone prepare a sort of tutorial for the CSS style sheets?
|
06-10-2010, 03:40 PM | #34 |
Grand Sorcerer
Posts: 6,205
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Hi Logseman,
Not really a tutorial but a simple example you could customise to your own preferences. Anyone else feel free to chip in if I've missed something.
Notes:
|
06-10-2010, 05:34 PM | #35 |
Member
Posts: 16
Karma: 166
Join Date: Mar 2010
Location: Allentown, PA
Device: Nexus 7.2, Aura H2O
|
By trial and error I added a couple things to set text size, spacing between lines in a paragraph, and get a little breathing space between paragraphs. Maybe somebody can show better ways to get these done.
The settings were added to the p {...} block, which I assume means they apply to all paragraphs. The values are: p { font-size: 18pt; line-height: 105%; padding-top: 5px; padding-bottom: 6px; orphans: 1; widows: 1; } The settings for orphans and widows were already in the p block. Looks like a semicolon is used to separate entries within the {...} block. Notes: (1) The font-size setting can take different units. The one I used, pt, seems to mean typographic "points". I also saw another, px, which seems to mean pixels. Both unit types give absolute sizes, there seem to be other units that are for giving relative sizes but this is beyond me at the moment. (2) The line-height setting seems to make line-to-line spacing xxx percent of the font height. (3) The padding-top and padding-bottom seems to leave a little space before and after the paragraph. Again, different units are possible, including relative ones, but I chose pixels because it seemed the simplest. |
Advert | |
|
06-10-2010, 06:32 PM | #36 |
Orisa
Posts: 1,999
Karma: 1035571
Join Date: Feb 2010
Location: Ireland
Device: Onyx Poke 5
|
Many thanks! Once I can give K again, count on having it
|
06-10-2010, 07:58 PM | #37 |
Addict
Posts: 366
Karma: 510
Join Date: Apr 2008
Device: NookColor (MiRage/CM7.2 & Moon+ Reader Pro)
|
tomh,
you are correct in what you have decipered of the CSS. One thing to note is there is a difference between margin and padding: http://blog.webassist.com/2010/01/th...s-and-padding/ which seems to really only matter if you use borders. However the margin and padding added together is the whitespace you will see around your text. The hardest part seems to be getting the settings to apply correctly. Because if a particular font is appled in the "p" (paragraph) block then if will take priority over what you set in the "html" or "body" block. And then you can have classes for the elements and that adds a whole new dimension. |
06-11-2010, 12:32 AM | #38 | |
Grand Sorcerer
Posts: 11,732
Karma: 128354696
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: T100TA,PW2,PRS-T1,KT,FireHD 8.9,K2, PB360,BeBook One,Axim51v,TC1000
|
Quote:
http://www.brainjar.com/css/using/ This is the W3 CSS 2.1 spec document in pdf: http://www.w3.org/TR/CSS2/css2.pdf Will probably take some experimenting to see which tags and properties are supported by AdobeViewer. Last edited by fjtorres; 06-11-2010 at 12:41 AM. |
|
06-11-2010, 07:28 AM | #39 |
Member
Posts: 16
Karma: 166
Join Date: Mar 2010
Location: Allentown, PA
Device: Nexus 7.2, Aura H2O
|
tselling,
Thanks for your help. FWIW, I originally tried margin-top and margin-bottom and they seemed to do nothing, even with order of magnitude jumps in values. The padding-top and padding-bottom worked. The articles noted by fjtorres are better than what turned up in my web searches. I look forward to learning more. His statement "Will probably take some experimenting to see which tags and properties are supported by AdobeViewer." is important. How true! |
06-11-2010, 09:57 AM | #40 | |
Addict
Posts: 366
Karma: 510
Join Date: Apr 2008
Device: NookColor (MiRage/CM7.2 & Moon+ Reader Pro)
|
Quote:
|
|
06-15-2010, 06:50 PM | #41 |
Grand Sorcerer
Posts: 6,205
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Message for tselling
Now that the official firmware v15.2 is out, will we need a new version of the hacked AdobeViewer?
I really don't want to upgrade until I know I can have the hack as well. Pretty please. |
06-15-2010, 07:11 PM | #42 |
Grand Sorcerer
Posts: 11,732
Karma: 128354696
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: T100TA,PW2,PRS-T1,KT,FireHD 8.9,K2, PB360,BeBook One,Axim51v,TC1000
|
I updated and the hacked 15.2 version is running fine for me.
|
06-15-2010, 07:33 PM | #43 |
Grand Sorcerer
Posts: 6,205
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Thank you. That's good to know.
However, if any last-minute fixes were applied to standard AdobeViewer in v15.2 (am I being over-optimistic? ) then presumably they wouldn't be in the current hacked version. |
06-20-2010, 05:20 PM | #44 |
Connoisseur
Posts: 50
Karma: 10
Join Date: May 2010
Device: Kindle Oasis 2, PW2
|
I have just tried out the Hacked AdobeViewer in v14.2. I found that if there are fonts specified in the epub file, PB360 would not override those settings with the ones I specify in userstyle1.css. But if there are nothing specify in the file, it will use the fonts in userstyle1.css.
How do you override the styles embedded in the file? |
06-20-2010, 09:40 PM | #45 |
Connoisseur
Posts: 50
Karma: 10
Join Date: May 2010
Device: Kindle Oasis 2, PW2
|
Alright, I finally got it working. Since my files have some fonts embedded, I need to specify the same font name in the userstyle1.css file in order to use the fonts in the system/fonts directory.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB (CSS) tweaker app | Loccy | Conversion | 9 | 01-23-2011 10:22 PM |
Is there a known problem displaying images in EPUB in AdobeViewer | jackie_w | PocketBook | 3 | 05-12-2010 06:43 AM |
FBreader vs adobeviewer .. configuration | askyn | PocketBook | 3 | 03-30-2010 03:01 AM |
kindle app? is it possible to design a app to full support PDF? | lili1989 | Amazon Kindle | 12 | 02-05-2010 05:29 PM |
EPub mit AdobeViewer: ursprünglicher Maßstab | Gra666 | PocketBook | 2 | 01-01-2010 10:13 AM |