Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-28-2011, 02:37 AM   #31
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Shaina:

Where are the style definitions, for those two chapters, in which sgc-5 is defined? THAT is what we need to see.

Hitch

Last edited by Hitch; 11-28-2011 at 02:38 AM. Reason: ET fix typo.
Hitch is offline   Reply With Quote
Old 11-28-2011, 03:19 AM   #32
shaina
Member
shaina began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Nov 2011
Device: iphone
All of my sgc definitions are defined in css, there are no sgc definitions or styles defined in any of the chapters and if you want to look at the css its below:

.sgc {
display: block;
font-size: 2em;
font-weight: bold;
line-height: 1.2;
margin-bottom: 0.67em;
margin-left: 0;
margin-right: 0;
margin-top: 0.67em;
position: relative;
text-align: center;
top: 200px
}
.sgc1 {
display: block;
font-size: 2em;
font-weight: bold;
line-height: 1.2;
margin-bottom: 0.67em;
margin-left: 0;
margin-right: 0;
margin-top: 0.67em;
text-align: center
}
.sgc10 {
border: none;
display: block;
margin-bottom: 0;
margin-left: 40px;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0
}
.sgc11 {
display: block;
font-style: italic;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: center
}
.sgc12 {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: left
}
.sgc13 {
font-weight: bolder
}
.sgc14 {
display: inline;
list-style-image: none;
list-style-position: outside;
list-style-type: none
}
.sgc15 {
display: block;
font-style: italic;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em
}
.sgc16 {
display: block;
font-style: italic;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: left
}
.sgc17 {
display: block;
font-weight: bold;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: left
}
.sgc18 {
font-style: normal;
font-weight: bold
}
.sgc19 {
display: block;
font-style: italic;
font-weight: bold;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: left
}
.sgc2 {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: center
}
.sgc20 {
font-style: normal
}
.sgc3 {
display: block;
font-size: 1.29167em;
line-height: 1.2;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: center;
}
.sgc4 {
display: block;
text-align: center
}
.sgc5 {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align:justify
}

.sgc6 {
display: block;
font-weight: bold;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: justify
}
.sgc7 {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
position: relative;
text-align: center;
top: 250px
}
.sgc8 {
display: table-cell;
font-weight: bold;
padding-bottom: 1px;
padding-left: 1px;
padding-right: 1px;
padding-top: 1px;
text-align: inherit;
vertical-align: inherit
}
.sgc9 {
display: table-cell;
font-style: italic;
padding-bottom: 1px;
padding-left: 1px;
padding-right: 1px;
padding-top: 1px;
text-align: inherit;
vertical-align: inherit
}
.sgc21 {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: left
}
shaina is offline   Reply With Quote
Advert
Old 11-28-2011, 11:27 AM   #33
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Did you move these CSS entries from the HTML files to the CSS file? Normally SGC is assigned by Sigil and is in the HTML file. It is assigned independently from its meaning in another file in the eBook. Moving them to the CSS could possibly change the meaning. For example sgc21 in the first HTML file might be defined differently that it was in the 6th file. It may be that forcing all HTML files to use the same definition by removing them from the head area of the HTML file is causing a paragraph to use a different style in one html file than it is in another. This is just a guess as I don't know how the CSS was created.

Dale
DaleDe is offline   Reply With Quote
Old 11-28-2011, 01:27 PM   #34
theducks
Well trained by Cats
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: 29,782
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I highly recommend that you DON'T use SGC coding in your stylesheet.
It will cause confusion
AND
If you happen to do something in Sigil that creates a Local version of the same code ,
it will take precedence.

Believe in Murphy..
Avoid doing things in ways that help errors happen
Pick your own names for selectors or at least modify them in ways that could never be generated by Sigil (or Calibre), just to avoid confusion.
theducks is offline   Reply With Quote
Old 11-30-2011, 12:19 AM   #35
shaina
Member
shaina began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Nov 2011
Device: iphone
i tried it using different css too... but was of no use ... is it like <p> and <div> tag behave differently in ibooks or doesnt support alignment in lower versions of the xhtml or html ??
shaina is offline   Reply With Quote
Advert
Old 11-30-2011, 01:09 AM   #36
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
As has been discussed here before, certain alignments in certain elements do not behave properly in iBooks unless they (improperly) contain other empty elements, e.g., spans; however, you have something else entirely occurring, and I suspect it's the "sgc" styling codes.

If I were in your shoes, I'd go through and regex every instance of, say, "sgc-5" which you intended to be a p code, and then style sgc-5 with a meaningful name in your CSS sheet as you want it to be. If you are trying to FORCE the reader to use a fully-justified text (which is, BTW, considered by many to be bad form, meaning, people don't like to have full-justification "forced" on them, FWIW), then try using empty spans inside the paragraph tags if your CSS doesn't work alone for the p formatting.

