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 05-15-2012, 03:47 PM   #1
GraciousMe
Zealot
GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
Question Getting rid of MsoNormal

Hello

I am working on a book in Sigil. Converted it from Word to html (Save as Web page, filtered). Still I have tons of <p class="MsoNormal"> tags lying around.

Should I leave them or remove them?

And can I remove them next time even before importing to Sigil?
GraciousMe is offline   Reply With Quote
Old 05-15-2012, 03:52 PM   #2
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: 3,006
Karma: 3594657
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
You should definitively clean it up. Search the forum, there are several topics about this.
Toxaris is offline   Reply With Quote
 
Enthusiast
Old 05-15-2012, 04:12 PM   #3
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: 37,682
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Look in the CSS and see what MsoNormal is. Clean that up. Then you'll know if you can remove it.
JSWolf is offline   Reply With Quote
Old 05-15-2012, 05:08 PM   #4
mncowboy
Wanderer
mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.
 
mncowboy's Avatar
 
Posts: 104
Karma: 472218
Join Date: Jan 2011
Device: Kindle 3, PaperWhite 2
MsoNormal is Word's normal or standard paragraph. You can leave them there if you want, but I like to clean them up to work with my stylesheet. You can do a simple search and replace.
Search for <p class="MsoNormal"> and replace it with <p>.
Bob
mncowboy is offline   Reply With Quote
Old 05-15-2012, 05:48 PM   #5
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: 37,682
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by mncowboy View Post
MsoNormal is Word's normal or standard paragraph. You can leave them there if you want, but I like to clean them up to work with my stylesheet. You can do a simple search and replace.
Search for <p class="MsoNormal"> and replace it with <p>.
Bob
You also then have to set the p style in the CSS to be what you want.
JSWolf is offline   Reply With Quote
Old 05-16-2012, 04:08 AM   #6
GraciousMe
Zealot
GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by JSWolf View Post
Look in the CSS and see what MsoNormal is. Clean that up. Then you'll know if you can remove it.
There is no MsoNormal in the CSS. It just got into the code itself...

Thanks folks. I will try your suggestions.
GraciousMe is offline   Reply With Quote
Old 05-16-2012, 07:35 AM   #7
mrmikel
Book Twiddler
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
MsoNormal should be somewhere other than in the text, if it referred to in the text. Do a search for it and see if it at the top of every chapter, instead of the stylesheet.
mrmikel is offline   Reply With Quote
Old 05-16-2012, 10:11 AM   #8
mncowboy
Wanderer
mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.
 
mncowboy's Avatar
 
Posts: 104
Karma: 472218
Join Date: Jan 2011
Device: Kindle 3, PaperWhite 2
This is one issue with saving a Word doc as a filtered web page. It styles everything, and includes all styles in the document, whether they are used or not.
Word doesn't create a css file, it puts the css styles in the head of the document.
In Word I make sure that the styles I want in the final book are set up and used.
When I import the html file into Sigil, the first thing I do is delete everything within the style tags in the head. Then replace <p class="MsoNormal"> with <p>. The style sheet used in Sigil should match the styles in the Word doc. Now that stylesheet will control the styles and text in the file you imported.
Bob
mncowboy is offline   Reply With Quote
Old 05-16-2012, 10:36 AM   #9
Crossroad Press
Author, Pulblisher
Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.Crossroad Press is faster than slow light.
 
Crossroad Press's Avatar
 
Posts: 28
Karma: 29654
Join Date: Mar 2012
Location: Hertford, NC
Device: Kindle
Personally I'd either set the styles up in Word to be the way you want them and leave it, or not do HTML pages out of Word...plenty of WYSIWYG HTML editors out there that will do just fine and never add in the offending code to start with.
Crossroad Press is offline   Reply With Quote
Old 05-16-2012, 11:12 AM   #10
GraciousMe
Zealot
GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by mncowboy View Post
Word doesn't create a css file, it puts the css styles in the head of the document.
And, it seems, every time I divide off a separate chapter from the whole, these styles multiply and get into EVERY chapter. :-(

Quote:
Originally Posted by mncowboy View Post
When I import the html file into Sigil, the first thing I do is delete everything within the style tags in the head.
I guess this is the head of the ENTIRE document (?).
GraciousMe is offline   Reply With Quote
Old 05-16-2012, 11:14 AM   #11
GraciousMe
Zealot
GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by Crossroad Press View Post
Personally I'd either set the styles up in Word to be the way you want them and leave it, or not do HTML pages out of Word...plenty of WYSIWYG HTML editors out there that will do just fine and never add in the offending code to start with.

But if you don´t do HTML from Word, what do you start out with then? In what form is your manuscript?

Or you mean one can just copy a word file into a HTML editor? Is that possible?
GraciousMe is offline   Reply With Quote
Old 05-16-2012, 11:38 AM   #12
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 544
Karma: 64420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by GraciousMe View Post
But if you don´t do HTML from Word, what do you start out with then? In what form is your manuscript?

Or you mean one can just copy a word file into a HTML editor? Is that possible?
When I want to go from a Word doc to an epub as directly as possible, I open the Word doc with LibreOffice, and export an epub using either Luke Calcinai's writer2epub, or the Writer2xhtml extensions. The results usually need some further tweaking in Sigil, however.
st_albert is offline   Reply With Quote
Old 05-16-2012, 01:50 PM   #13
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: 3,006
Karma: 3594657
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
You could also try my 'clean' HTML macro for Word. That produces clean code and you can use Styles in Word. You still need to create the stylesheet yourself though. I thought about adding a stylesheet exporter, but since I don't need it and I created the macro for myself...
Toxaris is offline   Reply With Quote
Old 05-17-2012, 03:02 AM   #14
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: 2,504
Karma: 13830371
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
I can vouch for Toxie's "clean html" macro, works very well for those of you struggling with cleaning Word-->exported to filtered html.

Hitch
Hitch is offline   Reply With Quote
Old 05-17-2012, 10:36 AM   #15
mncowboy
Wanderer
mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.
 
mncowboy's Avatar
 
Posts: 104
Karma: 472218
Join Date: Jan 2011
Device: Kindle 3, PaperWhite 2
Quote:
Originally Posted by GraciousMe View Post
And, it seems, every time I divide off a separate chapter from the whole, these styles multiply and get into EVERY chapter. :-(



I guess this is the head of the ENTIRE document (?).
Do this before you split the document into chapters. Your file will look like:

Code:
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=unicode">
<meta name=Generator content="Microsoft Word 12 (filtered)">
<style>
<!--
 /* Font Definitions */
. . . A few hundred lines of styles . . .
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
Delete all the lines between the style tags - including the style tags.
Bob
mncowboy 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
Getting rid of a blank page iroquois Sigil 4 04-01-2012 12:33 AM
Is there a way to get rid of this annoyance? TonytheBookworm Amazon Kindle 7 12-26-2010 08:59 PM
get rid of all tags - how ? cybmole Calibre 4 09-29-2010 08:50 AM
hi, i am currently getting rid of the russellmz00 Introduce Yourself 6 05-25-2010 01:42 PM
Just to get rid of the message pshrynk Introduce Yourself 10 04-17-2009 01:47 AM


All times are GMT -4. The time now is 04:48 AM.


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