<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1672</id>
	<title>Nabble - Groff</title>
	<updated>2009-11-24T05:15:06Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Groff-f1672.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Groff-f1672.html" />
	<subtitle type="html">The Groff (GNU Troff) software is a typesetting package which reads plain text mixed with formatting commands and produces formatted output. Groff now supports HTML. Groff home is &lt;a href=&quot;http://www.gnu.org/software/groff/groff.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26495652</id>
	<title>Re: Filtering our control characters</title>
	<published>2009-11-24T05:15:06Z</published>
	<updated>2009-11-24T05:15:06Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; There's an extra dash required, see groff(1) for more details.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; groff -man -Tlatin1 -P-cbu
&lt;br&gt;&lt;br&gt;Oops, thanks for the correction!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Filtering-our-control-characters-tp26465610p26495652.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26491817</id>
	<title>Re: Filtering our control characters</title>
	<published>2009-11-23T23:56:34Z</published>
	<updated>2009-11-23T23:56:34Z</updated>
	<author>
		<name>Ant_222</name>
	</author>
	<content type="html">Thank you, Werner and Ralph.
&lt;br&gt;And I was using sed :P
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Filtering-our-control-characters-tp26465610p26491817.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26495603</id>
	<title>Re: Memory usage of troff</title>
	<published>2009-11-23T21:40:36Z</published>
	<updated>2009-11-23T21:40:36Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; The attached patch solves the above problem and also fixes all
&lt;br&gt;&amp;gt; &amp;quot;definitely lost&amp;quot; memleaks reported by valgrind. With that patch
&lt;br&gt;&amp;gt; groff uses about 10MB on my system as well.
&lt;br&gt;&lt;br&gt;Applied, thanks. &amp;nbsp;Please note that I need a copyright disclaimer from
&lt;br&gt;you in case you want to contribute more code to groff.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-usage-of-troff-tp26458929p26495603.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26488476</id>
	<title>Re: Filtering our control characters</title>
	<published>2009-11-23T16:11:46Z</published>
	<updated>2009-11-23T16:11:46Z</updated>
	<author>
		<name>Ralph Corderoy</name>
	</author>
	<content type="html">&lt;br&gt;Hi Anton,
&lt;br&gt;&lt;br&gt;Werner wrote:
&lt;br&gt;&amp;gt; The right solution, mentioned already on this list, is
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; groff -man -Tlatin1 -Pcbu
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; to pass flags -c, -b, and -u to `grotty', the tty output driver for
&lt;br&gt;&amp;gt; groff, without any need for `col'.
&lt;br&gt;&lt;br&gt;There's an extra dash required, see groff(1) for more details.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; groff -man -Tlatin1 -P-cbu
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;&lt;br&gt;Ralph.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Filtering-our-control-characters-tp26465610p26488476.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26486085</id>
	<title>Re: Filtering our control characters</title>
	<published>2009-11-23T13:02:58Z</published>
	<updated>2009-11-23T13:02:58Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&amp;gt; 
&lt;br&gt;&amp;gt; I have read that the easiest way to convert
&lt;br&gt;&amp;gt; groff output to text is to filter it using
&lt;br&gt;&amp;gt; the col command.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I tried this:
&lt;br&gt;&amp;gt; &amp;nbsp; groff -man -Tlatin1 test.man | col -bx,
&lt;br&gt;&lt;br&gt;The right solution, mentioned already on this list, is
&lt;br&gt;&lt;br&gt;&amp;nbsp; groff -man -Tlatin1 -Pcbu
&lt;br&gt;&lt;br&gt;to pass flags -c, -b, and -u to `grotty', the tty output driver for
&lt;br&gt;groff, without any need for `col'.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Filtering-our-control-characters-tp26465610p26486085.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26468454</id>
	<title>mom macros website is back</title>
	<published>2009-11-22T11:12:44Z</published>
	<updated>2009-11-22T11:12:44Z</updated>
	<author>
		<name>Peter Schaffter-4</name>
	</author>
	<content type="html">The redesigned site for the mom macros is finally online at it's new
&lt;br&gt;home
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://web.ncf.ca/fs222/mom/mom-01.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://web.ncf.ca/fs222/mom/mom-01.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Design/editorial comments welcome.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Peter Schaffter
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mom-macros-website-is-back-tp26468454p26468454.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26465610</id>
	<title>Filtering our control characters</title>
	<published>2009-11-22T06:09:01Z</published>
	<updated>2009-11-22T06:09:01Z</updated>
	<author>
		<name>Ant_222</name>
	</author>
	<content type="html">Hello all,
&lt;br&gt;&lt;br&gt;I have read that the easiest way to convert
&lt;br&gt;groff output to text is to filter it using
&lt;br&gt;the col command.
&lt;br&gt;&lt;br&gt;I tried this:
&lt;br&gt;&amp;nbsp; &amp;nbsp;groff -man -Tlatin1 test.man | col -bx,
&lt;br&gt;&lt;br&gt;but in the result section names still con-
&lt;br&gt;tained color-setting characters:
&lt;br&gt;&lt;br&gt;1mSection one0m
&lt;br&gt;&lt;br&gt;Is one of the tools (groff or col) doing
&lt;br&gt;something wrong?
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;Anton
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Filtering-our-control-characters-tp26465610p26465610.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26465326</id>
	<title>Re: Memory usage of troff</title>
	<published>2009-11-22T05:31:53Z</published>
	<updated>2009-11-22T05:31:53Z</updated>
	<author>
		<name>Maurice van der Pot-2</name>
	</author>
	<content type="html">On Sun, Nov 22, 2009 at 06:52:27AM +0100, Werner LEMBERG wrote:
