![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 485
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
|
Can't remove formatting
For some time now (IIRC since I upgraded to 8.49 from .46 (or upgraded from .49?)) comments area in 'Edit Metadata' has not behaved like it used to. My font settings are Arial, 9pt, used to be that when I clicked 'Remove Formatting', it resulted in Arial font. Now when I click it, I see Times (maybe, something with serifs), then when I just switch to html view and back all is Arial again. Often I end up manually deleting part of the html to get the desired result (mostly h5); <p> shows pt 9 Arial as per my settings.
Some examples: <div><p rip-style-borderwidth-backup="" rip-style-borderstyle-backup="" rip-style-bordercolor-backup=""> - won't go away, shouldn't 'Remove Formatting' leave just <p> ? <div style="font-family: Arial, sans-serif; font-size: 13px; "><h5> - 'Remove Formatting' removed everything but <h5> Often when I use h5, text is not smaller than rest, just bold: <div><h5><font class="Apple-style-span" face="Arial, sans-serif" size="2">The Weird</font></h5> <div><p class="description" style="font-family: Arial, sans-serif; font-size: 13px; "></p><h5>The etc... I copypasted same text to the next book: <div><p></p><h5>The etc... I understand that when I copy text from the webpage all kinds of formatting may tag along, but 'Remove Formatting' button should get rid of everything. Hopefully somebody can understand all this and maybe even explain it. P.S. I'm running now 8.56, thought that maybe upgrade will fix things, but no. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The remove formatting action is not implemented at the level of calibre code, and as such I have relatively little control over it. In the next release, I will have it automatically do the switch to html and switch back roundtrip after a remove format which should address some of your problems. The rest you will have to live with.
Also, for me, remove format not removing headings and other "structural markup" is a good thing. I expect it to only remove inline style bold/italics/color that sort of thing, not change hte structure of the document. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 485
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
|
Thank you for answering. Still, something must be different - before I used to select the text and hit Heading 5 and got text small and bold, now the text will stay same size, just bold (though sometimes it works like before). All that font class="Apple-style-span" stuff must be added by clicking 'Heading 5'. Why? Simple h5 tag does exactly what I want.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That comes from an upgraded webkit (the library calibre uses for that widget). Why the behavior of WebKit changed, I have no idea.
|
![]() |
![]() |
![]() |
#5 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 485
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
|
I discovered that when I change to default font, p styles are gone, html is cleaner. But I want Arial. Oh, well. Thank you so much for clearing that up.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove bold formatting | robertmarkbram | Calibre | 1 | 02-13-2012 07:49 AM |
Remove Formatting | crutledge | Sigil | 5 | 09-15-2010 02:04 PM |
[KOBO] Strip existing formatting to apply my own default formatting to all books | digital_steve | Calibre | 2 | 08-10-2010 06:34 PM |
Remove Paragraph Formatting | ghostyjack | Sigil | 33 | 06-16-2010 06:17 AM |