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 09-15-2011, 02:15 PM   #1
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 14,859
Karma: 13391746
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Probably a silly queston!

I have been trying to create Sigil files with no "sgc-" CSS entries.

The following style sheet entry always shows up but no where in the code can I find it used.

Code:
  <style type="text/css">
/*<![CDATA[*/

  p.sgc-1 {text-align: center}
  /*]]>*/
  </style>
Is it just an artifact or have I missed something?
crutledge is online now   Reply With Quote
Old 09-15-2011, 04:05 PM   #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,211
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by crutledge View Post
I have been trying to create Sigil files with no "sgc-" CSS entries.

The following style sheet entry always shows up but no where in the code can I find it used.

Code:
  <style type="text/css">
/*<![CDATA[*/

  p.sgc-1 {text-align: center}
  /*]]>*/
  </style>
Is it just an artifact or have I missed something?
Did you ever use the "Center Text" button (this particular entry)?

I am thinking that some also get created as a work-around for the WYSIWYG, Book Viewer. Work-arounds are common Just like I have to code around The ADE viewer that will not center a partial width HR
theducks is online now   Reply With Quote
 
Enthusiast
Old 09-15-2011, 04:09 PM   #3
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 206
Karma: 9102
Join Date: Sep 2010
Device: Cybook Opus
I often wish that Sigil wouldn't keep adding @page margins to documents, I have to admit. I'm not sure why it does.
Rand Brittain is offline   Reply With Quote
Old 09-15-2011, 05:02 PM   #4
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 14,859
Karma: 13391746
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by theducks View Post
Did you ever use the "Center Text" button (this particular entry)?

I am thinking that some also get created as a work-around for the WYSIWYG, Book Viewer. Work-arounds are common Just like I have to code around The ADE viewer that will not center a partial width HR
I never edit in book view. Always code view.

ADE is not the only RS that doesn't handle <hr /> very well. I went to various graphics as a work around. Tables aren't the only thing that graphics improves.
crutledge is online now   Reply With Quote
Old 09-15-2011, 05:29 PM   #5
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,211
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by crutledge View Post
I never edit in book view. Always code view.

ADE is not the only RS that doesn't handle <hr /> very well. I went to various graphics as a work around. Tables aren't the only thing that graphics improves.
Then it is probably a work around.
You might peek and find what uses that selector (suspect a non H# title)
Margins work for me on HR tricks, I avoid graphics that can be done with entities or styl sheet tricks.
No tables for me
theducks is online now   Reply With Quote
Old 09-15-2011, 05:44 PM   #6
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 14,859
Karma: 13391746
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by theducks View Post
Then it is probably a work around.
You might peek and find what uses that selector (suspect a non H# title)
I've done a global search and it never appears in the code.
crutledge is online now   Reply With Quote
Old 09-15-2011, 05:58 PM   #7
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,211
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by crutledge View Post
I've done a global search and it never appears in the code.
That I have not seen.

I find SGC codes scattered about (when used without my using a button) for headings, italics (<i> tags )
theducks is online now   Reply With Quote
Old 09-15-2011, 06:36 PM   #8
LaoTseu
Member
LaoTseu began at the beginning.
 
Posts: 20
Karma: 12
Join Date: Sep 2011
Device: Kindke
My experience is that if you remove the /* <!DATA ... entries, they are not put again by Sigil unless you use the WYSIWYG to format. I never use the WYSIWYG to apply styles once I've remove them so they stay gone forever.

It's strange that Sigil doesn't simply use <em> and <strong> for italic and bold instead of creating class.
LaoTseu is offline   Reply With Quote
Old 09-15-2011, 07:05 PM   #9
kmckinley
Member
kmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-books
 
Posts: 15
Karma: 954
Join Date: Aug 2011
Device: NOOK Simple Touch
Quote:
Originally Posted by crutledge View Post
I've done a global search and it never appears in the code.
Have you tried searching in code view for only "sgc-1"?
kmckinley is offline   Reply With Quote
Old 09-16-2011, 09:01 AM   #10
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,859
Karma: 2623257
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by Rand Brittain View Post
I often wish that Sigil wouldn't keep adding @page margins to documents, I have to admit. I'm not sure why it does.
I always set this myself in the stylesheet, so perhaps that is the reason I have not seen this behavior.
Toxaris is offline   Reply With Quote
Old 09-16-2011, 09:03 AM   #11
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,859
Karma: 2623257
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by LaoTseu View Post
It's strange that Sigil doesn't simply use <em> and <strong> for italic and bold instead of creating class.
Actually, I am glad. I feel that <em> and <strong> is very open for interpretation. The browser can decide that emphasis is bold or underline. It says nothing about the layout, only about the meaning of the words.
Toxaris is offline   Reply With Quote
Old 09-16-2011, 09:19 AM   #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,211
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Toxaris View Post
Actually, I am glad. I feel that <em> and <strong> is very open for interpretation. The browser can decide that emphasis is bold or underline. It says nothing about the layout, only about the meaning of the words.
Right.
I have yet to find a Strong TTF
or an EM TTF

I do have Bold TTF versions
I have Italic TTF versions

If a different type face was all I was after, I could use those tags.
I prefer to be more specific and use a stylesheet
theducks is online now   Reply With Quote
Old 09-16-2011, 10:04 AM   #13
pietvo
Reader
pietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notes
 
pietvo's Avatar
 
Posts: 514
Karma: 24612
Join Date: Aug 2009
Location: Cochabamba, BO
Device: Onyx Boox 60, iPod Touch
Quote:
Originally Posted by Toxaris View Post
Actually, I am glad. I feel that <em> and <strong> is very open for interpretation. The browser can decide that emphasis is bold or underline. It says nothing about the layout, only about the meaning of the words.
Well, you can put the desired interpretation in the CSS stylesheet.
pietvo is offline   Reply With Quote
Old 09-16-2011, 03:12 PM   #14
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,859
Karma: 2623257
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by pietvo View Post
Well, you can put the desired interpretation in the CSS stylesheet.
Of course I can, but that is not the point. I really think that items like <em>, <strong> are misused. They should be used for structure, not layout.
Toxaris is offline   Reply With Quote
Old 09-16-2011, 03:31 PM   #15
pietvo
Reader
pietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notes
 
pietvo's Avatar
 
Posts: 514
Karma: 24612
Join Date: Aug 2009
Location: Cochabamba, BO
Device: Onyx Boox 60, iPod Touch
Quote:
Originally Posted by Toxaris View Post
Of course I can, but that is not the point. I really think that items like <em>, <strong> are misused. They should be used for structure, not layout.
Right, and CSS should be used for layout. So what's the problem? The structure here is "different kinds of emphasis".
pietvo is offline   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
Unutterably Silly jbcohen Lounge 4 11-27-2010 12:04 AM
The Silly Things We Do kazbates Lounge 60 03-07-2010 04:49 AM
May be a silly question...but... mdibella Sony Reader 5 12-11-2009 11:01 AM
Unutterably Silly Silly duck!! RickyMaveety Lounge 7 07-06-2009 02:40 PM
What they really wanted to say....(utterly silly silly silly) GeoffC Lounge 27 05-25-2008 02:17 PM


All times are GMT -4. The time now is 03:08 PM.


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