debian/0000755000000000000000000000000011677717741007210 5ustar debian/README.source0000644000000000000000000000036311677714052011361 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. See /usr/share/doc/quilt/README.source for a detailed explanation. debian/enscript.doc-base.enscript-faq0000644000000000000000000000036011677714052015020 0ustar Document: enscript-faq Title: GNU Enscript FAQ Author: Markku Rossi Abstract: Frequently Asked Questions about GNU Enscript. Section: Programming Format: HTML Index: /usr/share/doc/enscript/FAQ.html Files: /usr/share/doc/enscript/FAQ.html debian/enscript.info0000644000000000000000000000002311677714052011677 0ustar docs/enscript.info debian/compat0000644000000000000000000000000211677714403010376 0ustar 9 debian/control0000644000000000000000000000204711677716401010606 0ustar Source: enscript Section: text Priority: optional Maintainer: Tim Retout Build-Depends: debhelper (>= 8.9.4), dpkg-dev (>= 1.16.1), libpaper-dev, autotools-dev, autoconf, automake1.11, autopoint Build-Conflicts: autoconf2.13, automake1.4 Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/git/collab-maint/enscript.git Vcs-Browser: http://git.debian.org/?p=collab-maint/enscript.git Homepage: http://www.gnu.org/software/enscript/ Package: enscript Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, ${perl:Depends} Replaces: octave3.0 Suggests: gv | postscript-viewer, lpr Description: converts text to Postscript, HTML or RTF with syntax highlighting GNU Enscript takes ASCII files (often source code) and converts them to PostScript, HTML or RTF. It can store generated output to a file or send it directly to the printer. . It is often used for its syntax highlighting, as it comes with rules for a wide range of programming languages. New rules can be added using an awk-like stateful scripting language. debian/copyright0000644000000000000000000000250311677714052011133 0ustar This package was debianized by Sven Rudolph in November 1995. See debian/changelog for subsequent maintainers. It was downloaded from 'http://ftp.gnu.org/gnu/enscript/'. Upstream maintainer: Tim Retout libpaper support was added by Hartmut Koptein . additional highlighting rules (licensed under the GPL) by: Brent Fulgham Julien Lemoine Sean Hinde Copyright: Copyright (c) 1995-2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. License: Enscript is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Enscript is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Enscript. If not, see . On Debian systems the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-3'. debian/patches/0000755000000000000000000000000011677714052010627 5ustar debian/patches/147116-ruby-hilight0000644000000000000000000001122011677714052013716 0ustar Description: Ruby highlighting rules for enscript. Author: Mike Wilson Bug-Debian: http://bugs.debian.org/147116 --- /dev/null +++ b/states/hl/ruby.st @@ -0,0 +1,205 @@ +/** + * Name: ruby + * Description: Ruby programming language. + * Author: Mike Wilson + */ + +state ruby_comment +{ + /\*\\\// { + language_print ($0); + return; + } + LANGUAGE_SPECIALS { + language_print ($0); + } +} + +state ruby_dquot_string +{ + /\\\\./ { + language_print ($0); + } + /\"/ { + language_print ($0); + return; + } + LANGUAGE_SPECIALS { + language_print ($0); + } +} + +state ruby_quot_string +{ + /\\\\./ { + language_print ($0); + } + /[\']/ { + language_print ($0); + return; + } + LANGUAGE_SPECIALS { + language_print ($0); + } +} + +state ruby_bquot_string +{ + /\\\\./ { + language_print ($0); + } + /`/ { + language_print ($0); + return; + } + LANGUAGE_SPECIALS { + language_print ($0); + } +} + +state ruby +{ + BEGIN { + header (); + } + END { + trailer (); + } + + /* Comments. */ + /#[^{].*$/ { + comment_face (true); + language_print ($0); + comment_face (false); + } + + /* Ignore escaped quote marks */ + /\\\"/ { + language_print ($0); + } + /\\\'/ { + language_print ($0); + } + /\\\`/ { + language_print ($0); + } + + /* In cgi files, JavaScript might be imbedded, so we need to look out + * for the JavaScript comments, because they might contain something + * we don't like, like a contraction (don't, won't, etc.) + * We won't put them in comment face, because they are not ruby + * comments. + */ + /\/\// { + language_print ($0); + call (eat_one_line); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (ruby_dquot_string); + string_face (false); + } + /[\']/ { + string_face (true); + language_print ($0); + call (ruby_quot_string); + string_face (false); + } + + /* Backquoted command string */ + /`/ { + string_face (true); + language_print ($0); + call (ruby_bquot_string); + string_face (false); + } + + /* Variables globals and instance */ + /[$@]\w+/ { + variable_name_face (true); + language_print ($0); + variable_name_face (false); + } + + /* Variables class variable */ + /@@\w+/ { + variable_name_face (true); + language_print ($0); + variable_name_face (false); + } + + /([ \t]*)(def)([ \t]+)([^(]*)/ { + /* indentation */ + language_print ($1); + + /* def */ + keyword_face (true); + language_print ($2); + keyword_face (false); + + /* middle */ + language_print ($3); + + /* Function name. */ + function_name_face (true); + language_print ($4); + function_name_face (false); + } + + /* Highlighting + --Type face + private protected public + + --Builtin face (I consider these to be somewhat special) + alias alias_method attr attr_accessor attr_reader attr_writer + module_alias module_function self super + + --Reference face + require include + + --Keyword face + and begin break case class def defined? do else elsif end + ensure eval extend false for if in method module next nil not + or redo rescue retry return then true undef unless until when + while yield + */ +/\\b(private|protected|public)\\b/ { + type_face (true); + language_print ($0); + type_face (false); + } + +/\\b(alias|alias_method|attr|attr_(accessor|reader|writer)\\ +|module_(alias|function)|self|super)\\b/ { + builtin_face (true); + language_print ($0); + builtin_face (false); + } + +/\\b(include|require)\\b/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + +/\\b(and|begin|break|case|class|def|defined?|do|else|elsif|end|ensure|eval\\ +|extend|false|for|if|in|method|module|next|nil|not|or|raise|redo|rescue|retry\\ +|return|then|true|undef|unless|until|when|while|yield)\\b/ { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + LANGUAGE_SPECIALS { + language_print ($0); + } + + /\$[!@&`'+~=\/\\,;.<>_*$?:"]/ { + variable_name_face (true); + language_print ($0); + variable_name_face (false); + } +} --- a/states/hl/Makefile.am +++ b/states/hl/Makefile.am @@ -37,7 +37,7 @@ postscript.st python.st pyrex.st rfc.st scheme.st sh.st skill.st \ sql.st states.st synopsys.st tcl.st tcsh.st tex.st vba.st verilog.st \ vhdl.st vrml.st wmlscript.st zsh.st eiffel.st erlang.st dylan.st oz.st \ -lua.st oberon2.st icon.st smalltalk.st forth.st sml.st +lua.st oberon2.st icon.st smalltalk.st forth.st sml.st ruby.st hldir = $(pkgdatadir)/hl dist_hl_DATA = $(misc) $(styles) $(languages) $(highlightings) debian/patches/07_media0000644000000000000000000000236211677714052012142 0ustar ## 07_media.dpatch by Michael Fedrowitz ## DP: new media definitions taken from CUPS --- a/lib/enscript.cfg.in +++ b/lib/enscript.cfg.in @@ -84,15 +84,23 @@ # Media definitions: # name width height llx lly urx ury -Media: A3 842 1190 24 24 818 1166 -Media: A4 595 842 24 24 571 818 -Media: A5 420 595 24 24 396 571 -Media: Legal 612 1008 24 24 588 984 -Media: Letter 612 792 38 24 574 768 +Media: Letter 612 792 18 36 594 756 +Media: Legal 612 1008 18 36 594 972 +Media: Executive 522 756 18 36 504 684 +Media: Tabloid 792 1224 18 36 774 1188 +Media: A3 842 1191 18 36 824 1155 +Media: A4 595 842 18 36 577 806 +Media: A5 421 595 18 36 403 559 +Media: B5 516 729 18 36 498 693 +Media: EnvISOB5 499 709 18 36 463 673 +Media: Env10 297 684 18 36 279 648 +Media: EnvC5 459 649 18 36 441 613 +Media: EnvDL 312 624 18 36 294 588 +Media: EnvMonarch 279 540 18 36 261 504 # HP DeskJet media (DeskJet can't print on the bottom 1/2" of the paper). -Media: A4dj 595 842 24 50 571 818 -Media: Letterdj 612 792 24 40 588 768 +Media: A4dj 595 842 18 50 577 806 +Media: Letterdj 612 792 18 40 594 756 # Spooler option to suppress the job header. NoJobHeaderSwitch: -h debian/patches/03_misc0000644000000000000000000000266511677714052012020 0ustar ## 03_misc.dpatch by Michael Fedrowitz ## DP: miscellaneous bug fixes --- a/compat/regex.c +++ b/compat/regex.c @@ -2400,11 +2400,13 @@ case ')': if (syntax & RE_NO_BK_PARENS) goto normal_backslash; - if (COMPILE_STACK_EMPTY) - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) + if (COMPILE_STACK_EMPTY) { + if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) { goto normal_backslash; - else + } else { FREE_STACK_RETURN (REG_ERPAREN); + } + } handle_close: if (fixup_alt_jump) @@ -2420,11 +2422,13 @@ } /* See similar code for backslashed left paren above. */ - if (COMPILE_STACK_EMPTY) - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) + if (COMPILE_STACK_EMPTY) { + if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) { goto normal_char; - else + } else { FREE_STACK_RETURN (REG_ERPAREN); + } + } /* Since we just checked for an empty stack above, this ``can't happen''. */ --- a/src/psgen.c +++ b/src/psgen.c @@ -2562,7 +2562,7 @@ read_float (InputStream *is, int units, int horizontal) { char buf[256]; - int i, ch; + int i, ch = 0; double val; for (i = 0; (i < sizeof (buf) - 1 debian/patches/09_appendctrld0000644000000000000000000000232611677714052013365 0ustar ## 09_appendctrld.dpatch by Michael Fedrowitz ## DP: Change AppendCtrlD to allow appending ^D without trailing newline. --- a/docs/enscript.man +++ b/docs/enscript.man @@ -665,9 +665,11 @@ .B AFMPath: \f2path\f3 Specifies the search path for the \f2AFM\f1 files. .TP 8 -.B AppendCtrlD: \f2bool\f3 +.B AppendCtrlD: \f2int\f3 Specify if the Control-D (^D) character should be appended to the end -of the output. The default value is false (0). +of the output. A value of 1 will append ^D followed by a newline, a +value of 2 will omit the trailing newline. The default value is 0 for +no ^D. .TP 8 .B Clean7Bit: \f2bool\f3 Specify how characters greater than 127 are printed. The valuee true --- a/src/main.c +++ b/src/main.c @@ -1720,11 +1720,15 @@ dump_ps_trailer (); /* - * Append ^D to the end of the output? Note! It must be ^D followed + * Append ^D to the end of the output? Optionally followed * by a newline. */ - if (ofp != NULL && append_ctrl_D) - fprintf (ofp, "\004\n"); + if (ofp != NULL && append_ctrl_D > 0) + { + fprintf (ofp, "\004"); + if (append_ctrl_D == 1) + fprintf (ofp, "\n"); + } } /* Close output file. */ debian/patches/339938-hilight-wrapped-function-list0000644000000000000000000000217711677714052017225 0ustar Description: Highlight wrapped function lists in ChangeLog files. Author: Daniel Leidert Bug-Debian: http://bugs.debian.org/339938 Index: enscript/states/hl/changelog.st =================================================================== --- enscript.orig/states/hl/changelog.st 2006-10-07 22:08:46.964125208 +0200 +++ enscript/states/hl/changelog.st 2006-09-22 18:15:34.000000000 +0200 @@ -26,7 +26,7 @@ state changelog extends HighlightEntry } /* File descriptions with function names. */ - /(^\t\* )([^\(]+)(\()([^\)]+)(\):)/ { + /(^\t\* )([^\(\n]+)(\()([^\)\n]+)(\)[:\n])/ { language_print ($1); function_name_face (true); @@ -43,7 +43,7 @@ state changelog extends HighlightEntry } /* File descriptions without function names. */ - /(^\t\* )([^:]+)(:)/ { + /(^\t\* )([^:\n\(]+)([:\n])/ { language_print ($1); function_name_face (true); @@ -54,7 +54,7 @@ state changelog extends HighlightEntry } /* Function name descriptions without file names. */ - /(^\t\()([^\)]+)(\):)/ { + /(^\t\()([^\)\n]+)(\)[:\n])/ { language_print ($1); keyword_face (true); debian/patches/04_highlighting0000644000000000000000000006676511677714052013546 0ustar ## 04_highlighting.dpatch by Michael Fedrowitz ## DP: highlighting rules fixes and improvements --- a/states/hl/changelog.st +++ b/states/hl/changelog.st @@ -43,7 +43,7 @@ } /* File descriptions without function names. */ - /(^\t\* )([^ :]+)(:)/ { + /(^\t\* )([^:]+)(:)/ { language_print ($1); function_name_face (true); --- /dev/null +++ b/states/hl/dylan.st @@ -0,0 +1,124 @@ +/** + * Name: dylan + * Description: Dylan Programming Language template for Enscript. + * Author: Brent Fulgham + * (based on the Scheme version by Markku Rossi ) + */ + +dylan_mod_re = +/* Definition Modifiers + (build-re '(abstract block concrete constant class domain exception exclude + export function functional generic handler import inherited inline + instance interface library macro method open primary sealed sideways + singleton slot subclass variable virtual)) + */ + /\b(subclass|abstract|block|c(on(crete|stant)|lass)|domain\ +|ex(c(eption|lude)|port)|f(unction(|al))|generic|handler\ +|i(n(herited|line|stance|terface)|mport)|library|m(acro|ethod)\ +|open|primary|sealed|si(deways|ngleton)|slot\ +|v(ariable|irtual))\b/; + +state dylan extends HighlightEntry +{ + BEGIN { + /* + * Modify regexp character syntax so that we can distinguish all + * dylan symbols. + */ + extras = list ('!', '$', '%', '&', '*', '/', ':', + '=', '?', '~', '^', '.', '+', '-'); + for (i = 0; i < length (extras); i = i + 1) + regexp_syntax (extras[i], 'w'); + } + + /* Modifiers */ + dylan_mod_re { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* Types */ + /<\w+>/ { + type_face (true); + language_print ($0); + type_face (false); + } + + /* Symbols */ + /#\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* Comments. */ + /\/\// { + comment_face (true); + language_print ($0); + call (eat_one_line); + comment_face (false); + } + /\/\*/ { + comment_face (true); + language_print ($0); + call (eat_one_line); + comment_face (false); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* Character constants. */ + /'.*'/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* Keywords. + "=>" + + (build-re '(above afterwards begin below by case cleanup create + define end else elseif finally for from if in let local otherwise rename + select signal then to unless until use variable virtual when while + */ + /=>|\b(a(bove|fterwards)|b(e(gin|low)|y)|c(ase|leanup|reate)\ +|define|else(|if)|end|f(inally|or|rom)|i[fn]|l(et|ocal)|otherwise\ +|rename|s(elect|ignal)|t(hen|o)|u(n(less|til)|se)|wh(en|ile))\b/ { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* ':'-names, Emacs highlights these, so do we. */ + /([ \t])([!\$%&\*\/:<=>\?~_^a-zA-Z0-9.+\-]*:)/ { + language_print ($1); + reference_face (true); + language_print ($2); + reference_face (false); + } + + /* Function faces */ + /([ \t]*)(\w+[^:])([ \t]*\([ \t]*)/ { + language_print ($1); + function_name_face(true); + face_on(face_bold_italic); + language_print ($2); + face_off(face_bold_italic); + function_name_face(false); + language_print ($3); + } +} + + +/* +Local variables: +mode: c +End: +*/ --- /dev/null +++ b/states/hl/eiffel.st @@ -0,0 +1,132 @@ +/** + * Name: eiffel + * Description: Eiffel programming language. + * Author: Julien Lemoine + * Brent Fulgham + */ + +eiffel_types = +/* Types */ + /\b(ABSTRACT_(FRACTION|INTEGER)|ANY|AR(GUMENTS|RAY(|2|3|ED_COLLECTION))\ +|BASIC_(DIRECTORY|TIME)|BINARY_FILE_(READ|WRITE)|BIT_(N|STRING)|BOOLEAN\ +|CHARACTER(|_CONSTANTS)|CLOCK|COLLECTION(|2|3|_SORTER)|COMPARABLE\ +|COUNTER|DICTIONARY(|_NODE)|D(IRECTORY|OUBLE)|EXCEPTIONS|FILE(|_TOOLS)\ +|FIXED_ARRAY(|2|3)|GE(NERAL|N_RAND)|HASH(ABLE|_TABLE_SIZE)|INPUT_STREAM\ +|INTEGER(|_8|_16|_32|_64|_FRACTION|_GENERAL)\ +|ITERATOR(|_ON_(COLLECTION|DICTIONARY(_ITEMS|_KEYS)|LINKED_LIST|SET\ +|STRING|TWO_WAY_LINKED_LIST|UNICODE_STRING))\ +|LARGE(|_NEGATIVE|_POSITIVE)_INTEGER|LINK(|2|ED(_COLLECTION|_LIST))\ +|MATH_CONSTANTS|MEMO(|RY)|MICROSECOND_TIME|MINI_PARSER_BUFFER\ +|MIN_STAND|MUTABLE_BIG_INTEGER|NATIVE_ARRAY|NULL_(INPUT|OUTPUT)\ +|NUMBER(|_FRACTION|_TOOLS)|NUMERIC|OUTPUT_STREAM|PLATFORM|POINTER\ +|REAL|REVERSE_COLLECTION_SORTER|SAFE_EQUAL|SCOOP_UTILITIES|SET(|_NODE)\ +|SMALL_INTEGER|STD_(ERROR|FILE_(READ|READ_WRITE|WRITE)|INPUT(|_OUTPUT)\ +|OUTPUT|RAND)|STRING(|_HANDLER)|SYSTEM|TIME(|_IN_(ENGLISH|FRENCH|GERMAN\ +|ITALIAN|SOME_LANGUAGE|SPANISH))|TWO_WAY_LINKED_LIST\ +|UNICODE_STRING(|_HANDLER)|UTF8_PARSER)\b/; + +eiffel_keywords = +/* Keywords */ + /\b(agent|a(ll|lias)|and|as(|sign)|check|class|convert|create|Current|debug\ +|deferred|do|else(|if)|en(d|sure)|ex(panded|port|ternal)|False\ +|feature|fro(m|zen)|if|implies|in(dexing|fix|herit|spect|variant)\ +|is|like|local|loop|not|o(r|bsolete|ld|nce)|prefix|Precursor|pure\ +|re(define|ference|name|quire|scue|try)|Result|separate|then|True\ +|TUPLE|un(define|til)|creation)\b/; + +state eiffel extends HighlightEntry +{ + + /* One line comments. */ + /\-\-/ { + comment_face (true); + language_print ($0); + call (eat_one_line); + comment_face (false); + } + + /* Keywords. */ + eiffel_keywords { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Types. */ + eiffel_types { + type_face (true); + language_print ($0); + type_face (false); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* Character constants. */ + /'.'|'\\\\.'/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* Symbols, etc. */ + /:=|==|<=|>=|=|!=|\/=|!|!!/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* Type declarations */ + /([ \t])*([a-zA-Z]+[, \ta-zA-Z0-9_]*):[^=]/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + + /* + * Function definitions, with args + * fct_name (args...) is + */ + /^([ \t]*[a-zA-Z_][a-zA-Z_0-9]*[ \t]*)(\([ \t]*[ \ta-z,A-Z_0-9]+)(:[ \ta-zA-Z0-9_\[\]]+)?(\)[ \t]*)(:[ \ta-zA-Z0-9_\[\]]+)?([ \t]+is)[ \t]*$/ { + function_name_face (true); + face_on(face_bold_italic); + language_print ($1); + face_off(face_bold_italic); + function_name_face (false); + language_print ($2); + type_face (true); + language_print ($3); + type_face (false); + language_print ($4); + type_face (true); + language_print ($5); + type_face (false); + keyword_face (true); + language_print ($6); + keyword_face (false); + language_print ($7); + } + + /* + * Function definitions, without args + * fct_name is + */ + /^([ \t]*[a-zA-Z_][a-zA-Z_0-9]*)([ \t]*)(is)[ \t]*$/ { + function_name_face (true); + face_on(face_bold_italic); + language_print ($1); + face_off(face_bold_italic); + function_name_face (false); + language_print(" "); + keyword_face (true); + language_print ($3); + keyword_face (false); + } + +} --- a/states/hl/enscript.st +++ b/states/hl/enscript.st @@ -472,12 +472,17 @@ /\.m$/ matlab; /\.(mpl|mp|maple)$/ maple; /\.(scm|scheme)$/ scheme; + /\.e$/ eiffel; + /\.erl$/ erlang; /\b\.emacs$|\.el$/ elisp; /\.ad(s|b|a)$/ ada; /\.[Ss]$/ asm; + /\.sml$/ sml; /\.st$/ states; + /\.lua$/ lua; /(M|m)akefile.*/ makefile; /\.(MOD|DEF|mi|md)$/ modula_2; + /\.oz$/ oz; /\.tcl$/ tcl; /\.(v|vh)$/ verilog; /\.html?$/ html; --- /dev/null +++ b/states/hl/erlang.st @@ -0,0 +1,161 @@ +/** + * Name: erlang + * Description: Erlang programming language. + * Author: Sean Hinde + */ + + +/* Erlang atom: ([a-z][a-zA-Z0-9_]*|\'[^\n]*\') */ + +state erlang extends HighlightEntry +{ + /* Comments */ + /%/ { + comment_face (true); + language_print ($0); + call (eat_one_line); + comment_face (false); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* Special -record(rec_name, {}). pre-processor case */ + /(-record)(\([ \t]*)([a-z][a-zA-Z0-9_]*|\'[^\n]*\')/ { + reference_face (true); + language_print ($1); + reference_face (false); + language_print ($2); + type_face (true); + language_print ($3); + type_face (false); + } + + /* Special -define(Alter, "Hello"). pre-processor case */ + /(-define)(\([ +\t]*)([a-z][a-zA-Z0-9_]*|\'[^\n]*\'|[A-Z_][a-zA-Z0-9_]*)/ { + reference_face (true); + language_print ($1); + reference_face (false); + language_print ($2); + builtin_face (true); + language_print ($3); + builtin_face (false); + } + + /* Pre-processor lines. */ + /^-([a-z][a-zA-Z0-9_]*)/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* Defines */ + /(\?)([a-z][a-zA-Z0-9_]*|\'[^\n]*\'|[A-Z_][a-zA-Z0-9_]*)/ { + language_print ($1); + builtin_face (true); + language_print ($2); + builtin_face (false); + } + + /* Records */ + /(#)([a-z][a-zA-Z0-9_]*|\'[^\n]*\')/ { + language_print ($1); + type_face (true); + language_print ($2); + type_face (false); + } + + /* Keywords. + '(after begin case try catch end fun if of receive when) + Regexp taken from emacs Erlang mode R9C + */ + /\b(a(fter|ndalso)|begin|c(atch|ase)\ +|end|fun|if|o(f|relse)|receive|try|when\ +|query)\b/ { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Guards. + Regexp taken from emacs Erlang mode R9C + */ + /\b((is_)*(atom|function|binary|constant|float\ +|integer|list|number|p(id|ort)\ +|re(ference|cord)|tuple))\b/ { + builtin_face (true); + language_print ($0); + builtin_face (false); + } + + /* Built in functions */ + +/\b(a(bs|live|pply|tom_to_list)\ +|binary_to_(list|term)\ +|concat_binary|d(ate|isconnect_node)\ +|e(lement|rase|xit)\ +|float(|_to_list)\ +|g(arbage_collect|et(|_keys)|roup_leader)\ +|h(alt|d)\ +|i(nte(ger_to_list|rnal_bif)|s_alive)\ +|l(ength|i(nk|st_to_(atom|binary|float|integer\ +|pid|tuple)))\ +|make_ref|no(de(|_(link|unlink)|s)|talive)\ +|open_port\ +|p(id_to_list|rocess(_(flag|info)|es)|ut)\ +|r(egister(|ed)|ound)\ +|s(e(lf|telement)|ize\ +|p(awn(|_link)|lit_binary)|tatistics)\ +|t(erm_to_binary|hrow|ime|l\ +|r(ace|unc)|uple_to_list)\ +|un(link|register)|whereis)\b/ { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* + * Function definitions. + */ + /^([a-z][a-zA-Z0-9_]*|'[^\n]*')/ { + function_name_face (true); + language_print ($1); + function_name_face (false); + language_print ($2); + } + + /* Atom like strings */ + /('[^\n]*')/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* Characters */ + /(\$.)/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* Variable Names */ + /* /([\{\(\,\[ \t]+)([A-Z_][a-zA-Z0-9_]*)/ { */ + /([^a-z0-9_\"])([A-Z_][a-zA-Z0-9_]*)/ { + language_print ($1); + variable_name_face (true); + language_print ($2); + variable_name_face (false); + } +} + +/* +Local variables: +mode: erlang +End: +*/ --- /dev/null +++ b/states/hl/forth.st @@ -0,0 +1,96 @@ +/** + * Name: forth + * Description: Forth Programming Language. + * Author: Brent Fulgham + */ + +forth_builtins = +/* builtins */ + /\b(abort|bye|c(atch|o(ld|ntext))|d(rop|up)|f(d(rop|up)|nip|o(r(get|th)|ver)|rot\ +|s(eal|wap)|tuck)|include|l(ink|oad)|n(ip|eeds)|o(rder|ver)|pick|ro(ll|t)|swap|t(hrow|uck)\ +|within|2(drop|nip|dup|over|tuck|swap|rot)|3dup|4dup\ +)\b/; + +forth_types = +/* types */ + /\b(base|c(ell|har)|decimal|float|hex)\b/; + +forth_keywords = +/* keywords */ + /\b(a(bs|gain|head|lso|nd)|begin|c(ase|onstant)|d(abs|efinitions|m(ax|in)|negate|o(|ne))\ +|e(lse|nd(|case|if|of)|xit)|f(a(bs|cos(|h)|log|sin(|h)|tan(|2|h))|cos(|h)|exp(|m1)|l(n(|p1)\ +|o(g|or)|s(in(|cos|h)|qrt)|tan(|h))|m(ax|in)|negate|or|round|sqrt)|h(ere|old)|i(f|nvert)\ +|l(eave|oop)|m(ax|in|od)|n(e(gate|xt)|ot)|o(f|nly|r)|r(epeat|oot)|s(eal|ign)|then\ +|un(til|loop)|v(ariable|oc(abulary|s))|while|xor\ +)\b/; + +state forth extends HighlightEntry +{ + /* Comments. */ + /\\\\/ { + comment_face (true); + language_print ($0); + call (eat_one_line); + comment_face (false); + } + + /* keywords. */ + forth_keywords { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Types. */ + forth_types { + type_face (true); + language_print ($0); + type_face (false); + } + + /* Builtins support */ + forth_builtins { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* character constants. */ + /'.'|'\\\\.'/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* symbols, etc. */ + />|>=|<=|<>|!|\+|\-|\^|\/|\*|\|/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* + * function definitions, with args + * fct_name (args...) is + */ + /^(:[ \t]+)([^ ^\t]+)([ \t]*)/ { + keyword_face (true); + language_print ($1); + keyword_face (false); + function_name_face (true); + face_on(face_bold_italic); + language_print ($2); + face_off(face_bold_italic); + function_name_face (false); + language_print ($3); + } +} + --- /dev/null +++ b/states/hl/icon.st @@ -0,0 +1,93 @@ +/** + * Name: icon + * Description: Icon Programming Language. + * Author: Brent Fulgham + */ + +icon_builtins = +/* Builtins */ + /\b(break|create|default|fail|initial|l(ink|ocal)|not|s(tatic|uspend))\b/; + +icon_types = +/* Types */ + /\b(char|error|function|integer|proc|procedure|real|variable)\b/; + +icon_keywords = +/* Keywords */ + /\b(a(bs|cos|ny|rgs|sin|tan)|b(al|y)|c(a(llout|se)|enter|hdir|lose|o(llect|py|s)|set)\ +|d(e(lay|lete|tab|isplay|tor)|o)|e(lse|n(d|tab)|rrorclear|very|xit|xp)|f(ind|lush)\ +|get(|ch|che|env)|i(and|com|f|mage|nsert|or|shift|xor)|k(bhit|ey)|l(eft|ist|o(adfunc|g))\ +|m(a(ny|p|tch)|ember|ove)|n(ame|ext|umeric)|o(f|pen|rd)|p(op|os|ull|ush|ut)\ +|r(e(ad(|s)|move|name|p(eat|l)|turn|verse)|ight|tod|unerr)|s(ave|eek|eq|et|in|ort(|f)\ +|qrt|top|tring|ystem)|t(a(b(|le)|n)|hen|o|rim|ype)|u(ntil|pto)|w(h(ere|ile)|rite(|s))\ +)\b/; + +state icon extends HighlightEntry +{ + /* Comments. */ + /#/ { + comment_face (true); + language_print ($0); + call (eat_one_line); + comment_face (false); + } + + /* Keywords. */ + icon_keywords { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Types. */ + icon_types { + type_face (true); + language_print ($0); + type_face (false); + } + + /* Structure support */ + icon_builtins { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* Character constants. */ + /'.'|'\\\\.'/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* Symbols, etc. */ + />|>=|:=|<=|#|=+|!|::|\+|\-|\^|\/|\*|\|/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* + * Function definitions, with args + * fct_name (args...) is + */ + /([ \t]*procedure[ \t]+)(\w+)([ \t]*)/ { + keyword_face (true); + language_print ($1); + keyword_face (false); + function_name_face (true); + face_on(face_bold_italic); + language_print ($2); + face_off(face_bold_italic); + function_name_face (false); + language_print ($3); + } +} --- /dev/null +++ b/states/hl/lua.st @@ -0,0 +1,91 @@ +/** + * Name: lua + * Description: Lua Programming Language template for Enscript. + * Author: Brent Fulgham + */ + +lua_builtins = +/* Builtins */ + /\b(assert|call|foreach|globals|print|require|to(number|string))\b/; + +lua_keywords = +/* Keywords */ + /\b(and|break|do|e(nd|lse(|if))|f(alse|or|unction)|i(f|n)|local\ +|or|n(il|ot)|re(peat|turn)|t(hen|rue)|until|while\ +)\b/; + +state lua extends HighlightEntry +{ + + /* One line comments. */ + /\-\-|^#!/ { + comment_face (true); + language_print ($0); + call (eat_one_line); + comment_face (false); + } + + /* Keywords. */ + lua_keywords { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Types. */ + lua_builtins { + type_face (true); + language_print ($0); + type_face (false); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* Character constants. */ + /'.'|'\\\\.'/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* Symbols, etc. */ + /+|-|\*|=|!=|==|<|>|<=|>=|~=|!/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* Class references */ + /([ \t])*([a-zA-Z]+[, \ta-zA-Z0-9_]*):[^=]/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* + * Function definitions, with args + * function fct_name (args...) + */ + /^([ \t]*function[ \t]+)([a-zA-Z_][a-zA-Z_:0-9]*)([ \t]*)(\([^)]*\)[ \t]*)[ \t]*$/ { + keyword_face (true); + language_print ($1); + keyword_face (false); + function_name_face (true); + face_on(face_bold_italic); + language_print ($2); + face_off(face_bold_italic); + function_name_face (false); + language_print(" "); + language_print ($3); + keyword_face (true); + language_print ($4); + keyword_face (false); + } + +} --- /dev/null +++ b/states/hl/oberon2.st @@ -0,0 +1,111 @@ +/** + * Name: oberon2 + * Description: Oberon 2 Programming Language. + * Author: Brent Fulgham + */ + +oberon2_builtins = +/* Builtins */ + /\b(CONST|IMPORT)\b/; + +oberon2_types = +/* Types */ + /\b(ARRAY|B(OOLEAN|YTE)|CHAR|INTEGER|LONG(|INT|REAL)|MODULE|NIL\ +|P(OINTER|ROCEDURE)|RE(AL|CORD)|SHORT(|INT))\b/; + +oberon2_keywords = +/* Keywords */ + /\b(A(BS|ND|SH)|BEGIN|C(A(P|SE)|HR)|D(O|EC|IV)\ +|E(LS(E|IF)|N(D|TIER)|X(CL|IT))|F(ALSE|OR)|HALT|I(F|S|N(|C(|L)))\ +|L(EN|OOP)|M(AX|IN|OD)|NEW|O(F|DD|R(|D))|S(ET|IZE)|T(HEN|O|RUE|YPE)\ +|UNTIL|RE(PEAT|TURN)|VAR|W(HILE|ITH))\b/; + +state oberon2_comment extends Highlight +{ + /\*\)/ { + language_print ($0); + return; + } +} + +state oberon2 extends HighlightEntry +{ + /* Comments. */ + /\(\*/ { + comment_face (true); + language_print ($0); + call (oberon2_comment); + comment_face (false); + } + + /* Keywords. */ + oberon2_keywords { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Types. */ + oberon2_types { + type_face (true); + language_print ($0); + type_face (false); + } + + /* Structure support */ + oberon2_builtins { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* Character constants. */ + /'.'|'\\\\.'/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* Symbols, etc. */ + /\->|>|>=|:=|<=|#|=|!|::|\+|\-|\^|\/|\*|\|/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* + * Function definitions, with args + * fct_name (args...) is + */ + /([ \t]*PROCEDURE[ \t]+)(\w+)([ \t]*)/ { + keyword_face (true); + language_print ($1); + keyword_face (false); + function_name_face (true); + face_on(face_bold_italic); + language_print ($2); + face_off(face_bold_italic); + function_name_face (false); + language_print ($3); + } + + /([ \t]*END[ \t]+)(\w+)([ \t]*[;\.])/ { + keyword_face (true); + language_print ($1); + keyword_face (false); + function_name_face (true); + face_on(face_bold_italic); + language_print ($2); + face_off(face_bold_italic); + function_name_face (false); + language_print ($3); + } +} --- /dev/null +++ b/states/hl/oz.st @@ -0,0 +1,89 @@ +/** + * Name: oz + * Description: Mozart/Oz Programming Language. + * Author: Brent Fulgham + */ + +oz_builtins = +/* Builtins */ + /\b(export|import|local|require)\b/; + +oz_types = +/* Types */ + /\b(attr|c(lass|atch)|f(eat|unctor)|nil|prop|raise|try)\b/; + +oz_keywords = +/* Keywords */ + /\b(at|c(ase|hoice|ond)|d(e(clare|fine)|o|is)|e(lse(|case|if|of)|nd)\ +|f(inally|or|rom|un)|i(f|n)|lock|meth|not|o(f|r)|p(repare|roc)|then\ +|thread)\b/; + +state oz extends HighlightEntry +{ + + /* Comments. */ + /%/ { + comment_face (true); + language_print ($0); + call (eat_one_line); + comment_face (false); + } + + /* Keywords. */ + oz_keywords { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Types. */ + oz_types { + type_face (true); + language_print ($0); + type_face (false); + } + + /* Structure support */ + oz_builtins { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* Character constants. */ + /'.'|'\\\\.'/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* Symbols, etc. */ + /\.\.|=[=]|<\-|\\=|\|/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* + * Function definitions, with args + * fct_name (args...) is + */ + /([ \t]*\{)(\w+)([\. \t]*)/ { + language_print ($1); + function_name_face (true); + face_on(face_bold_italic); + language_print ($2); + face_off(face_bold_italic); + function_name_face (false); + language_print ($3); + } + +} --- a/states/hl/perl.st +++ b/states/hl/perl.st @@ -60,6 +60,11 @@ state perl extends HighlightEntry { + /* stuff after $# is a variable, not a comment */ + /\$#\w+/ { + language_print ($0); + } + /* Comments. */ /#.*$/ { comment_face (true); @@ -127,7 +132,6 @@ /* Variables */ /[$%@&]+\w+/ { - keyword_face (false); language_print ($0); } --- /dev/null +++ b/states/hl/smalltalk.st @@ -0,0 +1,80 @@ +/** + * Name: Smalltalk + * Description: Smalltalk Programming Language. + * Author: Brent Fulgham + */ + +smalltalk_keywords = +/* Keywords */ + /\b(class|false|inspect|isNil|new|nil|not(|Nil)|out|s(elf|uper)|true\ +|do|whileTrue|whileFalse|ifTrue|ifFalse|put|to|at|add|new\ +|for)\b/ ; + +state smalltalk_quot_string extends Highlight +{ + /\\\\./ { + language_print ($0); + } + /[\']/ { + language_print ($0); + return; + } +} + +state smalltalk extends HighlightEntry +{ + + /* Comments. */ + /\"/ { + comment_face (true); + language_print ($0); + call (c_string); + comment_face (false); + } + + /* Keywords. */ + smalltalk_keywords { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Declarations */ + /[ \t]*\|.*\|/ { + type_face (true); + language_print ($0); + type_face (false); + } + + /* String constants. */ + /[\']/ { + string_face (true); + language_print ($0); + call (smalltalk_quot_string); + string_face (false); + } + + /* Symbols, etc. */ + /:=|>|>=|==|<=|<>|=|!|::|@|\+|\-|\^|\/|\*|\||\[|\]/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* + * Function definitions, with args + * fct_name (args...) is + */ + /([ \t]*)(\w+)(:[ \t]*)/ { + keyword_face (true); + language_print ($1); + keyword_face (false); + function_name_face (true); + face_on(face_bold); + language_print ($2); + face_off(face_bold); + function_name_face (false); + language_print ($3); + } + +} --- /dev/null +++ b/states/hl/sml.st @@ -0,0 +1,101 @@ +/** + * Name: sml + * Description: Standard ML Programming Language. + * Author: Brent Fulgham + */ + +sml_builtins = +/* Builtins */ + /\b(functor|lambda|s(ig(|nature)|truct(|ure))|NONE|SOME)\b/; + +sml_types = +/* Types */ + /\b(\'(a|b|c|d)|array|bool|char|int|list|real|string|unit|vector|word)\b/; + +sml_keywords = +/* Keywords */ + /\b(a(bs(traction|type)|nd(|also)|s|toi)|before|c(ase|oncat)|d(o|atatype)\ +|e(lse|nd|qtype|xception)|f(n|un(|sig))|handle|i(f|n(|clude|fix|fixr))\ +|l(et|ocal)|nonfix|o(|f|p(|en)|relse|verload)|print|r(aise|ec|ef)|sharing\ +|t(hen|ype)|val|w(h(ere|ile)|ith(|type)))\b/ ; + +state sml_comment extends Highlight +{ + /\*\)/ { + language_print ($0); + return; + } +} + +state sml extends HighlightEntry +{ + + /* Comments. */ + /\(\*/ { + comment_face (true); + language_print ($0); + call (sml_comment); + comment_face (false); + } + + /* Keywords. */ + sml_keywords { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Types. */ + sml_types { + type_face (true); + language_print ($0); + type_face (false); + } + + /* Structure support */ + sml_builtins { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* String constants. */ + /\"/ { + string_face (true); + language_print ($0); + call (c_string); + string_face (false); + } + + /* Character constants. */ + /'.'|'\\\\.'/ { + string_face (true); + language_print ($0); + string_face (false); + } + + /* Symbols, etc. */ + /:=|>|>=|==|<=|<>|=|!|::|@|\+|\-|\^|\/|\*|\||\b(quot|rem|div|mod\ +|hd|tl)\b/ { + reference_face (true); + language_print ($0); + reference_face (false); + } + + /* + * Function definitions, with args + * fct_name (args...) is + */ + /([ \t]*f[u]n[ \t]+)(\w+)([ \t]*)/ { + keyword_face (true); + language_print ($1); + keyword_face (false); + function_name_face (true); + face_on(face_bold_italic); + language_print ($2); + face_off(face_bold_italic); + function_name_face (false); + language_print ($3); + } + +} --- a/states/hl/tcl.st +++ b/states/hl/tcl.st @@ -128,7 +128,7 @@ |e(ntry|of|rror|v(al|ent)|x(ec|it|pr))\ |f(blocked|configure|ile(|event|name)|lush|o(cus|nt|r(|each|mat))|rame)\ |g(ets|lob(|al)|r(ab|id))|history|i(f|mage|n(cr|fo|terp))|join\ -|l(a(bel|ppend)|i(brary|n(dex|sert)|st(|box))|length|o(ad|se|wer)\ +|l(a(bel|ppend|st)|i(brary|n(dex|sert)|st(|box))|length|o(ad|se|wer)\ |r(ange|eplace)|s(earch|ort))\ |me(nu(|button)|ssage)|op(en|tion(|s))\ |p(ack(|age)|hoto|id|kg_mkIndex|lace|roc|uts|wd)\ --- a/states/hl/Makefile.am +++ b/states/hl/Makefile.am @@ -36,7 +36,8 @@ matlab.st nroff.st objc.st outline.st pascal.st passthrough.st perl.st \ postscript.st python.st pyrex.st rfc.st scheme.st sh.st skill.st \ sql.st states.st synopsys.st tcl.st tcsh.st tex.st vba.st verilog.st \ -vhdl.st vrml.st wmlscript.st zsh.st +vhdl.st vrml.st wmlscript.st zsh.st eiffel.st erlang.st dylan.st oz.st \ +lua.st oberon2.st icon.st smalltalk.st forth.st sml.st hldir = $(pkgdatadir)/hl dist_hl_DATA = $(misc) $(styles) $(languages) $(highlightings) debian/patches/series0000644000000000000000000000025211677714052012043 0ustar 01_libpaper 03_misc 04_highlighting 339938-hilight-wrapped-function-list 06_debian 07_media 09_appendctrld 344750-no-gecos 147116-ruby-hilight 457244-octave-highlighting debian/patches/344750-no-gecos0000644000000000000000000000132711677714052013033 0ustar Description: Never include gecos in output. Author: Christoph Berg Bug-Debian: http://bugs.debian.org/344750 Index: enscript/src/psgen.c =================================================================== --- enscript.orig/src/psgen.c +++ enscript/src/psgen.c @@ -301,7 +301,7 @@ OUTPUT ((cofp, "%%%%BoundingBox: %d %d %d %d\n", media->llx, media->lly, media->urx, media->ury)); OUTPUT ((cofp, "%%%%Title: %s\n", title)); - OUTPUT ((cofp, "%%%%For: %s\n", passwd->pw_gecos)); + /* OUTPUT ((cofp, "%%%%For: %s\n", passwd->pw_gecos)); */ OUTPUT ((cofp, "%%%%Creator: %s\n", PACKAGE_STRING)); OUTPUT ((cofp, "%%%%CreationDate: %s\n", date_string)); OUTPUT ((cofp, "%%%%Orientation: %s\n", debian/patches/01_libpaper0000644000000000000000000000353011677714052012651 0ustar ## 01_libpaper.dpatch by Michael Fedrowitz ## DP: libpaper support --- a/docs/enscript.man +++ b/docs/enscript.man @@ -294,7 +294,7 @@ .TP 8 .B \-M \f2name\f3, \-\-media=\f2name\f3 Select an output media \f2name\f1. \f3Enscript\f1's default output -media is \f3@media@\f1. +media is determined from libpaper and falls back to \f3@media@\f1. .TP 8 .B \-n \f2num\f3, \-\-copies=\f2num\f3 Print \f2num\f1 copies of each page. --- a/lib/enscript.cfg.in +++ b/lib/enscript.cfg.in @@ -46,7 +46,7 @@ DefaultFancyHeader: enscript # Default output media. -DefaultMedia: @media@ +# DefaultMedia: @media@ # Where output goes as a default: `printer' or `stdout' DefaultOutputMethod: printer --- a/src/main.c +++ b/src/main.c @@ -22,6 +22,8 @@ * along with Enscript. If not, see . */ +#include + #include "gsint.h" #include "getopt.h" @@ -1037,6 +1039,13 @@ statusdict = strhash_init (); user_strings = strhash_init (); + /* + * Set media (libpaper) before reading config-files + */ + media_name = (char *) systempapername(); + if (media_name == NULL) + media_name = (char *) defaultpapername(); + media_name = xstrdup (media_name); /* * Read configuration files. @@ -1219,7 +1228,7 @@ /* Output media. */ for (mentry = media_names; mentry; mentry = mentry->next) - if (strcmp (media_name, mentry->name) == 0) + if (strcasecmp (media_name, mentry->name) == 0) { media = mentry; break; --- a/src/Makefile.am +++ b/src/Makefile.am @@ -34,7 +34,7 @@ mkafmmap_SOURCES = mkafmmap.c -LDADD = ../afmlib/libafm.a @LIBINTL@ ../compat/libcompat.a -lm +LDADD = ../afmlib/libafm.a @LIBINTL@ ../compat/libcompat.a -lpaper -lm enscript_DEPENDENCIES = ../afmlib/libafm.a ../compat/libcompat.a mkafmmap_DEPENDENCIES = ../afmlib/libafm.a ../compat/libcompat.a debian/patches/457244-octave-highlighting0000644000000000000000000001652211677714052015253 0ustar Add highlighting rules for GNU Octave, and make them the default for `.m' files instead of Matlab. Patch by Rafael Laboissiere . -- Tim Retout Fri, 21 Dec 2007 00:36:38 +0000 --- a/states/hl/enscript.st +++ b/states/hl/enscript.st @@ -469,7 +469,7 @@ { /\.(c|h)$/ c; /\.(c++|C|H|cpp|cc|cxx)$/ cpp; - /\.m$/ matlab; + /\.m$/ octave; /\.(mpl|mp|maple)$/ maple; /\.(scm|scheme)$/ scheme; /\.e$/ eiffel; --- /dev/null +++ b/states/hl/octave.st @@ -0,0 +1,178 @@ +/** + * Name: octave + * Description: Octave programming language. + * Author: Rafael Laboissiere + * (based on the Matlab version by Jack Dunn ) + */ + +octave_keyword_re = +/\b(break|cl(ear|ose)|e(nd|lse|lseif|rror)|end(if|f(or|unction)|switch|while)|f(or|unction)|if|keyboard|otherwise \ +|quit|return|switch|while)\b/; + +/* Taken fron the Matlab Function Reference, version 5.2 */ +octave_type_re = +/\b(abs|acopy|acos|acosh|acot|acoth|acsc|acsch|addpath|airy|all|and|angle|ans|any\ +|arc(cosecant|cosine|cotangent|secant|sine|tangent)|area\ +|arename|asech|asin|asinh|atan(|2)|atanh|axes|axis|balance|bar(|3|3h|h)\ +|base2dec|bessel(h|i|j|k|y)|beta(|inc|ln)\ +|bicgstab|bin2dec|bit(and|cmp|get|max|or|set|shift|xor)|blanks\ +|box|brighten|builtin|calendar|cam(dolly|light|lookat|orbit|pan|pos|proj\ +|roll|target|up|va|zoom)|capture|case|cat(|ch)|caxis|cd|cdf2rdf\ +|cell(|2struct|plot)|cgs|char|chol(|inc|update)|cla(|bel|ss)\ +|clc|clf|clock|col(mmd|or(bar|map)|perm)|com(bs|et|et3|pa(n|ss))|computer\ +|cond(|eig|est)|conj|con(tour(|3|c|f))|contrast|conv(|2)|convhull|conv\ +|copy(file|obj)|corrcoef|cos|cosh|cot|coth|cov|cplxpair|cputime|cross\ +|csc|csch|cum(prod|trapz)|cylinder|daspect|date|date(num|str|vec)\ +|db(clear|cont|down|mex|quit|stack|status|step|stop|type|up)\ +|dd(eadv|eexec|einit|epoke|ereq|eterm|eunadv)|de(al|blank|(c2(base|bin|hex))\ +|conv)|default4|del2|delaunay|de(lete|t)|diag|diary|diff|dir|disp\ +|dlm(read|writ)|dmperm|double|dragrect|drawnow|dsearch|echo|eig|eigs|ellipj\ +|ellipke|eomday|eps|erf(|c|cx)|etime|eval|evalin|exist|exp|expint|expm|eye\ +|ezplot|factor|fclose|feather|feof|ferror|feval|fft(|2|n|shift)\ +|fget(l|s)|fid|figflag|figure|fileparts|fill|fill3|filter(|2)|find(|obj|str)\ +|fix|flip(dim|lr|ud)|floor|flops|fmin(|s)|fopen|format|fplot|fprintf\ +|frame(2im|edit)|fread|freqspace|frewind|fscanf|fseek|ftell|full|funm|fwrite\ +|fzero|gallery|gamma(|inc|ln)|g(ca|cd|cf|co)|gestalt|get(|field|frame)\ +|ginput|global|gmres|gplot|gradient|graymon|grid(|data)|gsvd|gtext|hadamard\ +|hankel|hdf|help|hess|hex2(dec|num)|hidden|hilb|hist|hold|home|horzcat\ +|hsv2rgb|i|ifft(|2|n|shift)|im2frame|imag|image|imagesc|im(finfo|read|write)\ +|ind2sub|Inf|inferiorto|inline|inpolygon|input|int2str|interp(1|2|3|ft|n)\ +|intersect|inv|invhilb|ipermute|is(a|cell(|str)|char|empty|equal|field\ +|finite|global|handle|hold|ieee|inf|letter|logical|member|nan|numeric\ +|object|ppc|prime|real|space|sparse|str|struct|student|unix|vms)\ +|j|kron|last(err|warn)|lcm|ldivide|legend(|re)|length|light(|angle|ing)\ +|lin2mu|line|linspace|load|log(|10|2|ical)|loglog(|m|space)|lookfor\ +|lower|lscov|lu|luinc|magic|mat2str|material|max|mean|median|menu\ +|mesh(|c|grid|z)|min|minus|mislocked|mkdir|ml(divide|ock)|mod|more|movie(|in)\ +|mpower|mrdivide|mtimes|mu2lin|munlock|NaN|narg(chk|in|out)|nd(grid|ims)\ +|newplot|nextpow2|nnls|nnz|nonzeros|norm|normest|not|now|null|num2(cell|str)\ +|nzmax|ode(45|file|get|set)|ones|or|orient|orth|pack|pagedlg|pareto|pascal\ +|patch|path|pause|pbaspect|pcg|pcode|pcolor|perms|permute|persistent\ +|pi|pie(|,3)|pinv|plot(|3|matrix|yy)|plus|pol2cart|polar|poly(|area|der\ +|eig|fit|val|valm)|pow2|power|primes|print(|dlg|frame|opt)|prod\ +|profile|qmr|qr(|delete|insert)|qtwrite|quad|quad8|quiver(|3)|qz\ +|rand(|n|perm)|rank|rat(|s)|rbbox|rcond|rdivide|readsnd|real(|max|min)\ +|recordsound|refresh|rem|repmat|reset|reshape|residue|rgb(2hsv|plot)\ +|ribbon|rmfield|rmpath|roots|rose|rot90|rotate(|3d)|round|rref(|movie)\ +|rsf2csf|save|scatter(|3)|schur|script|sech|semilog(x|y)|set(|diff|feild|xor)\ +|shading|shiftdim|sign|sin|sinh|size|slice|sliders|sort|sortrows|sound(|cap)\ +|sp(alloc|arse|convert|diags|eak|eye|fun|h2cart|here|inmap|line\ +|ones|parms|rand|randn|randsym|rintf|y)|sqrt(|m)|squeeze|sscanf|stairs\ +|startup|std|stem(|3)|str(2(cell|num)|cat|cmp|cmpi|ings|just|match|ncmp\ +|ncmpi|rep|tok|uct2cell,vcat)|sub(2ind|plot|s(asgn|pace|ref))|sum|superiorto\ +|surf(|ace|c|l|norm)|svd(|s)|sym(mmd|rcm)|tan|tanh|tempdir|tempname\ +|terminal|text|tic|times|title|toc|toeplitz|trace|transpose|trapz\ +|tri(l|mesh|surf|u)|try|tsearch|type|ui(control|getfile|menu|nt8|putfile\ +|resume|setcolor|setfont)|uminus|union|unique|unwrap|uplus|upper|varargout\ +|vectorize|ver(|sion|tcat)|view|viewmtx|voronoi|wait(bar|for(|buttonpress))\ +|warndlg|warning|waterfall|wav(read|write)|weekday|what(|snew)|which|who(|s)\ +|wilkinson|wk1(read|write)|writesnd|xlabel|xlgetrange|xlim|xlsetrange|xor\ +|ylabel|ylim|zeros|zlabel|zlim|zoom\ +)\b/; + +state octave_string_single_quotes extends Highlight +{ + /\\\\./ { + language_print ($0); + } + /[\']/ { + language_print ($0); + return; + } +} + +state octave_string_double_quotes extends Highlight +{ + /\\\\./ { + language_print ($0); + } + /"/ { + language_print ($0); + return; + } +} + +state octave extends HighlightEntry +{ + /* Comments. */ + /(%|#)/ { + comment_face (true); + language_print ($0); + call (eat_one_line); + comment_face (false); + } + + /* Continuation. */ + /\.\.\./ { + keyword_face (true); + language_print ($0); + keyword_face (false); + } + + /* Matrix start. */ + /\[/ { + type_face (true); + language_print ($0); + type_face (false); + } + + /* Matrix end. */ + /\]/ { + type_face (true); + language_print ($0); + type_face (false); + } + + octave_type_re { + type_face (true); + language_print ($0); + type_face (false); + } + + octave_keyword_re { + keyword_face (true); + language_print($0); + keyword_face (false); + } + + /* Transpose. */ + /* variable' or )' */ + /([a-zA-Z][a-zA-Z_0-9]*|\))([\'])/ { + language_print ($1); + keyword_face (true); + language_print ($2); + keyword_face (false); + } + /* ]' */ + /([a-zA-Z][a-zA-Z_0-9]*|])([\'])/ { + type_face (true); + language_print ($1); + type_face (false); + keyword_face (true); + language_print ($2); + keyword_face (false); + } + + /* Strings. */ + /* 'any number of characters' */ + /[\']/ { + string_face (true); + language_print ($0); + call (octave_string_single_quotes); + string_face (false); + } + /* "any number of characters" */ + /["]/ { + string_face (true); + language_print ($0); + call (octave_string_double_quotes); + string_face (false); + } +} + + +/* +Local variables: +mode: c +End: +*/ --- a/states/hl/Makefile.am +++ b/states/hl/Makefile.am @@ -37,7 +37,8 @@ postscript.st python.st pyrex.st rfc.st scheme.st sh.st skill.st \ sql.st states.st synopsys.st tcl.st tcsh.st tex.st vba.st verilog.st \ vhdl.st vrml.st wmlscript.st zsh.st eiffel.st erlang.st dylan.st oz.st \ -lua.st oberon2.st icon.st smalltalk.st forth.st sml.st ruby.st +lua.st oberon2.st icon.st smalltalk.st forth.st sml.st ruby.st \ +octave.st hldir = $(pkgdatadir)/hl dist_hl_DATA = $(misc) $(styles) $(languages) $(highlightings) debian/patches/06_debian0000644000000000000000000000047711677714052012311 0ustar ## 06_debian.dpatch by Michael Fedrowitz ## DP: debian specific changes --- a/states/over.in +++ b/states/over.in @@ -2,4 +2,4 @@ librarydir=@LIBRARYDIR@ -enscript -E -p- --quiet --language=overstrike "$@" 2>&1 | less +enscript -E -p- --quiet --language=overstrike "$@" 2>&1 | sensible-pager debian/mkafmmap.10000644000000000000000000000151011677714052011050 0ustar .TH MKAFMMAP 1 "May 10, 2004" .\" .SH NAME mkafmmap \- creates font map for AFM files .\" .SH SYNOPSIS .B mkafmmap .RI [ options ] " files" ... .\" .SH DESCRIPTION The \fBmkafmmap\fP command will generate a font map file reading all the AFM files given in the command line. By default it will write the map to a file named \fBfont.map\fP, a different filename can be specified with the \fB\-\-output\-file\fP options. Using '\fB\-\fP' will make the program write the map to \fBstdout\fP. .\" .SH OPTIONS .TP .B \-h, \-\-help Show summary of options. .TP .B \-v, \-\-version Show version of program. .TP .B \-p, \-\-output\-file=NAME Print output to file NAME. .\" .SH SEE ALSO .BR enscript (1), .BR states (1). .\" .SH AUTHOR This manual page was written by Lucas Wall , for the Debian project (but may be used by others). debian/enscript.links0000644000000000000000000000010211677714052012062 0ustar usr/share/doc/enscript/FAQ.html usr/share/doc/enscript/index.html debian/enscript.manpages0000644000000000000000000000004011677714052012536 0ustar debian/over.1 debian/mkafmmap.1 debian/changelog0000644000000000000000000003567511677717601011075 0ustar enscript (1.6.5.90-2) unstable; urgency=low * debian/rules: Enable all hardening features. * debian/control: + Build-Depend on debhelper (>= 8.9.4) for hardening. + Build-Depend on dpkg-dev (>= 1.16.1) for hardening. * debian/compat: Bump to level 9. -- Tim Retout Sat, 31 Dec 2011 23:23:55 +0000 enscript (1.6.5.90-1) unstable; urgency=low * New upstream version. + Remove patches applied upstream: - 393791-sliceprint - getopt_long hunk from 03_misc - mail.st hunk from 04_highlighting + Refresh all patches. * debian/control: + Bump Standards-Version to 3.9.2. (No changes.) + Build-Depend on debhelper (>= 8) + Add ${perl:Depends} to Depends field. * debian/compat: Bump to 8. -- Tim Retout Sun, 10 Jul 2011 18:21:02 +0100 enscript (1.6.5.2-1) unstable; urgency=low * New upstream version. + Fixes segmentation fault with long lines. (Closes: #580981) * debian/control: + Add Replaces for octave3.0 from lenny which contains an enscript highlighting script. Ignoring octave2.9 from etch. (Closes: #583561) + Remove ancient Replaces/Conflicts for genscript. * debian/patches/344750-no-gecos: Refresh patch. -- Tim Retout Thu, 03 Jun 2010 00:33:51 +0100 enscript (1.6.5.1-1) unstable; urgency=low * New upstream version. + Remove patch applied upstream: manpage-spelling-errors * debian/control: + Build-Depend on autopoint, and remove gettext and cvs. (Closes: #572467) + Remove quilt from Build-Depends. + Bump Standards-Version to 3.8.4 (no changes needed). -- Tim Retout Sat, 06 Mar 2010 20:50:17 +0000 enscript (1.6.5-1) unstable; urgency=low * New upstream version. + Remove patches applied upstream. + Remove all out of date i18n patches. + Refresh other patches. * debian/watch: Update URL. * debian/control: + Update maintainer email address. + Bump debhelper Build-Depends to (>= 7.0.50~) and remove quilt. + Add various autotools packages and cvs to Build-Depends and Build-Conflicts. * Switch to source format 3.0 (quilt). * Revise build system. + Bump debhelper compat level to 7. + Use a minimal dh rules file. + Create debian/clean, debian/enscript.{manpages,info,links}. + Move debian/docs to debian/enscript.docs. * debian/patches/manpage-spelling-errors: New patch. * debian/copyright: Update license, upstream URL and maintainer. -- Tim Retout Wed, 27 Jan 2010 19:57:14 +0000 enscript (1.6.4-14) unstable; urgency=low * debian/control: + Add Vcs-* and Homepage fields. + Update Standards-Version to 3.8.3. + Remove unknown 'Tag' field. + Revise short and long descriptions. + Add ${misc:Depends} to Depends. + Remove 'flex' from Build-Depends. (Closes: #464142) * debian/copyright: Reference GPL-2 license file rather than symlink. * Add new highlighting rules for GNU Octave, and use in preference to Matlab for files with a `.m' extension. Thanks to Rafael Laboissiere for the patch. (Closes: #457244) * Move changes from Debian diff.gz into debian/patches files beginning with '00'. Drop generated changes to states/lex.c. * debian/patches/escape-states-man-page-backslashes: Fix some escaping in the regexes in the states manpage. * debian/patches/fix-man-page-hyphens: New patch. * debian/README.source: New file to describe quilt usage. * debian/patches/08_flex: Drop, as seems to be unnecessary with flex 2.5.35. * Fix building twice in a row: + debian/rules: No longer remove po/enscript.pot during clean. + debian/patches/update-enscript.pot: New patch. + Refresh 13_de_correction and 276219-grammar-fix patches. * Add descriptions to patches which were missing them. * debian/enscript.doc-base.enscript, debian/enscript.doc-base-enscript-faq: New doc-base files to register documentation. -- Tim Retout Sun, 01 Nov 2009 23:47:15 +0000 enscript (1.6.4-13) unstable; urgency=high * debian/patches/506261-buffer-overflows: New patch by Werner Fink to fix buffer overflows: CVE-2008-3863, CVE-2008-4306. (Closes: #506261) * Urgency set to "high" for RC security bugfix. -- Tim Retout Wed, 19 Nov 2008 22:45:35 +0000 enscript (1.6.4-12) unstable; urgency=low * New maintainer. (Closes: #413482) * Bump debhelper compatibility level to 5. * Don't ignore "make distclean" errors. * Support highlighting multi-line preprocessor statements. (Closes: #264097) * Fix highlighting of .idl files containing preprocessor statements. (Closes: #443182) * Fix highlighting of quotes in shell scripts. (Closes: #373649) * Fix highlighting of JavaScript regexes. (Closes: #331298) * Fix double free when using --toc option. (Closes: #397537) -- Tim Retout Sat, 27 Oct 2007 00:16:37 +0100 enscript (1.6.4-11) unstable; urgency=low * sliceprint: fix enscript call (program was completely broken), and complete manpage (Closes: #393791). -- Christoph Berg Wed, 25 Oct 2006 02:21:08 +0200 enscript (1.6.4-10) unstable; urgency=low * New maintainer (Closes: #349321). * Add debtags to debian/control. * Use quilt for patches. * Use make distclean, maintainer-clean-am wiped out too much. * Hilight wrapped function lists in changelog mode correctly (thanks to Daniel Leidert for the patch, Closes: #339938). * Include ruby hilighting (Closes: #147116). * Never include gecos in ps output (Closes: #344750). * Fix some grammar (Closes: #276219). * Translate fuzzy strings in de.po. -- Christoph Berg Sun, 8 Oct 2006 00:14:56 +0200 enscript (1.6.4-9) unstable; urgency=low * QA upload. * Automatically update config.sub and config.guess from autotools-dev. Closes: #342408. * po/de.po: Apply correction from Christoph Berg. Closes: #315114. * debian/watch: Update; thanks to Bart Martens. Closes: #354359. * Conforms to Standards version 3.6.2. -- Matej Vela Tue, 7 Mar 2006 07:10:49 +0100 enscript (1.6.4-8) unstable; urgency=low * Orphaned. -- Michael Fedrowitz Sun, 22 Jan 2006 11:46:18 +0100 enscript (1.6.4-7) unstable; urgency=low * Fixed building with gcc4. Thanks to Andreas Jochens for the patch. (Closes: #292990) * strdup return values from libpaper to prevent double frees. (Closes: #289724, #294342) * Suggest lpr. (Closes: #287296) -- Michael Fedrowitz Sun, 13 Feb 2005 20:58:37 +0100 enscript (1.6.4-6) unstable; urgency=high * [SECURITY] Applied the following patches from the Debian Security Team: - [CAN-2004-1184] Corrected handling of user supplied input (filename, title) when executing shell commands. - [CAN-2004-1185] Commented out code that will permit EPS files to be provided as arbitrary programs to be executed. - [CAN-2004-1186] Fixed buffer overflows. -- Michael Fedrowitz Thu, 20 Jan 2005 20:00:21 +0100 enscript (1.6.4-5) unstable; urgency=low * Additional highlighting rules submitted by Brent Fulgham. Thanks a lot! (Closes: #279037) * Updated copyright file for the above. * Removed ghostview from suggests. -- Michael Fedrowitz Sun, 28 Nov 2004 19:05:30 +0100 enscript (1.6.4-4) unstable; urgency=low * Added mkafmmap manpage by Lucas Wall. Thanks a lot! (Closes: #248390) * Added "last" to tcl keywords. (Closes: #225979) * Removed useless menu file. -- Michael Fedrowitz Mon, 31 May 2004 14:20:42 +0200 enscript (1.6.4-3) unstable; urgency=low * Perl highlighting fixes. (Closes: #221513, #222123) * More manpage typos. (Closes: #222075) -- Michael Fedrowitz Sun, 7 Dec 2003 12:05:37 +0100 enscript (1.6.4-2) unstable; urgency=low * Comment out install-info calls in docs/Makefile.in to avoid shipping /usr/share/info/dir.gz as a quick fix until I manage to get things to work with the latest automake. (Closes: #220956) -- Michael Fedrowitz Sun, 16 Nov 2003 14:04:40 +0100 enscript (1.6.4-1) unstable; urgency=low * New upstream release. * Standards-Version 3.6.1 (no changes required). * Added Eiffel syntax highlighting by Julien LEMOINE. (Closes: #218851) * Updated year in copyright file. -- Michael Fedrowitz Sat, 8 Nov 2003 21:56:26 +0100 enscript (1.6.3-5) unstable; urgency=low * Standards-Version 3.5.10 (no changes required). * Change AppendCtrlD to allow appending ^D without trailing newline. (Closes: #88893) * Fix another mistake in the manpage. (Closes: #197980) -- Michael Fedrowitz Sun, 6 Jul 2003 17:49:04 +0200 enscript (1.6.3-4) unstable; urgency=low * Standards-Version 3.5.9 (no changes required). * Convert to dpatch. * Fix to build with flex 2.5.31. -- Michael Fedrowitz Thu, 1 May 2003 18:15:23 +0200 enscript (1.6.3-3) unstable; urgency=low * Update copyright file. * Various corrections to the manpages. (Closes: #61505, #177565) * New media definitions "borrowed" from CUPS. (Closes: #74332) * Make media names case insensitive. (Closes: #177692) * Remove ghostscript from suggests and prefer gv to ghostview. * Remove generated file states/over when cleaning. -- Michael Fedrowitz Fri, 24 Jan 2003 16:42:19 +0100 enscript (1.6.3-2) unstable; urgency=low * New maintainer. (Closes: #176931) * Standards-Version 3.5.8: - Support DEB_BUILD_OPTIONS. - Build depend on debhelper (>= 4.1.0) to get rid of /usr/doc link. * Rewrote debian/rules using debhelper v4. * Apply a patch from Chris Halls to make -w work. (Closes: #141642, #149979, #160633) * Apply a patch from John West to fix a typo in perl.st. (Closes: #151055, #169835) * Apply a patch from Andras Bali to improve changelog.st. (Closes: #140528) * Apply a patch from Thomas Roessler to improve mail.st. (Closes: #147648) * Acknowledge NMUs. (Closes: #48043, #55388, #58990, #76310, #79684, #113362, #122566, #135076, #135997, #136001, #140066, #140542) -- Michael Fedrowitz Fri, 17 Jan 2003 14:59:32 +0100 enscript (1.6.3-1.1) unstable; urgency=low * Non maintainer upload * Add build dep to flex (Closes: #140066) -- Benjamin Drieu Wed, 3 Apr 2002 16:12:21 +0200 enscript (1.6.3-1) unstable; urgency=low * NMU (closes: #136001) * New upstream * Use I18N date now (closes: #135076) * Add LC_CTYPE to I18N code (closes: #76310, #79684) * Use "$@" arguments and pager in over (closes: #48043) * Added build-dependencies (closes: #122566) * Added man page for over (closes: #55388) * Fixed type in man page for enscript (closes: #113362) * Install info dir entry (closes: #135997) * Menu entry and man page position match (closes: #58990) * Updated Standards-Version to 3.5.2 -- Michael Piefel Tue, 19 Mar 2002 11:22:37 +0100 enscript (1.6.2-4) unstable; urgency=low * Lintian fixes for usr/doc and usr/share -- Hartmut Koptein Thu, 21 Oct 1999 13:13:23 +0200 enscript (1.6.2-3) unstable; urgency=low * Updated Standards-Version to 3.0.1.1 -- Hartmut Koptein Tue, 7 Sep 1999 00:50:00 +0200 enscript (1.6.2-2) unstable; urgency=low * arrgs; the new i386 autobuilder is great * fixed -$(MAKE), reported by James; Fixes: Bug#38719 -- Hartmut Koptein Tue, 1 Jun 1999 20:20:53 +0200 enscript (1.6.2-1) unstable; urgency=low * New upstream version * changes for the menu system -- Hartmut Koptein Thu, 29 Apr 1999 21:34:24 +0200 enscript (1.6.1-1) unstable; urgency=low * New upstream version 1.6.1 * This version fix the -U2 output; Fixes: Bug#24278 -- Hartmut Koptein Tue, 7 Jul 1998 20:44:46 +0200 enscript (1.6.0-1) unstable; urgency=low * New upstream version 1.6.0 -- Hartmut Koptein Thu, 2 Jul 1998 13:10:29 +0200 enscript (1.5.5-1) unstable; urgency=low * Upgraded to new upstream version 1.5.5 * Little grammatic correction * Converted debian/rules to debhelper * Removed double media entries for new libpaper -- Hartmut Koptein Tue, 19 May 1998 22:25:15 +0200 enscript (1.5.0-8) frozen unstable; urgency=low * added postrm script for update-menus * added double media entries in enscript.cfg (for papersize) -- Hartmut Koptein Mon, 30 Mar 1998 02:30:46 +0200 enscript (1.5.0-7) frozen unstable; urgency=low * added menu file (man, html) * include the orig file -- Hartmut Koptein Tue, 24 Mar 1998 05:26:47 +0100 enscript (1.5.0-6) frozen; urgency=low * must go to frozen -- Hartmut Koptein Tue, 17 Mar 1998 04:13:40 +0100 enscript (1.5.0-5) unstable; urgency=low * uncommented default media in enscript.cfg * Standards Version: 2.4.0.0 * removed ansi2krn manpage; fixes: Bug#17832, Bug#17941, Bug#19586 * fixes from lintin report * arch compile error; must be fixed by the arch maintainer; fixes: Bug#19302 -- Hartmut Koptein Tue, 17 Mar 1998 04:09:35 +0100 enscript (1.5.0-4) unstable; urgency=low * use libpaperg insted of libpaper; Fixes: Bug#15274, Bug#15373 * border (first) line should be fixed with previous version; Fixes: Bug#5387 * added files in /usr/doc/enscript; Fixes: Bug#14221 -- Hartmut Koptein Thu, 27 Nov 1997 22:47:36 +0100 enscript (1.5.0-3) unstable; urgency=low * use LIBPAPER (Bug#3169, Bug#13564) * change path definitions in man pages (Bug#14223, Bug#14226) -- Hartmut Koptein Mon, 17 Nov 1997 20:34:46 +0100 enscript (1.5.0-2) unstable; urgency=low * Build for libc6 * Maintainer change -- Hartmut Koptein Mon, 18 Aug 1997 01:42:58 +0200 enscript (1.5.0-1) unstable; urgency=low * new upstream version -- Sven Rudolph Thu, 6 Mar 1997 16:59:53 +0100 enscript (1.4.0-2) unstable; urgency=low * debian/conffiles: fixed permission (Bug#4662) * converted to new source package format -- Sven Rudolph Thu, 3 Oct 1996 23:34:43 +0200 Sun Jul 28 23:28:02 1996 Sven Rudolph * updated to upstream version 1.4.0 * debian.control: added Priority: optional Conflicts: genscript Replaces: genscript * debian.rules: added multi-architecture support Mon Apr 29 18:02:03 1996 Sven Rudolph * upgraded to upstream version 1.3.2 Thu Nov 23 23:27:13 1995 Sven Rudolph * 1.2.20-2 released * rebuilt for elf Wed Nov 15 01:20:24 1995 Sven Rudolph * 1.2.20-1 released * created new Debian GNU/Linux package maintenance system files debian/enscript.docs0000644000000000000000000000010111677714052011671 0ustar docs/*.html *.txt AUTHORS NEWS README README.ESCAPES THANKS TODO debian/over.10000644000000000000000000000116711677714052010242 0ustar .TH OVER 1 "Jan 16, 2000" "OVER" "OVER" .SH NAME over \- pretty print and scroll source code on terminal .SH SYNOPSIS over [FILE]... .SH DECRIPTION Pretty print source code in the FILEs. The language is guessed with the \f3states\f1 program and \f3enscript\f1 is used to do the formatting. The highlighting rules are defined in `/usr/share/enscript/hl/enscript.st'. The FILEs are paged through \f3less\f1 for more convenient display. .SH FILES .nf .ta 4i /usr/share/enscript/hl/enscript.st rules for various languages .fi .SH SEE ALSO enscript(1), states(1) .SH AUTHOR Markku Rossi debian/source/0000755000000000000000000000000011677714052010500 5ustar debian/source/format0000644000000000000000000000001411677714052011706 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000010111677714052010221 0ustar version=3 http://ftp.gnu.org/gnu/enscript/enscript-(.*)\.tar\.gz debian/enscript.doc-base.enscript0000644000000000000000000000035111677714052014253 0ustar Document: enscript Title: GNU Enscript documentation Author: Markku Rossi Abstract: This file documents GNU Enscript. Section: Programming Format: Info Index: /usr/share/info/enscript.info.gz Files: /usr/share/info/enscript.info.gz debian/rules0000755000000000000000000000051511677716417010270 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ override_dh_auto_clean: dh_auto_clean find -name Makefile.in -exec rm {} \; override_dh_auto_configure: AUTOMAKE=automake-1.11 autoreconf -fis dh_auto_configure override_dh_auto_install: dh_auto_install rm -f debian/enscript/usr/share/info/dir debian/clean0000644000000000000000000000036311677714052010207 0ustar config.log config.status config.h config.sub config.guess Makefile stamp-h stamp-h1 states/over depcomp install-sh INSTALL afmlib/ansi2knr.[1c] ylwrap missing docs/texinfo.tex docs/mdate-sh src/ansi2knr.[1c] m4/intldir.m4 po/Makevars.template