&lt;br&gt;&amp;gt; &amp;gt; Now I don't know groff/troff so I ask you, is this not excessive?
&lt;br&gt;&amp;gt; &amp;gt; I would like to understand why troff uses so much memory.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's a bug, fixed on 2009-04-10, I think. &amp;nbsp;Please try the CVS version.
&lt;br&gt;&amp;gt; Using it, the maximum number of allocated heap space (as checked with
&lt;br&gt;&amp;gt; massif) is 10.52MB for the above call on my Linux box.
&lt;br&gt;&lt;br&gt;Thanks for that pointer, it was very helpful.
&lt;br&gt;&lt;br&gt;I've tried the current version from CVS, but it uses (certain) statem
&lt;br&gt;objects after they have been freed and later frees them again. It looks
&lt;br&gt;like an ownership problem. Nodes delete their statem objects when they
&lt;br&gt;are destroyed, but the same statem objects are deleted when they are
&lt;br&gt;popped from the state machine stack.
&lt;br&gt;&lt;br&gt;The attached patch solves the above problem and also fixes all
&lt;br&gt;&amp;quot;definitely lost&amp;quot; memleaks reported by valgrind. With that patch groff
&lt;br&gt;uses about 10MB on my system as well.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Maurice.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Maurice van der Pot
&lt;br&gt;&lt;br&gt;Gentoo Linux Developer &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465326&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;griffon26@...&lt;/a&gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.gentoo.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gentoo.org&lt;/a&gt;&lt;br&gt;Gnome Planner Developer &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465326&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;griffon26@...&lt;/a&gt; &amp;nbsp;&lt;a href=&quot;http://live.gnome.org/Planner&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://live.gnome.org/Planner&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;Index: src/roff/troff/env.cpp
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /sources/groff/groff/src/roff/troff/env.cpp,v
&lt;br&gt;retrieving revision 1.22
&lt;br&gt;diff -u -B -r1.22 env.cpp
&lt;br&gt;--- src/roff/troff/env.cpp	5 Jan 2009 20:11:12 -0000	1.22
&lt;br&gt;+++ src/roff/troff/env.cpp	22 Nov 2009 13:16:30 -0000
&lt;br&gt;@@ -2213,14 +2213,15 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (curdiv == topdiv &amp;&amp; topdiv-&amp;gt;before_first_page)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;topdiv-&amp;gt;begin_page();
&lt;br&gt;- &amp;nbsp; &amp;nbsp;macro *m = new macro;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;m-&amp;gt;append_str(&amp;quot;devtag:&amp;quot;);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;macro m;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;m.append_str(&amp;quot;devtag:&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for (const char *p = nm; *p; p++)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!invalid_input_char((unsigned char)*p))
&lt;br&gt;-	m-&amp;gt;append(*p);
&lt;br&gt;- &amp;nbsp; &amp;nbsp;m-&amp;gt;append(' ');
&lt;br&gt;- &amp;nbsp; &amp;nbsp;m-&amp;gt;append_int(i);
&lt;br&gt;- &amp;nbsp; &amp;nbsp;return new special_node(*m);
&lt;br&gt;+	m.append(*p);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;m.append(' ');
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;m.append_int(i);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return new special_node(m);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;Index: src/roff/troff/input.cpp
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /sources/groff/groff/src/roff/troff/input.cpp,v
&lt;br&gt;retrieving revision 1.60
&lt;br&gt;diff -u -B -r1.60 input.cpp
&lt;br&gt;--- src/roff/troff/input.cpp	7 May 2009 16:22:17 -0000	1.60
&lt;br&gt;+++ src/roff/troff/input.cpp	22 Nov 2009 13:16:33 -0000
&lt;br&gt;@@ -531,6 +531,8 @@
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (t-&amp;gt;is_diversion) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;div_level--;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (diversion_state)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delete diversion_state;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;diversion_state = t-&amp;gt;diversion_state;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;@@ -4398,6 +4400,7 @@
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;args += c;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (i != limit)
&lt;br&gt;&amp;nbsp;	args += ' ';
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delete p;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (limit &amp;gt; 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;args += '\0';
&lt;br&gt;@@ -4419,6 +4422,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;args += '&amp;quot;';
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (i != limit)
&lt;br&gt;&amp;nbsp;	args += ' ';
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delete p;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (limit &amp;gt; 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;args += '\0';
&lt;br&gt;@@ -4438,6 +4442,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (input_stack::space_follows_arg(i))
&lt;br&gt;&amp;nbsp;	args += ' ';
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delete p;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (limit &amp;gt; 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;args += '\0';
&lt;br&gt;Index: src/roff/troff/mtsm.cpp
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /sources/groff/groff/src/roff/troff/mtsm.cpp,v
&lt;br&gt;retrieving revision 1.6
&lt;br&gt;diff -u -B -r1.6 mtsm.cpp
&lt;br&gt;--- src/roff/troff/mtsm.cpp	5 Jan 2009 20:11:12 -0000	1.6
&lt;br&gt;+++ src/roff/troff/mtsm.cpp	22 Nov 2009 13:16:33 -0000
&lt;br&gt;@@ -390,8 +390,6 @@
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (sp == 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fatal(&amp;quot;empty state machine stack&amp;quot;);
&lt;br&gt;- &amp;nbsp; &amp;nbsp;if (sp-&amp;gt;state)
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;delete sp-&amp;gt;state;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;sp-&amp;gt;state = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;stack *t = sp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;sp = sp-&amp;gt;next;
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26465326/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-usage-of-troff-tp26458929p26465326.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463033</id>
	<title>Re: Memory usage of troff</title>
	<published>2009-11-21T21:52:27Z</published>
	<updated>2009-11-21T21:52:27Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; Using strace I found that running the following command in the
&lt;br&gt;&amp;gt; specs/libX11 directory requires about 400MB of memory.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; troff -ms -dxV=&amp;quot;libX11 1.3.2&amp;quot; -I. -dwww-image-template=. -Thtml libX11.ms &amp;&amp;gt; /dev/null
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now I don't know groff/troff so I ask you, is this not excessive?
&lt;br&gt;&amp;gt; I would like to understand why troff uses so much memory.
&lt;br&gt;&lt;br&gt;It's a bug, fixed on 2009-04-10, I think. &amp;nbsp;Please try the CVS version.
&lt;br&gt;Using it, the maximum number of allocated heap space (as checked with
&lt;br&gt;massif) is 10.52MB for the above call on my Linux box.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-usage-of-troff-tp26458929p26463033.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26458929</id>
	<title>Memory usage of troff</title>
	<published>2009-11-21T08:05:32Z</published>
	<updated>2009-11-21T08:05:32Z</updated>
	<author>
		<name>Maurice van der Pot-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I've just had compilation of libX11 fail on my system because it ran out
&lt;br&gt;of memory during generation of the reference documentation using groff.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://cgit.freedesktop.org/xorg/lib/libX11/snapshot/libX11-1.3.2.tar.bz2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgit.freedesktop.org/xorg/lib/libX11/snapshot/libX11-1.3.2.tar.bz2&lt;/a&gt;&lt;br&gt;&lt;br&gt;Using strace I found that running the following command in the
&lt;br&gt;specs/libX11 directory requires about 400MB of memory.
&lt;br&gt;&lt;br&gt;&amp;nbsp; troff -ms -dxV=&amp;quot;libX11 1.3.2&amp;quot; -I. -dwww-image-template=. -Thtml libX11.ms &amp;&amp;gt; /dev/null
&lt;br&gt;&lt;br&gt;Now I don't know groff/troff so I ask you, is this not excessive?
&lt;br&gt;I would like to understand why troff uses so much memory.
&lt;br&gt;&lt;br&gt;Valgrind's massif shows a more or less linear increase of memory use over time.
&lt;br&gt;These are the two parts that in the end are responsible for the majority of
&lt;br&gt;allocated memory:
&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; n &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;time(i) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; total(B) &amp;nbsp; useful-heap(B) extra-heap(B) &amp;nbsp; &amp;nbsp;stacks(B)
&lt;br&gt;--------------------------------------------------------------------------------
&lt;br&gt;287 56,715,762,716 &amp;nbsp; &amp;nbsp; &amp;nbsp;403,261,336 &amp;nbsp; &amp;nbsp; &amp;nbsp;381,991,029 &amp;nbsp; &amp;nbsp;21,270,307 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0
&lt;br&gt;94.73% (381,991,029B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
&lt;br&gt;-&amp;gt;67.59% (272,573,250B) 0x443D3C: string::operator=(string const&amp;) (string.cpp:126)
&lt;br&gt;| -&amp;gt;62.42% (251,730,382B) 0x4278EA: statem::add_tag_ta() (mtsm.cpp:289)
&lt;br&gt;| | -&amp;gt;62.42% (251,730,382B) 0x40CBA4: environment::construct_state(int) (env.cpp:2258)
&lt;br&gt;| | &amp;nbsp; -&amp;gt;60.65% (244,595,650B) 0x410E40: environment::add_char(charinfo*) (env.cpp:316)
&lt;br&gt;| | &amp;nbsp; | -&amp;gt;60.31% (243,210,666B) 0x42153C: process_input_stack() (input.cpp:2834)
&lt;br&gt;| | &amp;nbsp; | | -&amp;gt;60.31% (243,210,666B) 0x4227E1: process_input_file(char const*) (input.cpp:7373)
&lt;br&gt;| | &amp;nbsp; | | &amp;nbsp; -&amp;gt;60.31% (243,210,666B) 0x423918: main (input.cpp:7680)
&lt;br&gt;&lt;br&gt;(...)
&lt;br&gt;&lt;br&gt;-&amp;gt;22.89% (92,301,216B) 0x40CAF8: environment::construct_state(int) (env.cpp:2250)
&lt;br&gt;| -&amp;gt;22.58% (91,041,888B) 0x410E40: environment::add_char(charinfo*) (env.cpp:316)
&lt;br&gt;| | -&amp;gt;22.46% (90,572,496B) 0x42153C: process_input_stack() (input.cpp:2834)
&lt;br&gt;| | | -&amp;gt;22.46% (90,572,496B) 0x4227E1: process_input_file(char const*) (input.cpp:7373)
&lt;br&gt;| | | &amp;nbsp; -&amp;gt;22.46% (90,572,496B) 0x423918: main (input.cpp:7680)
&lt;br&gt;| | | &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Maurice.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Maurice van der Pot
&lt;br&gt;&lt;br&gt;Gentoo Linux Developer &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26458929&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;griffon26@...&lt;/a&gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.gentoo.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gentoo.org&lt;/a&gt;&lt;br&gt;Gnome Planner Developer &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26458929&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;griffon26@...&lt;/a&gt; &amp;nbsp;&lt;a href=&quot;http://live.gnome.org/Planner&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://live.gnome.org/Planner&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26458929/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-usage-of-troff-tp26458929p26458929.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26438472</id>
	<title>Re: PATCH: string format errors</title>
	<published>2009-11-19T21:10:59Z</published>
	<updated>2009-11-19T21:10:59Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; In most cases the patch is very simple: just replace
&lt;br&gt;&amp;gt; &amp;quot;printf(string)&amp;quot; with &amp;quot;printf(&amp;quot;%s&amp;quot;, string)&amp;quot;. &amp;nbsp;This is the case of
&lt;br&gt;&amp;gt; Groff =)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The attached patch was made for the 1.20.1 version but also applies
&lt;br&gt;&amp;gt; to the current cvs checkout.
&lt;br&gt;&lt;br&gt;Applied, thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;bug-groff mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438472&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bug-groff@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-groff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-groff&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---Bugs-f1674.html&quot; embed=&quot;fixTarget[1674]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PATCH%3A-string-format-errors-tp26430193p26438472.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26432123</id>
	<title>Re: header and footer in a cv with -mom</title>
	<published>2009-11-19T11:02:00Z</published>
	<updated>2009-11-19T11:02:00Z</updated>
	<author>
		<name>Peter Schaffter-4</name>
	</author>
	<content type="html">On November 18, 2009 11:03:53 am Jan-Herbert Damm wrote:
&lt;br&gt;&amp;gt; Hello all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i am picking up my on my own post. It seems the issue was too
&lt;br&gt;&amp;gt; specific, since i didn't get an answer in the summer. Now i am
&lt;br&gt;&amp;gt; trying to be very general (even if this is still only a
&lt;br&gt;&amp;gt; mom-issue..., Peter?).
&lt;br&gt;&lt;br&gt;I've been having terrible problems with ISPs and email since
&lt;br&gt;September, owing to a ridiculous number of physical moves, including
&lt;br&gt;the latest to a remote location where high-speed is available only
&lt;br&gt;via satellite. &amp;nbsp;I guess the post I sent regarding your problem
&lt;br&gt;didn't get through, for which I'm sorry. &amp;nbsp;Basically, there was a
&lt;br&gt;reported bug in 1.5-c that caused the sort of problems you've
&lt;br&gt;experienced, and I recommended that you update to mom 1.5-d.
&lt;br&gt;&lt;br&gt;Tadziu's suggestion for a fix to 1.5-c should also work, BTW, if you
&lt;br&gt;don't feel like updating right now.
&lt;br&gt;&lt;br&gt;It's been--shall we say?--an interesting year for me, with the
&lt;br&gt;result that normal Net activities, including cvs commits and
&lt;br&gt;whatnot, have been at best spotty. &amp;nbsp;I believe things have settled
&lt;br&gt;down now, and hope to get a spiffy new version of the mom homepage
&lt;br&gt;back online shortly.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Peter Schaffter
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/header-and-footer-in-a-cv-with--mom-tp25041301p26432123.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26430193</id>
	<title>PATCH: string format errors</title>
	<published>2009-11-19T08:51:32Z</published>
	<updated>2009-11-19T08:51:32Z</updated>
	<author>
		<name>Paulo Ricardo Zanoni-2</name>
	</author>
	<content type="html">Hi.
&lt;br&gt;&lt;br&gt;Using &amp;quot;printf(string);&amp;quot; is dangerous, might lead to bugs and even
&lt;br&gt;security issues. If the string being printed contains the &amp;quot;%&amp;quot; character
&lt;br&gt;one can do really dangerous things. Even if you think the string in
&lt;br&gt;question might not be dangerous, future code changes might lead that
&lt;br&gt;piece of code to bugs or security holes.
&lt;br&gt;&lt;br&gt;Some distributions (like Mandriva) even compile all their sources with
&lt;br&gt;the &amp;quot;-Wformat -Werror=format-security&amp;quot; GCC flag.
&lt;br&gt;&lt;br&gt;In most cases the patch is very simple: just replace &amp;quot;printf(string)&amp;quot;
&lt;br&gt;with &amp;quot;printf(&amp;quot;%s&amp;quot;, string)&amp;quot;. This is the case of Groff =)
&lt;br&gt;&lt;br&gt;The attached patch was made for the 1.20.1 version but also applies to
&lt;br&gt;the current cvs checkout.
&lt;br&gt;&lt;br&gt;Some references:
&lt;br&gt;&lt;a href=&quot;http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.debian.org/Hardening#DEBBUILDHARDENINGFORMAT.28gcc.2BAC8-g.2B-.2B--Wformat-Wformat-security.29&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.debian.org/Hardening#DEBBUILDHARDENINGFORMAT.28gcc.2BAC8-g.2B-.2B--Wformat-Wformat-security.29&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Format_string_attack&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Format_string_attack&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Paulo.
&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[groff-1.20.1-string-format-error.patch]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;diff -Nru groff-1.20.1/src/devices/grohtml/post-html.cpp new/src/devices/grohtml/post-html.cpp
&lt;br&gt;--- groff-1.20.1/src/devices/grohtml/post-html.cpp	2009-01-09 12:25:52.000000000 -0200
&lt;br&gt;+++ new/src/devices/grohtml/post-html.cpp	2009-10-30 18:02:18.000000000 -0200
&lt;br&gt;@@ -1588,7 +1588,7 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;buffer += as_string(h);
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;buffer += '\0';
&lt;br&gt;-	 &amp;nbsp;fprintf(f, buffer.contents());
&lt;br&gt;+	 &amp;nbsp;fprintf(f, &amp;quot;%s&amp;quot;, buffer.contents());
&lt;br&gt;&amp;nbsp;	} else
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;fputs(g-&amp;gt;text_string, f);
&lt;br&gt;&amp;nbsp;	h++;
&lt;br&gt;diff -Nru groff-1.20.1/src/roff/troff/node.cpp new/src/roff/troff/node.cpp
&lt;br&gt;--- groff-1.20.1/src/roff/troff/node.cpp	2009-01-09 12:25:52.000000000 -0200
&lt;br&gt;+++ new/src/roff/troff/node.cpp	2009-10-30 17:58:51.000000000 -0200
&lt;br&gt;@@ -2196,7 +2196,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr, &amp;quot;%c&amp;quot;, c);
&lt;br&gt;&amp;nbsp; &amp;nbsp;else
&lt;br&gt;- &amp;nbsp; &amp;nbsp;fprintf(stderr, ci-&amp;gt;nm.contents());
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;fprintf(stderr, &amp;quot;%s&amp;quot;, ci-&amp;gt;nm.contents());
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (push_state)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr, &amp;quot; &amp;lt;push_state&amp;gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (state)
&lt;br&gt;diff -Nru groff-1.20.1/src/utils/hpftodit/hpftodit.cpp new/src/utils/hpftodit/hpftodit.cpp
&lt;br&gt;--- groff-1.20.1/src/utils/hpftodit/hpftodit.cpp	2009-01-09 12:25:52.000000000 -0200
&lt;br&gt;+++ new/src/utils/hpftodit/hpftodit.cpp	2009-10-30 18:05:13.000000000 -0200
&lt;br&gt;@@ -870,9 +870,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (!all_flag)
&lt;br&gt;&amp;nbsp;	continue;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (tfm_type == MSL)
&lt;br&gt;-	printf(hp_msl_to_ucode_name(charcode));
&lt;br&gt;+	printf(&amp;quot;%s&amp;quot;, hp_msl_to_ucode_name(charcode));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;-	printf(unicode_to_ucode_name(charcode));
&lt;br&gt;+	printf(&amp;quot;%s&amp;quot;, unicode_to_ucode_name(charcode));
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;\t%d,%d&amp;quot;,
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp; scale(char_table[i].width), scale(char_table[i].ascent));
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;bug-groff mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26430193&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bug-groff@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-groff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-groff&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---Bugs-f1674.html&quot; embed=&quot;fixTarget[1674]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PATCH%3A-string-format-errors-tp26430193p26430193.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26424770</id>
	<title>Re: header and footer in a cv with -mom</title>
	<published>2009-11-19T03:40:03Z</published>
	<updated>2009-11-19T03:40:03Z</updated>
	<author>
		<name>Tadziu Hoffmann</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; Wow!
