07-29-2018, 03:04 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2018
Device: Ipad Air, E-pub
|
Underlined Text not changing to italics
Hello everyone, so I am rather new to this, especially working with calibre. Currently, I am editing an ebook and am trying to change underlined text to italics, for things such as internal dialogue. However, every time I have tried adding italics in the text, or adding the css code on the stylesheets, it only removes the underline, but never adds italics. Any help would be greatly appreciated.
Below is what the code and text looks like originally, and then when I change it. Thanks again. CSS Stylesheet .calibre7 { display: block } .scenebreak { display: block; page-break-before: avoid; text-align: center; text-indent: 0%; padding: 0; margin: 1em 0 } .text_ { text-decoration: underline } .whitespace { display: block; text-align: center; padding: 0; margin: 3.5em 0 0 } Text in book, ...child listened to their instructions.</span></p> <p class="block_1"><span class="text_">Oh please,</span><span class="calibre2"> felt himself mutter in a half-conscious prayer. He was not a religious man, but this was his final opportunity. He had failed so many times before . . . </span></p> ...child listened to their instructions. Oh please, felt himself mutter in a half-conscious prayer. He was not a religious man, but this was his final opportunity. He had failed so many times before . . . Edited CSS Stylesheet .calibre7 { display: block } .scenebreak { display: block; page-break-before: avoid; text-align: center; text-indent: 0%; padding: 0; margin: 1em 0 } .ital { font-style: italic } .whitespace { display: block; text-align: center; padding: 0; margin: 3.5em 0 0 } Text after edit child listened to their instructions.</span></p> <p class="block_1"><span class="text_">Oh please,</span><span class="calibre2"> felt himself mutter in a half-conscious prayer. He was not a religious man, but this was his final opportunity. He had failed so many times before . . . </span></p> ...child listened to their instructions. Oh please, felt himself mutter in a half-conscious prayer. He was not a religious man, but this was his final opportunity. He had failed so many times before . . . Thanks again for any help. |
07-29-2018, 03:17 AM | #2 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
If you change the name of the class in CSS from "text_" to "ital" you also need to change it in the HTML. Or you could just leave the class name the same in both places.
|
07-29-2018, 03:20 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2018
Device: Ipad Air, E-pub
|
Thanks Jhowell! I tried doing a find all and replace, and it seemed to work once I transferred the Epub to Ibooks, after I changed the html as well as the css. Apparently, the css does not automatically change the html as well.
|
07-29-2018, 09:46 AM | #4 | |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
The only 'rename' functionalities are imposed from the file Browse and those are on a context menu. They adjust all the file references throughout |
|
07-29-2018, 10:53 AM | #5 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
I would have just changed text_ in the css file from text-decoration: underline to font-style: italic. Then there would be no need to do a find and replace of the class in the HTML files.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
All text underlined in epub - help! | Watashi | ePub | 12 | 09-27-2014 07:55 PM |
Blue underlined text | jimb949 | Sigil | 6 | 07-01-2014 04:00 PM |
Text in converted epub is bold, underlined - How to make regular? | frank14612 | Conversion | 5 | 02-22-2014 09:45 AM |
RTF Conversion (Underlined/Italics chapter headings) | Gwen Morse | Conversion | 2 | 08-27-2013 01:52 PM |
Italics in Epub text | Jamestoo | Sigil | 7 | 11-09-2011 03:16 AM |