![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jan 2011
Device: none
|
Something never seen before
Recently I was using Sigil to create a magazine, and found this created by Sigil itself:
body.sgc-1 {word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;} Can anyone tell me what they mean: word-wrap, webkit-nbsp-mode, and the rest? Thank you very much. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I don't think that Sigil put that in there. It must already have been so in your source file and Sigil just made a inline stylesheet for it.
That being said, the webkit stuff is to make iBooks do what you want. The word-wrap will hyphenate words I think. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Jan 2011
Device: none
|
Quote:
I see. Then do you know what other commands do? |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Be aware that the CSS is part of CSS3. That means that it is not used in ePUB2, but in ePUB3. Sigil is an ePUB2 editor. There are only a few ePUB3 readers and programs, iBooks being one of them.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Jan 2011
Device: Kobo 1
|
StevenLin
I too have had body.sgc-1 {word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;} added to my body tag on numerous occasions. As I only use Sigil, it didn't come from any where else. And the epub was under construction. I just removed it. But it does happen. Peace, John P. |
![]() |
![]() |
![]() |
#7 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,726
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
This was added by Sigil when splitting pages (when using 0.5.3 or earlier). The 0.5.905+ betas should no longer do this. It is part of the cruft added by Webkit that we now strip out automatically.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Hmm, I have split files many times before with older releases, but never seen this behavior. Is it a Mac thing?
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,507
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I used to see it occasionally, too (Windows, Linux). I just knew to check for it after a round of splitting/merging. I seem to recall seeing it happen mainly when merging files, but I could be wrong.
|
![]() |
![]() |
![]() |
#10 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,726
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
It is easy to replicate. Just load up Sigil 0.5.3 then in Book View do a split. Depending on whether Tidy is turned off, the "previous" page of the split will have this cruft either directly applied to the body tag or as an inline body style. The page created "after" the split point does not have it in.
And I knew about it because I specifically fixed it for 0.5.90x ![]() |
![]() |
![]() |
![]() |
#11 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jan 2011
Device: none
|
This thing happens once in a while, and it seems to happen after I use the "create new chapter" button.
i am fine with these commands, as long as they don't screw up my document. And thanks to all of you for replying. |
![]() |
![]() |