&lt;br&gt;&amp;gt; That has apparently solved my problem! Thank you!!
&lt;br&gt;&amp;gt; I am really amazed how one can find that in such a big and
&lt;br&gt;&amp;gt; cryptic file.
&lt;br&gt;&lt;br&gt;Funny, because it took me probably only 10 minutes to find the
&lt;br&gt;bug, even though I'm not familiar with mom at all. &amp;nbsp;In this
&lt;br&gt;case of course I was lucky because the bug was rather simple.
&lt;br&gt;&lt;br&gt;I guess there's two parts to solving problems like this:
&lt;br&gt;experience in working with groff, and a strategy for finding
&lt;br&gt;bugs. &amp;nbsp;However, I'm afraid can't really offer much more than
&lt;br&gt;&amp;quot;insert suitable print statements at strategic positions in the
&lt;br&gt;code to figure out where certain variables get their values&amp;quot;,
&lt;br&gt;the crucial point being, of course, figuring out &amp;quot;where&amp;quot; and
&lt;br&gt;&amp;quot;what&amp;quot;. &amp;nbsp;Lastly, it comes down to what we call &amp;quot;intuition&amp;quot;,
&lt;br&gt;which is probably just a fancy name for &amp;quot;this looks similar
&lt;br&gt;to something I've seen before elsewhere, so why don't we try
&lt;br&gt;something which helped in that other situation&amp;quot;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Will i be able to read macrodefinitions like that by digging
&lt;br&gt;&amp;gt; into &amp;quot;info groff&amp;quot;? Or is there another groff howto that i
&lt;br&gt;&amp;gt; should start with?
&lt;br&gt;&lt;br&gt;My suggestion is to read the Troff User's Manual
&lt;br&gt;&lt;a href=&quot;http://plan9.bell-labs.com/cm/cs/cstr/54.ps.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://plan9.bell-labs.com/cm/cs/cstr/54.ps.gz&lt;/a&gt;&amp;nbsp;(which, by the
&lt;br&gt;way, is a most amazing piece of documentation: it's terse and
&lt;br&gt;extremely dense in information, yet still perfectly readable),
&lt;br&gt;play around a bit formatting a simple document using bare groff
&lt;br&gt;without any macro package, and then actually working through the
&lt;br&gt;tutorial at the end of the Troff User's Manual to create your
&lt;br&gt;own rudimentary macro package. &amp;nbsp;This is fun and it illustrates
&lt;br&gt;techniques for dealing with the most common issues encountered
&lt;br&gt;in document formatting and layout.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/header-and-footer-in-a-cv-with--mom-tp25041301p26424770.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26411787</id>
	<title>Re: header and footer in a cv with -mom</title>
	<published>2009-11-18T09:05:33Z</published>
	<updated>2009-11-18T09:05:33Z</updated>
	<author>
		<name>Tadziu Hoffmann</name>
	</author>
	<content type="html">&lt;br&gt;This appears to be a bug in mom.
