![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 48
Join Date: Jan 2011
Device: Nook Glowlight 3
|
AO3 epub, embedded font removal problem
Hello everyone! I have a problem that googling didn't really yield much help... I primarily use my ereader for organizing my fanfic collection; I use a Nook Glowlight 3 and use Calibre Companion to sync my Calibre library, and I use Archive Of Our Own (AO3)'s epub download feature for most of my fic. It's pretty perfect for my use, except I haven't been able to find a good solution to this: AO3's epub formatter automatically adds in a font-family: serif; to the style classes that format the blocks of text.
I know this forum feels a certain type of way about embedded fonts and I'm no different. So I went about deleting them from the book files like this:
I went through 18 files before I stopped to check how the progress was looking on my nook and realized that only some had been stripped successfully, others had not. Upon doing a little trial and error the ones that had been successfully stripped were files I had never accessed on CC before; the ones I had accessed previously, whether or not I manually changed the font in my ereader, were not stripped. My theory is that accessing the file in CC generates meta data of some kind that is messing with the font. So my question is... how do I work around this??? My goal ultimately is to strip these files of embedded fonts so that they load in whatever my ereader's default font is set to. Btw I had also tried the Modify ePub plugin but because it searches for font-face it doesn't pick up the font-family used in these AO3 epub files. I'm still quite the newbie at Calibre so any advice or thoughts are helpful. TIA! ![]() |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,876
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
just remove the whole line instead of leaving a nil
font-family: .+?\; But EMBEDDED fonts have @font-face {... } The font-family in the rest of the places, just connects the pieces together So the real questions are 1) Turning off "Publishers styling" (or similar naming) does not accomplish the VISUAL goal? 2) Do you really want to destroy all typeface manipulation within the book? serif, sans-serif, monospaced, slanted may convey story elements, and the sign said: KEEP OUT |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Junior Member
![]() Posts: 7
Karma: 48
Join Date: Jan 2011
Device: Nook Glowlight 3
|
Quote:
I will also clarify, the font-family: serif; is part of a style class. I'm unable to edit the OP with this but here is the unedited stylesheet.css: Spoiler:
and here is an xhtml file where the style classes are used: Spoiler:
1) I couldn't figure out what "Publisher's styling" was referring to, is it a feature in the Book Editor or Calibre's library ? 2) The files I'm formatting don't really use typeface manipulation for story elements, so I wouldn't mind if that was a solution. Another thing to add to OP: I have tried using Convert Books > Look & feel > Styling > Select what style information you want completely removed: Fonts. It does work on the unaccessed files*, but still no dice on previously accessed files. *While this seems like a more elegant way of removing font-family: serif; in a way that can be done in batches, this had the side effect of generating a titlepage.xhtml where there wasn't one before, despite selecting "No default cover" under EPUB output ![]() |
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,876
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Publishers styling is a Device feature. It means use the CSS
Some devices that is All or Not-a-thing used switch. Some allow some CSS control on top of the devices. Calibre's viewer allows your choice for DEFAULT generic font classes (image) lik serif... That are used if any other font called is unavailable. eg font-family: "Rickety Old Typewriter", monospaced; As you may have observed, many cleaning tools fail once a document has become corrupted by a partial removal of intertwined elements.
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 7
Karma: 48
Join Date: Jan 2011
Device: Nook Glowlight 3
|
Quote:
As for cleaning tools malfunctioning: using Convert to clean up the unwanted font-family: serif; elements even when I have not tried to do so manually still does not work. The problem still only affects files that I have previously opened with CC. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 7
Karma: 48
Join Date: Jan 2011
Device: Nook Glowlight 3
|
Alright, so I still haven't solved the mystery of what exactly was causing the font to display as serif as the file's "default font" but I figured out a slight workaround: replace all instances of serif in the stylesheets with sans-serif, which is what I read in and what I was having to change the text to. Sometimes the solution is easier than one thinks
![]() I plan on writing into AO3's tech support team to see if they'll consider removing mentions of a default font for their otherwise fantastic epub output template. Cheers ![]() |
![]() |
![]() |
![]() |
Tags |
ao3, archive of our own, font, font display |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with an embedded font on Kobo e-reader | hulabula | ePub | 6 | 10-03-2019 12:31 PM |
Embedded font problem | rbruce1314 | Sigil | 17 | 07-18-2017 08:30 PM |
Embedded font question/problem | pmorris | Editor | 13 | 05-12-2014 03:19 PM |
Embedded font problem | Moonraker | Sigil | 13 | 05-21-2013 05:33 PM |
problem with embedded font | ericshliao | EPUBReader | 2 | 12-11-2009 10:04 AM |