bump crengine: HTML and rendering fixes (#3992)

- Fix getting xpointer to current page
- epub.css cleanup
- fb2def.h update
- Fix a few edge-case rendering issues
- Fix border being drawn in spite of 'border-width: 0'

Also update Wikipedia epub.css stylesheets regarding
recent HTML fixes and enhancements.
Remove "Remove all borders" workaround tweaks, as it's
now fixed.
(Unit tests failure to be fixed in upcoming commit)
pull/3993/head
poire-z 6 years ago committed by GitHub
parent 4c8ef61477
commit bdbaa7dfdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 35045d144cb0d747632c0a819ff4b7b4ddd0ee75
Subproject commit 1b7e584a27a460dc8375ad910cd2b92161776da9

@ -156,17 +156,10 @@ img {
]],
},
},
{
title = _("Workarounds"),
{
id = "border_all_none";
title = _("Remove all borders"),
description = _("Work around a crengine bug that makes a border drawn when {border: black solid 0px}."),
-- css = [[* { border-style: none !important; }]],
-- Better to keep the layout implied by width, just draw them in white
css = [[* { border-color: white !important; }]],
},
},
-- No current need for workarounds
-- {
-- title = _("Workarounds"),
-- },
}
return CssTweaks

@ -920,10 +920,7 @@ h1.koreaderwikifrontpage, h5.koreaderwikifrontpage {
p.koreaderwikifrontpage {
font-style: italic;
font-size: 90%;
margin-left: 2em;
margin-right: 2em;
margin-top: 1em;
margin-bottom: 1em;
margin: 1em 2em 1em 2em;
}
hr.koreaderwikifrontpage {
margin-left: 20%;
@ -941,28 +938,52 @@ a {
a.newwikinonexistent {
text-decoration: none;
}
/* don't waste left margin for notes and list of pages */
ul, ol {
margin-left: 0em;
}
/* show a box around image thumbnails */
div.thumb {
border: dotted 1px black;
margin-top: 0.5em;
margin-bottom: 0.5em;
margin-left: 2.5em;
margin-right: 2.5em;
margin: 0.5em 2.5em 0.5em 2.5em;
padding: 0.5em 0.5em 0.2em 0.5em;
padding-top: ]].. (include_images and "0.5em" or "0.15em") .. [[;
padding-bottom: 0.2em;
padding-left: 0.5em;
padding-right: 0.5em;
text-align: center;
font-size: 90%;
}
/* don't waste left margin for notes and list of pages */
ul, ol {
margin-left: 0em;
}
/* avoid a line with a standalone bullet */
/* show a box around image in gallery list (li.gallery
* is set up a bit differently than div.thumb - we try
* to make them look the same */
li.gallerybox {
display: inline;
list-style-type: none;
border: dotted 1px black;
margin: 0.5em 2.5em 0.5em 2.5em;
padding: 0.5em 0.5em 0.2em 0.5em;
padding-top: ]].. (include_images and "0.5em" or "0.15em") .. [[;
text-align: center;
font-size: 90%;
}
li.gallerybox div.thumb {
border: solid 1px white;
margin: 0;
padding: 0;
}
/* override this one often set in style="" with various values */
li.gallerybox div.thumb div {
margin: 0 !important;
}
li.gallerybox div.gallerytext p {
text-align: center;
font-size: 90%;
}
.citation {
font-style: italic;
}
/* hide some view/edit/discuss short links displayed as "v m d" */
.nv-view, .nv-edit, .nv-talk {
display: none;
}
/* hiding .noprint may discard some interesting links */
]])
-- ----------------------------------------------------------------

Loading…
Cancel
Save