![]() |
PrincePDF and styles.css on Linux
Hi,
I am trying to use the PrincePDF plugin on Sigil 1.6.0 on Linux. I added Code:
"style": true,I put a custom style.css in the following directories, but the plugin does not find it (The epub file is in /home/user): Quote:
Code:
prince: Applying style sheets...The below is just a guess as I cannot code (it did not work), but I also tried temporarily changing the line in plugin.py , from: Code:
stylesheet_path = os.path.join(bk._w.plugin_dir, bk._w.plugin_name, 'style.css')Code:
stylesheet_path = os.path.join('/home/user', 'style.css')Thanks, L |
Quote:
Code:
/home/user/.local/share/sigil-book/sigil/plugins/PrincePDFCode:
prince: loading style sheet: ../style.cssCode:
prince: loading style sheet: /home/<USER>/.local/share/sigil-ebook/sigil/plugins/PrincePDF/style.css |
Hi,
That was the actual output: https://imgur.com/a/BxMx613 https://imgur.com/a/BxMx613 I just ran Sigil from terminal, and I noticed: Quote:
Also, I can now see that I was incorrectly using "styles.css", rather than style.css. |
You don't want to be copying stuff to Sigil's scratch (temp) directory. Bad things can happen. But then the plugin's code doesn't indicate it would be looking for the custom style.css file in that location in the first place.
Did you make sure to run Sigil's Tools > Restructure Epub to Sigil Norm before running the PrincePDF plugin? It sounds to me that there are some pathing issues you're running into. As per the plugin's notes from the first page: Quote:
|
| All times are GMT -4. The time now is 08:28 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.