groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff-commit] groff/contrib/pdfmark ChangeLog pdfmark.tmac


From: Werner LEMBERG
Subject: [Groff-commit] groff/contrib/pdfmark ChangeLog pdfmark.tmac
Date: Mon, 28 Jan 2013 10:41:31 +0000

CVSROOT:        /cvsroot/groff
Module name:    groff
Changes by:     Werner LEMBERG <wl>     13/01/28 10:41:31

Modified files:
        contrib/pdfmark: ChangeLog pdfmark.tmac 

Log message:
        * pdfmark.tmac (pdfmark, pdf:composed): Use `\!' instead of `\X'.
        
        With the old pdfmark there are gaps between two of the lines, but
        with the new version they disappear.  The use of `.br' and `.in 0'
        is arbitrary any request which causes an implicit break could be
        used.  Two breaks together only produce one line break, but if there
        is an intervening `\X' then the second break finds the line buffer
        not empty and generates another line break.
        
        Using `\!' does alter the position of the pdfmark lines in the
        intermediate file sent to grops (the pdfmark lines are output
        immediately rather than being serialised through the output line
        processing), but this has no effect since the contents of the
        pdfmark line stay the same.  It is the contents which determine
        where bookmarks jump to not the position of the record in the input
        stream to grops.
        
        I initially used `.output', but hit a snag if a pdfbookmark occurs
        before the document starts to output (message saying to insert an
        explicit `.br'), this is quite likely for things like `.pdfinfo
        /Author' which occur at the top of the document.  So I'm using the
        `\!' escape.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/pdfmark/ChangeLog?cvsroot=groff&r1=1.32&r2=1.33
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/pdfmark/pdfmark.tmac?cvsroot=groff&r1=1.12&r2=1.13

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/contrib/pdfmark/ChangeLog,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- ChangeLog   22 Jan 2013 00:29:42 -0000      1.32
+++ ChangeLog   28 Jan 2013 10:41:31 -0000      1.33
@@ -1,3 +1,28 @@
+2013-01-28  Deri James  <address@hidden>
+
+       * pdfmark.tmac (pdfmark, pdf:composed): Use `\!' instead of `\X'.
+
+       With the old pdfmark there are gaps between two of the lines, but
+       with the new version they disappear.  The use of `.br' and `.in 0'
+       is arbitrary any request which causes an implicit break could be
+       used.  Two breaks together only produce one line break, but if there
+       is an intervening `\X' then the second break finds the line buffer
+       not empty and generates another line break.
+
+       Using `\!' does alter the position of the pdfmark lines in the
+       intermediate file sent to grops (the pdfmark lines are output
+       immediately rather than being serialised through the output line
+       processing), but this has no effect since the contents of the
+       pdfmark line stay the same.  It is the contents which determine
+       where bookmarks jump to not the position of the record in the input
+       stream to grops.
+
+       I initially used `.output', but hit a snag if a pdfbookmark occurs
+       before the document starts to output (message saying to insert an
+       explicit `.br'), this is quite likely for things like `.pdfinfo
+       /Author' which occur at the top of the document.  So I'm using the
+       `\!' escape.
+
 2012-09-20  Werner LEMBERG  <address@hidden>
 
        Simplify enviroment handling.
@@ -344,7 +369,7 @@
 
        First import of pdfmark files.
 
-Copyright 2004-2012
+Copyright 2004-2013
   Free Software Foundation, Inc.
 
 Copying and distribution of this file, with or without modification,

Index: pdfmark.tmac
===================================================================
RCS file: /cvsroot/groff/groff/contrib/pdfmark/pdfmark.tmac,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- pdfmark.tmac        23 Dec 2010 21:24:53 -0000      1.12
+++ pdfmark.tmac        28 Jan 2013 10:41:31 -0000      1.13
@@ -110,7 +110,7 @@
 .   \"
 .   \" This PDFMARK is suitable for single chunk output ...
 .   \"
-.      nop \X'ps:exec [\\$* pdfmark'\c
+.      nop \!x X ps:exec [\\$* pdfmark
 .      \}
 .   el \{\
 .   \" ... but, when the limit would be violated, then we must
@@ -129,13 +129,11 @@
 .   \"
 .      pdf*compose pdfmark
 .      pdf*pdfmark.dispatch
-.      chop pdf:composed
-.      nop \Y[pdf:composed]\c
 .   \"
 .   \" And clean up when done.
 .   \"
 .      rm pdf*compose pdf*pdfmark.post
-.      rm pdf:compose.test pdf:composed pdf:composed.literal
+.      rm pdf:compose.test pdf:composed.literal
 .      \}
 .   rr pdf:length
 .   \}
@@ -428,9 +426,7 @@
 .\" of the "pdf:composed" macro, for assembly of a new PDFMARK.
 .\"
 .de pdf*pdfmark.post.first
-.de pdf:composed pdf*end
-ps:exec \\*[pdf:composed.line]
-.pdf*end
+. nop \!x X ps:exec \\*[pdf:composed.line]
 .\"
 .\" Subsequent calls to "pdf*pdfmark.post" are redirected to the
 .\" alternative "pdf*pdfmark.post.next" macro, which simply appends
@@ -439,9 +435,7 @@
 .als pdf*pdfmark.post pdf*pdfmark.post.next
 ..
 .de pdf*pdfmark.post.next
-.am pdf:composed pdf*end
-\\*[pdf:composed.line]
-.pdf*end
+. nop \!+\\*[pdf:composed.line]
 ..
 .\" "pdf*end" is a dummy macro.  It is required to mark the end
 .\" of each individual fragment which is added to "pdf:composed";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]