&lt;br&gt;Edit om.tmac, find the places where it says
&lt;br&gt;&lt;br&gt;&amp;nbsp; .ds $USERDEF_HDRFTR_VERSO \\$2
&lt;br&gt;&lt;br&gt;and
&lt;br&gt;&lt;br&gt;&amp;nbsp; .ds $USERDEF_HDRFTR_RECTO \\$2
&lt;br&gt;&lt;br&gt;and replace the &amp;quot;\\$2&amp;quot; by &amp;quot;\\$1&amp;quot;, since there's a &amp;quot;.shift&amp;quot;
&lt;br&gt;before (which apparently wasn't there in an earlier version).
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/header-and-footer-in-a-cv-with--mom-tp25041301p26411787.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26410565</id>
	<title>Re: header and footer in a cv with -mom</title>
	<published>2009-11-18T08:03:53Z</published>
	<updated>2009-11-18T08:03:53Z</updated>
	<author>
		<name>Jan-Herbert Damm</name>
	</author>
	<content type="html">Hello all,
&lt;br&gt;&lt;br&gt;i am picking up my on my own post. It seems the issue was too specific, since
&lt;br&gt;i didn't get an answer in the summer. Now i am trying to be very general (even if this is
&lt;br&gt;still only a mom-issue..., Peter?).
&lt;br&gt;&lt;br&gt;I cannot reproduce the following example from the mom documentation:
&lt;br&gt;&lt;br&gt;---snip-from-momdoc/headfootpage.html----
&lt;br&gt;&lt;br&gt;Example 1
&lt;br&gt;&lt;br&gt;If you want the same header and footer on every page, here's how you'd do it.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; .HEADERS_AND_FOOTERS \ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+-----------------------+
&lt;br&gt;&amp;nbsp; &amp;nbsp; C &amp;quot;\E*[$TITLE]&amp;quot; \ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Title &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; L &amp;quot;^\E*[$AUTHOR]#\*[PAGE#]^&amp;quot; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Author &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pg. # |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +-----------------------+
&lt;br&gt;-----end-snip----------
&lt;br&gt;&lt;br&gt;I am using this file:
&lt;br&gt;&lt;br&gt;-------begin-momfile---
&lt;br&gt;.AUTHOR &amp;quot;Jan-Herbert Damm&amp;quot;
&lt;br&gt;.PRINTSTYLE TYPESET
&lt;br&gt;.TITLE &amp;quot;Test-Document&amp;quot;
&lt;br&gt;.PAPER A4
&lt;br&gt;.HEADERS_AND_FOOTERS \
&lt;br&gt;C &amp;quot;\E*[$TITLE]&amp;quot; \
&lt;br&gt;L &amp;quot;^\E*[$AUTHOR]#\*[PAGE#]^&amp;quot;
&lt;br&gt;&lt;br&gt;.START
&lt;br&gt;&lt;br&gt;some text
&lt;br&gt;more text
&lt;br&gt;&lt;br&gt;.NEWPAGE
&lt;br&gt;&lt;br&gt;another page
&lt;br&gt;smore text
&lt;br&gt;&lt;br&gt;.NEWPAGE
&lt;br&gt;&lt;br&gt;yet another page 
&lt;br&gt;and more text
&lt;br&gt;&lt;br&gt;.NEWPAGE
&lt;br&gt;&lt;br&gt;AND AN OTHER ONE
&lt;br&gt;----end-momfile---
&lt;br&gt;&lt;br&gt;i run:
&lt;br&gt;&lt;br&gt;groff -mom -P-pa4 test.mom &amp;gt; test.ps
&lt;br&gt;&lt;br&gt;or just:
&lt;br&gt;&lt;br&gt;groff -mom test.mom &amp;gt; test.ps
&lt;br&gt;&lt;br&gt;with the same effect:
&lt;br&gt;&lt;br&gt;A regular Docheader on the first page and just lines for headers and footers
&lt;br&gt;on subsequent pages.
&lt;br&gt;&lt;br&gt;groff-version is:
&lt;br&gt;&lt;br&gt;jan@herb:~$ which groff
&lt;br&gt;/usr/local/bin/groff
&lt;br&gt;jan@herb:~$ /usr/local/bin/groff --version
&lt;br&gt;GNU groff version 1.20.1
&lt;br&gt;&lt;br&gt;the file /usr/local/share/groff/.../tmac/om.tmac 
&lt;br&gt;&lt;br&gt;contains a line stating:
&lt;br&gt;&lt;br&gt;version 1.5-c 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Where am i going wrong?
&lt;br&gt;&lt;br&gt;thanks 
&lt;br&gt;&lt;br&gt;jan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/header-and-footer-in-a-cv-with--mom-tp25041301p26410565.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26347486</id>
	<title>Re: Side coments</title>
	<published>2009-11-13T22:05:21Z</published>
	<updated>2009-11-13T22:05:21Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; Thank you for the mild rebuke, but info.groff is not exactly my
