Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2020, 02:52 AM   #1
DragonflySuz
Junior Member
DragonflySuz began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2019
Device: Kindle Fire HD 8 7th Generation
Calibre Changing My HTML

Ever since one of Calibre's updates sometime last year, Calibre keeps changing the HTML in my book details. It happens immediately when I open the edit metadata window. I use very basic HTML that's easy for me to read at a glance. I've cleared the Text Styling on Look & Feel Book Detail tab but that didn't solve the problem. Attached images show what I want and what Calibre does.

What I use & how I want it spaced:
<div><b>Size:</b>
<br><br><b>Characters:</b> &diams;&diams; &bull;
<br><b>Places:</b>
<br><br><b>Description:</b>
<p style="text-indent: 15px; margin:0px"></p>

<ul style="margin-left:-25px">
<li><a href="">Goodreads</a></li>
<li><a href="">Smashwords</a></li>
</ul><br><br></div>

Calibre's changes & how it runs all the HTML together:
<div>
<p><strong>Size:</strong> <br><br><strong>Characters:</strong> ♦♦ • <br><strong>Places:</strong> <br><br><strong>Description:</strong> </p>
<ul><li style="text-indent: 0px; margin-right: 0px; margin-top: 12px; margin-left: -25px; margin-bottom: 0px">Goodreads</li>
<li style="text-indent: 0px; margin-right: 0px; margin-top: 0px; margin-left: -25px; margin-bottom: 12px">Smashwords</li></ul>
<p><br><br></p></div>

How do I stop Calibre from doing this?
Attached Thumbnails
Click image for larger version

Name:	My Look.JPG
Views:	226
Size:	40.3 KB
ID:	177846   Click image for larger version

Name:	Calibre Look.JPG
Views:	231
Size:	52.7 KB
ID:	177847  
DragonflySuz is offline   Reply With Quote
Old 03-21-2020, 05:35 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You dont. Its not calibre doing this, its Qt's Text Edit widget.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-21-2020, 10:04 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I find it odd that neither of your screen captures show the Bull, but it shows in the alternate code (where entity codes are changed to the character)

Code:
<b>Characters:</b> &diams;&diams; &bull; 
theducks is offline   Reply With Quote
Old 03-21-2020, 02:05 PM   #4
DragonflySuz
Junior Member
DragonflySuz began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2019
Device: Kindle Fire HD 8 7th Generation
Quote:
Originally Posted by theducks View Post
I find it odd that neither of your screen captures show the Bull, but it shows in the alternate code (where entity codes are changed to the character)

Code:
<b>Characters:</b> &diams;&diams; &bull; 
Sorry about the confusion on bullet points. The screenshot html did not include them.

Quote:
Originally Posted by kovidgoyal View Post
You dont. Its not calibre doing this, its Qt's Text Edit widget.
I'm way out of my element here so I'm going to expose my ignorance therefore please excuse my very minimal understanding of how widgets, plugins, etc work together. Is there another text editor I can use that won't change HTML?

Another problem that occurred at the same time as my other issues is that the links no longer work in the "normal view" when editing metadata. Can I assume this change is also due to Qt's text edit widget?
DragonflySuz is offline   Reply With Quote
Old 03-21-2020, 03:23 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Links work fine if you put a uri in the code, see ==>> HTML a tag

Try the Link tool:

Click image for larger version

Name:	Annotation 2020-03-22 061954.jpg
Views:	369
Size:	131.2 KB
ID:	177853

BR
BetterRed is offline   Reply With Quote
Advert
Old 03-21-2020, 04:33 PM   #6
DragonflySuz
Junior Member
DragonflySuz began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2019
Device: Kindle Fire HD 8 7th Generation
Quote:
Originally Posted by BetterRed View Post
Links work fine if you put a uri in the code, see ==>> HTML a tag

Try the Link tool:

Attachment 177853

BR
Thanks for the suggestion BetterRed. I tried the link tool as you suggested but it didn't work. All my links do work when clicked on in the Book Detail window just not in the Edit Metadata normal view.
DragonflySuz is offline   Reply With Quote
Old 03-21-2020, 05:41 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DragonflySuz View Post
Thanks for the suggestion BetterRed. I tried the link tool as you suggested but it didn't work. All my links do work when clicked on in the Book Detail window just not in the Edit Metadata normal view.
Ah-ha you're right, they don't work for me in the Comments Editor either (same code, but used from book list). I don't normally click them in the Editor.

This might be another consequence of QT-webengine (part of calibre 4), hopefully Kovid can do another workaround Ψ³

BR
BetterRed is offline   Reply With Quote
Old 03-21-2020, 10:42 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No there is not another widget, I'm afraid. And links will work everywhere else, just not in the editor widget (for technical reasons).
kovidgoyal is offline   Reply With Quote
Old 05-27-2020, 02:24 AM   #9
DragonflySuz
Junior Member
DragonflySuz began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2019
Device: Kindle Fire HD 8 7th Generation
Possible not to use or turn off widget?

Quote:
Originally Posted by kovidgoyal View Post
No there is not another widget, I'm afraid. And links will work everywhere else, just not in the editor widget (for technical reasons).
Showing my ignorance again. Aaaargh! Wish I understood more.

Is it possible to turn off/not use the editor widget? Or is it too integral? Is there help s

Or what version Calibre would I have to install to go back to how the editor was before? And if I go back too far, do I lose the "edit book"?
DragonflySuz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing html file names gage8 Sigil 9 04-25-2013 09:47 AM
Changing devices on calibre NC1066 Library Management 2 01-12-2013 04:03 PM
How to stop Sigil from changing my HTML? seanos Sigil 29 05-25-2012 12:49 AM
Changing font color HTML-MOBI Nuple Calibre 2 12-08-2010 01:09 AM
Calibre Recipe HTML content differs from raw html of index.html. krunk Calibre 4 09-20-2010 09:48 PM


All times are GMT -4. The time now is 02:41 AM.


MobileRead.com is a privately owned, operated and funded community.