Comments (1)
Currently you can already force any style you'd like using the user stylesheet.
What remains is whether to force things by default and how to make it optional. It would be possible to add these option in the settings, but then there's the question of whether to present them as separate options, or to bundle them together in a single "override publisher style" sort of option.
Always forcing justification by default is absolutely out of the question. In my opinion it breaks too many things to even be an optional setting.
Forcing line-height by default might be tolerable. It's perhaps okay and in fact somewhat necessary when forcing the font. The problem here is how exactly to force it. Maybe just use !important
for p
, li
and dd
, but that might not be enough for some books. (Not sure about blockquote
even though currently it does set it [without !important
but ordered at the end of non-inline styles]. Perhaps only apply it to blockquotes containing only phrasing content, like blockquote:not(:has(p, h1, h2, h3, h4, h5, h6, header, hgroup, section, article, aside, div))
but that seems a bit heavy.)
So here's one tentative solution:
- For line-height, make the "override publisher font" setting also control whether line-height is overridden. It might be good to put the line-height setting close to the font settings.
- For justification, do nothing. Keep the current behavior and never force it. And maybe clarify this by changing the title "Paragraph" to "Default paragraph style" or something similar.
Some alternatives:
- Provide a separate option for forcing individual settings. Though in conception a simple solution, I'd very much like to avoid this option-geddon if possible.
- Provide an option similar to the browser's reader mode where everything is overridden. One problem with this approach is that it might require reloading the page to take effect.
- Do nothing. Just use the user stylesheet or edit the books.
from foliate.
Related Issues (20)
- Is there any way to configure TTS in Foliate 3.1.1? HOT 1
- Text doesn't show. HOT 1
- Improve SVG viewer
- Any chance for an AppImage version ? HOT 1
- Option to open PDFs in external app
- Resizing one foliate instance would causes the other foliate instance will also resize HOT 1
- Allow trusted books to load contents from the internet HOT 3
- Segfault(often but not always) when copying text HOT 1
- Bookmark not Working on .mobi File
- how to change the theme from dark to light.
- Consistent crash upon expanding the annotation type menu HOT 2
- Zooming in in PDFs HOT 4
- Foliate crashes upon adding OPDS url HOT 2
- unable show after open, need to go into library and select the book HOT 5
- Foliate is unable to find books after #ecd9a15f HOT 4
- Dual Screen Mode
- ebooks lost after restart HOT 3
- feat: mouse back button should work like browser
- When in remote repositories (Internet archive, ect built in), the screen flashes HOT 1
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 foliate.