cnoor
This commit is contained in:
parent
7a9d8c5144
commit
83c254fd1e
|
@ -0,0 +1,52 @@
|
|||
.TH CNOOR 1 "NOVEMBER 2011"
|
||||
.SH NAME
|
||||
cnoor \- framebuffer holy Quran viewer
|
||||
.SH SYNOPSIS
|
||||
.B cnoor
|
||||
.RI " surat number"
|
||||
.SH DESCRIPTION
|
||||
.B cnoor
|
||||
is a fast and simple Quran viewer for the linux
|
||||
framebuffer (optionally for X11 using GTK+), and
|
||||
uses vim keyboard shortcuts.
|
||||
.SH OPTIONS
|
||||
.IP "\fB\-h\fR
|
||||
Display brief usage information and quit
|
||||
.SH KEY BINDINGS
|
||||
.TP
|
||||
.B j
|
||||
Scroll down
|
||||
.TP
|
||||
.B k
|
||||
Scroll up
|
||||
.TP
|
||||
.B ^f
|
||||
Scroll down a screenful
|
||||
.TP
|
||||
.B ^b
|
||||
Scroll up a screenful
|
||||
.IP [\fI0-9\fR]+\fBG\fR
|
||||
Go to the specified ayat, default to the end
|
||||
.IP [\fI0-9\fR]+\fB%\fR
|
||||
Jump to specified percent of surat
|
||||
.IP \fBm\fR+[\fIa-z\fR]
|
||||
Mark position for snap back.
|
||||
.IP \fB'\fR+[\fIa-z\fR]
|
||||
Pop back to marked position.
|
||||
.TP
|
||||
.B i
|
||||
Display surat information
|
||||
.TP
|
||||
.B ^l
|
||||
Redraw screen
|
||||
.TP
|
||||
.B q
|
||||
Quit program
|
||||
.SH CUSTOMIZATION
|
||||
.B cnoor
|
||||
is customized by editing the supplied config.h and (re)compiling
|
||||
the source code. The absolute path to the Arabic Quran text must
|
||||
be set in order to run \fBcnoor\fR, but it is optional to supply
|
||||
a translation.
|
||||
.SH AUTHOR
|
||||
Ali Gholami Rudi <aligrudi at gmail dot com>
|
|
@ -0,0 +1,21 @@
|
|||
/* cnoor config file */
|
||||
|
||||
/* framebuffer depth */
|
||||
typedef unsigned int fbval_t;
|
||||
|
||||
/* optimized version of fb_val() */
|
||||
#define FB_VAL(r, g, b) fb_val((r), (g), (b))
|
||||
|
||||
/* you can get it from http://tanzil.info/download */
|
||||
#define QURAN_PATH "user"
|
||||
/* it should be a utf-8 file with one aya per line or NULL */
|
||||
#define TRANS_PATH "/usr/share/doc/cnoor/en.ahmedali"
|
||||
|
||||
/* fonts and colors */
|
||||
#define COLOR_FG 0x000000
|
||||
#define COLOR_BG 0xd5ddff
|
||||
#define FONT_QURAN "scheherazade 17"
|
||||
#define FONT_TRANS "DejaVu Sans 8"
|
||||
#define FONT_NUM "DejaVu Sans Mono 7"
|
||||
#define FONT_JUZ "DejaVu Sans Mono 7"
|
||||
#define FONT_SAJDA "DejaVu Sans Mono 7"
|
|
@ -0,0 +1,23 @@
|
|||
# Tanım: Basit bir framebuffer Kuran'ı Kerim görüntüleyici.
|
||||
# URL: http://litcave.rudi.ir/
|
||||
# Paketçi: Cihan_Alkan
|
||||
# Gerekler: openjdk
|
||||
# Grup:
|
||||
|
||||
isim=cnoor
|
||||
surum=2.2.3
|
||||
devir=1
|
||||
kaynak=(http://repo.or.cz/cnoor.git/snapshot/2b58c5a8ecb4dfcc7952479782d06bd49d6566be.tar.gz::$isim-$surum.tar.gz
|
||||
http://tanzil.net/trans/en.ahmedali
|
||||
cnoor.1
|
||||
config.h)
|
||||
|
||||
derle() {
|
||||
cd $SRC/$isim-2b58c5a
|
||||
cp $SRC/config.h config.h
|
||||
sed -i "10s|user|$HOME/.quran/quran-simple.txt|" config.h
|
||||
make all
|
||||
install -Dm755 cnoor $PKG/usr/bin/cnoor
|
||||
install -Dm644 ../cnoor.1 $PKG/usr/share/man/man1/cnoor.1
|
||||
install -Dm644 ../en.ahmedali $PKG/usr/share/doc/cnoor/en.ahmedali
|
||||
}
|
Loading…
Reference in New Issue