I would not rely upon ANY div formatting for chapter- or book-wide formatting overrides. I'd get rid of all those "sgc" CSS classes and name everything, then regex and replace everything with their proper class names...otherwise, you're just going to be going around in circles forever, and no one here can help you--at least I can't--because it APPEARS as though all the CSS was copy-and-pasted from various file headers inside the xhtml--which means you could have all sorts of cascading messes going on in there.

That's my best advice. Clean up the whole epub by changing your CSS classes, one at a time, and giving them proper names. Regex the ePUB itself and replace the sgc classes with the new names, and test it, one styling change at a time. It's tedious, but it's the only way to really troubleshoot a problem this disorganized. If you change 5 things at once, you don't have a control element to know what the hell you did that worked.

HTH.
Hitch
Hitch is offline   Reply With Quote
Old 11-30-2011, 02:38 PM   #37
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by shaina View Post
Chapter not accepting the alignment
<?xml version="1.0"?>
<!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>WEB3.0</title>
<meta content="true" name="HandheldFriendly" />
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
<style type="text/css">



/*<![CDATA[*/

@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
/*]]>*/
</style>
</head>
Chapter Accepting alignment
<?xml version="1.0"?>
<!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>WEB3.0</title>
<meta content="true" name="HandheldFriendly" />
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
<style type="text/css">

/*<![CDATA[*/

@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
/*]]>*/
</style>
</head>

i dont know about the problem with sgc class but i tried it other ways too for experiments,
1. Defining p class in css.
2.by defining body class in css.
but of no use.
You will want to go into each XML file and remove...

Code:
<style type="text/css">



  /*<![CDATA[*/

                @page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
  /*]]>*/
  </style>
all of that garbage. You don't need and the read doesn't want a 5pt top/bottom margin forced on them.
JSWolf is offline   Reply With Quote
Old 11-30-2011, 02:41 PM   #38
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by shaina View Post
i tried it using different css too... but was of no use ... is it like <p> and <div> tag behave differently in ibooks or doesnt support alignment in lower versions of the xhtml or html ??
iBooks has an option in the iOS Options app for changing the alignment. You get either full justified or left justified.
JSWolf is offline   Reply With Quote
Old 11-30-2011, 03:49 PM   #39
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Just for an example of how sgc-# classes get confusing....

In chapter-1.html, first style applied is bold, therefore sgc-1 is bold, second style applied is italic, therefore sgc-2 is italic.

In chapter-2.html, first style applied is italic, therefore sgc-1 is italic, second style applied is underline, therefore syle sgc-2 is underline.

Now if you were to try to combine these into a single stylesheet - what order and styles would each of the sgc-#'s be, as you copy sgc-1&2 from file chapter-1, then as you think you would check chapter-2, sgc-1&2 are already defined so you skip copying them, BUT the definitions are different so you get a result that isn't what you wanted.

As many have said, rename the styles in the stylesheet.css to meaningful names then change the classes definitions in the chapter files by S&R, you'll then have an easier time seeing where things are wrong.
Perkin is offline   Reply With Quote
Old 12-01-2011, 01:12 AM   #40
shaina
Member
shaina began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Nov 2011
Device: iphone
thanks to all of you for the valuable advice .... but nothing seems working like i said before i also tried developing book with another css which i m pasting below but the bug continues i m not able to get it why only <p> tags have the problem with style rest all tags seems working fine.
css:
.cover{text-align:center;
font-weight:bold;
font-size:2em;

}
p{ background-color: #FFF;
display: block;
font-size: 1em;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
text-align:justify;}
h1{ text-align:center;
font-weight:bold;
font-size:1.5em;
}
h2{ text-align:left;
display:block;
font-weight:bold;
font-size:1em;
}
li{ text-align:justify;
display:block;
font-size:1em;
}
.sub{ text-align:center;
display:block;
}
.sub1{
text-align:center;
font-style:italic;}
.foot{
text-align:left;}
shaina is offline   Reply With Quote
Old 12-01-2011, 02:40 AM   #41
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Please post at least part of the ePUB instead of just some CSS code. It will help. You might try using <span></span> around the text. So: <p><span>your paragraph.</span></p>. I heard iBooks is stupid enough to actually do something then. Personally when I come across this I would remove the <span> since it does nothing....
Toxaris is offline   Reply With Quote
Old 12-02-2011, 10:07 PM   #42
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Shaina, did you check the options in the options app to see if iBooks is set to full justify?
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vertical text alignment OCR bookmeal Workshop 7 11-14-2011 03:28 PM
Hello/Image and text alignment Derek R Introduce Yourself 3 06-26-2011 10:47 AM
PRS-650 Text and alignment issues henders254 Sony Reader 0 05-14-2011 08:11 PM
Text Alignment Problem fan of kovid Conversion 15 03-20-2011 05:39 PM
Text alignment James_Wilde iRiver Story 0 10-25-2010 04:22 AM


All times are GMT -4. The time now is 05:22 PM.


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