&lt;br&gt;&amp;gt; friend.
&lt;br&gt;&lt;br&gt;Why not? &amp;nbsp;This is even available as a large PDF, if you prefer this
&lt;br&gt;format.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://groff.ffii.org/groff/groff-1.20.1.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groff.ffii.org/groff/groff-1.20.1.pdf&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; [...] I accept that for you &amp;quot;legacy&amp;quot; is the name of the game, and
&lt;br&gt;&amp;gt; that GNU heaven is happy with the status quo, integer arithmetic &amp;
&lt;br&gt;&amp;gt; all things like that included.
&lt;br&gt;&lt;br&gt;Well, yes. &amp;nbsp;I could `fix' this, but chances are high to break
&lt;br&gt;something. &amp;nbsp;Tabs have a very special meaning in groff files (BTW, the
&lt;br&gt;situation for TeX is comparable); you should really use them only as
&lt;br&gt;advertized.
&lt;br&gt;&lt;br&gt;&amp;gt; I just stated my opinion, I apologize if I offended you.
&lt;br&gt;&lt;br&gt;No offence taken!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Side-coments-tp26318621p26347486.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26344372</id>
	<title>Re: Side coments</title>
	<published>2009-11-13T14:13:45Z</published>
	<updated>2009-11-13T14:13:45Z</updated>
	<author>
		<name>Miklos Somogyi</name>
	</author>
	<content type="html">&lt;br&gt;Werner,
&lt;br&gt;&lt;br&gt;Thank you for the mild rebuke, but info.groff is not exactly my friend.
&lt;br&gt;&lt;br&gt;We are talking about a silly bug that could be fixed in a few minutes. &amp;nbsp;
&lt;br&gt;Much more work is to document it, to circumvent it, writing e-mails
&lt;br&gt;back-n-forth about it. The idea that whilst I am working on something, &amp;nbsp;
&lt;br&gt;I need to be interrupted with a tour to info.groff
&lt;br&gt;about trailing spaces and tabs does not appeal to me.
&lt;br&gt;&lt;br&gt;But I accept that for you &amp;quot;legacy&amp;quot; is the name of the game, and that &amp;nbsp;
&lt;br&gt;GNU heaven is happy with the status quo, integer
&lt;br&gt;arithmetic &amp; all things like that included. I just stated my opinion, &amp;nbsp;
&lt;br&gt;I apologize if I offended you.
&lt;br&gt;&lt;br&gt;Miklos
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 14/11/2009, at 00:51 AM, Werner LEMBERG wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This is a rather inelegant solution but it works.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Interesting thing:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; .so file\&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; does not work (utter chaos)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ??? &amp;nbsp;This works just fine. &amp;nbsp;Are you perhaps missing a final newline?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; .so file &amp;lt;tabs&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; \&amp;quot; does not work
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is for compatibility with legacy troff; this limitation was there
&lt;br&gt;&amp;gt; from the beginning and is well-documented.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; PS I did not know that I can ignore &amp;quot; at the start of the string
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is documented too. &amp;nbsp;`info groff' is your friend...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Werner
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Side-coments-tp26318621p26344372.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26344305</id>
	<title>Re: Polish characters.</title>
	<published>2009-11-13T14:06:42Z</published>
	<updated>2009-11-13T14:06:42Z</updated>
	<author>
		<name>Jacek Sobczak</name>
	</author>
	<content type="html">Thank you. I've installed a font with polish glyphs as described in
