Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 12-26-2018, 12:21 PM   #16
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,520
Karma: 14554225
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Djeturn View Post
How easy (or difficult) would you say it might be to port this plugin so that it uses WeasyPrint? It's not as "complete" as Prince is, but from my brief usage it feels like it's good enough for ebooks, and is a free alternative.
I've looked at the installation instructions and setting up WeasyPrint is not exactly easy, because of the many dependencies. OTOH, Prince requires only a single binary. This doesn't make WeasyPrint a good candidate for a plugin.
Doitsu is offline   Reply With Quote
Old 01-09-2019, 12:48 PM   #17
AutomaticSync
Junior Member
AutomaticSync began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2018
Device: none
Question PRINCE PDF

Hello,

I'm reaching out about a similar issue with the Prince PDF plug-in. I am a MAC OS user.

I downloaded the Prince PDF plug-in and the prince installation file.

I am having trouble installing the Prince file. When I open it to install it simply expands to a folder, and within that folder there is an install file (install.sh). When I open this, it simply opens a text file with a lot of code. Do you know if this is supposed to happen?

You mention in the plug-in section for Prince PDF on this forum that we need to "Make sure to install prince in the default location."

Where is the default location? I'm wondering if this is related to my issue using prince pdf on Sigil.

After doing this I tried to use the Prince PDF plug-in in Sigil and it's giving me this response:

Status: failed

prince not found: /usr/local/bin/prince

I have prince in my files but it's not detecting it. Can you help me with this issue?
AutomaticSync is offline   Reply With Quote
Old 01-09-2019, 03:23 PM   #18
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,520
Karma: 14554225
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AutomaticSync View Post
I downloaded the Prince PDF plug-in and the prince installation file.

I am having trouble installing the Prince file. When I open it to install it simply expands to a folder, and within that folder there is an install file (install.sh).
The Prince developers apparently didn't provide a proper installer. Users are expected to run a shell script, which will install prince in /usr/local/bin/prince.

For detailed instructions see the Prince PDF website.

Note that you'll need to replace to prince-9.0-macosx with prince-12.4-macosx. For example:

Code:
tar xzf prince-12.4-macosx.tar.gz 
cd prince-12.4-macosx
If you have additional questions about other plugins, ask the plugin developers not the Sigil developers.
Doitsu is offline   Reply With Quote
Old 04-01-2019, 07:31 PM   #19
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,039
Karma: 3777777
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Hi Doitsu;

Would it be possible to modify your "plugin.py" file so the path to Prince.exe is able to be different from the standar location?

TIA
Rubén
RbnJrg is offline   Reply With Quote
Old 04-02-2019, 02:27 AM   #20
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,520
Karma: 14554225
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by RbnJrg View Post
Would it be possible to modify your "plugin.py" file so the path to Prince.exe is able to be different from the standar location?
You can specify a custom prince path by inserting the following entry at the beginning of PrincePDF.json:

Code:
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe",
(Obviously, you'll need to change the path.)

Note also that you'll have to use double backslashes (\\) in Windows paths.
Doitsu is offline   Reply With Quote
Old 04-02-2019, 08:05 AM   #21
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,039
Karma: 3777777
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Doitsu View Post
You can specify a custom prince path by inserting the following entry at the beginning of PrincePDF.json:

Code:
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe",
(Obviously, you'll need to change the path.)

Note also that you'll have to use double backslashes (\\) in Windows paths.
Thank you Doitsu but, where can I find PrincePDF.json in my system? I can't find it anywhere.
RbnJrg is offline   Reply With Quote
Old 04-02-2019, 08:33 AM   #22
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,520
Karma: 14554225
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by RbnJrg View Post
Thank you Doitsu but, where can I find PrincePDF.json in my system? I can't find it anywhere.
In Sigil, select Edit > Preferences > Open Preferences Location then double-click the plugins_prefs folder and create a new PrincePDF folder. In the PrincePDF folder, create a PrincePDF.json text file with the following contents:

Code:
{
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe"
}
If you add additional entries, you'll need to terminate the line with a comma:

For example:

Code:
{
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe",
  "cpdf": true
}
Doitsu is offline   Reply With Quote
Old 04-02-2019, 09:26 AM   #23
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,039
Karma: 3777777
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Doitsu View Post
In Sigil, select Edit > Preferences > Open Preferences Location then double-click the plugins_prefs folder and create a new PrincePDF folder. In the PrincePDF folder, create a PrincePDF.json text file with the following contents:

Code:
{
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe"
}
If you add additional entries, you'll need to terminate the line with a comma:

For example:

Code:
{
  "prince_path" : "D:\\Program Files (x86)\\Prince\\engine\\bin\\prince.exe",
  "cpdf": true
}
Many thanks!! All worked perfectly.
RbnJrg is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF Export fails KRead123 Calibre 2 05-19-2016 05:56 AM
pdf metadata export devils_add Library Management 4 05-09-2014 02:46 AM
Request Batch export annotated pdf gotmilt enTourage eDGe 2 11-18-2011 04:57 PM
pdf import/export and notes nettomb Sony Reader 0 04-03-2011 08:42 PM
PRS-650 Export pdf with highlights? zoobiliezoo Sony Reader 0 10-28-2010 01:11 AM


All times are GMT -4. The time now is 09:02 PM.


MobileRead.com is a privately owned, operated and funded community.