03-26-2011, 11:54 AM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
quotes differences book view & code view
why do I see proper curly quotes in code view but ugly diagonal quote replacements in book view, for the same book.
this seems to happen a lot, I guess it is because of sigil's choice of book view font but I don't know how to change the book view font - can i > |
03-26-2011, 12:38 PM | #2 | |
Well trained by Cats
Posts: 30,593
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I think BV follows the stylesheet font You have an ugly choice or system font set as default. |
|
Advert | |
|
03-26-2011, 04:08 PM | #3 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
I figured that much, but what controls the book view & code view fonts - they are clearly different so cannot be using the same system font, and books are fine when viewed in reader software so stylesheet fonts should be OK also OK - I went through stylesheet & removed all font NAMES - just left bold, italic small large etc as is - book view now looks much better, so it seems that book view is using stuff from stylesheet. I still don't know what code view uses ??? |
|
03-26-2011, 04:34 PM | #4 | |
Well trained by Cats
Posts: 30,593
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
WYSIWYG: BV should show as the reader does (or the fallback if the font is not available) if a font is called out in the Stylesheet. |
|
03-26-2011, 06:24 PM | #5 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
ok thanks - the 2 readers I own - sony & kindle both substitute their own fonts for what is specified in epub/mobi code, so a book typically looks fine on an actual reader, but when I go to edit it in sigil then the strange font definitions kick in & affect book view.
the specific book that was bugging me has some strange code in the html pages: Code:
@page { margin-bottom: 5pt; margin-top: 5pt } @font-face { font-style: normal; font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4; src: url(../fonts/LiberationSerif-Regular.ttf); font-weight: normal } @font-face { font-style: italic; font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4; src: url(../fonts/LiberationSerif-Italic.ttf); font-weight: normal } @font-face { font-style: normal; font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4; src: url(../fonts/LiberationSerif-Bold.ttf); font-weight: bold } @font-face { font-style: italic; font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4; src: url(../fonts/LiberationSerif-BoldItalic.ttf); font-weight: bold } @font-face { font-style: italic; font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4; src: url(../fonts/LiberationSerif-Italic.ttf) ..... <body class="epub"> <div class="calibre"> Code:
.epub { display: block; **** font name removed from here now **** 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 } Last edited by cybmole; 03-26-2011 at 06:27 PM. |
Advert | |
|
03-26-2011, 07:03 PM | #6 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Let me guess... Source is Word?
|
03-26-2011, 07:45 PM | #7 |
Well trained by Cats
Posts: 30,593
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Liberation (a free font) is available at the Calibre files download site.
http://calibre-ebook.com/downloads/liberation-fonts/ |
03-27-2011, 03:15 AM | #8 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
hmmm, I'll try the download, is that link correct :
Oops! Google Chrome could not connect to calibre-ebook.com & what's with the strange font names - why call a font Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4 ??? |
03-27-2011, 11:20 AM | #9 |
Well trained by Cats
Posts: 30,593
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Link correct: copied and pasted from the address bar of Firefox 4.0 ( just tested link: OK)
No clue as the odd name. Why are you asking hard questions this early in the morning? |
03-27-2011, 11:44 AM | #10 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
I think I have enough fonts already though, so I'll pass on installing them! still puzzled by the weird font names though, but if it's only in 1 book then no big deal. |
|
03-28-2011, 07:37 AM | #11 |
Fanatic
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
I've noticed this same problem. It wasn't always this way and just occurred a couple of months ago after an update. The ebooks I create/edit rarely have an embedded font and the css rarely have any font references at all. I think there's more at play here but I couldn't begin to tell you what it is.
- Byron |
03-28-2011, 08:19 AM | #12 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
I'm glad its not just me.
sigil is a great program but would be so much better with a simple user preferences screen where I could specify e.g. open in code or book view, use these zoom & font settings in book view..... |
03-28-2011, 11:45 AM | #13 |
Well trained by Cats
Posts: 30,593
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
There was a time when a page would not remember a Zoom level if you switched views.
But my eyes have gotten lots older , so I would like to see: Overall preferences (used at startup if saved permanent by 'Apply as Default', session only if OK/close). These would include: separate Look and feel for CV and BV (Zoom level, window size (exists as 'last' now), button bar placement, include show/hide for buttons to reduce clutter)) Individual already open page settings would still work as current. New Pages created from the 'Split' button would retain their original source page values of zoom. |
03-29-2011, 02:53 AM | #14 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
well if we're now wishing for the moon I'd want some settings stored on a per book edited basis. ( just like ereaders keep a per book settings file with last page read etc)
I'd want the find / replace recent entries stored per edited file, as well as stuff like last window size & view |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
lock book view & code view windows into synch | cybmole | Sigil | 5 | 01-19-2011 11:30 PM |
Code block view (converted from CHM) | Replika | Calibre | 3 | 10-19-2010 03:08 PM |
Possible to have default view as code view? | sherman | Sigil | 5 | 06-15-2010 02:47 AM |
Is it possible to view the Format of a book in Library view? | highwaykind | Calibre | 6 | 01-23-2010 07:28 PM |
Changing font for code view mode | matthewyi | Sigil | 2 | 11-05-2009 03:20 PM |