&lt;br&gt;the grops man page. Now I can produce ps files with polish diacritics.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jacek
&lt;br&gt;&lt;br&gt;2009/11/13 Werner LEMBERG &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26344305&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wl@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; I cannot get all polish special characters in postscript output. The
&lt;br&gt;&amp;gt;&amp;gt; command I invoke is &amp;quot;groff -k -mom -Tps test.mom &amp;gt;test.ps&amp;quot;. I can
&lt;br&gt;&amp;gt;&amp;gt; see in the resulting ps file only the characters ć, ó, ł - missing
&lt;br&gt;&amp;gt;&amp;gt; are ą, ż, ś, ź, ę, ń.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I suspect that you don't have PostScript fonts which support those
&lt;br&gt;&amp;gt; glyphs.  For example, there is no `eogonek' in the TR font.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Polish-characters.-tp26327564p26344305.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26349911</id>
	<title>footnote continues emptily to next page</title>
	<published>2009-11-13T08:36:32Z</published>
	<updated>2009-11-13T08:36:32Z</updated>
	<author>
		<name>M.Douglas.McIlroy</name>
	</author>
	<content type="html">A trouble with footnotes in text processed with groff -ms -e.
&lt;br&gt;&lt;br&gt;The footnote in the attached document is inappropriately continued
&lt;br&gt;to the next page, where an apparently bare footnote separator
&lt;br&gt;appears.
&lt;br&gt;&lt;br&gt;Tests done with groff 1.20.1.
&lt;br&gt;&lt;br&gt;[I suppose the continuation was caused by white space
&lt;br&gt;generated by .EN--apparently a pernicious analog of the
&lt;br&gt;relatively harmless ancient troff bug of sometimes emitting
&lt;br&gt;a blank page after the end of a document.]
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;bug-groff mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26349911&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bug-groff@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-groff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-groff&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;anomalousfootnote.ms&lt;/strong&gt; (165 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26349911/0/anomalousfootnote.ms&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---Bugs-f1674.html&quot; embed=&quot;fixTarget[1674]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/footnote-continues-emptily-to-next-page-tp26349911p26349911.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336889</id>
	<title>Re: Side coments</title>
	<published>2009-11-13T05:51:25Z</published>
	<updated>2009-11-13T05:51:25Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; This is a rather inelegant solution but it works.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Interesting thing:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; .so file\&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; does not work (utter chaos)
&lt;br&gt;&lt;br&gt;??? &amp;nbsp;This works just fine. &amp;nbsp;Are you perhaps missing a final newline?
&lt;br&gt;&lt;br&gt;&amp;gt; .so file &amp;lt;tabs&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; \&amp;quot; does not work
&lt;br&gt;&lt;br&gt;This is for compatibility with legacy troff; this limitation was there
&lt;br&gt;from the beginning and is well-documented.
&lt;br&gt;&lt;br&gt;&amp;gt; PS I did not know that I can ignore &amp;quot; at the start of the string
&lt;br&gt;&lt;br&gt;This is documented too. &amp;nbsp;`info groff' is your friend...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Side-coments-tp26318621p26336889.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336833</id>
	<title>Re: Side coments</title>
	<published>2009-11-13T05:47:55Z</published>
	<updated>2009-11-13T05:47:55Z</updated>
	<author>
		<name>Tadziu Hoffmann</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; Thanks but a string defined by DS (where from?) is not
