summaryrefslogtreecommitdiff
path: root/office/zathura
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-08-01 12:23:35 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:24 +0700
commit499ca7b26310bc343b19c314f28ef49ccf29fbb4 (patch)
treef1897dbcabf072ffd010e76c9b99ff29b527bac1 /office/zathura
parent14d5175ca71ee275c0056fdcf4b7d80c3de9289f (diff)
downloadslackbuilds-499ca7b26310bc343b19c314f28ef49ccf29fbb4.tar.gz
office/zathura: Updated for version 0.4.8.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/zathura')
-rw-r--r--office/zathura/ChangeLog.old55
-rw-r--r--office/zathura/dlopen_hack.diff19
-rw-r--r--office/zathura/doinst.sh6
-rw-r--r--office/zathura/man/zathura.170
-rw-r--r--office/zathura/man/zathurarc.5799
-rw-r--r--office/zathura/slack-desc2
-rw-r--r--office/zathura/synctex_fix.diff59
-rw-r--r--office/zathura/zathura.SlackBuild236
-rw-r--r--office/zathura/zathura.info10
9 files changed, 633 insertions, 623 deletions
diff --git a/office/zathura/ChangeLog.old b/office/zathura/ChangeLog.old
new file mode 100644
index 0000000000..026105dc87
--- /dev/null
+++ b/office/zathura/ChangeLog.old
@@ -0,0 +1,55 @@
+# 20180909 bkw:
+# - Re-enable building with synctex, since texlive has been fixed. This
+# requires a patch, since this version of zathura was written for an
+# older version of texlive.
+
+# 20180903 bkw:
+# - Disable building with synctex, since it currently doesn't work due
+# to a bug in the texlive package. Will be re-enabled when the texlive
+# issue is fixed.
+# - Really get rid of color output from the Makefile. I know it's cute,
+# but it confuses less when redirecting to a file.
+
+# 20180102 bkw:
+# - Updated for v0.3.8. Have to do some fudging to get it to build with
+# Slack 14.2's older glib2: upstream claims they need 2.50, but the
+# only thing they seem to need it for is the --dependency-file option
+# to glib-compile-resources, which turns out to be unneeded.
+
+# 20170711 bkw:
+# - BUILD=2
+# - Include API docs in package
+# - Switch to github URLs since upstream's site has been broken for 3-4
+# days now. Side effect is, it makes it easier for my update script to
+# let me know when there's a new release. This means adding the built
+# man pages to SBo git (otherwise I'd have Sphinx as a dep, yuck).
+
+# 20170125 bkw:
+# - Updated for v0.3.7, poppler plugin v0.2.7
+
+# 20160725 bkw:
+# - Updated for v0.3.6
+
+# 20150511 bkw:
+# - Version bump 0.3.3. The poppler plugin is still on 0.2.5.
+# - Make the poppler plugin's pdf.so a symlink. Will do the same
+# for zathura-pdf-mupdf, to allow switching between the two without
+# reinstalling packages. This wouldn't have worked with older versions,
+# due to changes in glib's g_file_test() between glib 1.x and 2.x.
+# - Upstream started using -fdiagnostics-color=always, which is only
+# supported in newer gcc versions. Get rid of it.
+
+# Updated 20130617 by B. Watson <yalhcru@gmail.com>:
+# - Updated for v0.2.3
+
+# Updated 20120721 by B. Watson <yalhcru@gmail.com>:
+# - Updated for v0.2.0
+# - generated man pages now included by upstream, get rid of ours
+
+# Updated 20120312 by B. Watson <yalhcru@gmail.com>:
+# - Updated for v0.1.1, including poppler plugin
+# - Restore missing .desktop file and AUTHORS doc
+# - Add an icon
+# - Include generated man pages
+# - fix homepage URL
+
diff --git a/office/zathura/dlopen_hack.diff b/office/zathura/dlopen_hack.diff
deleted file mode 100644
index 457d08ced9..0000000000
--- a/office/zathura/dlopen_hack.diff
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -Naur zathura-0.3.3/zathura/zathura.c zathura-0.3.3.patched/zathura/zathura.c
---- zathura-0.3.3/zathura/zathura.c 2015-04-13 16:54:30.000000000 -0400
-+++ zathura-0.3.3.patched/zathura/zathura.c 2015-05-11 14:45:31.000000000 -0400
-@@ -3,6 +3,7 @@
- #define _DEFAULT_SOURCE
- #define _XOPEN_SOURCE 700
-
-+#include <dlfcn.h>
- #include <errno.h>
- #include <stdlib.h>
- #include <unistd.h>
-@@ -116,6 +117,7 @@
- }
-
- /* load plugins */
-+ dlopen("libjpeg.so", RTLD_NOW | RTLD_GLOBAL); /* dirty hack! */
- zathura_plugin_manager_load(zathura->plugins.manager);
-
- /* configuration */
diff --git a/office/zathura/doinst.sh b/office/zathura/doinst.sh
index 5fb28930db..65c7e2eeb9 100644
--- a/office/zathura/doinst.sh
+++ b/office/zathura/doinst.sh
@@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/office/zathura/man/zathura.1 b/office/zathura/man/zathura.1
index fd49b0449b..5df172841e 100644
--- a/office/zathura/man/zathura.1
+++ b/office/zathura/man/zathura.1
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
-.TH "ZATHURA" "1" "2017-01-11" "0.2.7" "zathura"
+.TH "ZATHURA" "1" "2021-07-14" "0.4.8" "zathura"
.SH NAME
zathura \- a document viewer
.
@@ -34,6 +34,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.sp
zathura [\-e XID] [\-c PATH] [\-d PATH] [\-p PATH] [\-w PASSWORD] [\-P NUMBER]
[\-\-fork] [\-l LEVEL] [\-s] [\-x CMD] [\-\-synctex\-forward INPUT] [\-\-synctex\-pid PID]
+[\-find STRING]
<files>
.SH DESCRIPTION
.sp
@@ -57,14 +58,17 @@ Path to the directory containing plugins
.TP
.BI \-w\fP,\fB \-\-password\fB= password
The documents password. If multiple documents are opened at once, the
-password will be used for the first one and zathura will ask for the
-passwords of the remaining files if needed .
+password will be used for the first one and zathura will ask for the
+passwords of the remaining files if needed.
.TP
.BI \-P\fP,\fB \-\-page\fB= number
Opens the document at the given page number. Pages are numbered starting
with 1, and negative numbers indicate page numbers starting from the end
of the document, \-1 being the last page.
.TP
+.BI \-f\fP,\fB \-\-find\fB= string
+Opens the document and searches for the given string.
+.TP
.BI \-l\fP,\fB \-\-log\-level\fB= level
Set log level (debug, info, warning, error)
.TP
@@ -81,6 +85,9 @@ Instead of looking for an instance having the correct file opened, try only
the instance with the given PID. Note that if the given PID does not have the
correct file open or does not exist, no new instance will be spanned.
.TP
+.BI \-\-mode\fB= mode
+Start in a non\-default mode
+.TP
.B \-\-fork
Fork into background
.TP
@@ -118,6 +125,9 @@ Scroll a full page left, down, up or right
.B gg, G, nG
Goto to the first, the last or to the nth page
.TP
+.B P
+Snaps to the current page
+.TP
.B H, L
Goto top or bottom of the current page
.TP
@@ -148,6 +158,9 @@ Follow links
.B F
Display link target
.TP
+.B c
+Copy link target into the clipboard
+.TP
.B :
Enter command
.TP
@@ -155,7 +168,7 @@ Enter command
Rotate by 90 degrees
.TP
.B ^r
-Recolor
+Recolor (grayscale and invert colors)
.TP
.B R
Reload document
@@ -352,8 +365,53 @@ interface. To support synctex backwards synchronization, zathura provides a
D\-Bus interface that can be called by the editor. For convince zathura also
knows how to parse the output of the \fIsynctex view\fP command. It is enough to
pass the arguments to \fIsynctex view\fP\(aqs \fI\-i\fP option to zathura via
-\fI\-\-syntex\-forward\fP and zathura will pass the information to the correct
+\fI\-\-synctex\-forward\fP and zathura will pass the information to the correct
instance.
+.sp
+For gvim forward and backwards synchronization support can be set up as follows:
+First add the following to the vim configuration:
+.INDENT 0.0
+.INDENT 3.5
+.sp
+.nf
+.ft C
+function! Synctex()
+ execute "silent !zathura \-\-synctex\-forward " . line(\(aq.\(aq) . ":" . col(\(aq.\(aq) . ":" . bufname(\(aq%\(aq) . " " . g:syncpdf
+ redraw!
+endfunction
+map <C\-enter> :call Synctex()<cr>
+.ft P
+.fi
+.UNINDENT
+.UNINDENT
+.sp
+Then launch \fIzathura\fP with
+.INDENT 0.0
+.INDENT 3.5
+.sp
+.nf
+.ft C
+zathura \-x "gvim \-\-servername vim \-c \e"let g:syncpdf=\(aq$1\(aq\e" \-\-remote +%{line} %{input}" $file
+.ft P
+.fi
+.UNINDENT
+.UNINDENT
+.sp
+Some editors support zathura as viewer out of the box:
+.INDENT 0.0
+.IP \(bu 2
+LaTeXTools for SublimeText
+(\fI\%https://latextools.readthedocs.io/en/latest/available\-viewers/#zathura\fP)
+.IP \(bu 2
+LaTeX for Atom (\fI\%https://atom.io/packages/latex\fP)
+.UNINDENT
+.SH ENVIRONMENT VARIABLES
+.INDENT 0.0
+.TP
+.B ZATHURA_PLUGINS_PATH
+Path to the directory containing plugins. This directory is only considered if
+no other directory was specified using \-\-plugins\-dir.
+.UNINDENT
.SH KNOWN BUGS
.sp
If GDK_NATIVE_WINDOWS is enabled you will experience problems with large
@@ -366,6 +424,6 @@ appear, if overlay\-scrollbar is enabled in GTK_MODULES.
.SH AUTHOR
pwmt.org
.SH COPYRIGHT
-2009-2015, pwmt.org
+2009-2021, pwmt.org
.\" Generated by docutils manpage writer.
.
diff --git a/office/zathura/man/zathurarc.5 b/office/zathura/man/zathurarc.5
index 93b42be0a8..bd6d64daad 100644
--- a/office/zathura/man/zathurarc.5
+++ b/office/zathura/man/zathurarc.5
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
-.TH "ZATHURARC" "5" "2017-01-11" "0.2.7" "zathura"
+.TH "ZATHURARC" "5" "2021-07-14" "0.4.8" "zathura"
.SH NAME
zathurarc \- zathura configuration file
.
@@ -91,8 +91,13 @@ set option5 "hello world"
.UNINDENT
.UNINDENT
.sp
-If you want to use \fBcolor codes\fP for some options, make sure to quote them
-accordingly or to escape the hash symbol.
+Especially for options with strings as values, note that escaping of special characters and white
+spaces is necessary. In the above example, \fBoption4\fP and \fBoption5\fP are both set to \fBhello
+world\fP, but \fBset option6 hello world\fP would set \fBoption6\fP only to \fBhello\fP\&.
+.sp
+For colors, zathura supports HTML color codes and CSS3\-style \fBrgb(r,g,b)\fP and \fBrgba(r,g,b,a)\fP
+values. If you want to use color codes for some options, make sure to quote them accordingly or
+to escape the hash symbol.
.INDENT 0.0
.INDENT 3.5
.sp
@@ -104,79 +109,85 @@ set default\-fg \e#CCBBCC
.fi
.UNINDENT
.UNINDENT
-.SS map \- Mapping a shortcut
.sp
-It is possible to map or remap new key bindings to shortcut functions which
-allows a high level of customization. The \fB:map\fP command can also be used in
-the \fIzathurarc\fP file to make those changes permanent:
+For \fBrgba\fP, note that it parses the color components as integers between 0 and 255 and the alpha
+component as float between 0 and 1.
+.SS include \- Including another config file
+.sp
+This commands allows one to include other configuration files. If a relative
+path is given, the path will be resolved relative to the configuration file that
+is currently processed.
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
-map [mode] <binding> <shortcut function> <argument>
+include another\-config
.ft P
.fi
.UNINDENT
.UNINDENT
-.SS include \- Including another config file
+.SS map \- Mapping a shortcut
.sp
-This commands allows one to include other configuration files. If a relative
-path is given, the path will be resolved relative to the configuration file that
-is currently processed.
+It is possible to map or remap new key bindings to shortcut functions which
+allows a high level of customization. The \fB:map\fP command can also be used in
+the \fIzathurarc\fP file to make those changes permanent:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
-include another\-config
+map [mode] <binding> <shortcut function> <argument>
.ft P
.fi
.UNINDENT
.UNINDENT
-.SS Mode
-.sp
+.INDENT 0.0
+.TP
+.B \fIMode\fP
The \fBmap\fP command expects several arguments where only the \fBbinding\fP as well as
the \fBshortcut\-function\fP argument is required. Since zathura uses several modes
it is possible to map bindings only for a specific mode by passing the \fBmode\fP
argument which can take one of the following values:
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
normal (default)
.IP \(bu 2
fullscreen
.IP \(bu 2
+presentation
+.IP \(bu 2
index
.UNINDENT
.sp
The brackets around the value are mandatory.
-.SS Single key binding
-.sp
+.TP
+.B \fISingle key binding\fP
The (possible) second argument defines the used key binding that should be
mapped to the shortcut function and is structured like the following. On the one
hand it is possible to just assign single letters, numbers or signs to it:
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
-map a shortcut_function
-map b shortcut_function
-map c shortcut_function
-map 1 shortcut_function
-map 2 shortcut_function
-map 3 shortcut_function
-map ! shortcut_function
-map ? shortcut_function
+map a shortcut_function optional_argument
+map b shortcut_function optional_argument
+map c shortcut_function optional_argument
+map 1 shortcut_function optional_argument
+map 2 shortcut_function optional_argument
+map 3 shortcut_function optional_argument
+map ! shortcut_function optional_argument
+map ? shortcut_function optional_argument
.ft P
.fi
.UNINDENT
.UNINDENT
-.SS Using modifiers
-.sp
+.TP
+.B \fIUsing modifiers\fP
It is also possible to use modifiers like the Control or Alt button on the
keyboard. It is possible to use the following modifiers:
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
A \- Alt
.IP \(bu 2
@@ -185,8 +196,9 @@ C \- Control
S \- Shift
.UNINDENT
.sp
-Now it is required to define the \fBbinding\fP with the following structure:
-.INDENT 0.0
+If any of the modifiers should be used for a binding, it is required to define
+the \fBbinding\fP with the following structure:
+.INDENT 7.0
.INDENT 3.5
.sp
.nf
@@ -197,12 +209,12 @@ map <C\-a> shortcut_function
.fi
.UNINDENT
.UNINDENT
-.SS Special keys
-.sp
+.TP
+.B \fISpecial keys\fP
zathura allows it also to assign keys like the space bar or the tab button which
also have to be written in between angle brackets. The following special keys
are currently available:
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
.sp
.nf
@@ -242,7 +254,7 @@ Print Print key
.sp
Of course it is possible to combine those special keys with a modifier. The
usage of those keys should be explained by the following examples:
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
.sp
.nf
@@ -253,11 +265,11 @@ map <C\-Space> shortcut_function
.fi
.UNINDENT
.UNINDENT
-.SS Mouse buttons
-.sp
+.TP
+.B \fIMouse buttons\fP
It is also possible to map mouse buttons to shortcuts by using the following
special keys:
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
.sp
.nf
@@ -273,6 +285,7 @@ Button5 Mouse button 5
.fi
.UNINDENT
.UNINDENT
+.UNINDENT
.sp
They can also be combined with modifiers:
.INDENT 0.0
@@ -286,11 +299,12 @@ map <C\-Button1> shortcut_function
.fi
.UNINDENT
.UNINDENT
-.SS Buffer commands
-.sp
+.INDENT 0.0
+.TP
+.B \fIBuffer commands\fP
If a mapping does not match one of the previous definition but is still a valid
mapping it will be mapped as a buffer command:
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
.sp
.nf
@@ -301,10 +315,10 @@ map test quit
.fi
.UNINDENT
.UNINDENT
-.SS Shortcut functions
-.sp
+.TP
+.B \fIShortcut functions\fP
The following shortcut functions can be mapped:
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
\fBabort\fP
.sp
@@ -322,6 +336,10 @@ Change current mode. Pass the desired mode as argument.
.sp
Display link target.
.IP \(bu 2
+\fBexec\fP:
+.sp
+Execute an external command.
+.IP \(bu 2
\fBfocus_inputbar\fP
.sp
Focus inputbar.
@@ -336,7 +354,8 @@ Go to a certain page.
.IP \(bu 2
\fBjumplist\fP
.sp
-Move forwards/backwards in the jumplist.
+Move forwards/backwards in the jumplist. Pass \fBforward\fP as argument to
+move to the next entry and \fBbackward\fP to move to the previous one.
.IP \(bu 2
\fBnavigate\fP
.sp
@@ -380,6 +399,10 @@ hit and \fBbackward\fP to search for the previous hit.
.sp
Set an option.
.IP \(bu 2
+\fBsnap_to_page\fP
+.sp
+Snaps to the current page. Equivalent to \fBgoto <current_page>\fP
+.IP \(bu 2
\fBtoggle_fullscreen\fP
.sp
Toggle fullscreen.
@@ -405,29 +428,44 @@ Show or hide statusbar.
Zoom in or out.
.IP \(bu 2
\fBmark_add\fP
+.sp
Set a quickmark.
.IP \(bu 2
\fBmark_evaluate\fP
+.sp
Go to a quickmark.
-.UNINDENT
-.SS Pass arguments
+.IP \(bu 2
+\fBfeedkeys\fP
.sp
+Simulate key presses. Note that all keys will be interpreted as if pressing a
+key on the keyboard. To input uppercase letters, follow the same convention as
+for key bindings, i.e. for \fBX\fP, use \fB<S\-X>\fP\&.
+.UNINDENT
+.TP
+.B \fIPass arguments\fP
Some shortcut function require or have optional arguments which influence the
behaviour of them. Those can be passed as the last argument:
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
+.sp
+.nf
+.ft C
map <C\-i> zoom in
map <C\-o> zoom out
+.ft P
+.fi
.UNINDENT
.UNINDENT
.sp
Possible arguments are:
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
best\-fit
.IP \(bu 2
bottom
.IP \(bu 2
+backward
+.IP \(bu 2
collapse
.IP \(bu 2
collapse\-all
@@ -440,6 +478,8 @@ expand
.IP \(bu 2
expand\-all
.IP \(bu 2
+forward
+.IP \(bu 2
full\-down
.IP \(bu 2
full\-up
@@ -480,6 +520,7 @@ up
.IP \(bu 2
width
.UNINDENT
+.UNINDENT
.SS unmap \- Removing a shortcut
.sp
In addition to mapping or remaping custom key bindings it is possible to remove
@@ -497,836 +538,860 @@ unmap [mode] <binding>
.UNINDENT
.UNINDENT
.SH OPTIONS
-.SS girara
.sp
-This section describes settings concerning the behaviour of libgirara and
+This section describes settings concerning the behaviour of girara and
zathura. The settings described here can be changed with \fBset\fP\&.
-.SS n\-completion\-items
-.sp
-Defines the maximum number of displayed completion entries.
+.SS girara
.INDENT 0.0
+.TP
+.B \fIn\-completion\-items\fP
+Defines the maximum number of displayed completion entries.
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 15
.UNINDENT
-.SS completion\-bg
-.sp
+.TP
+.B \fIcompletion\-bg\fP
Defines the background color that is used for command line completion
entries
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #232323
.UNINDENT
-.SS completion\-fg
-.sp
+.TP
+.B \fIcompletion\-fg\fP
Defines the foreground color that is used for command line completion
entries
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #DDDDDD
.UNINDENT
-.SS completion\-group\-bg
-.sp
+.TP
+.B \fIcompletion\-group\-bg\fP
Defines the background color that is used for command line completion
group elements
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #000000
.UNINDENT
-.SS completion\-group\-fg
-.sp
+.TP
+.B \fIcompletion\-group\-fg\fP
Defines the foreground color that is used for command line completion
group elements
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #DEDEDE
.UNINDENT
-.SS completion\-highlight\-bg
-.sp
+.TP
+.B \fIcompletion\-highlight\-bg\fP
Defines the background color that is used for the current command line
completion element
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #9FBC00
.UNINDENT
-.SS completion\-highlight\-fg
-.sp
+.TP
+.B \fIcompletion\-highlight\-fg\fP
Defines the foreground color that is used for the current command line
completion element
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #232323
.UNINDENT
-.SS default\-fg
-.sp
+.TP
+.B \fIdefault\-fg\fP
Defines the default foreground color
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #DDDDDD
.UNINDENT
-.SS default\-bg
-.sp
+.TP
+.B \fIdefault\-bg\fP
Defines the default background color
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #000000
.UNINDENT
-.SS exec\-command
-.sp
-Defines a command the should be prepanded to any command run with exec.
-.INDENT 0.0
+.TP
+.B \fIexec\-command\fP
+Defines a command the should be prepended to any command run with exec.
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value:
.UNINDENT
-.SS font
-.sp
+.TP
+.B \fIfont\fP
Defines the font that will be used
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: monospace normal 9
.UNINDENT
-.SS guioptions
-.sp
+.TP
+.B \fIguioptions\fP
Shows or hides GUI elements.
If it contains \(aqc\(aq, the command line is displayed.
If it contains \(aqs\(aq, the statusbar is displayed.
If it contains \(aqh\(aq, the horizontal scrollbar is displayed.
If it contains \(aqv\(aq, the vertical scrollbar is displayed.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: s
.UNINDENT
-.SS inputbar\-bg
-.sp
+.TP
+.B \fIinputbar\-bg\fP
Defines the background color for the inputbar
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #131313
.UNINDENT
-.SS inputbar\-fg
-.sp
+.TP
+.B \fIinputbar\-fg\fP
Defines the foreground color for the inputbar
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #9FBC00
.UNINDENT
-.SS notification\-bg
-.sp
+.TP
+.B \fInotification\-bg\fP
Defines the background color for a notification
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #FFFFFF
.UNINDENT
-.SS notification\-fg
-.sp
+.TP
+.B \fInotification\-fg\fP
Defines the foreground color for a notification
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #000000
.UNINDENT
-.SS notification\-error\-bg
-.sp
+.TP
+.B \fInotification\-error\-bg\fP
Defines the background color for an error notification
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #FFFFFF
.UNINDENT
-.SS notification\-error\-fg
-.sp
+.TP
+.B \fInotification\-error\-fg\fP
Defines the foreground color for an error notification
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #FF1212
.UNINDENT
-.SS notification\-warning\-bg
-.sp
+.TP
+.B \fInotification\-warning\-bg\fP
Defines the background color for a warning notification
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #FFFFFF
.UNINDENT
-.SS notification\-warning\-fg
-.sp
+.TP
+.B \fInotification\-warning\-fg\fP
Defines the foreground color for a warning notification
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #FFF712
.UNINDENT
-.SS tabbar\-fg
-.sp
-Defines the foreground color for a tab
-.INDENT 0.0
-.IP \(bu 2
-Value type: String
-.IP \(bu 2
-Default value: #FFFFFF
-.UNINDENT
-.SS tabbar\-bg
-.sp
-Defines the background color for a tab
-.INDENT 0.0
-.IP \(bu 2
-Value type: String
-.IP \(bu 2
-Default value: #000000
-.UNINDENT
-.SS tabbar\-focus\-fg
-.sp
-Defines the foreground color for the focused tab
-.INDENT 0.0
-.IP \(bu 2
-Value type: String
-.IP \(bu 2
-Default value: #9FBC00
-.UNINDENT
-.SS tabbar\-focus\-bg
-.sp
-Defines the background color for the focused tab
-.INDENT 0.0
-.IP \(bu 2
-Value type: String
-.IP \(bu 2
-Default value: #000000
-.UNINDENT
-.SS show\-scrollbars
-.sp
-Defines if both the horizontal and vertical scrollbars should be shown or not.
-Deprecated, use \(aqguioptions\(aq instead.
-.INDENT 0.0
-.IP \(bu 2
-Value type: Boolean
-.IP \(bu 2
-Default value: false
-.UNINDENT
-.SS show\-h\-scrollbar
-.sp
-Defines whether to show/hide the horizontal scrollbar. Deprecated, use
-\(aqguioptions\(aq instead.
-.INDENT 0.0
-.IP \(bu 2
-Value type: Boolean
-.IP \(bu 2
-Default value: false
-.UNINDENT
-.SS show\-v\-scrollbar
-.sp
-Defines whether to show/hide the vertical scrollbar. Deprecated, use
-\(aqguioptions\(aq instead.
-.INDENT 0.0
-.IP \(bu 2
-Value type: Boolean
-.IP \(bu 2
-Default value: false
-.UNINDENT
-.SS statusbar\-bg
-.sp
+.TP
+.B \fIstatusbar\-bg\fP
Defines the background color of the statusbar
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #000000
.UNINDENT
-.SS statusbar\-fg
-.sp
+.TP
+.B \fIstatusbar\-fg\fP
Defines the foreground color of the statusbar
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #FFFFFF
.UNINDENT
-.SS statusbar\-h\-padding
-.sp
+.TP
+.B \fIstatusbar\-h\-padding\fP
Defines the horizontal padding of the statusbar and notificationbar
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 8
.UNINDENT
-.SS statusbar\-v\-padding
-.sp
+.TP
+.B \fIstatusbar\-v\-padding\fP
Defines the vertical padding of the statusbar and notificationbar
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 2
.UNINDENT
-.SS window\-icon
-.sp
+.TP
+.B \fIwindow\-icon\fP
Defines the path for a icon to be used as window icon.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value:
.UNINDENT
-.SS window\-height
-.sp
+.TP
+.B \fIwindow\-height\fP
Defines the window height on startup
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 600
.UNINDENT
-.SS window\-width
-.sp
+.TP
+.B \fIwindow\-width\fP
Defines the window width on startup
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 800
.UNINDENT
+.UNINDENT
.SS zathura
-.sp
+.INDENT 0.0
+.INDENT 3.5
This section describes settings concerning the behaviour of zathura.
-.SS abort\-clear\-search
-.sp
-Defines if the search results should be cleared on abort.
+.UNINDENT
+.UNINDENT
.INDENT 0.0
+.TP
+.B \fIabort\-clear\-search\fP
+Defines if the search results should be cleared on abort.
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS adjust\-open
-.sp
+.TP
+.B \fIadjust\-open\fP
Defines which auto adjustment mode should be used if a document is loaded.
Possible options are "best\-fit" and "width".
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: best\-fit
.UNINDENT
-.SS advance\-pages\-per\-row
-.sp
+.TP
+.B \fIadvance\-pages\-per\-row\fP
Defines if the number of pages per row should be honored when advancing a page.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS database
-.sp
+.TP
+.B \fIcontinuous\-hist\-save\fP
+Tells zathura whether to save document history at each page change or only when
+closing a document.
+.INDENT 7.0
+.IP \(bu 2
+Value type: Boolean
+.IP \(bu 2
+Default value: false
+.UNINDENT
+.TP
+.B \fIdatabase\fP
Defines the database backend to use for bookmarks and input history. Possible
values are "plain", "sqlite" (if built with sqlite support) and "null". If
"null" is used, bookmarks and input history will not be stored.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: plain
.UNINDENT
-.SS dbus\-service
-.sp
+.TP
+.B \fIdbus\-service\fP
En/Disables the D\-Bus service. If the services is disabled, SyncTeX forward
synchronization is not available.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS filemonitor
-.sp
-Defines the filemonitor backend. Possible values are "glib" and "signal" (if
-signal handling is supported).
-.INDENT 0.0
+.TP
+.B \fIdbus\-raise\-window\fP
+Defines whether zathura\(aqs window should be raised when receiving certain
+commands via D\-Bus.
+.INDENT 7.0
+.IP \(bu 2
+Value type: Boolean
+.IP \(bu 2
+Default value: true
+.UNINDENT
+.TP
+.B \fIfilemonitor\fP
+Defines the file monitor backend used to check for changes in files. Possible
+values are "glib", "signal" (if signal handling is supported), and "noop". The
+"noop" file monitor does not trigger reloads.
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: glib
.UNINDENT
-.SS incremental\-search
-.sp
+.TP
+.B \fIincremental\-search\fP
En/Disables incremental search (search while typing).
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS highlight\-color
-.sp
+.TP
+.B \fIhighlight\-color\fP
Defines the color that is used for highlighting parts of the document (e.g.:
show search results)
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #9FBC00
.UNINDENT
-.SS highlight\-active\-color
-.sp
+.TP
+.B \fIhighlight\-fg\fP
+Defines the color that is used for text when highlighting parts of the
+document (e.g.: number for links).
+.INDENT 7.0
+.IP \(bu 2
+Value type: String
+.IP \(bu 2
+Default value: #9FBC00
+.UNINDENT
+.TP
+.B \fIhighlight\-active\-color\fP
Defines the color that is used to show the current selected highlighted element
(e.g: current search result)
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #00BC00
.UNINDENT
-.SS highlight\-transparency
-.sp
+.TP
+.B \fIhighlight\-transparency\fP
Defines the opacity of a highlighted element
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Float
.IP \(bu 2
Default value: 0.5
.UNINDENT
-.SS page\-padding
-.sp
+.TP
+.B \fIpage\-padding\fP
The page padding defines the gap in pixels between each rendered page.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 1
.UNINDENT
-.SS page\-cache\-size
-.sp
+.TP
+.B \fIpage\-cache\-size\fP
Defines the maximum number of pages that could be kept in the page cache. When
the cache is full and a new page that isn\(aqt cached becomes visible, the least
recently viewed page in the cache will be evicted to make room for the new one.
Large values for this variable are NOT recommended, because this will lead to
consuming a significant portion of the system memory.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 15
.UNINDENT
-.SS page\-thumbnail\-size
-.sp
+.TP
+.B \fIpage\-thumbnail\-size\fP
Defines the maximum size in pixels of the thumbnail that could be kept in the
thumbnail cache per page. The thumbnail is scaled for a quick preview during
zooming before the page is rendered. When the page is rendered, the result is
saved as the thumbnail only if the size is no more than this value. A larger
value increases quality but introduces longer delay in zooming and uses more
system memory.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 4194304 (4M)
.UNINDENT
-.SS pages\-per\-row
-.sp
+.TP
+.B \fIpages\-per\-row\fP
Defines the number of pages that are rendered next to each other in a row.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 1
.UNINDENT
-.SS first\-page\-column
-.sp
+.TP
+.B \fIfirst\-page\-column\fP
Defines the column in which the first page will be displayed.
This setting is stored separately for every value of pages\-per\-row according to
the following pattern <1 page per row>:[<2 pages per row>[: ...]]. The last
value in the list will be used for all other number of pages per row if not set
explicitly.
.sp
-Per default, the first column is set to 2 for double\-page layout.
-.INDENT 0.0
+Per default, the first column is set to 2 for double\-page layout, i.e. the value
+is set to 1:2. A value of 1:1:3 would put the first page in dual\-page layout in
+the first column, and for layouts with more columns the first page would be put
+in the 3rd column.
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: 1:2
.UNINDENT
-.SS recolor
-.sp
+.TP
+.B \fIrecolor\fP
En/Disables recoloring
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS recolor\-keephue
-.sp
+.TP
+.B \fIrecolor\-keephue\fP
En/Disables keeping original hue when recoloring
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS recolor\-darkcolor
-.sp
+.TP
+.B \fIrecolor\-darkcolor\fP
Defines the color value that is used to represent dark colors in recoloring mode
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #FFFFFF
.UNINDENT
-.SS recolor\-lightcolor
-.sp
+.TP
+.B \fIrecolor\-lightcolor\fP
Defines the color value that is used to represent light colors in recoloring mode
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #000000
.UNINDENT
-.SS recolor\-reverse\-video
-.sp
+.TP
+.B \fIrecolor\-reverse\-video\fP
Defines if original image colors should be kept while recoloring.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS render\-loading
-.sp
+.TP
+.B \fIrender\-loading\fP
Defines if the "Loading..." text should be displayed if a page is rendered.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS render\-loading\-bg
-.sp
+.TP
+.B \fIrender\-loading\-bg\fP
Defines the background color that is used for the "Loading..." text.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #FFFFFF
.UNINDENT
-.SS render\-loading\-fg
-.sp
+.TP
+.B \fIrender\-loading\-fg\fP
Defines the foreground color that is used for the "Loading..." text.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #000000
.UNINDENT
-.SS scroll\-hstep
-.sp
+.TP
+.B \fIscroll\-hstep\fP
Defines the horizontal step size of scrolling by calling the scroll command once
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Float
.IP \(bu 2
Default value: \-1
.UNINDENT
-.SS scroll\-step
-.sp
+.TP
+.B \fIscroll\-step\fP
Defines the step size of scrolling by calling the scroll command once
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Float
.IP \(bu 2
Default value: 40
.UNINDENT
-.SS scroll\-full\-overlap
-.sp
+.TP
+.B \fIscroll\-full\-overlap\fP
Defines the proportion of the current viewing area that should be
visible after scrolling a full page.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Float
.IP \(bu 2
Default value: 0
.UNINDENT
-.SS scroll\-wrap
-.sp
+.TP
+.B \fIscroll\-wrap\fP
Defines if the last/first page should be wrapped
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS show\-directories
-.sp
+.TP
+.B \fIshow\-directories\fP
Defines if the directories should be displayed in completion.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS show\-hidden
-.sp
+.TP
+.B \fIshow\-hidden\fP
Defines if hidden files and directories should be displayed in completion.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS show\-recent
-.sp
+.TP
+.B \fIshow\-recent\fP
Defines the number of recent files that should be displayed in completion.
If the value is negative, no upper bounds are applied. If the value is 0, no
recent files are shown.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 10
.UNINDENT
-.SS scroll\-page\-aware
-.sp
+.TP
+.B \fIscroll\-page\-aware\fP
Defines if scrolling by half or full pages stops at page boundaries.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS smooth\-scroll
-.sp
-Defines if scrolling via touchpad should be smooth(only available with gtk >= 3.4).
-.INDENT 0.0
-.IP \(bu 2
-Value type: Boolean
-.IP \(bu 2
-Default value: false
-.UNINDENT
-.SS link\-zoom
-.sp
+.TP
+.B \fIlink\-zoom\fP
En/Disables the ability of changing zoom when following links.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS link\-hadjust
-.sp
+.TP
+.B \fIlink\-hadjust\fP
En/Disables aligning to the left internal link targets, for example from the
index.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS search\-hadjust
-.sp
+.TP
+.B \fIsearch\-hadjust\fP
En/Disables horizontally centered search results.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS window\-title\-basename
-.sp
+.TP
+.B \fIwindow\-title\-basename\fP
Use basename of the file in the window title.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS window\-title\-home\-tilde
-.sp
+.TP
+.B \fIwindow\-title\-home\-tilde\fP
Display a short version of the file path, which replaces $HOME with ~, in the window title.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS window\-title\-page
-.sp
+.TP
+.B \fIwindow\-title\-page\fP
Display the page number in the window title.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS statusbar\-basename
-.sp
+.TP
+.B \fIstatusbar\-basename\fP
Use basename of the file in the statusbar.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS statusbar\-home\-tilde
-.sp
+.TP
+.B \fIstatusbar\-home\-tilde\fP
Display a short version of the file path, which replaces $HOME with ~, in the statusbar.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS zoom\-center
-.sp
+.TP
+.B \fIzoom\-center\fP
En/Disables horizontally centered zooming.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
-.SS zoom\-max
-.sp
+.TP
+.B \fIvertical\-center\fP
+Center the screen at the vertical midpoint of the page by default.
+.INDENT 7.0
+.IP \(bu 2
+Value type: Boolean
+.IP \(bu 2
+Default value: false
+.UNINDENT
+.TP
+.B \fIzoom\-max\fP
Defines the maximum percentage that the zoom level can be.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 1000
.UNINDENT
-.SS zoom\-min
-.sp
+.TP
+.B \fIzoom\-min\fP
Defines the minimum percentage that the zoom level can be.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 10
.UNINDENT
-.SS zoom\-step
-.sp
+.TP
+.B \fIzoom\-step\fP
Defines the amount of percent that is zoomed in or out on each command.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 10
.UNINDENT
-.SS selection\-clipboard
-.sp
+.TP
+.B \fIselection\-clipboard\fP
Defines the X clipboard into which mouse\-selected data will be written. When it
is "clipboard", selected data will be written to the CLIPBOARD clipboard, and
can be pasted using the Ctrl+v key combination. When it is "primary", selected
data will be written to the PRIMARY clipboard, and can be pasted using the
middle mouse button, or the Shift\-Insert key combination.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: primary
.UNINDENT
-.SS selection\-notification
-.sp
+.TP
+.B \fIselection\-notification\fP
Defines if a notification should be displayed after selecting text.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS synctex
-.sp
+.TP
+.B \fIsynctex\fP
En/Disables SyncTeX backward synchronization support.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
-.SS synctex\-editor\-command
-.sp
+.TP
+.B \fIsynctex\-editor\-command\fP
Defines the command executed for SyncTeX backward synchronization.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value:
.UNINDENT
-.SS index\-fg
-.sp
+.TP
+.B \fIindex\-fg\fP
Defines the foreground color of the index mode.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #DDDDDD
.UNINDENT
-.SS index\-bg
-.sp
+.TP
+.B \fIindex\-bg\fP
Define the background color of the index mode.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #232323
.UNINDENT
-.SS index\-active\-fg
-.sp
+.TP
+.B \fIindex\-active\-fg\fP
Defines the foreground color of the selected element in index mode.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #232323
.UNINDENT
-.SS index\-active\-bg
-.sp
+.TP
+.B \fIindex\-active\-bg\fP
Define the background color of the selected element in index mode.
-.INDENT 0.0
+.INDENT 7.0
.IP \(bu 2
Value type: String
.IP \(bu 2
Default value: #9FBC00
.UNINDENT
+.TP
+.B \fIsandbox\fP
+Defines the sandbox mode to use for the seccomp syscall filter. Possible
+values are "none", "normal" and "strict". If "none" is used, the sandbox
+will be disabled. The use of "normal" will provide minimal protection and
+allow normal use of zathura with support for all features. The "strict" mode
+is a read only sandbox that is intended for viewing documents only.
+.INDENT 7.0
+.IP \(bu 2
+Value type: String
+.IP \(bu 2
+Default value: normal
+.UNINDENT
+.sp
+Some features are disabled when using strict sandbox mode:
+.INDENT 7.0
+.IP \(bu 2
+saving/writing files
+.IP \(bu 2
+use of input methods like ibus
+.IP \(bu 2
+printing
+.IP \(bu 2
+bookmarks and history
+.UNINDENT
+.sp
+No feature regressions are expected when using normal sandbox mode.
+.sp
+When running under WSL, the default is "none" since seccomp is not supported in
+that environment.
+.TP
+.B \fIwindow\-icon\-document\fP
+Defines whether the window document should be updated based on the first page of
+a dcument.
+.INDENT 7.0
+.IP \(bu 2
+Value type: Boolean
+.IP \(bu 2
+Default value: false
+.UNINDENT
+.TP
+.B \fIpage\-right\-to\-left\fP
+Defines whether pages in multi\-column view should start from the right side.
+.INDENT 7.0
+.IP \(bu 2
+Value type: Boolean
+.IP \(bu 2
+Default value: false
+.UNINDENT
+.UNINDENT
.SH SEE ALSO
.sp
zathura(1)
.SH AUTHOR
pwmt.org
.SH COPYRIGHT
-2009-2015, pwmt.org
+2009-2021, pwmt.org
.\" Generated by docutils manpage writer.
.
diff --git a/office/zathura/slack-desc b/office/zathura/slack-desc
index 49889a17df..871551a92b 100644
--- a/office/zathura/slack-desc
+++ b/office/zathura/slack-desc
@@ -14,6 +14,6 @@ zathura: zathura is an application that provides a minimalistic and space
zathura: saving interface as well as an easy usage that mainly focuses on
zathura: keyboard interaction.
zathura:
-zathura: This package was built @WITH@ texlive synctex support.
+zathura:
zathura:
zathura:
diff --git a/office/zathura/synctex_fix.diff b/office/zathura/synctex_fix.diff
deleted file mode 100644
index 904bd663fe..0000000000
--- a/office/zathura/synctex_fix.diff
+++ /dev/null
@@ -1,59 +0,0 @@
-diff -Naur zathura-0.3.8/zathura/synctex.c zathura-0.3.8.patched/zathura/synctex.c
---- zathura-0.3.8/zathura/synctex.c 2017-12-20 08:40:45.000000000 -0500
-+++ zathura-0.3.8.patched/zathura/synctex.c 2018-09-09 13:56:54.489287021 -0400
-@@ -24,13 +24,13 @@
- return false;
- }
-
-- synctex_scanner_t scanner = synctex_scanner_new_with_output_file(filename, NULL, 1);
-+ synctex_scanner_p scanner = synctex_scanner_new_with_output_file(filename, NULL, 1);
- if (scanner == NULL) {
- girara_debug("Failed to create synctex scanner.");
- return false;
- }
-
-- synctex_scanner_t temp = synctex_scanner_parse(scanner);
-+ synctex_scanner_p temp = synctex_scanner_parse(scanner);
- if (temp == NULL) {
- girara_debug("Failed to parse synctex file.");
- synctex_scanner_free(scanner);
-@@ -41,7 +41,7 @@
-
- if (synctex_edit_query(scanner, page + 1u, x, y) > 0) {
- /* Assume that a backward search returns at most one result. */
-- synctex_node_t node = synctex_next_result(scanner);
-+ synctex_node_p node = synctex_scanner_next_result(scanner);
- if (node != NULL) {
- if (input_file != NULL) {
- *input_file = g_strdup(synctex_scanner_get_name(scanner, synctex_node_tag(node)));
-@@ -127,13 +127,13 @@
- ++line;
- ++column;
-
-- synctex_scanner_t scanner = synctex_scanner_new_with_output_file(filename, NULL, 1);
-+ synctex_scanner_p scanner = synctex_scanner_new_with_output_file(filename, NULL, 1);
- if (scanner == NULL) {
- girara_debug("Failed to create synctex scanner.");
- return NULL;
- }
-
-- synctex_scanner_t temp = synctex_scanner_parse(scanner);
-+ synctex_scanner_p temp = synctex_scanner_parse(scanner);
- if (temp == NULL) {
- girara_debug("Failed to parse synctex file.");
- synctex_scanner_free(scanner);
-@@ -143,11 +143,11 @@
- girara_list_t* hitlist = girara_list_new2(g_free);
- girara_list_t* other_rects = girara_list_new2(g_free);
-
-- if (synctex_display_query(scanner, input_file, line, column) > 0) {
-- synctex_node_t node = NULL;
-+ if (synctex_display_query(scanner, input_file, line, column, -1) > 0) {
-+ synctex_node_p node = NULL;
- bool got_page = false;
-
-- while ((node = synctex_next_result (scanner)) != NULL) {
-+ while ((node = synctex_scanner_next_result (scanner)) != NULL) {
- const unsigned int current_page = synctex_node_page(node) - 1;
- if (got_page == false) {
- got_page = true;
diff --git a/office/zathura/zathura.SlackBuild b/office/zathura/zathura.SlackBuild
index 5d65e119de..fcf38c8b04 100644
--- a/office/zathura/zathura.SlackBuild
+++ b/office/zathura/zathura.SlackBuild
@@ -23,69 +23,26 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# 20180909 bkw:
-# - Re-enable building with synctex, since texlive has been fixed. This
-# requires a patch, since this version of zathura was written for an
-# older version of texlive.
-
-# 20180903 bkw:
-# - Disable building with synctex, since it currently doesn't work due
-# to a bug in the texlive package. Will be re-enabled when the texlive
-# issue is fixed.
-# - Really get rid of color output from the Makefile. I know it's cute,
-# but it confuses less when redirecting to a file.
-
-# 20180102 bkw:
-# - Updated for v0.3.8. Have to do some fudging to get it to build with
-# Slack 14.2's older glib2: upstream claims they need 2.50, but the
-# only thing they seem to need it for is the --dependency-file option
-# to glib-compile-resources, which turns out to be unneeded.
-
-# 20170711 bkw:
-# - BUILD=2
-# - Include API docs in package
-# - Switch to github URLs since upstream's site has been broken for 3-4
-# days now. Side effect is, it makes it easier for my update script to
-# let me know when there's a new release. This means adding the built
-# man pages to SBo git (otherwise I'd have Sphinx as a dep, yuck).
-
-# 20170125 bkw:
-# - Updated for v0.3.7, poppler plugin v0.2.7
-
-# 20160725 bkw:
-# - Updated for v0.3.6
-
-# 20150511 bkw:
-# - Version bump 0.3.3. The poppler plugin is still on 0.2.5.
-# - Make the poppler plugin's pdf.so a symlink. Will do the same
-# for zathura-pdf-mupdf, to allow switching between the two without
-# reinstalling packages. This wouldn't have worked with older versions,
-# due to changes in glib's g_file_test() between glib 1.x and 2.x.
-# - Upstream started using -fdiagnostics-color=always, which is only
-# supported in newer gcc versions. Get rid of it.
-
-# Updated 20130617 by B. Watson <yalhcru@gmail.com>:
-# - Updated for v0.2.3
-
-# Updated 20120721 by B. Watson <yalhcru@gmail.com>:
-# - Updated for v0.2.0
-# - generated man pages now included by upstream, get rid of ours
-
-# Updated 20120312 by B. Watson <yalhcru@gmail.com>:
-# - Updated for v0.1.1, including poppler plugin
-# - Restore missing .desktop file and AUTHORS doc
-# - Add an icon
-# - Include generated man pages
-# - fix homepage URL
+# 20210801 bkw:
+# - update for v0.4.8 and -current. build uses meson now, so this script
+# can no longer build old zathura versions.
+# - removed dlopen hack and synctex fix, since they're no longer needed.
+# - this changelog was getting long, so move to ChangeLog.old.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=zathura
-VERSION=${VERSION:-0.3.8}
+VERSION=${VERSION:-0.4.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+# zathura no longer includes PDF support in the core. Instead it uses
+# plugins. This build includes the default PDF plugin, without which zathura
+# is completely useless.
+PLUGIN=$PRGNAM-pdf-poppler
+PLUGINVER=${PLUGINVER:-0.3.0}
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -94,9 +51,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -120,13 +74,13 @@ else
LIBDIRSUFFIX=""
fi
-set -eu
+set -e
-# zathura no longer includes PDF support in the core. Instead it uses
-# plugins. This build includes the default PDF plugin, without which zathura
-# is completely useless.
-PLUGIN=$PRGNAM-pdf-poppler
-PLUGINVER=${PLUGINVER:-0.2.8}
+fixperms() {
+ chown -R root:root .
+ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+}
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -134,123 +88,73 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-
-# Work around a bug in Slackware's ghostscript.
-# http://bugs.ghostscript.com/show_bug.cgi?id=692891
-#
-# Supposedly this was fixed, but I'm getting stack traces that look just
-# like those. The trouble is, if any of the plugins depends on libgs.so,
-# that library gets loaded during zathura's "scan for plugins" phase.
-# If libjpeg.so wasn't already loaded, it gets loaded and mangled by
-# libgs. This happens *before* zathura knows which plugin matches the file
-# we're trying to view. Now, the plugin is chosen based on the file's
-# mime type. If said plugin *isn't* the one using libgs, but it *does*
-# use libjpeg, *boom* segfault.
-#
-# What I found is that the postscript plugin uses libsceptre, which uses
-# libgs... and the mupdf and comicbook plugins use libjpeg. The end result
-# is that the mupdf and cb plugins crash the first time they try to load
-# a jpeg from the pdf/cbr, *but* only if the ps plugin is installed!
-# Both plugins work fine if the ps plugin is removed.
-#
-# I found that 'export LD_PRELOAD=/usr/lib/libjpeg.so' stops the
-# segfaulting, while not affecting the ps plugin. The patch below is
-# basically just the C equivalent: use dlopen() to load libjpeg.so before
-# scanning for plugins. Yes, it's a hack, that depends on implementation
-# specific details, but the alternative would be to try and talk Pat V
-# into patching and rebuilding his ghostscript and/or libsceptre packages,
-# which he won't be doing this late in the release cycle (I wouldn't either).
-
-patch -p1 < $CWD/dlopen_hack.diff
-
-# synctex API in recent texlive has changed from whatever version
-# zathura was developed with. This is a monkey patch, with me as
-# the monkey: monkey see someone else's patch for something else here:
-# https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=896566;filename=synctex2;msg=10
-# ...and monkey do the same thing to zathura.
-# A while after I did this, I found someone else's patch:
-# http://pk.archive.ubuntu.com/ubuntu/ubuntu/pool/universe/z/zathura/zathura_0.3.9-2.debian.tar.xz
-# ...the portion of the patch that alters synctex.c looks identical to
-# the one I came up with, meaning I could have saved myself some work...
-patch -p1 < $CWD/synctex_fix.diff
-
-sed -i "s/-pedantic/$SLKCFLAGS/" config.mk
-sed -i '/--dependency-file/d' Makefile
-
-# 20170711 bkw: git tarballs don't include prebuilt man pages, and I do NOT
-# want Sphinx and its 15+ deps as a dep for this build. So:
-cp -r $CWD/man doc/_build
-
-make \
- LIBDIR=/usr/lib$LIBDIRSUFFIX \
- MANPREFIX=/usr/man \
- DESTDIR=$PKG \
- RSTTOMAN="" \
- COLOR=0 \
- GLIB_VERSION_CHECK=0 \
- VERBOSE=1 \
- all \
- install
-
-# Check & see if synctex was built in, for slack-desc purposes.
-WITH=WITHOUT
-if ldd $PKG/usr/bin/$PRGNAM | grep -q libsynctex; then
- WITH=WITH
-fi
-
-gzip $PKG/usr/man/man?/*.?
+fixperms
+
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dstrip=true
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
+
+# man pages taken from Debian. I did this to avoid a dependency
+# on Sphinx (and its tree of 13 deps).
+for i in $CWD/man/*.*; do
+ dest="$PKG/usr/man/man$( echo $i | sed 's,.*\.,,' )"
+ mkdir -p "$dest"
+ gzip -9c < $i > "$dest/$( basename "$i" )".gz
+done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Include the API docs. Sphinx would be needed to build HTML or PDF docs, but
# the doc sources are RST, which are perfectly human-readable already (though
# less easy to navigate).
-cd doc
-rm -rf installation man _build [A-Z]* *.mk *.py *.txt
-cp -a * $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/api $PKG/usr/doc/$PRGNAM-$VERSION
# Now build the plugin.
cd $TMP
-
-# Hack, lets #include <zathura/document.h> in pdf.h work with an uninstalled
-# copy of zathura by saying "-I../zathura"
-rm -f $PRGNAM
-ln -s $PRGNAM-$VERSION $PRGNAM
-
rm -rf $PLUGIN-$PLUGINVER
tar xvf $CWD/$PLUGIN-$PLUGINVER.tar.gz
cd $PLUGIN-$PLUGINVER
-chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-
-# ZATHURA_VERSION_CHECK=0 is required because zathura.pc isn't installed.
-
-PLUGDIR=/usr/lib$LIBDIRSUFFIX/$PRGNAM
-sed -i "s/-fPIC/$SLKCFLAGS/" config.mk
-make install \
- VERBOSE=1 \
- ZATHURA_INC=-I../zathura \
- PLUGINDIR=$PLUGDIR/pdf-poppler \
- DESTDIR=$PKG \
- ZATHURA_GTK_VERSION=3 \
- ZATHURA_VERSION_CHECK=0
-strip $PKG/$PLUGDIR/pdf-poppler/*.so
-
-ln -s pdf-poppler/pdf.so $PKG/$PLUGDIR/pdf.so
-
-# icon converted from https://pwmt.org/img/fav.ico
-mkdir -p $PKG/usr/share/pixmaps
-cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
-echo "Icon=$PRGNAM" >> $PKG/usr/share/applications/$PRGNAM.desktop
+fixperms
+
+export PKG_CONFIG_PATH=$PKG/usr/lib$LIBDIRSUFFIX/pkgconfig:$PKG_CONFIG_PATH
+
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS -I$PKG/usr/include" \
+ CXXFLAGS="$SLKCFLAGS -I$PKG/usr/include" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dstrip=true \
+ -Dplugindir=/usr/lib$LIBDIRSUFFIX/$PRGNAM/pdf
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
+
+ln -s pdf/libpdf-poppler.so $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/pdf.so
mkdir -p $PKG/install
-sed "s,@WITH@,$WITH," $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
diff --git a/office/zathura/zathura.info b/office/zathura/zathura.info
index 3f24ef1feb..1445f62ea0 100644
--- a/office/zathura/zathura.info
+++ b/office/zathura/zathura.info
@@ -1,10 +1,10 @@
PRGNAM="zathura"
-VERSION="0.3.8"
+VERSION="0.4.8"
HOMEPAGE="https://github.com/pwmt/zathura"
-DOWNLOAD="https://github.com/pwmt/zathura/archive/0.3.8/zathura-0.3.8.tar.gz \
- https://github.com/pwmt/zathura-pdf-poppler/archive/0.2.8/zathura-pdf-poppler-0.2.8.tar.gz"
-MD5SUM="e94a6933580eeda615fe72ee9361892c \
- 847e4337e1798e8073cb317ee4d67393"
+DOWNLOAD="https://github.com/pwmt/zathura/archive/0.4.8/zathura-0.4.8.tar.gz \
+ https://github.com/pwmt/zathura-pdf-poppler/archive/0.3.0/zathura-pdf-poppler-0.3.0.tar.gz"
+MD5SUM="ea5457f064bdcfb1fda1f6f27bafbeb7 \
+ c500be47cfac0e76e81309cfa7847353"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="girara"