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 07-30-2010, 09:40 PM   #1
TheCrazier
Member
TheCrazier began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2010
Device: Nook
Text size

Im trying to use sigil to change an ebook which has alternating sizes in the text...it has a paragraph in size 12 and then another in 13.5, and 12 again...its taking to long to copy, paste to word and change it there and copy paste back.... i cant see any modifier in the program itself? any fast way to do this???
TheCrazier is offline   Reply With Quote
Old 07-31-2010, 05:25 AM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
You need to change the CSS rules.
Valloric is offline   Reply With Quote
Advert
Old 07-31-2010, 06:46 AM   #3
Lexicon
Enthusiast
Lexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enough
 
Posts: 44
Karma: 542
Join Date: Dec 2007
Device: Sony PRS-505
You could try a search and replace on all HTML files (from within code view). Look at the paragraphs that alternate in size, the underlying html code probably looks a little like this:

<p class="sgc-14">Blah Blah</p>
<p class="sgc-15">Blah Blah</p>
<p class="sgc-14">Blah Blah</p>
<p class="sgc-15">Blah Blah</p>

Now if you do a search for <p class="sgc-15">, telling Sigil to replace every occurence in every file with <p class="sgc-14"> you will end up with something like this:

<p class="sgc-14">Blah Blah</p>
<p class="sgc-14">Blah Blah</p>
<p class="sgc-14">Blah Blah</p>
<p class="sgc-14">Blah Blah</p>

Which should result in the alternating paragraphs now having the same size. In some files you might see something like:

<p class="sgc-14"><span class="sgc-63">Blah Blah</span></p>
<p class="sgc-15"><span class="sgc-66">Blah Blah</span></p>
<p class="sgc-14"><span class="sgc-63">Blah Blah</span></p>
<p class="sgc-15"><span class="sgc-66">Blah Blah</span></p>

In that case you'd expand the search and replace:

Search for: <p class="sgc-15"><span class="sgc-66">
Replace with: <p class="sgc-14"><span class="sgc-63">

That'll probably be enough to achieve what you need to do. Make sure you have a backup of the file before you make any changes like this. It's easy to go too far when making these sorts of global substitutions and you can end up erasing some useful semantic information.
Lexicon is offline   Reply With Quote
Old 08-06-2010, 05:42 PM   #4
TheCrazier
Member
TheCrazier began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2010
Device: Nook
thanks, makes sense the first time around i spent an hour like manually copy/paste to word and changed it the and copy/paste back....it looked like it worked but nop....
TheCrazier 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
What text size do you use? shmish Sony Reader 8 02-05-2010 12:39 AM
PRS-300 text size pea Sony Reader 7 12-06-2009 11:33 AM
PRS-600 text size poshm Sony Reader 7 11-02-2009 01:35 PM
Changing text size GBC Calibre 0 05-23-2009 07:10 PM
Default Text Size jlbfoot Sony Reader 19 12-29-2008 03:41 PM


All times are GMT -4. The time now is 04:49 PM.


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