![]() Profile.2.icon=jar:file:///C:/Program Files/Variations/Client/djvuencoder.jar!/edu/indiana/dml/util/scoreencoder/colorIcon.png Profile.1.djvuPath="C:/Program Files/DjVuZone/DjVuLibre/cjb2.exe" Profile.1.convertParams=+dither +antialias ![]() Profile.1.convertPath="C:/Program Files/ImageMagick-6.6.9-Q16/convert.exe" Profile.1.icon=jar:file:///C:/Program Files/Variations/Client/djvuencoder.jar!/edu/indiana/dml/util/scoreencoder/bitonalIcon.png This value specifies if this encoding profile is bitonal or not.This value should have any parameters to be passed to the djvu encoder executable.This valueshould point to where you have the djvu encoder executables.This value should have any parameters to be passed to the convert executable.This value should point to where you have the convert executable.This value should have a file URI that points to an icon to represent this encoding profile.This value should have a short name for this encoding profile.Each encoding profile has seven configurable properties: You can specify up to 10 encoding profiles (0 to 9) in the configuration file. The configuration file nf, located in the Client directory, has two example encoding profiles and one general configurable property. Paths should use forward slashes, not the Windows-style backslash. The jar file will run similar to the example Running the Encoder.A different nf can be specified in the jar file.The jar requires that nf (The configuration file) is in the same directory.Included in this directory is djvuencoder.jar which can be run from the commandline or from double clicking it. The configuration file is set to look in these default places for the encoders.Īll files necessary to run the gui encoder can be found in the Client directory.Recommended Path for the color encoder C:/Program Files/DjVuZone/DjVuLibre/c44.exe.Recommended Path for the bitonal encoder C:/Program Files/DjVuZone/DjVuLibre/cjb2.exe.Recommended Default Location : C:/Program Files/DjVuZone/DjVuLibre/,.Extracted directory: DjVuLibre-x.x.x-win32.Download DjVuLibre's source files and follow their instructions for compilation and installation.Download DjVuLibre's install file of the latest compiled binaries.The configuration file is set to look in this default place for ImagMagick.Recommend Location: C:/Program Files/ImageMagick-6.6.9-Q16/.ImageMagick File: Q16-windows-dll 6.6.9-2.Remember where it was installed because it will need to be specified in the configuration file. Download ImageMagick's compiled binaries for your platform from and follow the instructions given to install to your local machine.Setting up the DjVu Standalone Encoder Installing ImageMagick This convenience utility is a Java Application that wraps the command line tools convert (ImageMagick), c44, and cjb2 (djvulibre). If you are a coder maybe you can use those to create a native application or plugin.Setting up and Running the DjVu Standalone Encoder Suggestions welcome.īTW, this depends on my build of the djvulibre tools and libs. Possibly a one-shot systemd service can do it. I am looking for a way to automate this, but it's not possible from the RPM alone as it must be run as user. To avoid typing, you can get the little script from the git repo: Lca-tool -setmimedefault image/x-djvu openrepos-djvulibre-open Lca-tool -setmimedefault image/x.djvu openrepos-djvulibre-open Lca-tool -setmimedefault image/vnd.djvu+multipage openrepos-djvulibre-open Lca-tool -setmimedefault image/vnd.djvu openrepos-djvulibre-open To setup manually run these commands as regular user in the terminal: ![]() NOTE: after installation you have to enable the mime type handler in jolla-settings (available in the djvulibre-open-0.3.0 version). Not ideal, but it allows you to view djvu files you have or encounter. You will have to excert some patience for the files to open. The helper script will convert the djvu temporarily into PDF, and launch Sailfish Office (a.k.a. This installs a MIME type handler for DjVu files.Īs there is no native support for that file type, I have chosen to do a workaround. 2022 Update: due to the commendable efforts of Forum user yura.beznos, there is now a proper DjView viewing app, and it's even available in the Jolla Store.
0 Comments
Leave a Reply. |