Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-21-2010, 10:12 AM   #1
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
Question xthml file not refer to style sheet

Hi Valloric

I'm trying to define my own font in the epub by add code in style sheet.

After I generate the epub file, I found that all the xthml file not refer to the style sheet.

Here is the code of xthml.


<?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></title>
<style type="text/css">
/*<![CDATA[*/
h2.sgc-1 {text-align: center;}
/*]]>*/
</style>
</head>


I think it's missing line like
<link rel="stylesheet" type="text/css" href="style.css"/>
Did I do something wrong?

Cheers

Last edited by droople; 08-21-2010 at 10:35 AM.
droople is offline   Reply With Quote
Old 08-21-2010, 11:46 AM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,212
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by droople View Post
Hi Valloric

I'm trying to define my own font in the epub by add code in style sheet.

After I generate the epub file, I found that all the xthml file not refer to the style sheet.

Here is the code of xthml.


<?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></title>
<link rel="stylesheet" href="../Styles/stylesheet.css" type="text/css" />

<style type="text/css">
/*<![CDATA[*/
h2.sgc-1 {text-align: center;}
/*]]>*/
</style>
</head>


I think it's missing line like
<link rel="stylesheet" type="text/css" href="style.css"/>
Did I do something wrong?

Cheers
I placed it yor code in RED, where it normally goes..

Do you even show a Stylesheet in the book browser list?
theducks is online now   Reply With Quote
Old 08-21-2010, 11:52 AM   #3
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
Yes I did. There is a style.css in the package, but no xhtml code refer to it
droople is offline   Reply With Quote
Old 08-21-2010, 12:02 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,212
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by droople View Post
Yes I did. There is a style.css in the package, but no xhtml code refer to it
The Guru will be by shortly
BTW If you "Delete" a file in the book browser, Silgil removes all references to it
(Rename a file, Sigil fixes the references)
theducks is online now   Reply With Quote
Old 08-21-2010, 12:14 PM   #5
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
nope,I didn't see anything changed in code when I played around the css file name.
droople is offline   Reply With Quote
Old 08-21-2010, 02:40 PM   #6
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by droople View Post
I'm trying to define my own font in the epub by add code in style sheet.

After I generate the epub file, I found that all the xthml file not refer to the style sheet.
Sigil will not automatically reference your CSS files in new XHTMl files. That would be presumptuous. But a right-click menu option in the Book Browser for easily linking to stylesheets is forthcoming.
Valloric is offline   Reply With Quote
Old 08-21-2010, 10:30 PM   #7
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
Hi Valloric

Do you mean I need to add the code into every xthml file manuall?

Cheers
droople is offline   Reply With Quote
Old 08-22-2010, 05:57 AM   #8
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by droople View Post
Do you mean I need to add the code into every xthml file manuall?
Yes.
Valloric is offline   Reply With Quote
Old 08-22-2010, 09:06 AM   #9
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
Quote:
Originally Posted by Valloric View Post
Yes.
ok
I got 46 chapters.....

Last edited by droople; 08-22-2010 at 09:22 AM.
droople is offline   Reply With Quote
Old 08-22-2010, 11:04 AM   #10
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,212
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by droople View Post
ok
I got 46 chapters.....
46 Chapters! Piece of Chocolate

Do it once.
TEST it!

then (Code View):
Search for the string(s) just before where you want it.

Replace (all HTML files), with those string(s) AND your new style link

( hint: you can select from your tested code page, right-click-copy and paste that into the "Replace" box.)
I prefer to do Replace instead of "Replace All. I do a "Save" about every 8 pages, Just in case
theducks is online now   Reply With Quote
Old 08-22-2010, 11:43 AM   #11
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
Quote:
Originally Posted by theducks View Post
46 Chapters! Piece of Chocolate

Do it once.
TEST it!

then (Code View):
Search for the string(s) just before where you want it.

Replace (all HTML files), with those string(s) AND your new style link

( hint: you can select from your tested code page, right-click-copy and paste that into the "Replace" box.)
I prefer to do Replace instead of "Replace All. I do a "Save" about every 8 pages, Just in case
I should read your post before I pasted all the code manually
droople is offline   Reply With Quote
Old 08-22-2010, 01:35 PM   #12
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,212
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by droople View Post
I should read your post before I pasted all the code manually
That way works .
I could not figure out how to include a "newline" without copying code.
I tried \n\r and that is exactly what it put (\n\r does work for a match)

regex =42, ducky=1
theducks is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobi TOC style vs ePub style? phearlez Kindle Formats 3 04-11-2010 06:35 AM
Sheet Music Now Available for Kindle Gideon News 19 03-29-2010 04:52 AM
Revised FAQ sheet coming Robertb Astak EZReader 0 02-09-2010 02:57 PM
A (Sheet) Music Reader RWood News 14 06-02-2008 04:24 AM


All times are GMT -4. The time now is 06:29 PM.


MobileRead.com is a privately owned, operated and funded community.