Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-10-2024, 02:41 PM   #1
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
_=""

An ebook I'm editing has some images that I wanted to be smaller. I added a width style:

Code:
<img style="width: 60%" src="images/xyz.jpg" alt=""/>
Calibre's editor flagged this and, when asked, auto-corrected to

Code:
<img style="width: 60%" _="" src="images/xyz.jpg" alt=""/>
My search skills are not adequate to find _="". Please explain the change.
foosion is offline   Reply With Quote
Old 09-10-2024, 03:32 PM   #2
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,513
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I suspect this is just a glitch because of the order of attributes
You might try a ; after 60%
theducks is offline   Reply With Quote
Advert
Old 09-10-2024, 03:46 PM   #3
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
You're right. Must be more careful.

foosion is offline   Reply With Quote
Old 09-10-2024, 05:53 PM   #4
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 758
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
If you haven't run across it already, a good place to learn and experiment with regex is:
https://regex101.com/
enuddleyarbl is offline   Reply With Quote
Old 09-10-2024, 06:27 PM   #5
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by enuddleyarbl View Post
If you haven't run across it already, a good place to learn and experiment with regex is:
https://regex101.com/
Alas, I'm familiar enough with regex to appreciate the old quote, "Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems."

The meaning of _="" in a CSS file continues to elude.
foosion is offline   Reply With Quote
Advert
Old 09-10-2024, 06:54 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 41,359
Karma: 158303864
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
May I ask if you post what the original code was that triggered this issue? I tried to generate a similar ePub (both 2 and 3) using the code you posted and did not get the oddity you showed either using calibre's ebook-editor or Sigil.
Attached Thumbnails
Click image for larger version

Name:	screencap_2024-09-10_144707.png
Views:	41
Size:	94.1 KB
ID:	210738  
DNSB is offline   Reply With Quote
Old 09-10-2024, 07:18 PM   #7
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by DNSB View Post
May I ask if you post what the original code was that triggered this issue? I tried to generate a similar ePub (both 2 and 3) using the code you posted and did not get the oddity you showed either using calibre's ebook-editor or Sigil.
I'm sorry to say I haven't been able to recreate it. I heavily edited the ebook in many steps before and after adding the 60%. To give an indication of the initial file:

Code:
      <div class="inline-image inline-image-size-medium inline-image-flow-center inline-image-flow-within-text inline-image-aspect-wide inline-image-without-caption inline-image-begins-section inline-image-before-element-end">

        <div class="inline-image-container">

          <img src="images/chapno-1.jpg" alt=""/>

        </div>

      </div>
foosion is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. MarjaE Library Management 1 03-30-2021 12:46 PM


All times are GMT -4. The time now is 02:44 PM.


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