Subject: paps: please add a --gutter-width option
Package: paps
Version: 0.6.8-2
Severity: wishlist
Tags: patch
Please add a --gutter-width with which to set the gutter when printing
multiple columns. This is needed because with 8-points Courier it is
hard to get 80 characters in a two-column layout.
Attached is a pretty minimal patch that implements this.
-- System Information:
Debian Release: 5.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages paps depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libfreetype6 2.3.7-2+lenny1 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.16.6-2 The GLib library of C routines
ii libpango1.0-0 1.20.5-5 Layout and rendering of internatio
--
-- arthur de jong - [email protected] - west consulting b.v. --
--- src/paps.c.orig 2009-07-13 11:47:40.000000000 +0200
+++ src/paps.c 2009-07-13 11:49:40.000000000 +0200
@@ -282,6 +282,7 @@
gboolean do_wordwrap = TRUE; // What should be default?
int num_columns = 1;
int top_margin = 36, bottom_margin = 36, right_margin = 36, left_margin = 36;
+ int gutter_width = 40;
gchar *font = MAKE_FONT_NAME (DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE), *encoding = NULL;
page_layout_t page_layout;
GOptionContext *ctxt = g_option_context_new("[text file]");
@@ -299,6 +300,7 @@
{"top-margin", 0, 0, G_OPTION_ARG_INT, &top_margin, "Set top margin. (Default: 36)", "NUM"},
{"right-margin", 0, 0, G_OPTION_ARG_INT, &right_margin, "Set right margin. (Default: 36)", "NUM"},
{"left-margin", 0, 0, G_OPTION_ARG_INT, &left_margin, "Set left margin. (Default: 36)", "NUM"},
+ {"gutter-width", 0, 0, G_OPTION_ARG_INT, &gutter_width, "Set gutter width. (Default: 40)", "NUM"},
{"header", 0, 0, G_OPTION_ARG_NONE, &do_draw_header, "Draw page header for each page.", NULL},
{"encoding", 0, 0, G_OPTION_ARG_STRING, &encoding, "Assume the documentation encoding.", "ENCODING"},
{"lpi", 0, 0, G_OPTION_ARG_CALLBACK, _paps_arg_lpi_cb, "Set the amount of lines per inch.", "REAL"},
@@ -317,7 +319,6 @@
PangoFontset *fontset;
PangoFontMetrics *metrics;
int num_pages = 1;
- int gutter_width = 40;
int total_gutter_width;
int page_width = paper_sizes[0].width;
int page_height = paper_sizes[0].height;
--- src/paps.1.orig 2009-07-13 11:56:01.000000000 +0200
+++ src/paps.1 2009-07-13 11:56:09.000000000 +0200
@@ -60,6 +60,9 @@
.B \-\-right-margin=rm
Set right margin. Default is 36 postscript points.
.TP
+.B \-\-gutter-width=gw
+Set gutter width. Default is 40 postscript points.
+.TP
.B \-\-help
Show summary of options.
.TP