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

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 06-01-2010, 08:38 AM   #31
fjtorres
Grand Sorcerer
fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by mtravellerh View Post
Well yes. I thought that was obvious. Sorry that I didn't make that clear.
Stating the obvious is my specialty.
No apologies needed.
fjtorres is offline   Reply With Quote
Old 06-09-2010, 05:01 PM   #32
Mickey330
Addict
Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.Mickey330 ought to be getting tired of karma fortunes by now.
 
Mickey330's Avatar
 
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
Mickey330 is offline   Reply With Quote
Advert
Old 06-10-2010, 04:20 AM   #33
Logseman
Orisa
Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.
 
Logseman's Avatar
 
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?
Logseman is offline   Reply With Quote
Old 06-10-2010, 03:40 PM   #34
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
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.
  1. Copy tselling's hacked file AdobeViewer.app into directory system/bin on the PB360. Make sure you use tselling's hack which corresponds to the PB360 firmware version you're using, i.e. 14.2 or 15.2

  2. Copy the .ttf font files you want to use into the system/fonts directory. Make careful note of their filenames, they are case-sensitive.

  3. Copy the following into a text file called userStyle1.css (case-sensitive) and copy to the root directory of your PB360 (see notes below for some description). This example uses the Charis SIL font family as the serif font. It is free.

    Code:
    @font-face {font-family:serif; font-weight:normal; font-style:normal; src: url(res:///mnt/ext1/system/fonts/CharisSILR.ttf);}
    @font-face {font-family:serif; font-weight:normal; font-style:italic; src: url(res:///mnt/ext1/system/fonts/CharisSILI.ttf);}
    @font-face {font-family:serif; font-weight:bold; font-style:normal; src: url(res:///mnt/ext1/system/fonts/CharisSILB.ttf);}
    @font-face {font-family:serif; font-weight:bold; font-style:italic; src: url(res:///mnt/ext1/system/fonts/CharisSILBI.ttf);}
    
    html {font-family:serif;}
  4. Not sure whether this step is necessary but I switch the PB360 off at this point, then re-boot it.

  5. Now open an epub file with AdobeViewer and you should see the fonts you specified in userStyle1.css

Notes:
  • The first 4 @font-face lines of the example CSS file specify the exact locations where your selected serif fonts, Charis Regular, Italic, Bold and BoldItalic are to be found.

  • The last line (html...) tells AdobeViewer to use the fonts listed in the first 4 @font-face lines whenever the epub wants to display serif.

  • If your epub has its own fonts physically embedded inside, as some commercial ones do, then these would be used (I think) in preference to yours.

  • Once you get it working you can add 4 lines to specify your preferred sans-serif fonts.
    @font-face {font-family: sans-serif; ...}

  • ... and your preferred monospace fonts.
    @font-face {font-family: monospace;...}

  • You can even specify a SmallCaps font if you get adventurous.
jackie_w is offline   Reply With Quote
Old 06-10-2010, 05:34 PM   #35
tomh
Member
tomh doesn't littertomh doesn't litter
 
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.
tomh is offline   Reply With Quote
Advert
Old 06-10-2010, 06:32 PM   #36
Logseman
Orisa
Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.
 
Logseman's Avatar
 
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
Logseman is offline   Reply With Quote
Old 06-10-2010, 07:58 PM   #37
tselling
Addict
tselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enough
 
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.
tselling is offline   Reply With Quote
Old 06-11-2010, 12:32 AM   #38
fjtorres
Grand Sorcerer
fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by Logseman View Post
Could anyone prepare a sort of tutorial for the CSS style sheets?
This one is a general CSS tutorial:
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.
fjtorres is offline   Reply With Quote
Old 06-11-2010, 07:28 AM   #39
tomh
Member
tomh doesn't littertomh doesn't litter
 
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!
tomh is offline   Reply With Quote
Old 06-11-2010, 09:57 AM   #40
tselling
Addict
tselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enoughtselling will become famous soon enough
 
Posts: 366
Karma: 510
Join Date: Apr 2008
Device: NookColor (MiRage/CM7.2 & Moon+ Reader Pro)
Quote:
Originally Posted by tomh View Post
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!
Padding probably worked more easily because its not used much in ebooks so there wasn't more specific CSS code to override it. For margin to work in quite a few of my library books I had to use p.indent and p.nonident along with p... but I was using it more to make the left and right margins smaller since when I made the font bigger the margins got bigger and I wound up with like 3 words per line.
tselling is offline   Reply With Quote
Old 06-15-2010, 06:50 PM   #41
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
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.
jackie_w is offline   Reply With Quote
Old 06-15-2010, 07:11 PM   #42
fjtorres
Grand Sorcerer
fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.
 
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.
fjtorres is offline   Reply With Quote
Old 06-15-2010, 07:33 PM   #43
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
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.
jackie_w is offline   Reply With Quote
Old 06-20-2010, 05:20 PM   #44
doremifaso
Connoisseur
doremifaso began at the beginning.
 
doremifaso's Avatar
 
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?
doremifaso is offline   Reply With Quote
Old 06-20-2010, 09:40 PM   #45
doremifaso
Connoisseur
doremifaso began at the beginning.
 
doremifaso's Avatar
 
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.
doremifaso 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 (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


All times are GMT -4. The time now is 05:28 AM.


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