Commit 41f3e19a authored by Sebastian Ramacher's avatar Sebastian Ramacher

Imported Upstream version 0.3.4

parent 81399510
...@@ -21,20 +21,10 @@ LIBS += $(MAGIC_LIB) ...@@ -21,20 +21,10 @@ LIBS += $(MAGIC_LIB)
CPPFLAGS += -DWITH_MAGIC CPPFLAGS += -DWITH_MAGIC
endif endif
ifneq ($(WITH_SYSTEM_SYNCTEX),0) ifneq ($(WITH_SYNCTEX),0)
INCS += $(SYNCTEX_INC) INCS += $(SYNCTEX_INC)
LIBS += $(SYNCTEX_LIB) LIBS += $(SYNCTEX_LIB)
else CPPFLAGS += -DWITH_SYNCTEX
INCS += $(ZLIB_INC)
LIBS += $(ZLIB_LIB)
SOURCE += $(wildcard ${PROJECT}/synctex/*.c)
ifeq (,$(findstring -Isynctex,${CPPFLAGS}))
CPPFLAGS += -I${PROJECT}/synctex
endif
ifeq (,$(findstring -DSYNCTEX_VERBOSE=0,${CPPFLAGS}))
CPPFLAGS += -DSYNCTEX_VERBOSE=0
endif
endif endif
ifneq ($(wildcard ${VALGRIND_SUPPRESSION_FILE}),) ifneq ($(wildcard ${VALGRIND_SUPPRESSION_FILE}),)
...@@ -111,9 +101,9 @@ ${OBJECTS}: config.mk ${PROJECT}/version.h \ ...@@ -111,9 +101,9 @@ ${OBJECTS}: config.mk ${PROJECT}/version.h \
${BUILDDIR_RELEASE}/%.o: %.c ${BUILDDIR_RELEASE}/%.o: %.c
$(call colorecho,CC,$<) $(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $(abspath $@)) @mkdir -p ${DEPENDDIR}/$(dir $@)
@mkdir -p $(dir $(abspath $@)) @mkdir -p $(dir $(abspath $@))
$(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $< -MMD -MF ${DEPENDDIR}/$(abspath $@).dep $(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $< -MMD -MF ${DEPENDDIR}/$@.dep
${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT}: ${OBJECTS} ${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT}: ${OBJECTS}
$(call colorecho,CC,$@) $(call colorecho,CC,$@)
...@@ -135,10 +125,10 @@ ${OBJECTS_DEBUG}: config.mk ${PROJECT}/version.h \ ...@@ -135,10 +125,10 @@ ${OBJECTS_DEBUG}: config.mk ${PROJECT}/version.h \
${BUILDDIR_DEBUG}/%.o: %.c ${BUILDDIR_DEBUG}/%.o: %.c
$(call colorecho,CC,$<) $(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $(abspath $@)) @mkdir -p ${DEPENDDIR}/$(dir $@)
@mkdir -p $(dir $(abspath $@)) @mkdir -p $(dir $(abspath $@))
$(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} ${DFLAGS} \ $(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} ${DFLAGS} \
-o $@ $< -MMD -MF ${DEPENDDIR}/$(abspath $@).dep -o $@ $< -MMD -MF ${DEPENDDIR}/$@.dep
${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT}: ${OBJECTS_DEBUG} ${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT}: ${OBJECTS_DEBUG}
$(call colorecho,CC,$@) $(call colorecho,CC,$@)
...@@ -158,10 +148,10 @@ ${OBJECTS_GCOV}: config.mk ${PROJECT}/version.h \ ...@@ -158,10 +148,10 @@ ${OBJECTS_GCOV}: config.mk ${PROJECT}/version.h \
${BUILDDIR_GCOV}/%.o: %.c ${BUILDDIR_GCOV}/%.o: %.c
$(call colorecho,CC,$<) $(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $(abspath $@)) @mkdir -p ${DEPENDDIR}/$(dir $@)
@mkdir -p $(dir $(abspath $@)) @mkdir -p $(dir $(abspath $@))
$(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} ${GCOV_CFLAGS} \ $(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} ${GCOV_CFLAGS} \
-o $@ $< -MMD -MF ${DEPENDDIR}/$(abspath $@).dep -o $@ $< -MMD -MF ${DEPENDDIR}/$@.dep
${BUILDDIR_GCOV}/${BINDIR}/${PROJECT}: ${OBJECTS_GCOV} ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT}: ${OBJECTS_GCOV}
$(call colorecho,CC,$@) $(call colorecho,CC,$@)
...@@ -298,7 +288,8 @@ uninstall: uninstall-headers ...@@ -298,7 +288,8 @@ uninstall: uninstall-headers
$(QUIET)rm -f $(DESTDIR)$(APPDATAPREFIX)/$(PROJECT).appdata.xml $(QUIET)rm -f $(DESTDIR)$(APPDATAPREFIX)/$(PROJECT).appdata.xml
$(MAKE) -C po uninstall $(MAKE) -C po uninstall
-include $(wildcard ${DEPENDDIR}/*.dep) DEPENDS = ${DEPENDDIRS:^=${DEPENDDIR}/}$(addprefix ${DEPENDDIR}/,${OBJECTS:.o=.o.dep})
-include ${DEPENDS}
.PHONY: all options clean doc debug valgrind gdb dist doc install uninstall \ .PHONY: all options clean doc debug valgrind gdb dist doc install uninstall \
test po install-headers uninstall-headers update-po install-manpages \ test po install-headers uninstall-headers update-po install-manpages \
......
...@@ -5,13 +5,14 @@ girara user interface library and several document libraries. ...@@ -5,13 +5,14 @@ girara user interface library and several document libraries.
Requirements Requirements
------------ ------------
gtk3 gtk3 (>= 3.6)
glib (>= 2.28) glib (>= 2.32)
girara (>= 0.2.4) girara (>= 0.2.4)
sqlite3 (optional, >= 3.5.9) sqlite3 (optional, >= 3.5.9)
check (for tests) check (for tests)
intltool intltool
libmagic from file(1) (optional, for mime-type detection) libmagic from file(1) (optional, for mime-type detection)
libsynctex from TeXLive (option, for SyncTeX support)
Sphinx (optional, for manpages and HTML documentation) Sphinx (optional, for manpages and HTML documentation)
doxygen (optional, for HTML documentation) doxygen (optional, for HTML documentation)
breathe (optional, for HTML documentation) breathe (optional, for HTML documentation)
...@@ -24,7 +25,7 @@ SQLITE_INC and SQLITE_LIB variables accordingly. ...@@ -24,7 +25,7 @@ SQLITE_INC and SQLITE_LIB variables accordingly.
Also note that Sphinx is needed to build the manpages. If it is not Also note that Sphinx is needed to build the manpages. If it is not
installed, the man pages won't be built. For the HTML documentation, doxygen, installed, the man pages won't be built. For the HTML documentation, doxygen,
breathe and sphinx_rtd_theme are needed in additioan to Sphinx. breathe and sphinx_rtd_theme are needed in addition to Sphinx.
If you don't want to build with support for sqlite databases, you can set If you don't want to build with support for sqlite databases, you can set
WITH_SQLITE=0 and sqlite support won't be available. WITH_SQLITE=0 and sqlite support won't be available.
...@@ -35,7 +36,7 @@ WITH_MAGIC=0. ...@@ -35,7 +36,7 @@ WITH_MAGIC=0.
If you pass these flags as a command line argument to make, you have to ensure If you pass these flags as a command line argument to make, you have to ensure
to pass the same flags when executing the install target. to pass the same flags when executing the install target.
If you want to build zathuras documentation, please install all python If you want to build zathura's documentation, please install all python
dependencies from the ./doc/requirements.txt file. dependencies from the ./doc/requirements.txt file.
Installation Installation
......
# See LICENSE file for license and copyright information # See LICENSE file for license and copyright information
#
ifeq ($(COLOR),1)
# GCC diagnostics colors
DIAGNOSTICS_COLOR_AVAILABLE ?= $(shell ($(CC) -fdiagnostics-color=always -E - </dev/null >/dev/null 2>/dev/null && echo 1) || echo 0)
ifeq ($(DIAGNOSTICS_COLOR_AVAILABLE),1)
CPPFLAGS += -fdiagnostics-color=always
endif
# colorful output
TPUT ?= /usr/bin/tput TPUT ?= /usr/bin/tput
TPUT_AVAILABLE ?= $(shell ${TPUT} -V 2>/dev/null) TPUT_AVAILABLE ?= $(shell ${TPUT} -V 2>/dev/null)
ifdef TPUT_AVAILABLE ifdef TPUT_AVAILABLE
ifeq ($(COLOR),1)
COLOR_NORMAL = `$(TPUT) sgr0` COLOR_NORMAL = `$(TPUT) sgr0`
COLOR_ACTION = `$(TPUT) bold``$(TPUT) setaf 3` COLOR_ACTION = `$(TPUT) bold``$(TPUT) setaf 3`
COLOR_COMMENT = `$(TPUT) bold``$(TPUT) setaf 2` COLOR_COMMENT = `$(TPUT) bold``$(TPUT) setaf 2`
COLOR_BRACKET = `$(TPUT) setaf 4` COLOR_BRACKET = `$(TPUT) setaf 4`
CC += -fdiagnostics-color=always
define colorecho define colorecho
@echo $(COLOR_BRACKET)" ["$(COLOR_ACTION)$1$(COLOR_BRACKET)"] "$(COLOR_COMMENT)$2$(COLOR_BRACKET) $(COLOR_NORMAL) @echo $(COLOR_BRACKET)" ["$(COLOR_ACTION)$1$(COLOR_BRACKET)"] "$(COLOR_COMMENT)$2$(COLOR_BRACKET) $(COLOR_NORMAL)
endef endef
......
...@@ -6,7 +6,7 @@ PROJECT = zathura ...@@ -6,7 +6,7 @@ PROJECT = zathura
ZATHURA_VERSION_MAJOR = 0 ZATHURA_VERSION_MAJOR = 0
ZATHURA_VERSION_MINOR = 3 ZATHURA_VERSION_MINOR = 3
ZATHURA_VERSION_REV = 3 ZATHURA_VERSION_REV = 4
# 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.
...@@ -18,15 +18,15 @@ VERSION = ${ZATHURA_VERSION_MAJOR}.${ZATHURA_VERSION_MINOR}.${ZATHURA_VERSION_RE ...@@ -18,15 +18,15 @@ 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.4 GIRARA_MIN_VERSION = 0.2.5
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.28 GLIB_MIN_VERSION = 2.32
GLIB_PKG_CONFIG_NAME = glib-2.0 GLIB_PKG_CONFIG_NAME = glib-2.0
# GTK # GTK
GTK_VERSION_CHECK ?= 1 GTK_VERSION_CHECK ?= 1
GTK_MIN_VERSION = 3.0 GTK_MIN_VERSION = 3.6
GTK_PKG_CONFIG_NAME = gtk+-3.0 GTK_PKG_CONFIG_NAME = gtk+-3.0
# pkg-config binary # pkg-config binary
...@@ -37,8 +37,8 @@ PKG_CONFIG ?= pkg-config ...@@ -37,8 +37,8 @@ PKG_CONFIG ?= pkg-config
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)
# synctex # synctex
# To use the embedded copy of the syntex parser set WITH_SYSTEM_SYNCTEX to 0. # To disable support for synctex with libsynctex set WITH_SYNCTEX to 0.
WITH_SYSTEM_SYNCTEX ?= $(shell (${PKG_CONFIG} synctex && echo 1) || echo 0) WITH_SYNCTEX ?= $(shell (${PKG_CONFIG} synctex && echo 1) || echo 0)
# mimetype detection # mimetype detection
# To disable support for mimetype detction with libmagic set WITH_MAGIC to 0. # To disable support for mimetype detction with libmagic set WITH_MAGIC to 0.
...@@ -91,24 +91,24 @@ MAGIC_INC ?= ...@@ -91,24 +91,24 @@ MAGIC_INC ?=
MAGIC_LIB ?= -lmagic MAGIC_LIB ?= -lmagic
endif endif
ifneq ($(WITH_SYSTEM_SYNCTEX),0) ifneq ($(WITH_SYNCTEX),0)
SYNCTEX_INC ?= $(shell ${PKG_CONFIG} --cflags synctex) SYNCTEX_INC ?= $(shell ${PKG_CONFIG} --cflags synctex)
SYNCTEX_LIB ?= $(shell ${PKG_CONFIG} --libs synctex) SYNCTEX_LIB ?= $(shell ${PKG_CONFIG} --libs synctex)
else
ZLIB_INC ?= $(shell ${PKG_CONFIG} --cflags zlib)
ZLIB_LIB ?= $(shell ${PKG_CONFIG} --libs zlib)
endif endif
INCS = ${GIRARA_INC} ${GTK_INC} ${GTHREAD_INC} ${GMODULE_INC} ${GLIB_INC} INCS = ${GIRARA_INC} ${GTK_INC} ${GTHREAD_INC} ${GMODULE_INC} ${GLIB_INC}
LIBS = ${GIRARA_LIB} ${GTK_LIB} ${GTHREAD_LIB} ${GMODULE_LIB} ${GLIB_LIB} -lpthread -lm LIBS = ${GIRARA_LIB} ${GTK_LIB} ${GTHREAD_LIB} ${GMODULE_LIB} ${GLIB_LIB} -lpthread -lm
# flags # pre-processor flags
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra $(INCS) CPPFLAGS += -D_FILE_OFFSET_BITS=64
# compiler flags
CFLAGS += -std=c11 -pedantic -Wall -Wno-format-zero-length -Wextra $(INCS)
# debug # debug
DFLAGS ?= -g DFLAGS ?= -g
# ld # linker flags
LDFLAGS += -rdynamic LDFLAGS += -rdynamic
# compiler # compiler
...@@ -139,6 +139,9 @@ VALGRIND_SUPPRESSION_FILE = zathura.suppression ...@@ -139,6 +139,9 @@ VALGRIND_SUPPRESSION_FILE = zathura.suppression
# set to something != 0 if you want verbose build output # set to something != 0 if you want verbose build output
VERBOSE ?= 0 VERBOSE ?= 0
# gettext package name
GETTEXT_PACKAGE ?= ${PROJECT}
# colors # colors
COLOR ?= 1 COLOR ?= 1
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 pwmt.org --> <!-- Copyright 2014-2015 pwmt.org -->
<application> <component type="desktop">
<id type="desktop">zathura.desktop</id> <id>zathura.desktop</id>
<metadata_license>CC0-1.0</metadata_license> <metadata_license>CC0-1.0</metadata_license>
<project_license>Zlib</project_license> <project_license>Zlib</project_license>
<description> <description>
...@@ -22,12 +22,21 @@ ...@@ -22,12 +22,21 @@
</ul> </ul>
</p> </p>
</description> </description>
<url type="homepage">http://pwmt.org/projects/zathura</url> <url type="homepage">https://pwmt.org/projects/zathura</url>
<url type="bugtracker">https://bugs.pwmt.org/project/zathura</url>
<screenshots> <screenshots>
<screenshot type="default">http://pwmt.org/projects/zathura/img/zathura-cover.png</screenshot> <screenshot type="default">
<screenshot>http://pwmt.org/projects/zathura/img/zathura-completion.png</screenshot> <image>https://pwmt.org/projects/zathura/img/zathura-cover.png</image>
<screenshot>http://pwmt.org/projects/zathura/img/zathura-follow.png</screenshot> </screenshot>
<screenshot>http://pwmt.org/projects/zathura/img/zathura-bookmarks.png</screenshot> <screenshot>
<image>https://pwmt.org/projects/zathura/img/zathura-completion.png</image>
</screenshot>
<screenshot>
<image>https://pwmt.org/projects/zathura/img/zathura-follow.png</image>
</screenshot>
<screenshot>
<image>https://pwmt.org/projects/zathura/img/zathura-bookmarks.png</image>
</screenshot>
</screenshots> </screenshots>
<updatecontact>zathura@lists.pwmt.org</updatecontact> <update_contact>zathura@lists.pwmt.org</update_contact>
</application> </component>
.\" Man page generated from reStructuredText. .\" Man page generated from reStructuredText.
. .
.TH "ZATHURA" "1" "April 13, 2015" "0.2.7" "zathura" .TH "ZATHURA" "1" "2015-12-21" "0.2.7" "zathura"
.SH NAME .SH NAME
zathura \- a document viewer zathura \- a document viewer
. .
......
.\" Man page generated from reStructuredText. .\" Man page generated from reStructuredText.
. .
.TH "ZATHURARC" "5" "April 13, 2015" "0.2.7" "zathura" .TH "ZATHURARC" "5" "2015-12-21" "0.2.7" "zathura"
.SH NAME .SH NAME
zathurarc \- zathura configuration file zathurarc \- zathura configuration file
. .
...@@ -121,9 +121,9 @@ map [mode] <binding> <shortcut function> <argument> ...@@ -121,9 +121,9 @@ map [mode] <binding> <shortcut function> <argument>
.UNINDENT .UNINDENT
.SS include \- Including another config file .SS include \- Including another config file
.sp .sp
This commands allows to include other configuration files. If a relative path is This commands allows one to include other configuration files. If a relative
given, the path will be resolved relative to the configuration file that is path is given, the path will be resolved relative to the configuration file that
currently processed. is currently processed.
.INDENT 0.0 .INDENT 0.0
.INDENT 3.5 .INDENT 3.5
.sp .sp
...@@ -952,11 +952,14 @@ Default value: 1 ...@@ -952,11 +952,14 @@ Default value: 1
.SS first\-page\-column .SS first\-page\-column
.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
the following pattern <1 page per row>:[<2 pages per row>[: ...]]. Per default,
the first column is set to 2 for double\-page layout.
.INDENT 0.0 .INDENT 0.0
.IP \(bu 2 .IP \(bu 2
Value type: Integer Value type: String
.IP \(bu 2 .IP \(bu 2
Default value: 1 Default value: 1:2
.UNINDENT .UNINDENT
.SS recolor .SS recolor
.sp .sp
...@@ -1067,6 +1070,35 @@ Value type: Boolean ...@@ -1067,6 +1070,35 @@ Value type: Boolean
.IP \(bu 2 .IP \(bu 2
Default value: false Default value: false
.UNINDENT .UNINDENT
.SS show\-directories
.sp
Defines if the directories should be displayed in completion.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: true
.UNINDENT
.SS show\-hidden
.sp
Defines if hidden files and directories should be displayed in completion.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
.SS show\-recent
.sp
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
.IP \(bu 2
Value type: Integer
.IP \(bu 2
Default value: 10
.UNINDENT
.SS scroll\-page\-aware .SS scroll\-page\-aware
.sp .sp
Defines if scrolling by half or full pages stops at page boundaries. Defines if scrolling by half or full pages stops at page boundaries.
...@@ -1122,6 +1154,15 @@ Value type: Boolean ...@@ -1122,6 +1154,15 @@ Value type: Boolean
.IP \(bu 2 .IP \(bu 2
Default value: false Default value: false
.UNINDENT .UNINDENT
.SS window\-title\-home\-tilde
.sp
Display a short version of the file path, which replaces $HOME with ~, in the window title.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
.SS window\-title\-page .SS window\-title\-page
.sp .sp
Display the page number in the window title. Display the page number in the window title.
...@@ -1140,6 +1181,15 @@ Value type: Boolean ...@@ -1140,6 +1181,15 @@ Value type: Boolean
.IP \(bu 2 .IP \(bu 2
Default value: false Default value: false
.UNINDENT .UNINDENT
.SS statusbar\-home\-tilde
.sp
Display a short version of the file path, which replaces $HOME with ~, in the statusbar.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
.SS zoom\-center .SS zoom\-center
.sp .sp
En/Disables horizontally centered zooming. En/Disables horizontally centered zooming.
......
...@@ -2,11 +2,25 @@ ...@@ -2,11 +2,25 @@
# #
# See LICENSE file for license and copyright information # See LICENSE file for license and copyright information
import os.path
import glob
import time
dirname = os.path.dirname(__file__)
files = glob.glob(os.path.join(dirname, '*.rst'))
files.extend(glob.glob(os.path.join(dirname, '*.txt')))
maxdate = 0
for path in files:
s = os.stat(path)
maxdate = max(maxdate, s.st_mtime)
# -- General configuration ------------------------------------------------ # -- General configuration ------------------------------------------------
source_suffix = '.rst' source_suffix = '.rst'
master_doc = 'zathura.1' master_doc = 'zathura.1'
templates_path = ['_templates'] templates_path = ['_templates']
today = time.strftime('%Y-%m-%d', time.gmtime(maxdate))
# -- Project configuration ------------------------------------------------ # -- Project configuration ------------------------------------------------
......
...@@ -74,9 +74,9 @@ the *zathurarc* file to make those changes permanent: ...@@ -74,9 +74,9 @@ the *zathurarc* file to make those changes permanent:
include - Including another config file include - Including another config file
--------------------------------------- ---------------------------------------
This commands allows to include other configuration files. If a relative path is This commands allows one to include other configuration files. If a relative
given, the path will be resolved relative to the configuration file that is path is given, the path will be resolved relative to the configuration file that
currently processed. is currently processed.
:: ::
...@@ -731,9 +731,12 @@ Defines the number of pages that are rendered next to each other in a row. ...@@ -731,9 +731,12 @@ Defines the number of pages that are rendered next to each other in a row.
first-page-column first-page-column
^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
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
the following pattern <1 page per row>:[<2 pages per row>[: ...]]. Per default,
the first column is set to 2 for double-page layout.
* Value type: Integer * Value type: String
* Default value: 1 * Default value: 1:2
recolor recolor
^^^^^^^ ^^^^^^^
...@@ -820,6 +823,30 @@ Defines if the last/first page should be wrapped ...@@ -820,6 +823,30 @@ Defines if the last/first page should be wrapped
* Value type: Boolean * Value type: Boolean
* Default value: false * Default value: false
show-directories
^^^^^^^^^^^^^^^^
Defines if the directories should be displayed in completion.
* Value type: Boolean
* Default value: true
show-hidden
^^^^^^^^^^^
Defines if hidden files and directories should be displayed in completion.
* Value type: Boolean
* Default value: false
show-recent
^^^^^^^^^^^
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.
* Value type: Integer
* Default value: 10
scroll-page-aware scroll-page-aware
^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
Defines if scrolling by half or full pages stops at page boundaries. Defines if scrolling by half or full pages stops at page boundaries.
...@@ -863,6 +890,13 @@ Use basename of the file in the window title. ...@@ -863,6 +890,13 @@ Use basename of the file in the window title.
* Value type: Boolean * Value type: Boolean
* Default value: false * Default value: false
window-title-home-tilde
^^^^^^^^^^^^^^^^^^^^^^^
Display a short version of the file path, which replaces $HOME with ~, in the window title.
* Value type: Boolean
* Default value: false
window-title-page window-title-page
^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
Display the page number in the window title. Display the page number in the window title.
...@@ -877,6 +911,13 @@ Use basename of the file in the statusbar. ...@@ -877,6 +911,13 @@ Use basename of the file in the statusbar.
* Value type: Boolean * Value type: Boolean
* Default value: false * Default value: false
statusbar-home-tilde
^^^^^^^^^^^^^^^^^^^^
Display a short version of the file path, which replaces $HOME with ~, in the statusbar.
* Value type: Boolean
* Default value: false
zoom-center zoom-center
^^^^^^^^^^^ ^^^^^^^^^^^
En/Disables horizontally centered zooming. En/Disables horizontally centered zooming.
......
# See LICENSE file for license and copyright information # See LICENSE file for license and copyright information
PROJECT = zathura include ../config.mk
GETTEXT_PACKAGE = $(PROJECT) include ../common.mk
CATALOGS = $(wildcard *.po) include ../colors.mk
LINGUAS ?= $(patsubst %.po, %, $(CATALOGS))
PROJECT = zathura
CATALOGS = $(sort $(wildcard *.po))
LINGUAS ?= $(patsubst %.po, %, $(CATALOGS))
ifeq ($(LINGUAS),) ifeq ($(LINGUAS),)
ALINGUAS = ALINGUAS =
else else
ALINGUAS = $(shell find $(patsubst %, %.po, $(LINGUAS)) 2>/dev/null) ALINGUAS = $(shell find $(patsubst %, %.po, $(LINGUAS)) 2>/dev/null)
endif endif
MOS = $(patsubst %, %/LC_MESSAGES/${GETTEXT_PACKAGE}.mo, $(patsubst %.po, %, $(ALINGUAS))) MOS = $(patsubst %, %/LC_MESSAGES/${GETTEXT_PACKAGE}.mo, $(patsubst %.po, %, $(ALINGUAS)))
include ../config.mk
include ../common.mk
all: ${MOS} all: ${MOS}
clean: clean:
$(QUIET)rm -rf POTFILES.in POTFILES.in.tmp $(patsubst %.po, %, $(CATALOGS)) ${PROJECT}.pot $(QUIET)rm -rf POTFILES.in POTFILES.in.tmp $(patsubst %.po, %, $(CATALOGS)) ${PROJECT}.pot
POTFILES.in: $(wildcard ../zathura/*.c) POTFILES.in: $(sort $(wildcard ../girara/*.c))
$(QUIET) set -e && rm -f $@.tmp && touch $@.tmp && \ $(QUIET) set -e && rm -f $@.tmp && touch $@.tmp && \
for f in $(^F) ; do \ for f in $(^F) ; do \
echo zathura/$$f >> $@.tmp ; \ echo girara/$$f >> $@.tmp ; \
done && \ done && \
mv $@.tmp $@ mv $@.tmp $@
${PROJECT}.pot: POTFILES.in ${GETTEXT_PACKAGE}.pot: POTFILES.in
$(ECHO) regenerate ${PROJECT}.pot $(ECHO) regenerate $@
$(QUIET)intltool-update --pot --gettext-package=${PROJECT} $(QUIET)intltool-update --pot --gettext-package=${GETTEXT_PACKAGE}
update-po: ${PROJECT}.pot update-po: ${GETTEXT_PACKAGE}.pot
$(ECHO) updating po: files ${CATALOGS} $(call colorecho,PO,"Updating po files ${CATALOGS}")
$(QUIET)set -e && for f in ${CATALOGS} ; do \ $(QUIET)set -e && for f in ${CATALOGS} ; do \
intltool-update --dist --gettext-package=${PROJECT} `echo $$f | sed 's/\.po//'` ; \ intltool-update --dist --gettext-package=${GETTEXT_PACKAGE} `echo $$f | sed 's/\.po//'` ; \
sed -i 's/Report-Msgid-Bugs-To: \\n/Report-Msgid-Bugs-To: http:\/\/bugs.pwmt.org\\n/' "$$f" ; \ sed -i 's/Report-Msgid-Bugs-To: \\n/Report-Msgid-Bugs-To: http:\/\/bugs.pwmt.org\\n/' "$$f" ; \
done done
%/LC_MESSAGES/${PROJECT}.mo: %.po %/LC_MESSAGES/${GETTEXT_PACKAGE}.mo: %.po
@mkdir -p $(@D) @mkdir -p $(@D)
$(ECHO) msgfmt $(shell echo $< | sed 's/\.po//') $(call colorecho,MSGFMT,$(shell echo $< | sed 's/\.po//'))
$(QUIET)${MSGFMT} ${MSGFMTFLAGS} -c $< -o $@ $(QUIET)${MSGFMT} ${MSGFMTFLAGS} -c $< -o $@
install: ${MOS} install: ${MOS}
$(ECHO) installing translations $(call colorecho,INSTALL,"Install translations")
$(QUIET)set -e && for f in $^ ; do \ $(QUIET)set -e && for f in $^ ; do \
mkdir -p -m 755 $(DESTDIR)$(LOCALEDIR)/`dirname $$f`; \ mkdir -p -m 755 $(DESTDIR)$(LOCALEDIR)/`dirname $$f`; \
install -m 644 $$f $(DESTDIR)$(LOCALEDIR)/`dirname $$f` ; \ install -m 644 $$f $(DESTDIR)$(LOCALEDIR)/`dirname $$f` ; \
done done
uninstall: ${MOS} uninstall: ${MOS}
$(ECHO) removing translations $(call colorecho,UNINSTALL,"Uninstall translations")
$(QUIET)set -e && for f in $^ ; do \ $(QUIET)set -e && for f in $^ ; do \
rm -f $(DESTDIR)$(LOCALEDIR)/$$f; \ rm -f $(LOCALEDIR)/$$f; \
done done
.PHONY: all clean update-po install uninstall .PHONY: all clean install uninstall update-po
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.