09-05-2013, 08:36 AM | #1 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Calibre Companion V3.1 HTML Comments
Quote:
|
|
09-05-2013, 09:14 AM | #2 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Nice first step, But unless you make this html enhancement (or at least font size) optional it looks like I'll have to edit the font size for comments of every book because most are too small now. I can get the font size large enough by adjusting withing CC but then everything else in the book details pane is obscenely large.
|
09-05-2013, 09:22 AM | #3 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Do your comments specify a font size? Could you either post or send me by PM the HTML for a comment where the font size of the comment is different from the surrounding text? |
|
09-05-2013, 10:09 AM | #4 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
09-05-2013, 11:20 AM | #5 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I sent you some screen captures via PM. I hope you can tell me what you are seeing that is different from what I am seeing. One possibility: the html in the OPF might not be the same as the html in the database. I don't know why this would happen, but maybe it has. You can check this by comparing what you see in Edit Metadata Single under the HTML source tab to what is in the OPF. Alternatively, send me a link to your metadata.db and I can do the checks. |
|
09-05-2013, 11:55 AM | #6 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
When mine is set to "Normal", which is where it "lives", I don't see any difference between the html and rich-text version. However, if I set it to "Huge" then there is an enormous difference between them. |
|
09-05-2013, 12:04 PM | #7 |
Zennist
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Charles, a big thanks to you, Steve and Annie for the new release and having an open mind toward user requests and concerns. I like the new centering a lot.
But like Dr. Ohh, I have some comments that appear very tiny. So far, the only difference I can see between those comment sections and the ones that appear normally is the specification of a font size -- in my case, 12 px -- that appear in the tiny comments. Most of my comment sections have no font size specified. I copied the opening tags from such a comment section. Here it is: <div><p style="text-align: center;"><font class="Apple-style-span" face="'MS Dialog', sans-serif"><span class="Apple-style-span" style="font-size: 12px;"><i><b> I have no idea where the font sizes come from. In my case I get the book information from a variety of sources -- through the "download metadata" button in Calibre; copying and pasting from the Amazon.com site; and sometimes copying and pasting from other web sites such as the book publisher's site or Wikipedia. Sometimes I'll even use the "download metadata" button but instead of having the information automatically inserted, I'll copy and paste from those results so as to preserve other pre-filled fields. When I paste copy into Calibre, I usually don't choose to "match style" because then you lose the italics and bold emphasis. So maybe that's where the font sizes are coming from??? Is it possible for CC to ignore font size specifications in the comments section but still respect things like centering? --Pat |
09-05-2013, 12:12 PM | #8 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
09-05-2013, 12:20 PM | #9 |
Zennist
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
By the way, I have some comments with div tags in the beginning, but they don't specify a font size, and those comments look normal-sized on my Nook.
All my comments appear the same size within the Calibre interface, including the book details pane. I'm not sure if this is a reflection of being on Windows XP or not. But that's why I never bother with the variations in the types of html coding that appear in the "HTML Source" tab. As long as things all looked uniform to me, I never bothered tweaking anything. |
09-05-2013, 12:22 PM | #10 | ||
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
09-05-2013, 12:36 PM | #11 | |
Grand Sorcerer
Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
|
Quote:
|
|
09-05-2013, 12:46 PM | #12 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Yea, large is around 15% bigger, so CC's text is equivalently too small. Huge is around 30%.
Last edited by chaley; 09-06-2013 at 01:59 AM. |
09-05-2013, 12:48 PM | #13 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
09-05-2013, 01:22 PM | #14 | ||
Zennist
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
Quote:
I don't use the book details page in Mantano as often as I do in CC, because I only put books into Mantano that I know I want to read relatively soon. I treat Mantano like my "reading list" whereas CC is my main library. That's what I really like about this dual app setup. So I edited one of the comments section that was showing up tiny in CC. I deleted all tags that specified the 12 pt. font size. (It still has the div tag.) The comment now shows up normally in CC's book details page. I don't mind editing all my comments in Calibre to take out all references to fonts sizes. I just wish there were an easy way to do it. When I manually took it out of one part of the comments, it seemed to pop up in another. I finally was able to get all the font size references out, though. But if anyone knows of an easy way to do this (regex perhaps?) ... please let me know. I'll also know better in the future to pay more attention to the formatting in the comments section. As I said, I ignored this in the past because all my comments in the Calibre interface look the same size on my computer! --Pat |
||
09-05-2013, 11:14 PM | #15 |
Zennist
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Charles, I'm feeling somewhat ....
+ ish Here I ask you for an enhancement to CC, and it darn near breaks the layout for some! I hope it's not impacting too many of your customers. When you wake up on the other side of the pond tomorrow after a good night's sleep, hopefully the right answer will be clear to you. Whatever you decide to do I'm fine with. Even if you go back to the way it was. But showing the full html for the comments appears to be common. I checked with Stanza, which I haven't used for ages, and it too shows the variation in type sizes in the book details page. It's something I never noticed before because I never stored a lot of books in it. I never used it for heavy library management like I do with CC. After a little investigation tonight, I finally discovered what was inserting the font style & size tags into my comment sections. It happened whenever I copied and pasted text from a field inside of Calibre into the comments section. I often do that using the "Title" field when a book has a long subtitle. It has been happening for a long time, and though I had noticed this code before, I never had a clue how it got there. I also discovered that if I pasted the text right next to existing normal text in the comments field (without spacing in between) then the font style and size tags would not be inserted. So at least there's a workaround. Is this expected behavior for Calibre? Is it desirable? If not, is it something that can be even fixed? Or is it a Windows or Windows XP thing? I can’t imagine the intent was ever to insert a font family and font size when simply copying text from one of Calibre’s user fields into the comments box. At any rate, now that I know how the font tags got there, I can avoid the problem in the future. In a way I'm glad this came about because it revealed an issue with my book comments that I didn't realize existed and also pointed the way to a workaround. Over time, I'll also be fixing all the comment fields that have the unwanted font sizes. Luckily the problem inflicts less than 1/4 of my books, and it's fairly fast to fix using the "download metadata" button. --Pat |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Metadata Comments Field - How to best tweak the html? | Chris_Snow | Library Management | 5 | 08-13-2013 02:58 AM |
Do I need to run Calibre content server to use Calibre Companion | flyash | Calibre | 2 | 04-06-2013 10:19 PM |
calibre companion on Galaxy Tab2 no connection with calibre | Schwarzenegger1 | Calibre Companion | 6 | 02-27-2013 03:44 AM |
Calibre (or Calibre Companion) For Fetching News Directly Onto Android Tablets? | mojumoka | Devices | 2 | 12-11-2012 12:18 PM |
Calibre Recipe HTML content differs from raw html of index.html. | krunk | Calibre | 4 | 09-20-2010 09:48 PM |