![]() |
#16 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
A Sony would need to be res:///Data/.... This is the situation I have myself, Sonys and a PB, and is why hacked firmware (PRSPlus on a Sony) is a better solution for me because the magic css file is a Sony version on both Sonys and a PB version on the PB. The same epub reads equally well on all devices. Horses for courses. I'm not sure how you'd ever get round the problem that the user-accessible internal memory root is different on each device, res:///Data on a Sony, res:///mnt/ext1 on a PB... and who knows what else on a different reader Last edited by jackie_w; 05-14-2011 at 01:11 PM. |
|
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
jackie_w, thanks so much for your detailed explanations, the fog is slowly lifting
![]() I have now put all the code in the Extra CSS box in the preferences/common options tab (under ocnversion), and it works! The only thing which doesn't yet work is the "width: x%", which Calibre refuses to put anywere - but I guess this is a question for the Calibr forum. Adding the code to Calibre once adn for all makes everything so much easier - and rkomar, thanks for your concern, but the three readers in the house are all pocketbook - and anyhow I now get the drift of how to change things. Real pity for the lack of a css file for Adobe! |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,054
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#19 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Code:
img {width: x%;} Anyway, I'm glad you've got the hang of the font stuff. Makes for much nicer reading ![]() |
|
![]() |
![]() |
![]() |
#20 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Quote:
Code:
.calibre3 { height: auto; width: 75% } Code:
img {width: x%;} Code:
img {height: auto, width: x%} Code:
.calibre { display: block; font-family: "LexiaDaMa", serif; font-size: 1em; line-height: 1.2; margin-bottom: 0; margin-left: 5pt; margin-right: 5pt; margin-top: 0; padding-left: 0; padding-right: 0; text-align: justify } ![]() @rkomar: as expected, indeed the font info is ignored if I open the epub on my laptop. As you say, if there was a way to give some sort of wildcard to the "font" directory that would work on all devices, that would be so much better - for instance, I'd rather double check that all is well with the book before transferring it to the device - or if I were ever to change device. Perhaps the current situation is because not enough people are bothered by this, so not enough people are giving it enough thought to come up with a solution... |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@paola,
Regarding the calibre3 thing... every time you do a Calibre conversion, Calibre renumbers the calibrenn class names. If you had an epub with a class called calibre3 then you could overwrite the css for this particular class by doing another epub-epub conversion with Code:
.calibre3 {...} The caveat is that if you enter something in the individual ExtraCSS it will be used instead of the Preferences ExtraCSS. If you've already forced the @font-faces etc into the epub, it may not matter. On the other hand it might just be faster to use the Tweak-epub feature to edit the width% in the epub's css. Last edited by jackie_w; 05-16-2011 at 03:54 PM. |
![]() |
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@paola, I've just had another thought.
I've never had any problems with epub images if I've created the epub with Calibre. Calibre should scale the images automatically to fit on the screen. What do you have set as your Calibre 'Output Profile' in Prefs - Common Options - Page Setup. I have mine set as Sony Reader and it seems to work fine on my PB360 I have had problems with epub images in AdobeViewer on the PB360 (with firmware 15.2) if I have the zoom-level set higher than 3. The images seem to 'balloon' at zoom-level 4 and above. So do the epub page numbers down the right-hand edge. Might this be your problem? Do your images display correctly in the Calibre Viewer? Last edited by jackie_w; 05-16-2011 at 04:08 PM. |
![]() |
![]() |
![]() |
#23 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,054
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
|
|
![]() |
![]() |
![]() |
#24 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
[QUOTE=jackie_w;1540006]What did you actually type in Calibre? I've never needed to override image CSS myself but I would imagine it should be something like this in the ExtraCSS box
Code:
img {width: x%;} Code:
.calibre3 { height: auto; width: 75% } Quote:
Quote:
Code:
@font-face { font-family: "LexiaDaMa"; font-weight: bold; font-style: italic; } @font-face { font-family: "LexiaDaMa"; font-weight: bold; font-style: italic; src: url(../Fonts/LexiaDaMa-BoldItalic.ttf); } I'll try and let you know. Guys, again many thanks for your help! |
||
![]() |
![]() |
![]() |
#25 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#26 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,054
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
In the above, I assumed that you copied your fonts to the /mnt/ext1/system/fonts directory already. |
|
![]() |
![]() |
![]() |
#27 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Quote:
Code:
font-family: "Lexia DaMa", serif; So I tried with the "full" version of the code, but removing the "src" line, and it did not work either (and yes, the fonts are where they should be, and indeed they are found even when fonts are not embedded). But perhaps I haven't fully understood your suggestion. |
|
![]() |
![]() |
![]() |
#28 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,054
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
Code:
font-family: "Lexia DaMa", Fontin, serif; I'm not a Calibre expert, but I wouldn't be surprized if you could set the preferred fonts within Calibre itself when doing the conversion. |
|
![]() |
![]() |
![]() |
#29 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,054
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
Code:
src: local("Lexia DaMa") Last edited by rkomar; 05-23-2011 at 05:06 PM. |
|
![]() |
![]() |
![]() |
#30 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
If you have any ideas of how to re-hack I, for one, would be very pleased ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS files not being used?? | spaze | Sigil | 12 | 03-03-2011 04:26 PM |
Multiple CSS Files | jjm6383 | Sigil | 2 | 06-28-2010 05:44 PM |
Sigil and CSS files | crutledge | Sigil | 6 | 05-20-2010 09:02 AM |
Help! Newbie having problems converting HTML/CSS files | jackie_w | Calibre | 6 | 09-14-2009 04:53 PM |
What library management software/sync software to use with 505? (No DRM files) | techie_007 | Sony Reader | 4 | 02-21-2009 08:22 AM |