07-30-2010, 09:40 PM | #1 |
Member
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???
|
07-31-2010, 05:25 AM | #2 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
You need to change the CSS rules.
|
Advert | |
|
07-31-2010, 06:46 AM | #3 |
Enthusiast
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. |
08-06-2010, 05:42 PM | #4 |
Member
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....
|
|
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 |