Mobileread
Has anyone used Ebook-lib 0.17.1?
#1  JSWolf 12-03-2020, 07:45 AM
I have an ePub that the OPF says the generator is Ebook-lib 0.17.1. It's made a ghastly eBook. Here is the CSS from this disaster of an ePub. It crashes ADE 2.0.1. Once you get past the internal ToC, it causes ADE to just close. There is code in here I have never seen before such as data-hederis-type and data-embedded-html. Has anyone seen any CSS worse then this?

Code
@font-face {
font-family: "FreeSans";
font-weight: 100 400;
font-style: normal;
src: url("../FreeSans.ttf");
}
@font-face {
font-family: "FreeSans";
font-weight: 100 400;
font-style: italic;
src: url("../FreeSansOblique.ttf");
}
@font-face {
font-family: "FreeSans";
font-weight: bold;
font-style: normal;
src: url("../FreeSansBold.ttf");
}
@font-face {
font-family: "FreeSans";
font-weight: bold;
font-style: italic;
src: url("../FreeSansBoldOblique.ttf");
}
@font-face {
font-family: "FreeSans";
font-weight: 500 900;
font-style: normal;
src: url("../FreeSansBold.ttf");
}
@font-face {
font-family: "FreeSans";
font-weight: 500 900;
font-style: italic;
src: url("../FreeSansBoldOblique.ttf");
}html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
blockquote, q {
quotes: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
* {
box-sizing: border-box;
}
body {
font-family: 'erewhon-adobe-jensen', sans-serif, 'FreeSans';
font-size: 1em;
line-height: 150%;
background-repeat: repeat;
background-position: top left;
background-size: auto 150%;
overflow-wrap: break-word;
word-wrap: break-word;
hyphens: auto;
}
p {
font-family: 'erewhon-adobe-jensen', sans-serif, 'FreeSans';
font-size: 1em;
line-height: 150%;
}
[data-hederis-type="hblkuli"],
[data-hederis-type="hblkoli"],
[data-hederis-type="hblklip"] {
text-indent: 0;
}
span[data-hederis-type=hwprfootnote] {
display: block;
}
span[data-hederis-type=hblkfootnote] {
display: block;
}
a[data-hederis-type=hspannoteref] {
text-decoration: none;
color: inherit;
}
a[data-hederis-type=hspannotemarker] {
text-decoration: none;
color: inherit;
}
sup, sub {
vertical-align: baseline;
position: relative;
top: -0.4em;
}
sub {
top: 0.4em;
}
p[data-embedded-html="true"] {
display: none;
}
[data-hederis-type=hwprfig] {
font-size:inherit;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:0%;
letter-spacing:normal;
text-align:center;
text-align-last:center;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hwprfig]::before {
content: normal;
}
[data-hederis-type=hwprfig]::before {
font-family: inherit;
}
[data-hederis-type=hwprfig]::before {
font-size: inherit;
}
[data-hederis-type=hwprfig]::after {
content: normal;
}
[data-hederis-type=hwprfig]::after {
font-family: inherit;
}
[data-hederis-type=hwprfig]::after {
font-size: inherit;
}
[data-hederis-type=hblkimg] {
font-size:inherit;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:4%;
letter-spacing:normal;
text-align:center;
text-align-last:center;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:144px;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: center center;
}
[data-hederis-type=hblkimg]::before {
content: normal;
}
[data-hederis-type=hblkimg]::before {
font-family: inherit;
}
[data-hederis-type=hblkimg]::before {
font-size: inherit;
}
[data-hederis-type=hblkimg]::after {
content: normal;
}
[data-hederis-type=hblkimg]::after {
font-family: inherit;
}
[data-hederis-type=hblkimg]::after {
font-size: inherit;
}
[data-hederis-type=hblkp] {
font-size:1.00em;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:4%;
letter-spacing:normal;
text-align:justify;
text-align-last:left;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblkp]::before {
content: normal;
}
[data-hederis-type=hblkp]::before {
font-family: inherit;
}
[data-hederis-type=hblkp]::before {
font-size: inherit;
}
[data-hederis-type=hblkp]::after {
content: normal;
}
[data-hederis-type=hblkp]::after {
font-family: inherit;
}
[data-hederis-type=hblkp]::after {
font-size: inherit;
}
[data-hederis-type=hblkseparator] {
font-size:inherit;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:4%;
letter-spacing:normal;
text-align:justify;
text-align-last:left;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:2vh 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblkseparator]::before {
content: normal;
}
[data-hederis-type=hblkseparator]::before {
font-family: inherit;
}
[data-hederis-type=hblkseparator]::before {
font-size: inherit;
}
[data-hederis-type=hblkseparator]::after {
content: normal;
}
[data-hederis-type=hblkseparator]::after {
font-family: inherit;
}
[data-hederis-type=hblkseparator]::after {
font-size: inherit;
}
[data-hederis-type=hwprepi] {
font-size:inherit;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:4%;
letter-spacing:normal;
text-align:justify;
text-align-last:left;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hwprepi]::before {
content: normal;
}
[data-hederis-type=hwprepi]::before {
font-family: inherit;
}
[data-hederis-type=hwprepi]::before {
font-size: inherit;
}
[data-hederis-type=hwprepi]::after {
content: normal;
}
[data-hederis-type=hwprepi]::after {
font-family: inherit;
}
[data-hederis-type=hwprepi]::after {
font-size: inherit;
}
[data-hederis-type=hspanem] {
font-size:inherit;
font-weight:inherit;
font-style:italic;
text-transform:none;
color:#000000;
letter-spacing:normal;
white-space:pre-wrap;
background-color:transparent;
background-image:none;
background-repeat:no-repeat;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
font-variant:normal;
display:inline;
top:auto;
vertical-align:baseline;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hspanem]::before {
content: normal;
}
[data-hederis-type=hspanem]::after {
content: normal;
}
[data-hederis-type=hblknumber] {
font-size:0.94em;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:0%;
letter-spacing:3px;
text-align:center;
text-align-last:center;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:2vh 0 3vh 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblknumber]::before {
content: "\2734";
}
[data-hederis-type=hblknumber]::before {
font-family: inherit;
}
[data-hederis-type=hblknumber]::before {
font-size: inherit;
}
[data-hederis-type=hblknumber]::after {
content: "\2734";
}
[data-hederis-type=hblknumber]::after {
font-family: inherit;
}
[data-hederis-type=hblknumber]::after {
font-size: inherit;
}
[data-hederis-type=hblkchaptitle] {
font-size:1.69em;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:0%;
letter-spacing:0px;
text-align:center;
text-align-last:center;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:0 0 2vh 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblkchaptitle]::before {
content: normal;
}
[data-hederis-type=hblkchaptitle]::before {
font-family: inherit;
}
[data-hederis-type=hblkchaptitle]::before {
font-size: inherit;
}
[data-hederis-type=hblkchaptitle]::after {
content: normal;
}
[data-hederis-type=hblkchaptitle]::after {
font-family: inherit;
}
[data-hederis-type=hblkchaptitle]::after {
font-size: inherit;
}
[data-hederis-type=hspanpagebrafter] {
font-size:inherit;
font-weight:inherit;
font-style:inherit;
text-transform:none;
color:#000000;
letter-spacing:normal;
white-space:pre-wrap;
background-color:transparent;
background-image:none;
background-repeat:no-repeat;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
font-variant:normal;
display:inline;
top:auto;
vertical-align:baseline;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hspanpagebrafter]::before {
content: normal;
}
[data-hederis-type=hspanpagebrafter]::after {
content: normal;
}
[data-hederis-type=hblklinespace] {
font-size:inherit;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:0%;
letter-spacing:normal;
text-align:center;
text-align-last:center;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:3vh 0 3vh 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblklinespace]::before {
content: "\2734";
}
[data-hederis-type=hblklinespace]::before {
font-family: inherit;
}
[data-hederis-type=hblklinespace]::before {
font-size: inherit;
}
[data-hederis-type=hblklinespace]::after {
content: normal;
}
[data-hederis-type=hblklinespace]::after {
font-family: inherit;
}
[data-hederis-type=hblklinespace]::after {
font-size: inherit;
}
[data-hederis-type=hspanloosen] {
font-size:inherit;
font-weight:inherit;
font-style:inherit;
text-transform:none;
color:#000000;
letter-spacing:normal;
white-space:pre-wrap;
background-color:transparent;
background-image:none;
background-repeat:no-repeat;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
font-variant:normal;
display:inline;
top:auto;
vertical-align:baseline;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hspanloosen]::before {
content: normal;
}
[data-hederis-type=hspanloosen]::after {
content: normal;
}
[data-hederis-type=hspantighten] {
font-size:inherit;
font-weight:inherit;
font-style:inherit;
text-transform:none;
color:#000000;
letter-spacing:normal;
white-space:pre-wrap;
background-color:transparent;
background-image:none;
background-repeat:no-repeat;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
font-variant:normal;
display:inline;
top:auto;
vertical-align:baseline;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hspantighten]::before {
content: normal;
}
[data-hederis-type=hspantighten]::after {
content: normal;
}
[data-hederis-type=hwprext] {
font-size:inherit;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:4%;
letter-spacing:normal;
text-align:justify;
text-align-last:left;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:2vh 9% 2vh 9%;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hwprext]::before {
content: normal;
}
[data-hederis-type=hwprext]::before {
font-family: inherit;
}
[data-hederis-type=hwprext]::before {
font-size: inherit;
}
[data-hederis-type=hwprext]::after {
content: normal;
}
[data-hederis-type=hwprext]::after {
font-family: inherit;
}
[data-hederis-type=hwprext]::after {
font-size: inherit;
}
[data-hederis-type=hblkdialogue] {
font-size:1.19em;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:4%;
letter-spacing:normal;
text-align:justify;
text-align-last:left;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblkdialogue]::before {
content: normal;
}
[data-hederis-type=hblkdialogue]::before {
font-family: inherit;
}
[data-hederis-type=hblkdialogue]::before {
font-size: inherit;
}
[data-hederis-type=hblkdialogue]::after {
content: normal;
}
[data-hederis-type=hblkdialogue]::after {
font-family: inherit;
}
[data-hederis-type=hblkdialogue]::after {
font-size: inherit;
}
[data-hederis-type=hblkv] {
font-size:1.19em;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:4%;
letter-spacing:normal;
text-align:justify;
text-align-last:left;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblkv]::before {
content: normal;
}
[data-hederis-type=hblkv]::before {
font-family: inherit;
}
[data-hederis-type=hblkv]::before {
font-size: inherit;
}
[data-hederis-type=hblkv]::after {
content: normal;
}
[data-hederis-type=hblkv]::after {
font-family: inherit;
}
[data-hederis-type=hblkv]::after {
font-size: inherit;
}
[data-hederis-type=hblkcode] {
font-size:0.81em;
font-weight:bold;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:4%;
letter-spacing:normal;
text-align:justify;
text-align-last:left;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblkcode]::before {
content: normal;
}
[data-hederis-type=hblkcode]::before {
font-family: inherit;
}
[data-hederis-type=hblkcode]::before {
font-size: inherit;
}
[data-hederis-type=hblkcode]::after {
content: normal;
}
[data-hederis-type=hblkcode]::after {
font-family: inherit;
}
[data-hederis-type=hblkcode]::after {
font-size: inherit;
}
[data-hederis-type=hblkpcont] {
font-size:inherit;
font-weight:normal;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:4%;
letter-spacing:normal;
text-align:justify;
text-align-last:left;
white-space:pre-wrap;
background-color:initial;
background-image:none;
background-repeat:no-repeat;
margin:0 0 0 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblkpcont]::before {
content: normal;
}
[data-hederis-type=hblkpcont]::before {
font-family: inherit;
}
[data-hederis-type=hblkpcont]::before {
font-size: inherit;
}
[data-hederis-type=hblkpcont]::after {
content: normal;
}
[data-hederis-type=hblkpcont]::after {
font-family: inherit;
}
[data-hederis-type=hblkpcont]::after {
font-size: inherit;
}
[data-hederis-type=hblkh1] {
font-size:2.00em;
font-weight:bold;
font-style:normal;
text-transform:none;
color:#000000;
text-indent:0%;
letter-spacing:normal;
text-align:center;
text-align-last:center;
white-space:pre-wrap;
background-color:transparent;
background-image:none;
background-repeat:no-repeat;
margin:0 0 2vh 0;
padding:0 0 0 0;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
border-top:0pt solid #000000;
border-right:0pt solid #000000;
border-bottom:0pt solid #000000;
border-left:0pt solid #000000;
border-radius:0pt 0pt 0pt 0pt;
width:auto;
height:auto;
font-variant:normal;
display:block;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hblkh1]::before {
content: normal;
}
[data-hederis-type=hblkh1]::before {
font-family: inherit;
}
[data-hederis-type=hblkh1]::before {
font-size: inherit;
}
[data-hederis-type=hblkh1]::after {
content: normal;
}
[data-hederis-type=hblkh1]::after {
font-family: inherit;
}
[data-hederis-type=hblkh1]::after {
font-size: inherit;
}
[data-hederis-type=hspana] {
font-size:inherit;
font-weight:inherit;
font-style:inherit;
text-transform:none;
color:#000000;
letter-spacing:normal;
white-space:pre-wrap;
background-color:transparent;
background-image:none;
background-repeat:no-repeat;
text-decoration-line:none;
text-decoration-style:initial;
text-decoration-color:initial;
font-variant:normal;
display:inline;
top:auto;
vertical-align:baseline;
background-size: auto auto;
background-position: left top;
}
[data-hederis-type=hspana]::before {
content: normal;
}
[data-hederis-type=hspana]::after {
content: normal;
}
*[data-hederis-type=hsechalftitlepage] *[data-hederis-type=hwprfig] {
text-align:center;
text-align-last:center;
margin:18vh 0 0 0;
}
*[data-hederis-type=hsectitlepage] > *[data-hederis-type=hwprfig]:nth-of-type(1) {
text-align:center;
text-align-last:center;
margin:10vh 0 0 0;
}
[data-hederis-type=hwprfig][id=pGZxA0BGj] {
margin:25vh 0 0 0;
}
[data-hederis-type=hblkimg][id=p7ovoNVWN] {
height:76px;
display:inline;
}
[data-hederis-type=hblkimg][id=pKWz3f2NT] {
height:115px;
display:inline;
}
[data-hederis-type=hblkimg][id=p2ZwZMslt] {
width:384px;
height:auto;
background-size: auto auto;
}
[data-hederis-type=hblkimg][id=pACLDBWbh] {
text-indent:0%;
text-align:center;
text-align-last:center;
margin:17vh 23% 0 23%;
padding:0 0 0 0;
}
[data-hederis-type=hblkimg][id=peN997ZCH] {
margin:0 19% 0 19%;
padding:0 0 0 0;
width:192px;
}
[data-hederis-type=hblkimg][id=pBpakl8eh] {
width:384px;
}
[data-hederis-type=hblkimg][id=pj7OXdPJD] {
width:384px;
}
[data-hederis-type=hblkimg][id=pGLMT72tD] {
margin:0 1% 0 23%;
}
[data-hederis-type=hblkimg][id=pBNawzxS1] {
width:384px;
}
[data-hederis-type=hblkimg][id=p7tKrpZjZ] {
margin:0 23% 0 23%;
background-position: center center;
}
*[data-hederis-type=hsecdedication] *[data-hederis-type=hblkp] {
font-size:1.25em;
text-indent:0%;
text-align:center;
text-align-last:center;
}
*[data-hederis-type=hsecdedication] > *[data-hederis-type=hblkp]:nth-of-type(1) {
margin:23vh 0 0 0;
}
*[data-hederis-type=hsecepigraph] *[data-hederis-type=hblkp] {
font-style:italic;
text-indent:0%;
text-align:center;
text-align-last:center;
}
*[data-hederis-type=hsecepigraph] > *[data-hederis-type=hblkp]:nth-of-type(1) {
margin:23vh 0 0 0;
}
*[data-hederis-type=hsecchapter] *[data-hederis-type=hblkp] {
text-indent:5%;
}
*[data-hederis-type=hsecacknowledgments] *[data-hederis-type=hblkp] {
font-size:1.00em;
text-indent:5%;
}
*[data-hederis-type=hseccopyrightpage] *[data-hederis-type=hblkp] {
font-size:0.75em;
text-indent:0%;
}
*[data-hederis-type=hwprepi] *[data-hederis-type=hblkp] {
font-size:1.25em;
}
[data-hederis-type=hblkp][id=pe3b3yTdX] {
margin:11vh 0 0 0;
}
[data-hederis-type=hblkp][id=pw1zwmgc8] {
margin:11vh 0 0 0;
}
[data-hederis-type=hblkp][id=ph87U6xpA] {
margin:11vh 0 0 0;
}
[data-hederis-type=hblkp][id=puwHGRNRy] {
margin:10vh 0 0 0;
}
*[data-hederis-type=hblkchaptitle] + *[data-hederis-type=hblkp] {
text-indent:0%;
}
*[data-hederis-type=hblklinespace] + *[data-hederis-type=hblkp] {
text-indent:1%;
}
*[data-hederis-type=hsecabouttheauthor] *[data-hederis-type=hblkp] {
text-indent:0%;
margin:2vh 0 0 0;
}
[data-hederis-type=hspanem][id=pqgvSX2Md] {
font-style:normal;
}
*[data-hederis-type=hsecchapter] *[data-hederis-type=hblkchaptitle] {
font-size:1.56em;
margin:0 0 5vh 0;
}
*[data-hederis-type=hsecacknowledgments] *[data-hederis-type=hblkchaptitle] {
font-size:1.56em;
text-indent:0%;
text-align:center;
text-align-last:center;
margin:8vh 0 4vh 0;
}
*[data-hederis-type=hwprext] > *[data-hederis-type=hblkdialogue]:nth-of-type(1) {
text-indent:0%;
}
*[data-hederis-type=hwprext] > *[data-hederis-type=hblkv]:nth-of-type(1) {
text-indent:0%;
}
*[data-hederis-type=hwprext] *[data-hederis-type=hblkv] {
}
*[data-hederis-type=hwprext] > *[data-hederis-type=hblkcode]:nth-of-type(1) {
text-indent:0%;
}
*[data-hederis-type=hwprext] *[data-hederis-type=hblkcode] {
font-size:1.00em;
}
img[data-pi-image-size="fullbleed"] {
position: relative;
overflow: visible;
height: auto;
width: auto;
bottom: auto;
left: auto;
}
img[data-pi-image-size="fullbleed"] {
page-break-before: always;
page-break-after: always;
break-before: always;
break-after: always;
}
*[data-pi-format="print"] {
display: none;
}
[data-hederis-type=hsectitlepage] {
margin-top: 27%;
}
[data-hederis-type=hseccopyrightpage] {
margin-top: 27%;
}
[data-hederis-type=hsecdedication] {
margin-top: 27%;
}
[data-hederis-type=hsecepigraph] {
margin-top: 27%;
}
[data-hederis-type=hsechalftitlepage] {
margin-top: 27%;
}
[data-hederis-type=hsecchapter] {
margin-top: 27%;
}
[data-hederis-type=hsecacknowledgments] {
margin-top: 27%;
}
[data-hederis-type=hsecabouttheauthor] {
margin-top: 27%;
}
Reply 

#2  Quoth 12-03-2020, 08:36 AM
Though you can make ghastly ebooks with any tool without an understanding of headings, styles, images etc.
Reply 

#3  Hitch 12-03-2020, 08:54 AM
Quote Quoth
Though you can make ghastly ebooks with any tool without an understanding of headings, styles, images etc.
Oh, my. That's some CSS.

Wow. I'd fire the bugger that put that cruft into one of ours!

Hitch
Reply 

#4  JSWolf 12-03-2020, 09:27 AM
Quote Hitch
Oh, my. That's some CSS.

Wow. I'd fire the bugger that put that cruft into one of ours!

Hitch
And you'd be right to do the firing.

What I don't get is what a lot of the code is meant to do and why it's there when it's not needed. Why is it so overly complected and sloppy? Plus, the embedded font is garbage. Not just lousy for eInk, but lousy for LCD as well.

Just in case it matters, this eBook is published by Erewhon Books.
Reply 

#5  JSWolf 12-03-2020, 09:29 AM
Quote Quoth
Though you can make ghastly ebooks with any tool without an understanding of headings, styles, images etc.
There is no way could make such ghastly code using Calibre of Sigil as I've never seen classes like that in CSS. And it's no wonder it crashes ADE 2.0.1. I wonder if it crashes the latest version of ADE.
Reply 

#6  KevinH 12-03-2020, 09:59 AM
You might want to check out the following link:

https://css-tricks.com/a-complete-guide-to-data-attributes/

It allows you to select based on a tag's attribute and if that attribute has a specific value.

I do not know if Sigil or Calibre supports this QtWebEngine.

Does the "epub" seem to look okay in Sigil and/or Calibre?
Reply 

#7  JSWolf 12-03-2020, 10:37 AM
Quote KevinH
You might want to check out the following link:

https://css-tricks.com/a-complete-guide-to-data-attributes/

It allows you to select based on a tag's attribute and if that attribute has a specific value.

I do not know if Sigil or Calibre supports this QtWebEngine.

Does the "epub" seem to look okay in Sigil and/or Calibre?
I've loaded this ePub into Sigil1.4.2 and it came up with the not well formed message. I selected to fix it. It looks good in Sigil. But given that the formatting is just simple formatting, there's no need for the overly complicated CSS.
Reply 

#8  KevinH 12-03-2020, 11:03 AM
Glad to hear the QtWebEngine at least does not crash.. Given Calibre uses an even newer version of Qt than Sigil, it will work in Calibre as well.

Yes, I can not easily see why this attribute and value type of selector is that useful. What problem does this type of css actually solve? Anybody know?
Reply 

#9  DNSB 12-03-2020, 11:30 AM
Looking at the CSS, I'm wondering if this is one of Hederis' "AI-powered" Microsoft Word to EPUB or PDF conversions. I ran into them in connection with a Kickstarter campaign a couple of years back and it sounded interesting. Though I wasn't sufficiently interesting in The Metamorphosis, The Picture of Dorian Gray or Dracula to spend the $18 each for the pbook/ebook bundle.
Reply 

Today's Posts | Search this Thread | Login | Register