![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 283
Karma: 132294
Join Date: Apr 2016
Location: Sweden
Device: Kobo Clara HD
|
<p class="description">
When I paste synopsis in the comment field I generally remove all formatting. However, when there is an existing text in the comment field when downloading the book, there are usually <p class="description"> before the text. I have generally removed it and haven't seen any negative results when reading on the device. But I haven't neither seen any difference when keeping it.
Is there any problem with removing it, could it be useful in the future for something and therefore inmportant to keep it? |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,920
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
if it cant find the defined 'class', the render uses the default for the 'p' type tag if the <p (and/or \p>) are missing, you may get an error. Some engines tolerate errors. I would NOT depend on it |
|
![]() |
![]() |
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 283
Karma: 132294
Join Date: Apr 2016
Location: Sweden
Device: Kobo Clara HD
|
Okej, thanks. So, it's okej to remove it, then?
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,920
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,646
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@marp68 - I suggest you use the Clean Comments plugin.
Tip : when you want to do something, and you can't find a feature in the core product to do it, then have a look in the Index of plugins sticky thread in the Plugins subforum. BR |
![]() |
![]() |
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 283
Karma: 132294
Join Date: Apr 2016
Location: Sweden
Device: Kobo Clara HD
|
Yes, there are many good plug ins.
However, it's so easy to just erase the line with a few taps, so I didn't bother looking for a plug in. Just wasn't sure of the meaning of it, since sometimes there is no such line and when looking at the synopsis of the book in the device, the text shows okej. theducks, I meant in this case. Since I want to start out with plain text in for the synopsis text in the comment field, I didn't think it mattered. But I must admit that I'm not completely sure that I understand everything of your explanation, since I'm not so good at these behind-the-scene things. But with every little step I understand more... :-) |
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 283
Karma: 132294
Join Date: Apr 2016
Location: Sweden
Device: Kobo Clara HD
|
Quote:
However, I tried the plug in, and it indeed removed all formatting. But it also added <p class="description">. So there is something I may have overlooked or not fully understood, since the creator of the plug in thought it should be there. So should I perhaps go through all books, run the plug in to add the line and then manually add my own preferred formatting as well? Last edited by marp68; 08-21-2016 at 04:48 AM. |
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
It is perfectly safe to change <p class="description"> to simply <p> if you want, but it does no harm to leave it there.
If the device you are viewing the synopsis on happens to have a "description" class defined in its stylesheet then you might see a change in the formatting of the paragraph as a result, but if the device has no "description" class defined then there will be no change. |
![]() |
![]() |
![]() |
#9 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,646
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,920
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You need to learn HTML (the simple, basic level that is used in ebooks)
Calibre uses HTML Templates to create those pages like 'Jacket' All you need to do is place a Copy of the pieces that you want to customize, into the related Preferences folder, then tweak those (this way makes them safe from being overwritten by updates) http://manual.calibre-ebook.com/#customizing-calibre |
![]() |
![]() |
![]() |
#11 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 283
Karma: 132294
Join Date: Apr 2016
Location: Sweden
Device: Kobo Clara HD
|
Okej, thanks
|
![]() |
![]() |
![]() |
#12 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The reason the plugin exists, is because when you remove formatting from the comments via the Comments editor in Edit Metadata, calibre re-adds the <p class="description"> before writing the new metadata to the book record.
|
![]() |
![]() |
![]() |
#13 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 283
Karma: 132294
Join Date: Apr 2016
Location: Sweden
Device: Kobo Clara HD
|
Hmm, are you sure. When I reopen the Edit metadata, after removing it in the Comment editor, it hasn't reappeared.
|
![]() |
![]() |
![]() |
#14 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Last I checked, yes, calibre did it for anything in the Comments editor that wasn't already wrapped in some sort of HTML tags.
|
![]() |
![]() |
![]() |
#15 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,646
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FWIW : sometimes when I type or paste lines of plain text I get each line wrapped in <div>... tags, other times they're in <p>... tags, and other times they're in <p>... tags within a single <div> tag.
And on yet other occasions when I paste plain text, it gets wrapped in apple spans, verdana font tags etc, etc. And I know for certain the clipboard contained no HTML markup because I have to go out of my way to disable clipboard markup scrubbing. I've never been able to fathom a repeatable pattern, hence I've never reported it, but I have a suspicion it may be conditioned by previous edits of long text cells within the same session. Added : The only occasions I can recall seeing <p class="description"> is after using Terisa's Clean Comments PI. BR Last edited by BetterRed; 08-29-2016 at 10:36 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Class action: "sale" royalties on "licensed" ebooks | drjenkins | News | 2 | 06-02-2016 08:44 AM |
How to output ebook "Description" field? | MontyJ | Library Management | 4 | 09-29-2013 06:53 PM |
class="none" vs class="none1" | hymie | Conversion | 2 | 10-27-2011 06:45 AM |
Is "language description" modified when uploading | PoP | Library Management | 4 | 04-30-2011 06:10 AM |