Comments (11)
Related: https://twitter.com/Bunker_D_/status/994921740039008256 (sorry, tweet in French)
But you can test the Chrome or Firefox extension.
Unfortunately, I could neither find a repo nor an account so it’s difficult to get insights about this particular feature and its implementation.
Help from @garconvacher to contact the creator of this extension, maybe?
from readium-css.
Oops... I didn't see your request for help before :-/
I'm going to dig.
from readium-css.
Thanks @garconvacher 🙏
from readium-css.
Did a super quick test with lining.js and results are obviously a lot better since each line is wrapped in a <text-line>
element.
As you can see, works with pagination.
The main caveat though is that you have to modify the DOM and this can possibly screw the CSS cascade + it takes some time to update when resizing the window – it’s pretty visible, I’d say it’s feeling like 1 second or so.
from readium-css.
(Found this tweet from the developer of the DysAide extension. I send him a PM on Twitter with a link to this thread :) )
from readium-css.
The main caveat though is that you have to modify the DOM and this can possibly screw the CSS cascade + it takes some time to update when resizing the window – it’s pretty visible, I’d say it’s feeling like 1 second or so.
Also, modifying the DOM potentially breaks existing CFI references that are used internally to record bookmarks / annotations.
In Readium "1" there is a mechanism / API to blacklist DOM fragments during CFI "processing" (i.e. when a CFI expression is generated from a DOM location / range, and when a DOM location / range is resolved from a CFI expression). If I remember correctly, blacklisted DOM fragments are effectively ignored from the root down (in their entirety), in other words it is not possible to "skip" intermediary wrapping elements such as <text-lines>
added by the lining.js
utility library.
PS: blacklisted elements are defined via their ID or CSS Selector, and this typically includes well-known items such as the additional HTML markup that can potentially be injected by MathJax.
In Readium2 there is currently no such mechanism at all, ... but then there is no real support for CFI either, yet ;) That being said, readium-desktop
currently uses a pseudo-canonical CSS Selector (i.e. not just an ID reference) to record the reading location (DOM element), so modifying the DOM in order to implement special reading system features (such as line-by-line highlighting, page-break formatting, etc.) still has a disruptive ; if not destructive ; effect.
from readium-css.
So, DysAide extension is now Aidodys Free due to a partnership with the Aidodys company.
from readium-css.
This has been resolved during today’s engineering call.
Here are the notes:
- Pushed by associations for dyslexic / dyspraxic people
- Difficult with CSS (because of columns).
- With some time, JS and CSS, we could get something. With the code blocks used for highlighting. - Complexity is when there are images or other complex structures.
- Probably done by others already. Maybe contact Learning Ally, Mobidys.
- Here’s a proof-of-concept: http://jsfiddle.net/Fptq2/4/
- MS Immersive Reader SDK is an interesting solution, but not free. https://www.onenote.com/learningtools
So this is out of scope for Readium CSS, and should be handled programmatically.
from readium-css.
Instead of closing this issue, could we move it to the architecture repo? I think that all of these discussions are still relevant to our project.
from readium-css.
Ah so I can reopen the issue but not transfer it via the built-in feature.
But someone being an admin in both the ReadiumCSS and Architecture repos should be able to do so.
from readium-css.
Issue moved to readium/architecture #114 via ZenHub
from readium-css.
Related Issues (20)
- `-webkit-perspective: 1` kills performance in CSS column paginated large HTML documents HOT 11
- EPUB with `overflow-x: hidden` style breaks pagination HOT 12
- CSS HTML5 patch causes some digits to descent from baseline HOT 4
- CSS HTML5 patch causes some digits to descent from baseline
- CSS HTML5 patch causes some digits to descent from baseline
- Long hyperlinks overlap on the next column HOT 3
- forcing "start" text alignment (left or right depending on document language) does not work with "inherit" HOT 1
- Overflow on long words HOT 4
- in scroll mode, "page width" (line length) is too short HOT 19
- Target for Browser/Webview support? HOT 3
- Dist stylesheets and minification HOT 4
- Default Stylesheet for non-reflowable EPUB contents e.g. reading mode
- ReadiumCSS Reset/Unset
- Fonts update HOT 2
- Letter-spacing for japanese HOT 9
- Overview of new CSS specs of interest HOT 2
- Improve handling of body overflow HOT 1
- Defining design guidelines based on CSS support HOT 2
- User setting to disable/hide ruby
- Park support of pagination for vertical writing
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 readium-css.