Commit ff816e19 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Update upstream source from tag 'upstream/0.3.8'

Update to upstream version '0.3.8'
with Debian dir 5b9eca76d000b185a10486ef5ebb31ea3b29eb5f
parents 982e45f3 107522c0
.pc/
debian/zathura*debhelper*
debian/*.substvars
debian/zathurarc.5
debian/tmp
debian/zathura-dev
zathura
debian/files
zathura-headers
pdf-poppler-*
.depend
version.h
zathura.pc
po/de
tests/tests
girara-version-check
...@@ -4,26 +4,22 @@ include config.mk ...@@ -4,26 +4,22 @@ include config.mk
include colors.mk include colors.mk
include common.mk include common.mk
OSOURCE = $(filter-out ${PROJECT}/css-definitions.c, $(filter-out ${PROJECT}/dbus-interface-definitions.c, $(sort $(wildcard ${PROJECT}/*.c)))) # source files
OSOURCE = $(sort $(wildcard ${PROJECT}/*.c) \
${PROJECT}/resources.c)
SOURCE_FILTER =
ifneq (${WITH_SQLITE},0) ifneq (${WITH_SQLITE},0)
INCS += $(SQLITE_INC)
LIBS += $(SQLITE_LIB)
SOURCE = $(OSOURCE)
CPPFLAGS += -DWITH_SQLITE CPPFLAGS += -DWITH_SQLITE
else else
SOURCE = $(filter-out ${PROJECT}/database-sqlite.c,$(OSOURCE)) SOURCE_FILTER += ${PROJECT}/database-sqlite.c
endif endif
ifneq ($(WITH_MAGIC),0) ifneq ($(WITH_MAGIC),0)
INCS += $(MAGIC_INC)
LIBS += $(MAGIC_LIB)
CPPFLAGS += -DWITH_MAGIC CPPFLAGS += -DWITH_MAGIC
endif endif
ifneq ($(WITH_SYNCTEX),0) ifneq ($(WITH_SYNCTEX),0)
INCS += $(SYNCTEX_INC)
LIBS += $(SYNCTEX_LIB)
CPPFLAGS += -DWITH_SYNCTEX CPPFLAGS += -DWITH_SYNCTEX
endif endif
...@@ -41,16 +37,10 @@ ifeq (,$(findstring -DLOCALEDIR,${CPPFLAGS})) ...@@ -41,16 +37,10 @@ ifeq (,$(findstring -DLOCALEDIR,${CPPFLAGS}))
CPPFLAGS += -DLOCALEDIR=\"${LOCALEDIR}\" CPPFLAGS += -DLOCALEDIR=\"${LOCALEDIR}\"
endif endif
OBJECTS = $(addprefix ${BUILDDIR_RELEASE}/,${SOURCE:.c=.o}) \ SOURCE = $(filter-out $(SOURCE_FILTER),$(OSOURCE))
${BUILDDIR_RELEASE}/${PROJECT}/css-definitions.o \ OBJECTS = $(addprefix ${BUILDDIR_RELEASE}/,${SOURCE:.c=.o})
${BUILDDIR_RELEASE}/${PROJECT}/dbus-interface-definitions.o OBJECTS_DEBUG = $(addprefix ${BUILDDIR_DEBUG}/,${SOURCE:.c=.o})
OBJECTS_DEBUG = $(addprefix ${BUILDDIR_DEBUG}/,${SOURCE:.c=.o}) \ OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o})
${BUILDDIR_DEBUG}/${PROJECT}/css-definitions.o \
${BUILDDIR_DEBUG}/${PROJECT}/dbus-interface-definitions.o
OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o}) \
${BUILDDIR_GCOV}/${PROJECT}/css-definitions.o \
${BUILDDIR_GCOV}/${PROJECT}/dbus-interface-definitions.o
HEADER = $(wildcard ${PROJECT}/*.h) $(wildcard synctex/*.h)
HEADERINST = $(addprefix ${PROJECT}/,version.h document.h macros.h page.h types.h plugin-api.h links.h) HEADERINST = $(addprefix ${PROJECT}/,version.h document.h macros.h page.h types.h plugin-api.h links.h)
all: options ${PROJECT} po build-manpages all: options ${PROJECT} po build-manpages
...@@ -72,6 +62,8 @@ options: ...@@ -72,6 +62,8 @@ options:
@echo "DFLAGS = ${DFLAGS}" @echo "DFLAGS = ${DFLAGS}"
@echo "CC = ${CC}" @echo "CC = ${CC}"
# generated files
${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk ${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk
$(QUIET)sed -e 's/ZVMAJOR/${ZATHURA_VERSION_MAJOR}/' \ $(QUIET)sed -e 's/ZVMAJOR/${ZATHURA_VERSION_MAJOR}/' \
-e 's/ZVMINOR/${ZATHURA_VERSION_MINOR}/' \ -e 's/ZVMINOR/${ZATHURA_VERSION_MINOR}/' \
...@@ -80,24 +72,23 @@ ${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk ...@@ -80,24 +72,23 @@ ${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk
-e 's/ZVABI/${ZATHURA_ABI_VERSION}/' ${PROJECT}/version.h.in > ${PROJECT}/version.h.tmp -e 's/ZVABI/${ZATHURA_ABI_VERSION}/' ${PROJECT}/version.h.in > ${PROJECT}/version.h.tmp
$(QUIET)mv ${PROJECT}/version.h.tmp ${PROJECT}/version.h $(QUIET)mv ${PROJECT}/version.h.tmp ${PROJECT}/version.h
${PROJECT}/dbus-interface-definitions.c: data/org.pwmt.zathura.xml ${PROJECT}/resources.%: data/zathura.gresource.xml config.mk
$(QUIET)echo '#include "dbus-interface-definitions.h"' > $@.tmp $(call colorecho,GEN,$@)
$(QUIET)echo 'const char* DBUS_INTERFACE_XML =' >> $@.tmp @mkdir -p ${DEPENDDIR}/$(dir $@)
$(QUIET)sed 's/^\(.*\)$$/"\1\\n"/' data/org.pwmt.zathura.xml >> $@.tmp $(QUIET)$(GLIB_COMPILE_RESOURCES) --generate --c-name=zathura_resources --internal \
$(QUIET)echo ';' >> $@.tmp --dependency-file=$(DEPENDDIR)/$@.dep \
$(QUIET)mv $@.tmp $@ --sourcedir=data --target=$@ data/zathura.gresource.xml
${PROJECT}/css-definitions.c: data/zathura.css_t # common dependencies
$(QUIET)echo '#include "css-definitions.h"' > $@.tmp
$(QUIET)echo 'const char* CSS_TEMPLATE_INDEX =' >> $@.tmp
$(QUIET)sed 's/^\(.*\)$$/"\1\\n"/' $< >> $@.tmp
$(QUIET)echo ';' >> $@.tmp
$(QUIET)mv $@.tmp $@
# release build ${OBJECTS} ${OBJECTS_DEBUG} ${OBJECTS_GCOV}: config.mk \
.version-checks/GIRARA \
.version-checks/GLIB \
.version-checks/GTK \
${PROJECT}/version.h \
${PROJECT}/resources.h
${OBJECTS}: config.mk ${PROJECT}/version.h \ # rlease build
.version-checks/GIRARA .version-checks/GLIB .version-checks/GTK
${BUILDDIR_RELEASE}/%.o: %.c ${BUILDDIR_RELEASE}/%.o: %.c
$(call colorecho,CC,$<) $(call colorecho,CC,$<)
...@@ -120,9 +111,6 @@ run: release ...@@ -120,9 +111,6 @@ run: release
# debug build # debug build
${OBJECTS_DEBUG}: config.mk ${PROJECT}/version.h \
.version-checks/GIRARA .version-checks/GLIB .version-checks/GTK
${BUILDDIR_DEBUG}/%.o: %.c ${BUILDDIR_DEBUG}/%.o: %.c
$(call colorecho,CC,$<) $(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $@) @mkdir -p ${DEPENDDIR}/$(dir $@)
...@@ -143,9 +131,6 @@ run-debug: debug ...@@ -143,9 +131,6 @@ run-debug: debug
# gcov build # gcov build
${OBJECTS_GCOV}: config.mk ${PROJECT}/version.h \
.version-checks/GIRARA .version-checks/GLIB .version-checks/GTK
${BUILDDIR_GCOV}/%.o: %.c ${BUILDDIR_GCOV}/%.o: %.c
$(call colorecho,CC,$<) $(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $@) @mkdir -p ${DEPENDDIR}/$(dir $@)
...@@ -157,7 +142,7 @@ ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT}: ${OBJECTS_GCOV} ...@@ -157,7 +142,7 @@ ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT}: ${OBJECTS_GCOV}
$(call colorecho,CC,$@) $(call colorecho,CC,$@)
@mkdir -p ${BUILDDIR_GCOV}/${BINDIR} @mkdir -p ${BUILDDIR_GCOV}/${BINDIR}
$(QUIET)${CC} ${LDFLAGS} ${GCOV_CFLAGS} ${GCOV_LDFLAGS} \ $(QUIET)${CC} ${LDFLAGS} ${GCOV_CFLAGS} ${GCOV_LDFLAGS} \
-o ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} ${OBJECTS_GCOv} ${LIBS} -o ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} ${OBJECTS_GCOV} ${LIBS}
gcov: options ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} gcov: options ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT}
$(QUIET)${MAKE} -C tests run-gcov $(QUIET)${MAKE} -C tests run-gcov
...@@ -180,10 +165,8 @@ clean: ...@@ -180,10 +165,8 @@ clean:
${PROJECT}.pc \ ${PROJECT}.pc \
${PROJECT}/version.h \ ${PROJECT}/version.h \
${PROJECT}/version.h.tmp \ ${PROJECT}/version.h.tmp \
${PROJECT}/dbus-interface-definitions.c \ ${PROJECT}/resources.c \
${PROJECT}/dbus-interface-definitions.c.tmp \ ${PROJECT}/resources.h \
${PROJECT}/css-definitions.c \
${PROJECT}/css-definitions.c.tmp \
$(PROJECT).info \ $(PROJECT).info \
gcov \ gcov \
.version-checks .version-checks
......
...@@ -6,8 +6,8 @@ girara user interface library and several document libraries. ...@@ -6,8 +6,8 @@ girara user interface library and several document libraries.
Requirements Requirements
------------ ------------
gtk3 (>= 3.6) gtk3 (>= 3.6)
glib (>= 2.32) glib (>= 2.50)
girara (>= 0.2.4) girara (>= 0.2.8)
sqlite3 (optional, >= 3.5.9) sqlite3 (optional, >= 3.5.9)
check (for tests) check (for tests)
intltool intltool
......
...@@ -6,11 +6,11 @@ PROJECT = zathura ...@@ -6,11 +6,11 @@ PROJECT = zathura
ZATHURA_VERSION_MAJOR = 0 ZATHURA_VERSION_MAJOR = 0
ZATHURA_VERSION_MINOR = 3 ZATHURA_VERSION_MINOR = 3
ZATHURA_VERSION_REV = 7 ZATHURA_VERSION_REV = 8
# If the API changes, the API version and the ABI version have to be bumped. # If the API changes, the API version and the ABI version have to be bumped.
ZATHURA_API_VERSION = 2 ZATHURA_API_VERSION = 2
# If the ABI breaks for any reason, this has to be bumped. # If the ABI breaks for any reason, this has to be bumped.
ZATHURA_ABI_VERSION = 2 ZATHURA_ABI_VERSION = 3
VERSION = ${ZATHURA_VERSION_MAJOR}.${ZATHURA_VERSION_MINOR}.${ZATHURA_VERSION_REV} VERSION = ${ZATHURA_VERSION_MAJOR}.${ZATHURA_VERSION_MINOR}.${ZATHURA_VERSION_REV}
# version checks # version checks
...@@ -18,11 +18,11 @@ VERSION = ${ZATHURA_VERSION_MAJOR}.${ZATHURA_VERSION_MINOR}.${ZATHURA_VERSION_RE ...@@ -18,11 +18,11 @@ VERSION = ${ZATHURA_VERSION_MAJOR}.${ZATHURA_VERSION_MINOR}.${ZATHURA_VERSION_RE
# girara # girara
GIRARA_VERSION_CHECK ?= 1 GIRARA_VERSION_CHECK ?= 1
GIRARA_MIN_VERSION = 0.2.7 GIRARA_MIN_VERSION = 0.2.8
GIRARA_PKG_CONFIG_NAME = girara-gtk3 GIRARA_PKG_CONFIG_NAME = girara-gtk3
# glib # glib
GLIB_VERSION_CHECK ?= 1 GLIB_VERSION_CHECK ?= 1
GLIB_MIN_VERSION = 2.32 GLIB_MIN_VERSION = 2.50
GLIB_PKG_CONFIG_NAME = glib-2.0 GLIB_PKG_CONFIG_NAME = glib-2.0
# GTK # GTK
GTK_VERSION_CHECK ?= 1 GTK_VERSION_CHECK ?= 1
...@@ -32,6 +32,9 @@ GTK_PKG_CONFIG_NAME = gtk+-3.0 ...@@ -32,6 +32,9 @@ GTK_PKG_CONFIG_NAME = gtk+-3.0
# pkg-config binary # pkg-config binary
PKG_CONFIG ?= pkg-config PKG_CONFIG ?= pkg-config
# glib-compile-resources
GLIB_COMPILE_RESOURCES ?= glib-compile-resources
# database # database
# To disable support for the sqlite backend set WITH_SQLITE to 0. # To disable support for the sqlite backend set WITH_SQLITE to 0.
WITH_SQLITE ?= $(shell (${PKG_CONFIG} --atleast-version=3.5.9 sqlite3 && echo 1) || echo 0) WITH_SQLITE ?= $(shell (${PKG_CONFIG} --atleast-version=3.5.9 sqlite3 && echo 1) || echo 0)
...@@ -48,7 +51,7 @@ WITH_MAGIC ?= 1 ...@@ -48,7 +51,7 @@ WITH_MAGIC ?= 1
PREFIX ?= /usr PREFIX ?= /usr
MANPREFIX ?= ${PREFIX}/share/man MANPREFIX ?= ${PREFIX}/share/man
DESKTOPPREFIX ?= ${PREFIX}/share/applications DESKTOPPREFIX ?= ${PREFIX}/share/applications
APPDATAPREFIX ?= ${PREFIX}/share/appdata APPDATAPREFIX ?= ${PREFIX}/share/metainfo
LIBDIR ?= ${PREFIX}/lib LIBDIR ?= ${PREFIX}/lib
INCLUDEDIR ?= ${PREFIX}/include INCLUDEDIR ?= ${PREFIX}/include
DBUSINTERFACEDIR ?= ${PREFIX}/share/dbus-1/interfaces DBUSINTERFACEDIR ?= ${PREFIX}/share/dbus-1/interfaces
...@@ -66,38 +69,58 @@ PLUGINDIR ?= ${LIBDIR}/zathura ...@@ -66,38 +69,58 @@ PLUGINDIR ?= ${LIBDIR}/zathura
LOCALEDIR ?= ${PREFIX}/share/locale LOCALEDIR ?= ${PREFIX}/share/locale
# libs # libs
GTK_INC ?= $(shell ${PKG_CONFIG} --cflags gtk+-3.0) ifeq (${GTK_INC}-${GTK_LIB},-)
GTK_LIB ?= $(shell ${PKG_CONFIG} --libs gtk+-3.0) PKG_CONFIG_LIBS += gtk+-3.0
else
GTHREAD_INC ?= $(shell ${PKG_CONFIG} --cflags gthread-2.0) INCS += ${GTK_INC}
GTHREAD_LIB ?= $(shell ${PKG_CONFIG} --libs gthread-2.0) LIBS += ${GTK_LIB}
endif
GMODULE_INC ?= $(shell ${PKG_CONFIG} --cflags gmodule-no-export-2.0)
GMODULE_LIB ?= $(shell ${PKG_CONFIG} --libs gmodule-no-export-2.0)
GLIB_INC ?= $(shell ${PKG_CONFIG} --cflags glib-2.0) ifeq (${GLIB_INC}-${GLIB_LIB},-)
GLIB_LIB ?= $(shell ${PKG_CONFIG} --libs glib-2.0) PKG_CONFIG_LIBS += gthread-2.0 gmodule-no-export-2.0 glib-2.0
else
INCS += ${GLIB_INC}
LIBS += ${GLIB_LIB}
endif
GIRARA_INC ?= $(shell ${PKG_CONFIG} --cflags girara-gtk3) ifeq (${GIRARA_INC}-${GIRARA_LIB},-)
GIRARA_LIB ?= $(shell ${PKG_CONFIG} --libs girara-gtk3) PKG_CONFIG_LIBS += girara-gtk3
else
INCS += ${GIRARA_INC}
LIBS += ${GIRARA_LIB}
endif
ifneq (${WITH_SQLITE},0) ifneq (${WITH_SQLITE},0)
SQLITE_INC ?= $(shell ${PKG_CONFIG} --cflags sqlite3) ifeq (${SQLITE_INC}-${SQLITE_LIB},-)
SQLITE_LIB ?= $(shell ${PKG_CONFIG} --libs sqlite3) PKG_CONFIG_LIBS += sqlite3
else
INCS += ${SQLITE_INC}
LIBS += ${SQLITE_LIB}
endif
endif endif
ifneq (${WITH_MAGIC},0) ifneq (${WITH_MAGIC},0)
MAGIC_INC ?= MAGIC_INC ?=
MAGIC_LIB ?= -lmagic MAGIC_LIB ?= -lmagic
INCS += ${MAGIC_INC}
LIBS += ${MAGIC_LIB}
endif endif
ifneq ($(WITH_SYNCTEX),0) ifneq ($(WITH_SYNCTEX),0)
SYNCTEX_INC ?= $(shell ${PKG_CONFIG} --cflags synctex) ifeq (${SYNCTEX_INC}-${SYNCTEX_LIB},-)
SYNCTEX_LIB ?= $(shell ${PKG_CONFIG} --libs synctex) PKG_CONFIG_LIBS += synctex
else
INCS += ${SYNCTEX_INC}
LIBS += ${SYNCTEX_LIB}
endif
endif endif
INCS = ${GIRARA_INC} ${GTK_INC} ${GTHREAD_INC} ${GMODULE_INC} ${GLIB_INC} ifneq (${PKG_CONFIG_LIBS},)
LIBS = ${GIRARA_LIB} ${GTK_LIB} ${GTHREAD_LIB} ${GMODULE_LIB} ${GLIB_LIB} -lpthread -lm INCS += $(shell ${PKG_CONFIG} --cflags ${PKG_CONFIG_LIBS})
LIBS += $(shell ${PKG_CONFIG} --libs ${PKG_CONFIG_LIBS})
endif
LIBS += -lpthread -lm
# pre-processor flags # pre-processor flags
CPPFLAGS += -D_FILE_OFFSET_BITS=64 CPPFLAGS += -D_FILE_OFFSET_BITS=64
......
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/pwmt/zathura/CSS">
<file compressed="true">zathura.css_t</file>
</gresource>
<gresource prefix="/org/pwmt/zathura/DBus">
<file compressed="true">org.pwmt.zathura.xml</file>
</gresource>
</gresources>
.\" Man page generated from reStructuredText. .\" Man page generated from reStructuredText.
. .
.TH "ZATHURA" "1" "2017-01-11" "0.2.7" "zathura" .TH "ZATHURA" "1" "2017-12-20" "0.2.7" "zathura"
.SH NAME .SH NAME
zathura \- a document viewer zathura \- a document viewer
. .
...@@ -33,7 +33,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] ...@@ -33,7 +33,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.SH SYNOPSIS .SH SYNOPSIS
.sp .sp
zathura [\-e XID] [\-c PATH] [\-d PATH] [\-p PATH] [\-w PASSWORD] [\-P NUMBER] 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] [–fork] [\-l LEVEL] [\-s] [\-x CMD] [–synctex\-forward INPUT] [–synctex\-pid PID]
<files> <files>
.SH DESCRIPTION .SH DESCRIPTION
.sp .sp
...@@ -73,8 +73,8 @@ Set the synctex editor command. Overrides the synctex\-editor\-command setting. ...@@ -73,8 +73,8 @@ Set the synctex editor command. Overrides the synctex\-editor\-command setting.
.TP .TP
.BI \-\-synctex\-forward\fB= input .BI \-\-synctex\-forward\fB= input
Jump to the given position. The switch expects the same format as specified Jump to the given position. The switch expects the same format as specified
for synctex\(aqs view \-i. If no instance is running for the specified document, for synctexs view \-i. If no instance is running for the specified document,
a new instance will be launched (only if \-\-synctex\-pid is not specified). a new instance will be launched (only if synctex\-pid is not specified).
.TP .TP
.BI \-\-synctex\-pid\fB= pid .BI \-\-synctex\-pid\fB= pid
Instead of looking for an instance having the correct file opened, try only Instead of looking for an instance having the correct file opened, try only
...@@ -155,7 +155,7 @@ Enter command ...@@ -155,7 +155,7 @@ Enter command
Rotate by 90 degrees Rotate by 90 degrees
.TP .TP
.B ^r .B ^r
Recolor Recolor (grayscale and invert colors)
.TP .TP
.B R .B R
Reload document Reload document
...@@ -190,7 +190,7 @@ Zoom to size n ...@@ -190,7 +190,7 @@ Zoom to size n
.B mX .B mX
Set a quickmark to a letter or number X Set a quickmark to a letter or number X
.TP .TP
.B \(aqX .B X
Goto quickmark saved at letter or number X Goto quickmark saved at letter or number X
.TP .TP
.B q .B q
...@@ -346,14 +346,21 @@ description please consult zathurarc(5). ...@@ -346,14 +346,21 @@ description please consult zathurarc(5).
.SH SYNCTEX SUPPORT .SH SYNCTEX SUPPORT
.sp .sp
Both synctex forward and backwards synchronization are supported by zathura, To Both synctex forward and backwards synchronization are supported by zathura, To
enable synctex forward synchronization, please look at the \fI\-\-synctex\-forward\fP enable synctex forward synchronization, please look at the \fIsynctex\-forward\fP
and \fI\-\-synctex\-editor\fP options. zathura will also emit a signal via the D\-Bus and \fIsynctex\-editor\fP options. zathura will also emit a signal via the D\-Bus
interface. To support synctex backwards synchronization, zathura provides a interface. To support synctex backwards synchronization, zathura provides a
D\-Bus interface that can be called by the editor. For convince zathura also 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 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 pass the arguments to \fIsynctex view\fPs \fI\-i\fP option to zathura via
\fI\-\-syntex\-forward\fP and zathura will pass the information to the correct \fIsyntex\-forward\fP and zathura will pass the information to the correct
instance. instance.
.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)
.UNINDENT
.SH KNOWN BUGS .SH KNOWN BUGS
.sp .sp
If GDK_NATIVE_WINDOWS is enabled you will experience problems with large If GDK_NATIVE_WINDOWS is enabled you will experience problems with large
......
.\" Man page generated from reStructuredText. .\" Man page generated from reStructuredText.
. .
.TH "ZATHURARC" "5" "2017-01-11" "0.2.7" "zathura" .TH "ZATHURARC" "5" "2017-12-20" "0.2.7" "zathura"
.SH NAME .SH NAME
zathurarc \- zathura configuration file zathurarc \- zathura configuration file
. .
...@@ -68,7 +68,7 @@ FLOAT \- A floating point number ...@@ -68,7 +68,7 @@ FLOAT \- A floating point number
.IP \(bu 2 .IP \(bu 2
STRING \- A character string STRING \- A character string
.IP \(bu 2 .IP \(bu 2
BOOL \- A boolean value ("true" for true, "false" for false) BOOL \- A boolean value (“true” for true, “false” for false)
.UNINDENT .UNINDENT
.sp .sp
In addition we advice you to check the options to get a more detailed view of In addition we advice you to check the options to get a more detailed view of
...@@ -146,6 +146,8 @@ normal (default) ...@@ -146,6 +146,8 @@ normal (default)
.IP \(bu 2 .IP \(bu 2
fullscreen fullscreen
.IP \(bu 2 .IP \(bu 2
presentation
.IP \(bu 2
index index
.UNINDENT .UNINDENT
.sp .sp
...@@ -322,6 +324,10 @@ Change current mode. Pass the desired mode as argument. ...@@ -322,6 +324,10 @@ Change current mode. Pass the desired mode as argument.
.sp .sp
Display link target. Display link target.
.IP \(bu 2 .IP \(bu 2
\fBexec\fP:
.sp
Execute an external command.
.IP \(bu 2
\fBfocus_inputbar\fP \fBfocus_inputbar\fP
.sp .sp
Focus inputbar. Focus inputbar.
...@@ -499,7 +505,7 @@ unmap [mode] <binding> ...@@ -499,7 +505,7 @@ unmap [mode] <binding>
.SH OPTIONS .SH OPTIONS
.SS girara .SS girara
.sp .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\&. zathura. The settings described here can be changed with \fBset\fP\&.
.SS n\-completion\-items .SS n\-completion\-items
.sp .sp
...@@ -590,7 +596,7 @@ Default value: #000000 ...@@ -590,7 +596,7 @@ Default value: #000000
.UNINDENT .UNINDENT
.SS exec\-command .SS exec\-command
.sp .sp
Defines a command the should be prepanded to any command run with exec. Defines a command the should be prepended to any command run with exec.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: String Value type: String
...@@ -609,10 +615,10 @@ Default value: monospace normal 9 ...@@ -609,10 +615,10 @@ Default value: monospace normal 9
.SS guioptions .SS guioptions
.sp .sp
Shows or hides GUI elements. Shows or hides GUI elements.
If it contains \(aqc\(aq, the command line is displayed. If it contains ‘c’, the command line is displayed.
If it contains \(aqs\(aq, the statusbar is displayed. If it contains ‘s’, the statusbar is displayed.
If it contains \(aqh\(aq, the horizontal scrollbar is displayed. If it contains ‘h’, the horizontal scrollbar is displayed.
If it contains \(aqv\(aq, the vertical scrollbar is displayed. If it contains ‘v’, the vertical scrollbar is displayed.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: String Value type: String
...@@ -730,7 +736,7 @@ Default value: #000000 ...@@ -730,7 +736,7 @@ Default value: #000000
.SS show\-scrollbars .SS show\-scrollbars
.sp .sp
Defines if both the horizontal and vertical scrollbars should be shown or not. Defines if both the horizontal and vertical scrollbars should be shown or not.
Deprecated, use \(aqguioptions\(aq instead. Deprecated, use ‘guioptions’ instead.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: Boolean Value type: Boolean
...@@ -740,7 +746,7 @@ Default value: false ...@@ -740,7 +746,7 @@ Default value: false
.SS show\-h\-scrollbar .SS show\-h\-scrollbar
.sp .sp
Defines whether to show/hide the horizontal scrollbar. Deprecated, use Defines whether to show/hide the horizontal scrollbar. Deprecated, use
\(aqguioptions\(aq instead. ‘guioptions’ instead.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: Boolean Value type: Boolean
...@@ -750,7 +756,7 @@ Default value: false ...@@ -750,7 +756,7 @@ Default value: false
.SS show\-v\-scrollbar .SS show\-v\-scrollbar
.sp .sp
Defines whether to show/hide the vertical scrollbar. Deprecated, use Defines whether to show/hide the vertical scrollbar. Deprecated, use
\(aqguioptions\(aq instead. ‘guioptions’ instead.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: Boolean Value type: Boolean
...@@ -835,7 +841,7 @@ Default value: true ...@@ -835,7 +841,7 @@ Default value: true
.SS adjust\-open .SS adjust\-open
.sp .sp
Defines which auto adjustment mode should be used if a document is loaded. Defines which auto adjustment mode should be used if a document is loaded.
Possible options are "best\-fit" and "width". Possible options are “best\-fit” and “width”.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: String Value type: String
...@@ -851,11 +857,21 @@ Value type: Boolean ...@@ -851,11 +857,21 @@ Value type: Boolean
.IP \(bu 2 .IP \(bu 2
Default value: false Default value: false
.UNINDENT .UNINDENT
.SS continuous\-hist\-save
.sp
Tells zathura whether to save document history at each page change or only when
closing a document.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
.SS database .SS database
.sp .sp
Defines the database backend to use for bookmarks and input history. Possible Defines the database backend to use for bookmarks and input history. Possible
values are "plain", "sqlite" (if built with sqlite support) and "null". If values are “plain”, “sqlite” (if built with sqlite support) and “null”. If
"null" is used, bookmarks and input history will not be stored. “null” is used, bookmarks and input history will not be stored.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: String Value type: String
...@@ -874,7 +890,7 @@ Default value: true ...@@ -874,7 +890,7 @@ Default value: true
.UNINDENT .UNINDENT
.SS filemonitor .SS filemonitor
.sp .sp
Defines the filemonitor backend. Possible values are "glib" and "signal" (if Defines the filemonitor backend. Possible values are “glib” and “signal” (if
signal handling is supported). signal handling is supported).
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
...@@ -932,7 +948,7 @@ Default value: 1 ...@@ -932,7 +948,7 @@ Default value: 1
.SS page\-cache\-size .SS page\-cache\-size
.sp .sp
Defines the maximum number of pages that could be kept in the page cache. When 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 the cache is full and a new page that isnt cached becomes visible, the least
recently viewed page in the cache will be evicted to make room for the new one. 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 Large values for this variable are NOT recommended, because this will lead to
consuming a significant portion of the system memory. consuming a significant portion of the system memory.
...@@ -969,7 +985,7 @@ Default value: 1 ...@@ -969,7 +985,7 @@ Default value: 1
.sp .sp
Defines the column in which the first page will be displayed. 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 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 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 value in the list will be used for all other number of pages per row if not set
explicitly. explicitly.
.sp .sp
...@@ -1027,7 +1043,7 @@ Default value: false ...@@ -1027,7 +1043,7 @@ Default value: false
.UNINDENT .UNINDENT
.SS render\-loading .SS render\-loading
.sp .sp
Defines if the "Loading..." text should be displayed if a page is rendered. Defines if the “Loading…” text should be displayed if a page is rendered.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: Boolean Value type: Boolean
...@@ -1036,7 +1052,7 @@ Default value: true ...@@ -1036,7 +1052,7 @@ Default value: true
.UNINDENT .UNINDENT
.SS render\-loading\-bg .SS render\-loading\-bg
.sp .sp
Defines the background color that is used for the "Loading..." text. Defines the background color that is used for the “Loading…” text.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: String Value type: String
...@@ -1045,7 +1061,7 @@ Default value: #FFFFFF ...@@ -1045,7 +1061,7 @@ Default value: #FFFFFF
.UNINDENT .UNINDENT
.SS render\-loading\-fg .SS render\-loading\-fg
.sp .sp
Defines the foreground color that is used for the "Loading..." text. Defines the foreground color that is used for the “Loading…” text.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: String Value type: String
...@@ -1129,7 +1145,7 @@ Default value: false ...@@ -1129,7 +1145,7 @@ Default value: false
.UNINDENT .UNINDENT
.SS smooth\-scroll .SS smooth\-scroll
.sp .sp
Defines if scrolling via touchpad should be smooth(only available with gtk >= 3.4). Defines if scrolling via touchpad should be smooth.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: Boolean Value type: Boolean
...@@ -1218,6 +1234,15 @@ Value type: Boolean ...@@ -1218,6 +1234,15 @@ Value type: Boolean
.IP \(bu 2 .IP \(bu 2
Default value: false Default value: false
.UNINDENT .UNINDENT
.SS vertical\-center
.sp
Center the screen at the vertical midpoint of the page by default.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false