03-21-2010, 04:16 AM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
So many styles!
I had a big text PDF book. I used Acrobat to convert it to html. I corrected the html file with OpenOffice, structured it carefully with styles (title 1, title2, title3). I then converted this ODT file to EPUB with calibre (yes, here we are).
This book has about 20 chapters; all are tagged with H2 headings. I wanted to change slightly the look of these H2 (add small-caps) and so I opened the css stylesheet with Sigil. I found a bewildering number of styles to deal with my H2 heading tags. It seems as each individual H2 tag has its own individual style: P-P22, P-P44, whatever. So my intended correction could not take place. Could somebody comment on this behaviour? Why so many styles? Last edited by roger64; 03-21-2010 at 04:20 AM. |
03-21-2010, 05:04 AM | #2 |
creator of calibre
Posts: 44,415
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Those are the styles defined by openoffice for each heading element. I'm sure there's a way to get it to reuse only one style, but not being an openoffice user, I can't help with that.
|
Advert | |
|
03-21-2010, 05:41 AM | #3 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
OK. Thanks for your reply.
I will try to learn with an OpenOffice forum how to "concentrate" or "unify" these little ones. |
03-21-2010, 08:05 AM | #4 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
I got the explanation from one OpenOffice expert:
"hand" modification of the format of a paragraph triggers the creation of a so-called "automatic" style, whose description is kept in content.xml, while so-called "normal" styles descriptions are kept in styles.xml. These normal styles are created by using F11 stylist window and are the normal way to proceed for a big text. So, if I hand modify twenty paragraphs, it will create twenty similar styles (only differing with identification number). The same applies for hand formatting of characters. So, I am obviously the guilty one and the difference between automatic and normal styles explains the sudden appearance of so many similar styles. He said it in French. La modification "à la main" du formatage d'un paragraphe provoque la création d'un style automatique dont la description est stockée dans content.xml alors que les styles "normaux" sont stockés dans styles.xml. Même si toutes les modifications sont les mêmes, il y aura un style automatique pour chaque paragraphe modifié. Même chose pour les modifications de mise en forme de caractère. Last edited by roger64; 03-21-2010 at 08:27 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Menu Styles | shinken | Sigil | 1 | 08-27-2010 06:07 AM |
Copying Styles | Johnmuzy | Sigil | 2 | 06-17-2010 12:32 PM |
<hr /> styles | trstill | Introduce Yourself | 1 | 05-30-2010 01:57 PM |
styles formatting | marcostt | Sigil | 3 | 08-07-2009 11:27 AM |
Wiki and styles | tribble | Feedback | 1 | 10-20-2006 05:46 AM |