View Single Post
Old 03-28-2020, 04:53 AM   #3
candyfloss
Junior Member
candyfloss began at the beginning.
 
Posts: 7
Karma: 48
Join Date: Jan 2011
Device: Nook Glowlight 3
Quote:
Originally Posted by theducks View Post
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
I'll use that search string moving forward, but it still doesn't delete the now-empty line. Should I still be using "Beautify all files" afterwards to get rid of the empty line? (I wasn't sure if leaving empty line breaks in was affecting it somehow.)

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:
Code:
.byline {
    display: block;
    text-align: center
    }
.calibre {
    display: block;
    font-size: 1em;
    padding-left: 0;
    padding-right: 0;
    margin: 0 5pt
    }
.calibre1 {
    display: block
    }
.calibre2 {
    font-weight: bold
    }
.calibre3 {
    display: block;
    font-weight: bold;
    margin: 0
    }
.calibre4 {
    display: block;
    margin: 0 0 1em 1em
    }
.calibre5 {
    display: block;
    margin: 0 0 0 1em
    }
.calibre6 {
    display: block;
    font-size: 1.41667em;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    margin: 0.67em 0
    }
.calibre7 {
    display: block;
    margin: 1em 0
    }
.calibre8 {
    display: block
    }
.calibre9 {
    font-style: italic
    }
.message {
    display: block;
    text-align: center;
    margin: 1em 0
    }
.tags {
    display: block;
    padding: 0;
    border: currentColor none medium;
    margin: 1em 0
    }
.toc-heading {
    display: none;
    font-size: 1.41667em;
    font-weight: bold;
    line-height: 1.2;
    margin: 0.83em 0
    }
.userstuff {
    display: block;
    font-family: serif;
    padding: 0;
    margin: 1em
    }
.userstuff1 {
    display: block;
    font-family: serif;
    padding: 0
    }
.userstuff2 {
    display: block;
    font-family: serif;
    padding: 0;
    margin: 1em 0
    }


and here is an xhtml file where the style classes are used:

Spoiler:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <meta content="ie=edge" http-equiv="x-ua-compatible"/>
    <title>Inevitable - cellorocket - Rogue One A Star Wars</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
</head>
  <body class="calibre">
<div id="preface" class="calibre1">
<div class="calibre1">
<h1 class="calibre6" id="calibre_pb_1">Inevitable</h1>
    <div class="byline">by <a href="http://archiveofourown.org/users/cellorocket/pseuds/cellorocket" rel="author">cellorocket</a></div>
      <p class="calibre7">Summary</p>
      <blockquote class="userstuff"><p class="calibre7">He had the kind of face you saw everywhere, and nowhere at the same time – so unremarkably average that it was almost suspicious. But he knew how to wear it, knew how to be a thousand different things; whatever the mission required. Though he often disappeared into whatever role he was assigned, sometimes she saw glimmers of an emotion she couldn’t read ripple over those strangely common features, and knew it had no place in a liar’s arsenal of masks.</p><p class="calibre7"><i class="calibre8">Sad eyes,</i> she thought, shivering. <i class="calibre8">He can’t hide those.</i></p></blockquote>

      <p class="calibre7">Notes</p>
        <blockquote class="userstuff"><p class="calibre7">I have to start this off with a confession: I absolutely loved the ending to Rogue One. I thought it fit the tone of the story and conflict perfectly. But I'm also super fascinated by Jyn and Cassian's Connection and really wanted to write about it. Thus; delusion.</p><p class="calibre7">some kind generous souls have posted gorgeous art to tie into my fic so i've compiled them here. thank you so much!! &lt;3<br class="calibre1"/><b class="calibre2"> <a href="https://bossard.tumblr.com/post/156358351217/spacepandar-ive-been-reading-this-rebelcaptain" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/156489053692/after-a-moment-jyn-threw-her-head-back-with" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/156891251707/jyn-groped-absently-at-her-neck-only-when-she" rel="nofollow">x</a></b> <a href="https://bossard.tumblr.com/post/157715934417/spacepandar-too-tired-to-follow-the" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/158512898732/a-sketch-of-what-i-visualize" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/158633400872/she-looked-upset-and-he-didnt-want-to-make-it" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/158633419142/it-hurt-to-move-but-he-inched-his-hand-across-the" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/158667357202/jyn-closed-her-eyes-and-forced-herself-to-be-as" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/158703734142/she-didnt-notice-it-at-first-this-was-not-like" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/159228035342/spacepandar-what-do-you-want-bodhi-rook-he" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/159377178272/spacepandar-what-little-of-dravens-reserve" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/159377194857/spacepandar-im-almost-afraid-to-ask-how-youd" rel="nofollow">x</a> <a href="https://bossard.tumblr.com/post/161199390937/spacepandar-hed-no-sooner-toppled-out-of-the" rel="nofollow">x</a></p><p class="calibre7">(the roguejedi starts up around ch7!)</p></blockquote>


  </div>
</div>


<div id="chapters" class="userstuff1">
      
<div class="calibre1">
  <div class="calibre9" id="calibre_pb_2"></div>
</div>


</div>

</body></html>


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
candyfloss is offline   Reply With Quote