Commit a5a5e1fa authored by Sebastian Ramacher's avatar Sebastian Ramacher

Imported Upstream version 0.0.7

parents
Copyright (c) 2009 ML, JY - pwmt.org
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
# See LICENSE file for license and copyright information
# zathura - user interface
include config.mk
PROJECT = zathura
SOURCE = zathura.c
OBJECTS = ${SOURCE:.c=.o}
DOBJECTS = ${SOURCE:.c=.do}
all: options ${PROJECT}
options:
@echo ${PROJECT} build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LIBS = ${LIBS}"
@echo "DFLAGS = ${DFLAGS}"
@echo "CC = ${CC}"
%.o: %.c
@echo CC $<
@${CC} -c ${CFLAGS} -o $@ $<
%.do: %.c
@echo CC $<
@${CC} -c ${CFLAGS} ${DFLAGS} -o $@ $<
${OBJECTS}: config.h config.mk
${DOBJECTS}: config.h config.mk
config.h:
@cp config.def.h $@
${PROJECT}: ${OBJECTS}
@echo CC -o $@
@${CC} -s ${LDFLAGS} -o $@ ${OBJECTS} ${LIBS}
clean:
@rm -rf ${PROJECT} ${OBJECTS} ${PROJECT}-${VERSION}.tar.gz \
${DOBJECTS} ${PROJECT}-debug
${PROJECT}-debug: ${DOBJECTS}
@echo CC -o ${PROJECT}-debug
@${CC} ${LDFLAGS} -o ${PROJECT}-debug ${DOBJECTS} ${LIBS}
debug: ${PROJECT}-debug
valgrind: debug
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes \
./${PROJECT}-debug
gdb: debug
cgdb ${PROJECT}-debug
dist: clean
@mkdir -p ${PROJECT}-${VERSION}
@cp -R LICENSE Makefile config.mk config.def.h README \
${PROJECT}.1 ${SOURCE} ${PROJECT}-${VERSION}
@tar -cf ${PROJECT}-${VERSION}.tar ${PROJECT}-${VERSION}
@gzip ${PROJECT}-${VERSION}.tar
@rm -rf ${PROJECT}-${VERSION}
install: all
@echo installing executeable file
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f ${PROJECT} ${DESTDIR}${PREFIX}/bin
@chmod 755 ${PROJECT} ${DESTDIR}${PREFIX}/bin/${PROJECT}
@echo installing manual page
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
@sed "s/VERSION/${VERSION}/g" < ${PROJECT}.1 > ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
uninstall:
@echo removing executeable file
@rm -f ${DESTDIR}${MANPREFIX}/bin/${PROJECT}
@echo removing manual page
@rm -f ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
zathura - pdf viewer
--------------------
zathura is a pdf viewer based on the poppler pdf rendering library
Requirements
------------
poppler-glib (0.12.3)
cairo (1.8.8)
gtk2 (2.18.6)
glib2 (2.22.4)
Configuration
-------------
You can modify some parts of zathura by editing the config.h file
Installation
------------
Customise config.h according to your wishes and run the following
command to build and install zathura:
make install
Uninstall:
----------
To delete zathura from your system, just type:
make uninstall
Use zathura
-----------
Just run:
zathura <file>
This diff is collapsed.
# See LICENSE file for license and copyright information
# zathura make config
VERSION = 0.0.7
# paths
PREFIX ?= /usr
MANPREFIX ?= ${PREFIX}/share/man
# libs
GTK_INC = $(shell pkg-config --cflags gtk+-2.0 poppler-glib)
GTK_LIB = $(shell pkg-config --libs gtk+-2.0 gthread-2.0 poppler-glib)
INCS = -I. -I/usr/include ${GTK_INC}
LIBS = -lc ${GTK_LIB} -lpthread
# flags
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
# debug
DFLAGS = -g
# compiler
CC ?= gcc
.TH ZATHURA 1 zathura\-VERSION
.SH NAME
zathura \- a PDF viewer
.SH SYNOPSIS
.B zathura
.RB [-e\ xid]
.RB [file]
.RB [password]
.SH DESCRIPTION
zathura is a highly customizable and functional PDF viewer based on the poppler
rendering library and the gtk+ toolkit. The idea behind zathura is an
application that provides a minimalistic and space saving interface as well as
an easy usage that mainly focuses on keyboard interaction.
.SH OPTIONS
.TP
.B -e xid
Reparents to window specified by xid.
.SH DEFAULT SETTINGS
.SS Shortcuts
.TP
.B J
Go to next page
.TP
.B K
Go to previous page
.TP
.B h
Scroll to the left
.TP
.B k
Scroll upwards
.TP
.B j
Scroll downwards
.TP
.B ^f
Scroll page down
.TP
.B ^b
Scroll page up
.TP
.B ^d
Scroll half a page down
.TP
.B ^u
Scroll half a page up
.TP
.B l
Scroll to the right
.TP
.B /
Search forwards
.TP
.B ?
Search backwards
.TP
.B n
Search last keyword forwards
.TP
.B N
Search last keyword backwards
.TP
.B Tab
Toggle index
.TP
.B o
Open a file
.TP
.B a
Zoom to fit
.TP
.B s
Zoom to width
.TP
.B f
Follow a link on the page
.TP
.B m
Mark current position and save it in register specified by a character
.TP
.B '
Go to saved position specified by the ensuing character
.TP
.B r
Rotate the page
.TP
.B R
Reload the document
.TP
.B O
Change goto mode (L: search labels, D: default, O: manual offset)
.TP
.B ^i
Invert the colors of the page
.TP
.B i
Change to insert mode
.TP
.B v
Change to visual mode
.TP
.B :
Focus inputbar
.TP
.B Backspace
Delete last character in the buffer
.TP
.B F5
Toggle fullscreen mode
.TP
.B ^n
Toggle statusbar visibility
.TP
.B ^m
Toggle inputbar visibility
.TP
.B Esc | ^c
Abort
.TP
.B ^q
Quit the program
.SS Index commands
.TP
.B k
Navigate to one element above the current position
.TP
.B j
Navigate to one element below the current position
.TP
.B h
Collapse current element
.TP
.B l
Expand current element
.TP
.B Space | Return
Select current element
.SS Buffered commands
.TP
.B gg
Go to the first page
.TP
.B GG
Go to the last page
.TP
.B [0-9]+G
Go to the specified page
.TP
.B zI
Zoom in
.TP
.B zO
Zoom out
.TP
.B z0
Zoom to the original size
.TP
.B [0-9]+Z
Zoom to the given level
.TP
.B [0-9]+%
Move to the given position
.SS Commands
.TP
.B bmark
Bookmark current page
.TP
.B blist
List and open bookmark
.TP
.B close
Close current file
.TP
.B coffset
Set page offset
.TP
.B delbmark
Delete given bookmark
.TP
.B export
Export images or attached files
.TP
.B info
Show information about the document
.TP
.B map
Map shortcut functions (map <key> <function> <argument> <mode>)
.TP
.B open
Open a file
.TP
.B print
Print the document
.TP
.B rotate
Rotate the page
.TP
.B set
Set an option (set <id> <value>)
.TP
.B quit
Quit the program
.TP
.B write
Save the document
.SS Inputbar shortcuts
.TP
.B Up
Move up in the command history
.TP
.B Down
Move down in the command history
.TP
.B Tab | Shift + Tab
Tab completion
.TP
.B ^w
Delete last word
.SH CONFIGURATION
The complete configuration including the appearance and shortcuts of the program
are defined in a separate file named config.h. In this file you are able to
change and adjust all the settings of zathura according to your wishes.
In addition you can create a zathurarc file (default path: ~/.zathura/zathurarc)
to overwrite settings and keybindings by using the set and map function. For
more information please check the faq on the website: http://pwmt.org/zathura
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment