From MAILER-DAEMON Wed Oct 17 06:45:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TOR8E-0005Sb-Ih
	for mharc-groff-commit@gnu.org; Wed, 17 Oct 2012 06:45:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36336)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <wl@gnu.org>)
	id 1TOR87-0005SO-H5
	for groff-commit@gnu.org; Wed, 17 Oct 2012 06:45:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <wl@gnu.org>) id 1TOR82-0001LD-D9
	for groff-commit@gnu.org; Wed, 17 Oct 2012 06:45:39 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:36010)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <wl@gnu.org>)
	id 1TOR82-0001L9-AN
	for groff-commit@gnu.org; Wed, 17 Oct 2012 06:45:34 -0400
Received: from wl by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <wl@gnu.org>) id 1TOR82-0005Ij-1I
	for groff-commit@gnu.org; Wed, 17 Oct 2012 10:45:34 +0000
Date: Wed, 17 Oct 2012 10:45:34 +0000
Message-Id: <E1TOR82-0005Ij-1I@vcs.savannah.gnu.org>
To: groff-commit@gnu.org
From: Werner LEMBERG <wl@gnu.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
Subject: [Groff-commit] groff ChangeLog src/devices/gropdf/gropdf.pl
X-BeenThere: groff-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff-commit>,
	<mailto:groff-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff-commit>
List-Post: <mailto:groff-commit@gnu.org>
List-Help: <mailto:groff-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Oct 2012 10:45:45 -0000

CVSROOT:	/cvsroot/groff
Module name:	groff
Changes by:	Werner LEMBERG <wl>	12/10/17 10:45:33

Modified files:
	.              : ChangeLog 
	src/devices/gropdf: gropdf.pl 

Log message:
	* src/devices/gropdf/gropdf: The command \D't N' moves horizontal
	position by 'N'.  gropdf now obeys this rule.
	
	Fixed kerning issue where width of non-kerned text could be wrongly
	calculated using previous kern factor.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/ChangeLog?cvsroot=groff&r1=1.1355&r2=1.1356
http://cvs.savannah.gnu.org/viewcvs/groff/src/devices/gropdf/gropdf.pl?cvsroot=groff&r1=1.9&r2=1.10

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/ChangeLog,v
retrieving revision 1.1355
retrieving revision 1.1356
diff -u -b -r1.1355 -r1.1356
--- ChangeLog	21 Sep 2012 04:58:32 -0000	1.1355
+++ ChangeLog	17 Oct 2012 10:45:33 -0000	1.1356
@@ -1,3 +1,11 @@
+2012-10-17  Deri James  <deri@chuzzlewit.myzen.co.uk>
+
+	* src/devices/gropdf/gropdf: The command \D't N' moves horizontal
+	position by 'N'.  gropdf now obeys this rule.
+
+	Fixed kerning issue where width of non-kerned text could be wrongly
+	calculated using previous kern factor.
+
 2012-09-21  Werner LEMBERG  <wl@gnu.org>
 
 	* doc/groff.texinfo: Improve documentation of `.ad'.

Index: src/devices/gropdf/gropdf.pl
===================================================================
RCS file: /cvsroot/groff/groff/src/devices/gropdf/gropdf.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- src/devices/gropdf/gropdf.pl	20 Sep 2012 07:48:28 -0000	1.9
+++ src/devices/gropdf/gropdf.pl	17 Oct 2012 10:45:33 -0000	1.10
@@ -2669,6 +2669,7 @@
 	$lwidth=$p[0];
 	$stream.="$p[0] w\n";
 	$poschg=1;
+	$xpos+=$lwidth;
     }
     elsif ($Dcmd eq 'a')
     {
@@ -3014,6 +3015,14 @@
 sub do_t
 {
     my $par=shift;
+
+    if ($kernadjust != $curkern)
+    {
+	PutLine();
+	$stream.="$kernadjust Tc\n";
+	$curkern=$kernadjust;
+    }
+
     my $wid=TextWid($par);
 
     $par=reverse(split('',$par)) if $xrev;
@@ -3038,13 +3047,6 @@
     # $nomove = width of char(s) added by 'C', 'N' or 'c'
     # $w-flg  = 'w' seen since last t
 
-    if ($kernadjust != $curkern)
-    {
-	PutLine();
-	$stream.="$kernadjust Tc\n";
-	$curkern=$kernadjust;
-    }
-
     if ($fontchg)
     {
 	PutLine();


From MAILER-DAEMON Wed Oct 17 13:34:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TOXW6-00014G-6o
	for mharc-groff-commit@gnu.org; Wed, 17 Oct 2012 13:34:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36045)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <wl@gnu.org>)
	id 1TOXVw-00013V-H9
	for groff-commit@gnu.org; Wed, 17 Oct 2012 13:34:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <wl@gnu.org>) id 1TOXVq-0000dB-DU
	for groff-commit@gnu.org; Wed, 17 Oct 2012 13:34:40 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:34911)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <wl@gnu.org>)
	id 1TOXVq-0000d7-AQ
	for groff-commit@gnu.org; Wed, 17 Oct 2012 13:34:34 -0400
Received: from wl by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <wl@gnu.org>) id 1TOXVq-0000zj-1V
	for groff-commit@gnu.org; Wed, 17 Oct 2012 17:34:34 +0000
Date: Wed, 17 Oct 2012 17:34:34 +0000
Message-Id: <E1TOXVq-0000zj-1V@vcs.savannah.gnu.org>
To: groff-commit@gnu.org
From: Werner LEMBERG <wl@gnu.org>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
Subject: [Groff-commit] groff ChangeLog
X-BeenThere: groff-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff-commit>,
	<mailto:groff-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff-commit>
List-Post: <mailto:groff-commit@gnu.org>
List-Help: <mailto:groff-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff-commit>,
	<mailto:groff-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Oct 2012 17:34:48 -0000

CVSROOT:	/cvsroot/groff
Module name:	groff
Changes by:	Werner LEMBERG <wl>	12/10/17 17:34:34

Modified files:
	.              : ChangeLog 

Log message:
	Fix ChangeLog.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/ChangeLog?cvsroot=groff&r1=1.1356&r2=1.1357

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/ChangeLog,v
retrieving revision 1.1356
retrieving revision 1.1357
diff -u -b -r1.1356 -r1.1357
--- ChangeLog	17 Oct 2012 10:45:33 -0000	1.1356
+++ ChangeLog	17 Oct 2012 17:34:33 -0000	1.1357
@@ -1,10 +1,9 @@
 2012-10-17  Deri James  <deri@chuzzlewit.myzen.co.uk>
 
-	* src/devices/gropdf/gropdf: The command \D't N' moves horizontal
-	position by 'N'.  gropdf now obeys this rule.
-
-	Fixed kerning issue where width of non-kerned text could be wrongly
-	calculated using previous kern factor.
+	* src/devices/gropdf/gropdf (do_D): The command \D't N' moves
+	horizontal position by 'N'.  gropdf now obeys this rule.
+	(do_t): Fixed kerning issue where width of non-kerned text could be
+	wrongly calculated using previous kern factor.
 
 2012-09-21  Werner LEMBERG  <wl@gnu.org>
 


