Comments (6)
Hmmm, looks like an overlapping issue because the line-height
is solid there – that’s weird because we give more room to CJK and the default line-height
is 20% bigger than for latin scripts.
As for the wave I have difficulties defining whether this is text-emphasis-style
with a custom string, text-underline-style: wavy
and or a background-image
– which is a popular technique for such things.
from swift-toolkit.
On a related note, I can also see missing characters in both screenshots (they happen to be the same one):
from swift-toolkit.
https://drive.google.com/file/d/1CSZXEscGXkdNharMjOknYc82CJEXyvZ1/view?usp=sharing
Testing sample
from swift-toolkit.
OK so it’s a background-image
span.kindle-cn-specialtext-double{
background-image: url(../Images/image00788.gif);
background-repeat: repeat-y;
background-size:1em 1em;
background-position: 0% 0%;
padding-left: 0.15em;
margin-bottom: 0em ;
}
And here’s the GIF:
What’s weird is that line-height
in r2 looks like normal
while it should be the result of https://github.com/readium/readium-css/blob/master/css/src/modules/ReadiumCSS-base.css#L38 with a compensation of 1.167 (https://github.com/readium/readium-css/blob/master/css/src/modules/ReadiumCSS-base.css#L197)
What’s strange is that this is the line-height
I get, which is very different from the one in the first screenshot:
A couple of extra notes:
- the file is ePub 2 (not EPUB3)
- it is specifically authored for Kindle (all class names start with
kindle
) - It is using
<meta content="vertical-rl" name="primary-writing-mode" />
(cf. compat doc) in addition topage-progression-direction
.
I’m assuming this wasn’t a Kindle Mobi file converted back to EPUB as it lacks some meta artifacts you’ll typically find in such retro-conversions… but maybe I’m wrong?
from swift-toolkit.
Also extra notes related to readium/architecture#70
cc @HadrienGardeur and @llemeurfr
If this isn’t retroconverted, that could be either an exception or the rule, in which latter case… the number of such files could be massive on markets we are not necessarily familiar with.
from swift-toolkit.
From what I gather it's nothing we can fix in the Swift projects directly. Feel free to reopen the issue with more details on how to fix this in Swift if I misunderstood.
from swift-toolkit.
Related Issues (20)
- Extracting `t` fragment from `Locator` HOT 1
- Larger Text Display Zoom on iPhone: Navigation bar pushes text HOT 3
- Pinning the font size (for <p>, <li>, <div>, etc) HOT 1
- Logger doesn't log above min severity level
- AudioNavigator.seek cannot cross previous resource boundary HOT 10
- When a DRM key error occurs while opening an EPUB, navigator is stuck in loading state HOT 10
- Errors while loading a Resource in GCDHTTPServer are not bubbled up HOT 5
- 'asSQL' is inaccessible due to 'internal' protection level HOT 2
- Name collision caused by GCDWebServer dependency HOT 5
- Error"Error initializing db." HOT 13
- Nondeterministic loading issue with `EPUBNavigatorViewController` HOT 2
- [Feature] Add support for new LCP Profiles
- Logic behind the selected text information for remote server HOT 2
- Pagination after increasing the font size HOT 4
- [Bug] EditingActions like Define Lookup are not shown. HOT 1
- [develop] Locator href for exploded archive audiobook incorrectly starts with leading slash HOT 2
- [develop] Opening exploded archive audiobook inside App Group fails with `Publication.OpeningError.unsupportedFormat` in (Designed for iPad) Mac app HOT 9
- [Bug] Search Result Chapter Title HOT 6
- lcpl file which is pub format can't be open by publication.metadata.identifier is nil HOT 6
- `Navigator.go` results in misaligned view HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-toolkit.