Rename folder name from german to english
[ccbib.git] / scripts / booklet
blobc1c4dafeb6be426c2e5ad08ec21574c675cbc63c
1 #!/bin/sh
3 offset=485 #a4hoehe-b6breite
4 offset2=130 #a4hoehe-2xb6breite
5 b6w=355
7 if [ -z "$2" ]; then
8 output=$(basename $1)
9 else
10 output=$2
13 bbox () {
14 x=$1
15 y=$2
16 w=$3
17 h=$4
20 bbox $(sed -n -e "s/^%%BoundingBox: //p" $1)
22 new_bb="0 0 $h $((2*$w))"
24 psbook $1 | pstops "4:0L($h,0)+1L($h,$w)" | strippagesize "$new_bb" >v_$output
25 psbook $1 | pstops "4:2L($h,0)+3L($h,$w)" | strippagesize "$new_bb" >h_$output