View Single Post
Old 11-26-2016, 11:47 AM   #53
hidden.platypus
Connoisseur
hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.
 
hidden.platypus's Avatar
 
Posts: 89
Karma: 190508
Join Date: May 2014
Device: Android
Quote:
Originally Posted by kovidgoyal View Post
I need a sample docx file to tell you more.
Hi Kovid,


I've attached one here.

(FYI, the file I attached is a docx file. The forum doesn't like me uploading a docx file, so I renamed to doc. You should rename to docx before you start tinkering I think.)

In this Word file the heading is Cochin LT.

Calibre generates this css for the heading:

Code:
.block_ {
    display: block;
    font-family: "Cochin LT", serif;
    font-size: 2em;
    font-weight: normal;
    line-height: 1.2;
    page-break-after: avoid;
    page-break-inside: avoid;
    text-align: center;
    padding: 0;
    margin: 12pt 0 0 28.8pt
    }

The base font / body text is supposed to be Arial

Calibre generates this:

Code:
.block_1 {
    color: black;
    display: block;
    line-height: 1.2;
    padding: 0;
    margin: 0 0 12pt
    }
I have one more style in the document. Indented, and in a different font just to test.

Calibre generates this:
Code:
.block_4 {
    color: black;
    display: block;
    font-family: "URW Palladio L", serif;
    font-size: 0.75em;
    padding: 0;
    margin: 0 0 8pt 28.8pt
    }

I am not even sure I understand how Calibre gets the blue color to show in headings, when the CSS doesn't specify a color.

The only color reference is waaay down in the stylesheet:

Code:
.calibre {
  color: #2E74B5;
  display: block;
  font-family: "Arial", sans-serif;
  font-size: 1em;
  padding-left: 0;
  padding-right: 0;
  margin: 0 5pt;
}
But this doesn't seem to be referenced anywhere.

Although, if I remove it, the heading loses its blue color, and the base font is no longer Arial.

Curiouser and curiouser.
Attached Files
File Type: doc Fishing - Unknown.doc (17.6 KB, 194 views)

Last edited by hidden.platypus; 11-26-2016 at 11:49 AM. Reason: Typo
hidden.platypus is offline   Reply With Quote