View Single Post
Old 07-09-2022, 06:31 PM   #8
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: 47,053
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by romad View Post
As for the Kindle UnPack plug in, these are not KFX DRM since, IIRC, Kindle for Mac 1.17 can't handle KFX. So what will the plugin do on non-KFX Kindle books?
The KindleUnpack plugin has nothing to do with KFX. What it will do is extract or generate an epub from a KF8/azw3 file. This file is much closer to the original file without the massive changes to the CSS that can happen in a calibre conversion.

As for the code, post the first and second paragraphs plus any body/html CSS styles and the CSS styles that are used in them. the example here shows what I mean with the relevant body, p and p.indent code that affects those two paragraphs.

Please note that this code is pretty basic. No line height, no text alignment. Those are left for the end user to choose.

Code:
<body>

  <p><b>Law #1:</b>*<b>If a bad guy can persuade you to run his program on your computer, it’s not solely your computer anymore</b></p>

  <p class="indent">It’s an unfortunate fact of computer science: when a computer program runs, it will do what it’s programmed to do, even if it’s programmed to be harmful. When you choose to run a program, you are making a decision to turn over a certain level of control of your computer to it — often *anything up to the limits of what you yourself can do on the computer (and sometimes beyond). It could monitor your keystrokes and send them to criminals eager for the information. It could open every document on the computer, and change the word “will” to “won’t” in all of them. It could send rude emails to all your friends. It could install a virus. It could create a “back door” that lets someone remotely control your computer. It could relay a bad guy’s attack on someone else’s computers. Or it could just reformat your hard drive.</p>
Code:
body {
  display: block;
  font-size: 1em;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  text-indent: 0;
  widows: 1;
  orphans: 1;
}

p {
  padding: 0.2em 0 0 0;
  margin-block-end: 0em;
  }


p.indent {
  text-indent: 2em;
}

Last edited by DNSB; 07-09-2022 at 06:34 PM. Reason: Added can happen to calibre conversion
DNSB is offline   Reply With Quote