&lt;br&gt;&amp;gt; accepted as a parameter to a macro.
&lt;br&gt;&lt;br&gt;Not sure what you mean. &amp;nbsp;&amp;quot;.DS&amp;quot; is just a wrapper around &amp;quot;.ds&amp;quot;
&lt;br&gt;with the purpose of processing the arguments through groff's
&lt;br&gt;macro argument parser, which allows you to enclose arguments
&lt;br&gt;in double quotes and therefore enables you to terminate the
&lt;br&gt;argument already before the whitespace preceding the comment
&lt;br&gt;escape.
&lt;br&gt;&lt;br&gt;Here's a modified version which redefines &amp;quot;.ds&amp;quot; with new
&lt;br&gt;semantics:
&lt;br&gt;&lt;br&gt;.rn ds ds-orig
&lt;br&gt;.de ds
&lt;br&gt;.ds-orig \\$1 &amp;quot;\\$2
&lt;br&gt;..
&lt;br&gt;Demo:
&lt;br&gt;.ds yy &amp;quot; foo bar &amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; argument terminated by 2nd double quote
&lt;br&gt;-\*(yy-
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Side-coments-tp26318621p26336833.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26335764</id>
	<title>Re: Polish characters.</title>
	<published>2009-11-13T04:19:08Z</published>
	<updated>2009-11-13T04:19:08Z</updated>
	<author>
		<name>Ted.Harding-2</name>
	</author>
	<content type="html">On 12-Nov-09 23:44:11, Werner LEMBERG wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I cannot get all polish special characters in postscript output.
&lt;br&gt;&amp;gt;&amp;gt; The command I invoke is &amp;quot;groff -k -mom -Tps test.mom &amp;gt;test.ps&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt; I can see in the resulting ps file only the characters Ä, Ã³,
&lt;br&gt;&amp;gt;&amp;gt; Å - missing are Ä, Å¼, Å, Åº, Ä, Å.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I suspect that you don't have PostScript fonts which support those
&lt;br&gt;&amp;gt; glyphs. &amp;nbsp;For example, there is no `eogonek' in the TR font.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Werner
&lt;/div&gt;&lt;br&gt;It can be done -- there is indeed an ogonek in the standard PostScript
&lt;br&gt;fonts. According to the classical PostScript Reference Manual, it is
&lt;br&gt;at position 236 [oc\tal] in the ISOLatin1 ecncoding.
&lt;br&gt;&lt;br&gt;However, in groff's .../devps/TR file, it is listed at position
&lt;br&gt;0230 (so there seems to have some change here), and it has groff
&lt;br&gt;name \[ho].
&lt;br&gt;&lt;br&gt;There is also an l-slash listed at position 0234, groff name \[l/],
&lt;br&gt;which again in the PostScript Reference Manual is given at position
&lt;br&gt;370 [octal].
&lt;br&gt;&lt;br&gt;Apart from the l-slash, all the others can be built as composite
&lt;br&gt;glyphs using accent-definitions.
&lt;br&gt;&lt;br&gt;As an example, in the ms-macros you can find (under .\&amp;quot; Accents)
&lt;br&gt;the following:
&lt;br&gt;&lt;br&gt;.de acc*over-def
&lt;br&gt;.ds \\$1 \Z'\v'(u;\w'x'*0+\En[rst]-\En[.cht])'\
&lt;br&gt;\h'(u;-\En[skw]+(-\En[.w]-\w'\\$2'/2)+\En[.csk])'\\$2'
&lt;br&gt;..
&lt;br&gt;.de acc*under-def
&lt;br&gt;.ds \\$1 \Z'\v'\En[.cdp]u'\h'(u;-\En[.w]-\w'\\$2'/2)'\\$2'
&lt;br&gt;..
&lt;br&gt;&lt;br&gt;and then you can define 
&lt;br&gt;&lt;br&gt;.acc*over-def ' \'
&lt;br&gt;.acc*over-def dot \[a.]
&lt;br&gt;.char \[ogon] \h'0.5m'\[ho]
&lt;br&gt;.acc*under-def og \[ogon]
&lt;br&gt;.char \[A,] A\*[og]
&lt;br&gt;.char \[N'] N\*'
&lt;br&gt;.char \[Z.] Z\*[dot]
&lt;br&gt;&lt;br&gt;Now look at the results of the following:
&lt;br&gt;&lt;br&gt;\[A,]\0\0\[N']\0\0\[Z.]
&lt;br&gt;&lt;br&gt;&lt;br&gt;These are only examples. I will post the full details later
&lt;br&gt;(probably not today, since I am short of time right now).
&lt;br&gt;But the above may serve as templates for you to work it out
&lt;br&gt;for yourself!
&lt;br&gt;&lt;br&gt;Hoping this helps,
&lt;br&gt;Ted.
&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;E-Mail: (Ted Harding) &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26335764&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ted.Harding@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Fax-to-email: +44 (0)870 094 0861
&lt;br&gt;Date: 13-Nov-09 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time: 12:18:55
&lt;br&gt;------------------------------ XFMail ------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Polish-characters.-tp26327564p26335764.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26335219</id>
	<title>Re: Side coments</title>
	<published>2009-11-13T03:29:42Z</published>
	<updated>2009-11-13T03:29:42Z</updated>
	<author>
		<name>Miklos Somogyi</name>
	</author>
	<content type="html">&lt;br&gt;Tadziu,
&lt;br&gt;&lt;br&gt;Thanks but a string defined by DS (where from?) is not accepted as a &amp;nbsp;
&lt;br&gt;parameter
&lt;br&gt;to a macro.
&lt;br&gt;&lt;br&gt;Miklos
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 13/11/2009, at 02:12 AM, Tadziu Hoffmann wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; and groff is misbehaving if \&amp;quot; starts with tabs and/or spaces.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The only situation I can think of where comments can't have
&lt;br&gt;&amp;gt; preceding whitespace is &amp;quot;.ds&amp;quot;, and this can be worked around
&lt;br&gt;&amp;gt; by something like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; .de DS
&lt;br&gt;&amp;gt; .ds \\$1 \\$2
&lt;br&gt;&amp;gt; ..
&lt;br&gt;&amp;gt; Demo:
&lt;br&gt;&amp;gt; .ds xx foo bar &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; space belongs to string
&lt;br&gt;&amp;gt; .DS yy &amp;quot;foo bar&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; not here
&lt;br&gt;&amp;gt; -\*(xx-
&lt;br&gt;&amp;gt; -\*(yy-
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Side-coments-tp26318621p26335219.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26335143</id>
	<title>Re: Side coments</title>
	<published>2009-11-13T03:24:42Z</published>
	<updated>2009-11-13T03:24:42Z</updated>
	<author>
		<name>Miklos Somogyi</name>
	</author>
	<content type="html">&lt;br&gt;Thank you Werner,
&lt;br&gt;&lt;br&gt;This is a rather inelegant solution but it works.
&lt;br&gt;&lt;br&gt;Interesting thing:
&lt;br&gt;&lt;br&gt;.so file\&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; does not work (utter chaos)
&lt;br&gt;.so file &amp;lt;tabs&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; \&amp;quot; does not work
&lt;br&gt;.so file &amp;lt;spaces. &amp;nbsp; \&amp;quot; it does work
&lt;br&gt;&lt;br&gt;Oh my...
&lt;br&gt;&lt;br&gt;Miklos
&lt;br&gt;&lt;br&gt;PS I did not know that I can ignore &amp;quot; at the start of the string
&lt;br&gt;&lt;br&gt;On 13/11/2009, at 10:12 AM, Werner LEMBERG wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'd like to add
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; \&amp;quot; side comments, aligned
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; to a few things, e.g.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; .so setup
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; .ds HE &amp;quot;Something - &amp;quot; App 8
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; and groff is misbehaving if \&amp;quot; starts with tabs and/or spaces.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There is an escape that can close such things immediately and let me
&lt;br&gt;&amp;gt;&amp;gt; use \&amp;quot; all aligned at the right.
&lt;br&gt;&amp;gt;&amp;gt; Just I can't find it. Tell me please.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can repeat \&amp;quot;, like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;.ds foo This is a string\&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; yes, it is a string
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Or do you mean something different?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Werner
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Side-coments-tp26318621p26335143.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26328691</id>
	<title>Re: Polish characters.</title>
	<published>2009-11-12T15:44:11Z</published>
	<updated>2009-11-12T15:44:11Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; I cannot get all polish special characters in postscript output. The
&lt;br&gt;&amp;gt; command I invoke is &amp;quot;groff -k -mom -Tps test.mom &amp;gt;test.ps&amp;quot;. I can
&lt;br&gt;&amp;gt; see in the resulting ps file only the characters ć, ó, ł - missing
&lt;br&gt;&amp;gt; are ą, ż, ś, ź, ę, ń.
&lt;br&gt;&lt;br&gt;I suspect that you don't have PostScript fonts which support those
&lt;br&gt;glyphs. &amp;nbsp;For example, there is no `eogonek' in the TR font.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Polish-characters.-tp26327564p26328691.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26328292</id>
	<title>Re: Side coments</title>
	<published>2009-11-12T15:12:57Z</published>
	<updated>2009-11-12T15:12:57Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'd like to add
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; side comments, aligned
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; to a few things, e.g.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;.so setup
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;.ds HE &amp;quot;Something - &amp;quot; App 8
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and groff is misbehaving if \&amp;quot; starts with tabs and/or spaces.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is an escape that can close such things immediately and let me
&lt;br&gt;&amp;gt; use \&amp;quot; all aligned at the right.
&lt;br&gt;&amp;gt; Just I can't find it. Tell me please.
&lt;/div&gt;&lt;br&gt;You can repeat \&amp;quot;, like this:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; .ds foo This is a string\&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; yes, it is a string
&lt;br&gt;&lt;br&gt;Or do you mean something different?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Side-coments-tp26318621p26328292.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26327564</id>
	<title>Polish characters.</title>
	<published>2009-11-12T14:19:00Z</published>
	<updated>2009-11-12T14:19:00Z</updated>
	<author>
		<name>Jacek Sobczak</name>
	</author>
	<content type="html">Hello everybody,
&lt;br&gt;&lt;br&gt;I cannot get all polish special characters in postscript output. The
&lt;br&gt;command I invoke is &amp;quot;groff -k -mom -Tps test.mom &amp;gt;test.ps&amp;quot;. I can see
&lt;br&gt;in the resulting ps file only the characters ć, ó, ł - missing are ą,
&lt;br&gt;ż, ś, ź, ę, ń. Exactly the same happens to the corresponding capitals.
&lt;br&gt;With the command &amp;quot;groff -k -mom -Tutf8 test.mom&amp;quot; all the special
&lt;br&gt;characters are properly displayed on the console. The version of groff
&lt;br&gt;is 1.20.1 on Debian. What could be wrong?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jacek
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Polish-characters.-tp26327564p26327564.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26320766</id>
	<title>Re: Side coments</title>
	<published>2009-11-12T07:12:36Z</published>
	<updated>2009-11-12T07:12:36Z</updated>
	<author>
		<name>Tadziu Hoffmann</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; and groff is misbehaving if \&amp;quot; starts with tabs and/or spaces.
&lt;br&gt;&lt;br&gt;The only situation I can think of where comments can't have
&lt;br&gt;preceding whitespace is &amp;quot;.ds&amp;quot;, and this can be worked around
&lt;br&gt;by something like
&lt;br&gt;&lt;br&gt;.de DS
&lt;br&gt;.ds \\$1 \\$2
&lt;br&gt;..
&lt;br&gt;Demo:
&lt;br&gt;.ds xx foo bar &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; space belongs to string
&lt;br&gt;.DS yy &amp;quot;foo bar&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;\&amp;quot; not here
&lt;br&gt;-\*(xx-
&lt;br&gt;-\*(yy-
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Side-coments-tp26318621p26320766.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26321635</id>
	<title>Re: (groff+)ghostscript/us letter/paper size problems</title>
	<published>2009-11-12T06:49:13Z</published>
	<updated>2009-11-12T06:49:13Z</updated>
	<author>
		<name>Louis Guillaume-2</name>
	</author>
	<content type="html">Mike Bishop wrote:
&lt;br&gt;&amp;gt; I have just spent a happy hour PULLING MY HAIR OUT over misformatted 
&lt;br&gt;&amp;gt; troff documents on my printers ... which printed perfectly several
&lt;br&gt;&amp;gt; months ago. &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The problem is that recent versions of ghostscript will (often)
&lt;br&gt;&amp;gt; assume a4 paper size, regardless of /etc/paper. &amp;nbsp;This applies
&lt;br&gt;&amp;gt; after ghostscript 8.64-5 but I am not sure which version (8.70 has
&lt;br&gt;&amp;gt; the problem).
&lt;br&gt;&lt;br&gt;I don't know much about how this is &amp;quot;supposed&amp;quot; to work with /etc/paper 
&lt;br&gt;or /etc/papersize. I always thought those were ghostscript or grops things.
&lt;br&gt;&lt;br&gt;If you need to explicitly define a paper size for groff to use (that 
&lt;br&gt;isn't the default) I think you need: `-dpaper=letter' in addition to 
&lt;br&gt;`-P-pletter'. The latter is for grops.
&lt;br&gt;&lt;br&gt;Louis
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%28groff%2B%29ghostscript-us-letter-paper-size-problems-tp26262452p26321635.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26318621</id>
	<title>Side coments</title>
	<published>2009-11-12T05:23:06Z</published>
	<updated>2009-11-12T05:23:06Z</updated>
	<author>
		<name>Miklos Somogyi</name>
	</author>
	<content type="html">I'd like to add
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; \&amp;quot; side comments, aligned
&lt;br&gt;&lt;br&gt;to a few things, e.g.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .so setup
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .ds HE &amp;quot;Something - &amp;quot; App 8
&lt;br&gt;&lt;br&gt;and groff is misbehaving if \&amp;quot; starts with tabs and/or spaces.
&lt;br&gt;&lt;br&gt;There is an escape that can close such things immediately and let me &amp;nbsp;
&lt;br&gt;use \&amp;quot; all aligned at the right.
&lt;br&gt;Just I can't find it. Tell me please.
&lt;br&gt;&lt;br&gt;Miklos
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Side-coments-tp26318621p26318621.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26273173</id>
	<title>Re: (groff+)ghostscript/us letter/paper size problems</title>
	<published>2009-11-09T09:31:47Z</published>
	<updated>2009-11-09T09:31:47Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; The solution is described here--
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://ghostscript.com/pipermail/gs-devel/2009-September/008565.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ghostscript.com/pipermail/gs-devel/2009-September/008565.html&lt;/a&gt;&lt;br&gt;&amp;gt; and consists of passing an explicit &amp;quot;-P-pletter&amp;quot; when formatting
&lt;br&gt;&amp;gt; your groff source; &amp;quot;groff -pletter ...&amp;quot; doesn't make it on my
&lt;br&gt;&amp;gt; system. &amp;nbsp;Neither did modifying &amp;quot;gs_init.ps&amp;quot; (?)
&lt;br&gt;&lt;br&gt;groff option `-p' doesn't take a parameter; it just tells groff to
&lt;br&gt;also use the `pic' preprocessor while processing the data.
&lt;br&gt;&lt;br&gt;There's another solution described in groff_font(5): Modify the file
&lt;br&gt;&lt;br&gt;&amp;nbsp; /usr/share/groff/1.20.1/font/devps/DESC
&lt;br&gt;&lt;br&gt;(or the one in /usr/local/... or whereever) and set up a useful value
&lt;br&gt;for the `papersize' parameter. &amp;nbsp;A good value is
&lt;br&gt;&lt;br&gt;&amp;nbsp; papersize &amp;nbsp;/etc/papersize letter
&lt;br&gt;&lt;br&gt;If the file `/etc/papersize' contains the system wide paper size in
&lt;br&gt;its first line, it is used. &amp;nbsp;If the file is missing, the next argument
&lt;br&gt;`letter' is taken as a fallback.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%28groff%2B%29ghostscript-us-letter-paper-size-problems-tp26262452p26273173.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26262452</id>
	<title>(groff+)ghostscript/us letter/paper size problems</title>
	<published>2009-11-08T23:58:28Z</published>
	<updated>2009-11-08T23:58:28Z</updated>
	<author>
		<name>Mike Bishop</name>
	</author>
	<content type="html">I have just spent a happy hour PULLING MY HAIR OUT over misformatted 
&lt;br&gt;troff documents on my printers ... which printed perfectly several
&lt;br&gt;months ago. &amp;nbsp;
&lt;br&gt;&lt;br&gt;The problem is that recent versions of ghostscript will (often)
&lt;br&gt;assume a4 paper size, regardless of /etc/paper. &amp;nbsp;This applies
&lt;br&gt;after ghostscript 8.64-5 but I am not sure which version (8.70 has
&lt;br&gt;the problem).
&lt;br&gt;&lt;br&gt;If you use ISO standard paper sizes you are probably okay.
&lt;br&gt;&lt;br&gt;The solution is described here--
&lt;br&gt;&lt;a href=&quot;http://ghostscript.com/pipermail/gs-devel/2009-September/008565.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ghostscript.com/pipermail/gs-devel/2009-September/008565.html&lt;/a&gt;&lt;br&gt;and consists of passing an explicit &amp;quot;-P-pletter&amp;quot; when formatting
&lt;br&gt;your groff source; &amp;quot;groff -pletter ...&amp;quot; doesn't make it on my
&lt;br&gt;system. &amp;nbsp;Neither did modifying &amp;quot;gs_init.ps&amp;quot; (?)
&lt;br&gt;&lt;br&gt;Other postscript generating programs may do this explicitly
&lt;br&gt;(evince does). &amp;nbsp;surf/zathura users may wish to take note.
&lt;br&gt;&lt;br&gt;Hoping this saves you hair,
&lt;br&gt;&lt;br&gt;Rgds,
&lt;br&gt;--
&lt;br&gt;Mike (baldy) Bishop 
&lt;br&gt;Willow, Alaska
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%28groff%2B%29ghostscript-us-letter-paper-size-problems-tp26262452p26262452.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26102121</id>
	<title>Setting pdf document properties</title>
	<published>2009-10-28T14:05:51Z</published>
	<updated>2009-10-28T14:05:51Z</updated>
	<author>
		<name>smoore</name>
	</author>
	<content type="html">&lt;br&gt;continuing with this stream ....
&lt;br&gt;&lt;br&gt;I have a request to set page display preferences,
&lt;br&gt;Page Layout to 'Single Page Continuous' and Zoom to
&lt;br&gt;'Fit Width'.
&lt;br&gt;&lt;br&gt;I am having some challenge finding the correct language
&lt;br&gt;reference to determine whether this is possible with
&lt;br&gt;gs pdfwrite.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-pdf-document-properties-tp26102121p26102121.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26100437</id>
	<title>Re: Fw: tbl/eqn: # does not work as delimiter</title>
	<published>2009-10-28T11:53:08Z</published>
	<updated>2009-10-28T11:53:08Z</updated>
	<author>
		<name>Werner LEMBERG</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; In your update to eqn.man, I see: [...]
&lt;br&gt;&lt;br&gt;Fixed, thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Groff---General-f1673.html&quot; embed=&quot;fixTarget[1673]&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Groff - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fw%3A-tbl-eqn%3A---does-not-work-as-delimiter-tp26055824p26100437.html" />
</entry>

</feed>
