08-15-2012, 04:56 PM | #421 | |
...
Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
|
Quote:
I have also just extracted fonts from a seperate dump provided by boroda so will put them up somewhere online if necessary, but will try as you suggested jackie and check how defaults work if you don't set it in reader.xml -- I still want to create it to enable clock and try out the page refresh settings... Last edited by log; 08-15-2012 at 05:00 PM. |
|
08-15-2012, 06:45 PM | #422 | ||
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
1. Under no circumstances am I suggesting you create a reader.xml file unless you also create the 7 css files to go with it. Only Morkl knows what would happen otherwise and, as far as I know, the only thing he has said is Quote:
|
||
Advert | |
|
08-16-2012, 05:40 AM | #423 |
Member
Posts: 14
Karma: 10
Join Date: Jun 2012
Device: Sony PRS-T1
|
When I was working with the Root-Explorer the file-names will not be visible, because of white text on a very light background. In the Wiki https://wiki.mobileread.com/wiki/PRST1_working_apps there is a short comment for the Root-Explorer to switch from 16-color mode to mono.
Where is that switch ? I haven't found that neither in the Root-Explorer nor somewhere else. On the Rooting & Tweaks Page https://wiki.mobileread.com/wiki/PRST...ony_homescreen is another tip for "Changing Android menus from White-on-Black to Black-on-White" with a Link www.the-ebook.org Forum, where I can't find anything as well. Thanks in advance Schussel Last edited by Schussel; 08-16-2012 at 12:33 PM. |
08-16-2012, 11:56 AM | #424 |
...
Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
|
Thanks jackie, will not post then. I thought might be necessary if reader.xml can't reference the internal fonts.
I'll try reader.xml with only other conf set eventually... I'd imagine if the <styles/> node was not defined it would just use the default. |
08-16-2012, 02:35 PM | #425 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
That may well be true. I think I'll leave it to you to test, though |
|
Advert | |
|
08-17-2012, 12:46 AM | #426 |
Wannabe Connoisseur
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Should Reader discussions be here or in this thread?
I had a bit of a play around with the reader.xml and what is and isn't needed. With this Code:
<styles default="/mnt/sdcard/reader/css/default.css" /> Using Code:
<styles default="/mnt/sdcard/reader/css/default.css"> </styles> Simplifying the first example this complete reader.xml Code:
<?xml version="1.0" encoding="utf-8"?> <reader pagesPerRefresh="1"> <informationBar left="none" right="clock_hm" /> </reader> I didn't try having the wrong number of <style ...> entries in the <styles> section. Cheers, Simon. |
08-17-2012, 12:51 AM | #427 |
Wannabe Connoisseur
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Now for a question about reader.xml.
I've got the Amasis font set up in my /mnt/sdcard/reader/css/default.css, rather similar to that in the example default.css in the wiki. The problem is that choosing an alternate css that specifies a different font with the Reader font selector doesn't seem to override the font set up in default.css. I've tried sprinkling !important around default.css but nothing has made a difference so far. Anyone know exactly how to do this? I'll post my full reader.xml, default.css and one of my font css files if that'll help. Cheers, Simon. |
08-17-2012, 01:27 AM | #428 |
ebooknut
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
|
Hi Simon,
Please do post your files so we can take a look. I have 7 css files (default + 6 alternates) and don't use !important at all, and it still works. Also, jackie_w's post is much better than the wiki: https://www.mobileread.com/forums/sho...&postcount=362 |
08-17-2012, 02:27 AM | #429 |
Wannabe Connoisseur
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Here's my reader.xml:
Spoiler:
Here's my css/default.css: Spoiler:
Here's my css/caecilia.css Spoiler:
Here's my css/cambria.css Spoiler:
Here's my css/lexia-dama.css Spoiler:
The other 3 css files are essentially the same as the Cambria. Any hints will be greatly appreciated . Cheers, Simon. |
08-17-2012, 08:41 AM | #430 |
Junior Member
Posts: 8
Karma: 10
Join Date: Apr 2009
Location: France
Device: none
|
Hello, I have installed the June reader on my non-rooted PRS-T1 and it works fine, I'm glad to have the clock in the lower right corner.
However I would like to change the fonts and styles as described above but when I connect the PRS-T1 to my Win7 PC I don't see the [READER Drive:]\reader\ directory where should be located the reader.xml file and css directory for the custom css files. Is this normal and should I create the [READER Drive:]\reader\ directory myself? Or should I root my PRS-T1 to get access to the [READER Drive:]\reader\ directory? |
08-17-2012, 10:34 AM | #431 | |
Wannabe Connoisseur
Posts: 426
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:
Cheers, Simon. |
|
08-17-2012, 10:37 AM | #432 | |
ebooknut
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
|
Quote:
If your default.css works, I think your lexia-dama and caecilia stylesheets should work (but I don't think the cambria will work without the full list). Could there be a typo in the filepaths or font filenames? If not, try using the full list that you used in the default.css for all of the css files: body, body.book, body.text, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4 If your default.css does not work and the filepaths/filenames are correct, try adding div and p to the list, as in: body, body.book, body.text, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4, div, p If none of this helps, give another holler. best, pssquirrel Last edited by pssquirrel; 08-17-2012 at 11:41 AM. Reason: revised my thinking on this |
|
08-17-2012, 02:41 PM | #433 |
Resident Curmudgeon
Posts: 75,901
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've had a check and the fonts are able to be changed on the T1 without a problem. Default is set to Charis SIL, Arial & Charis SIL smallcaps. reader.xml has not been changed.
default.css Code:
@font-face{ font-family: serif; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILR.ttf);} @font-face{ font-family: serif; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILI.ttf);} @font-face{ font-family: serif; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILB.ttf);} @font-face{ font-family: serif; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILBI.ttf);} @font-face{ font-family: sans-serif; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/arial.ttf);} @font-face{ font-family: sans-serif; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/ariali.ttf);} @font-face{ font-family: sans-serif; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/arialbd.ttf);} @font-face{ font-family: sans-serif; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/arialbi.ttf);} @font-face{ font-family: smallcaps; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILSmCp-R.ttf);} @font-face{ font-family: smallcaps; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILSmCp-I.ttf);} @font-face{ font-family: smallcaps; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILSmCp-B.ttf);} @font-face{ font-family: smallcaps; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILSmCp-BI.ttf);} html { font-family: serif; font-size: 93%; widows: 0; orphans: 0; } body { margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; text-align: justify } Code:
@font-face{ font-family: serif; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/AmasisMTW1G.otf);} @font-face{ font-family: serif; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/AmasisMTW1G-Italic.otf);} @font-face{ font-family: serif; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/AmasisMTW1G-Bold.otf);} @font-face{ font-family: serif; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/AmasisMTW1G-BoldItalic.otf);} @font-face{ font-family: sans-serif; font-style:normal; font-weight:normal; src: url(res:///ebook/fonts/AmasisMTW1G.otf);} @font-face{ font-family: sans-serif; font-style:italic; font-weight:normal; src: url(res:///ebook/fonts/AmasisMTW1G-Italic.otf);} @font-face{ font-family: sans-serif; font-style:normal; font-weight:bold; src: url(res:///ebook/fonts/AmasisMTW1G-Bold.otf);} @font-face{ font-family: sans-serif; font-style:italic; font-weight:bold; src: url(res:///ebook/fonts/AmasisMTW1G-BoldItalic.otf);} html { font-family: serif; widows: 0; orphans: 0; } body { margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; text-align: justify } Last edited by JSWolf; 08-17-2012 at 02:47 PM. |
08-17-2012, 08:19 PM | #434 |
ebooknut
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
|
Hi Simon,
I thought of another way to approach this. Here is stripped down css that I confirm works on my T1. Copy and paste these, then use them as templates to create 7 css files (default + 6), changing only the filepaths and filenames indicated in red. Load it onto your T1. If it works, add the rest of your css until it stops working and you'll know where your problem is. If it doesn't work, then the problem is either in the filenames/filepaths -- or the epub is using classes you haven't included in the list, which is entirely possible. default css (do not change) Spoiler:
alternate css using custom font (change only the filepath/filename in red to match what's on your reader): Spoiler:
alternate css using resident font (change only the filename in red): Spoiler:
reader.xml Spoiler:
Hope this helps. |
08-18-2012, 03:13 AM | #435 |
Wannabe Connoisseur
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
With some help and suggestions from this thread, I've tracked this down to user error.
The epub I was looking at, a Calibre converted Kindle book, had the following spread through the css: Code:
font-family: "Times New Roman", "serif"; Calibre has a option under Look & Feel/Filter Style Information to remove font style information. I haven't tried that yet, but suspect it would have helped. A quick look through my library shows 139 books out of 462 have a font-family: reference. A number of these are just font-family: Serif so I can ignore them, but there are a number I'll go and have a further peek at. I guess there must be a CSS way to override something like font-family: "Times New Roman"? More ideally, I'm looking for something that can say "if there's no embedded font, then override the font". For example, I wouldn't want to override the Fontin font in Jelby's Three Men in a Boat epub. Cheers, Simon. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Sony Home Screen has a hidden app launcher!!! | uboot | Sony Reader Dev Corner | 12 | 01-11-2012 03:21 PM |
I've lost my home screen | Paulc15 | Kobo Tablets | 12 | 11-16-2011 01:19 PM |
Home Screen, do you use it? | Breila | Barnes & Noble NOOK | 7 | 06-27-2011 09:01 AM |
PRS-950 Modified firmware with clock and other features - updated with latest Sony 2.0 rev | gardenstate | Sony Reader | 6 | 12-27-2010 06:06 AM |
What wallpaper do you have on your Home Screen? | naivejenni | Lounge | 31 | 12-08-2010 05:44 PM |