Can I set a Style Tweak setting by directory ? #14913
Replies: 18 comments 3 replies
-
|
No real idea (not using that plugin). May be try using that format Also, once opened, look in the book.sdr/metadata.epub.lua if that setting is copied. |
Beta Was this translation helpful? Give feedback.
-
|
I've edited my initial directory_defaults.lua file with the format you suggested but it still gives me no result. When I check the content of a newly opened book metadata.epub.lua, the style tweak is not copied. I also tried to simply add a classic setting like |
Beta Was this translation helpful? Give feedback.
-
|
I'm also affected by this. In my case I'd like that all the epubs downloaded from a certain news feed receive the style tweak appropriate for them. I have also set, as @chatteleyn, my lines in Shall we open a bug issue on this? |
Beta Was this translation helpful? Give feedback.
-
|
(even removing [[ ]], after #11539 (comment) did not help) |
Beta Was this translation helpful? Give feedback.
-
|
Does it fail just for style_tweaks ? If you set any other font related setting, it works ? |
Beta Was this translation helpful? Give feedback.
-
|
To remove the doubt about that, and also about spaces and nonASCII chars in the path and in the filename, I've tried now which didn't seem to work either. I've also tried to quit KR and reopen the book. (when are changes to directory_default supposed to work btw? immediately? After the book is closed and reopened? at the next restart of KR? If metadata.lua is cleared?) In the issues I have found this confirmation that at least for someone, something worked in 2024. So maybe a regression, or a platform dependence? |
Beta Was this translation helpful? Give feedback.
-
|
I personally did what I wanted to do with koreader profiles, seems to be easier to set and more powerful anyway |
Beta Was this translation helpful? Give feedback.
-
|
Works for me running version 2026-03-13 |
Beta Was this translation helpful? Give feedback.
-
|
style tweaks and hebrew in keys both work |
Beta Was this translation helpful? Give feedback.
-
|
Shouldn't the folder with the book be under the Home folder? |
Beta Was this translation helpful? Give feedback.
-
|
How can I help debugging then? I'm on 2026-03-13 as well.
This is a pocketbook PB631 (FW 5.x). |
Beta Was this translation helpful? Give feedback.
-
|
I mean KOReader Home folder. |
Beta Was this translation helpful? Give feedback.
-
|
If you mean in the file browser, I did it now. I don't see that it changes things. The style tweak is not applied on epubs in the intended dir, neither previously opened ones, nor never opened ones. |
Beta Was this translation helpful? Give feedback.
-
|
I think something wrong with paths. |
Beta Was this translation helpful? Give feedback.
-
|
Here you go. On one account I must correct myself, the paths have to be really to be or is that a red herring about another plugin ( |
Beta Was this translation helpful? Give feedback.
-
|
I don't understand. (mind bidi display) |
Beta Was this translation helpful? Give feedback.
-
|
Aren't strings compared as UTF? bidi is only presentational here. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I think I've sorted that out, once I looked with a bit more attention in the
Sorry for the noise then, and thanks for the feedback... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to edit directory_defaults.lua to set the setting
paragraph_web_browser_styletoTrueto have a specific paragraph style for only one directory. I copied the value that I found in a metadata_default.lua file but I can't make it work and I don't know if this is because my file is wrong or because this is not currently supported by Koreader.Here is the content of directory_defaults.lua
Do you find an error in the file content or do you know if style tweak by directory is not supported in Koreader ?
Beta Was this translation helpful? Give feedback.
All reactions