MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   how to change Sigil's heading (https://www.mobileread.com/forums/showthread.php?t=266940)

Echeban 10-30-2015 11:50 AM

how to change Sigil's heading
 
When importing an HTML file, if it does not have a heading, Sigil adds this

Code:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title/>
</head>

Where is that text, and how can I customize it?
Why? I want to add a line to link my own CSS, like this
Code:

  <link href="../Styles/styles.css" rel="stylesheet" type="text/css" />

Arios 10-30-2015 12:31 PM

Something like that?

Code:


<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>About Sigil</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>

<p>...</p>
.........
</body>
</html>

Bold is mine.

theducks 10-30-2015 12:42 PM

Because the EPUB2 rules say that the Boilerplate MUST exist to be valid, even if it is a null value

You can Bulk S&R to update your <title> block

Linking stylesheets in Sigil is a piece of cake (chocolate-fudge, 3-klayers)

Add your stylesheet(s) Files Add: Existing Files (You can bulk add here)
select the files to get the SAME set of linked stylesheets: Right-click-Link Stylesheets: Tick those that apply: OK

NOTE: all existing links will be removed if not selected. No incremental adds, except that the tick boxes WILL be pre-selected if the link exists in ALL the files that were chosen

KevinH 10-30-2015 12:43 PM

Or try simply right clicking on the newly imported file in Sigil's BookBrowser window and select "Link Stylesheets..."

KevinH

Echeban 10-30-2015 03:52 PM

thanks!


All times are GMT -4. The time now is 09:19 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.