11-22-2011, 03:32 PM | #16 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I don't know, it is still iBooks...
|
11-24-2011, 01:03 AM | #17 |
Member
Posts: 19
Karma: 10
Join Date: Nov 2011
Device: iphone
|
well, i had a temporary sol. i converted all p tags to h5 ... n defined style for h5 in css... but is it like <p> tags doesnt behave properly with alignment in xhtml???
|
Advert | |
|
11-24-2011, 02:15 AM | #18 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Alternatively, did you have a main body setting of align: left? Or full-justification? What happens (forgive me if someone asked this) if you turn OFF full-justification for the device itself (the default way that the device is shipped) in Settings? Did you try !important after your css declaration? You have something wonky going on, because iBooks is shipped with a default setting of full-justification turned on at the device settings level. You actually have to turn it OFF in settings. To troubleshoot, first you have to find out what the device itself is set to as its default; then check your body setting tags; then check the paragraphs that worked the way you wanted (and if they have other elements embedded that contained the text), and those that didn't. I can't really tell if this is your first ePUB, but if it is, choosing iBooks as your first hurdle of choice isn't the best idea, because you have a lot of things to do to force it to look right that aren't "normal" CSS, like !important tags and wrapping empty spans around everything in order to get the text-alignment that you want, as merely two examples. Let us know if any of the above pertain... HTH, Hitch |
|
11-24-2011, 06:12 AM | #19 |
Member
Posts: 19
Karma: 10
Join Date: Nov 2011
Device: iphone
|
Is turning on and off the full justification is an issue??? because if your ibook accepts the alignment weather you turn on justification or off it the text will be justified well i switched off mine in order to see original text alignments. secondly, i am using css , so the entire <p> tag in the book have same class and style and there is no text alignment defined for body , moreover no internal tagging is being done with chapters accepting the justification and there should be no linking error too as bcoz if this error is out there we wont be able to see alignments in sigil or ADE . yes it is true m a fresher and there is lot i dont know ..
But you seniors are out there to guide me.. |
11-24-2011, 07:51 AM | #20 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
How does it look in ADE? I bet it looks good. Like Hitch said, iBooks is a nightmare and needs several work-arounds to do what it is supposed to do.
|
Advert | |
|
11-24-2011, 04:04 PM | #21 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I'm not quite sure I understand the run-on sentence, but, in order:
If you could clarify, I'm sure we can pretty easily figure out what the issue is--but it's Apple, so it might just be their unique ability to make everyone miserable. Hitch |
|
11-24-2011, 08:14 PM | #22 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In the iOS settings app, you can turn on full justification for iBooks.
|
11-26-2011, 06:38 AM | #23 |
Member
Posts: 19
Karma: 10
Join Date: Nov 2011
Device: iphone
|
1.Linking errors means error in <link> tag m using for attaching the css.
2.Internal tagging means no second element in the tags. A class of the css used in all the p tags .sgc5 { display: block; margin-bottom: 1em; margin-left: 0; margin-right: 0; margin-top: 1em; text-align:justify } A section of Code view of chapter Accepting the alignment: <body style=""> <h1 class="sgc1" id="heading_id_1">CHAPTER 6</h1> <p class="sgc2">Understanding online behaviour within a South African user context:</p> <p class="sgc5">Over the last 16 years, there has been exponential growth in Internet access in Africa. In 1993, only four countries in Africa had access to the Internet. </p> <p class="sgc5">In 2008, the Internet user base in South Africa has seen its highest rate of growth since 2001, increasing by 12.5 percent to 4,6 million users. </p> A section of Code view of chapter Not Accepting the alignment: <body style=""> <h1 class="sgc1" id="heading_id_1">CHAPTER 5</h1> <p class="sgc2">The increasing importance of privacy online and the role it will play in the evolution of the Internet:</p> <p class="sgc5">Online privacy and the Semantic Web</p> <p class="sgc5">The concept of what constitutes privacy is complex. The term privacy has had broad ranging definitions which have been rooted in legal, political, philosophical, sociological and anthropological discussions. </p> |
11-26-2011, 06:41 AM | #24 |
Member
Posts: 19
Karma: 10
Join Date: Nov 2011
Device: iphone
|
1.Linking errors means error in <link> tag m using for attaching the css.
2.Internal tagging means no second element in the tags. A class of the css used in all the p tags .sgc5 { display: block; margin-bottom: 1em; margin-left: 0; margin-right: 0; margin-top: 1em; text-align:justify } A section of Code view of chapter Accepting the alignment: <body style=""> <h1 class="sgc1" id="heading_id_1">CHAPTER 6</h1> <p class="sgc2">Understanding online behaviour within a South African user context:</p> <p class="sgc5">Over the last 16 years, there has been exponential growth in Internet access in Africa. In 1993, only four countries in Africa had access to the Internet. </p> <p class="sgc5">In 2008, the Internet user base in South Africa has seen its highest rate of growth since 2001, increasing by 12.5 percent to 4,6 million users. </p> A section of Code view of chapter Not Accepting the alignment: <body style=""> <h1 class="sgc1" id="heading_id_1">CHAPTER 5</h1> <p class="sgc2">The increasing importance of privacy online and the role it will play in the evolution of the Internet:</p> <p class="sgc5">Online privacy and the Semantic Web</p> <p class="sgc5">The concept of what constitutes privacy is complex. The term privacy has had broad ranging definitions which have been rooted in legal, political, philosophical, sociological and anthropological discussions. </p> and yes everything (alignment) is fine in ADE. |
11-26-2011, 01:21 PM | #25 |
Jr. - Junior Member
Posts: 586
Karma: 2000358
Join Date: Aug 2010
Location: Alabama
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
|
I think each chapter can have its own sgc definitions defined in each individual file (put there by Sigil). So you need to look at each files definition for differences. Look for the brown code just before the <body> statement.
You old hands feel free to set me straight. Regards - John |
11-26-2011, 01:40 PM | #26 | |
Well trained by Cats
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Note using a 'All HTML files' Replace that includes any SGC codes is a terrible idea. The same codes do NOT always mean the same from file to file. |
|
11-26-2011, 03:44 PM | #27 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
That is why it is always a bad idea to use sgc names in an external stylesheet. Always change of naming conflicts. I always name my classes so they make sense.
|
11-26-2011, 04:38 PM | #28 |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
In a word: yup. Those SGC codes are utterly worthless for troubleshooting--they could mean ANYTHING from one "chapter" (file) to the next. That's where your trouble lies.
To help further, you'd have to show us the internal SS at the top of each chapter, in which the styles are actually defined. THEN it's likely we'd spot the culprit(s). Hitch |
11-28-2011, 01:37 AM | #29 |
Member
Posts: 19
Karma: 10
Join Date: Nov 2011
Device: iphone
|
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. |
11-28-2011, 02:20 AM | #30 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
you need to show us the sgc definitions. they will be just below the </head> section
|
|
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 |