by the insult, too. Not sure what to make of it.
On the surface, it says "Bjarni is less competent that he believes
himself to be." (Or *more* competent, if one follows D-K to its
usual conclusion, but context negates that interpretation.) What on
earth is a comment like this d
was produced cover-to-cover with the mom macros and generated
with a single call to groff (pdfmon, actually, which is a wrapper
for direct pdf output).
--
Peter Schaffter
https://www.schaffter.ca
ark
is by a country mile more scannable/readable than
> x X ps:exec [/Dest /pdf:bm1 /View [/FitH 5001 u] /DEST pdfmark
> x X ps:exec [/Dest /pdf:bm1 /Title (\[u039A]\[u03B1]\[u03BB]\[u03AC] \[u03C7]\
> [u03C1]\[u03B9]\[u03C3]\[u03C4]\[u03BF]\[u03CD]\[u03B3]\[u03B5]\[u03BD]\
> [u
s. Mom uses HEADER_LEFT,
HEADER_CENTER, and HEADER_RIGHT to establish what goes in page
headers. It seemed to me that, e.g.,
.HEADER_LEFT "\[graphic]
would be simplest. There are, of course, other ways.
--
Peter Schaffter
https://www.schaffter.ca
it upward, and leave the drawing
> position at the diversion's bottom-RIGHT corner.)
Is it worth fixing this, too? The uses of diversion glyphs are few.
Documenting the anomalous drawing behaviour might be all that's
required.
--
Peter Schaffter
https://www.schaffter.ca
, think chronologically about output. This hit
home when Branden said of .wh a while ago that the mnemonic was for
"where" whereas I always think of it as "when."
--
Peter Schaffter
https://www.schaffter.ca
o test this out.
The mapped diversion requires a glyph--any glyph--beforehand or it
won't output in position (hence the whited-out period kludge). Can
anyone explain why this is?
--
Peter Schaffter
https://www.schaffter.ca
.\" 1.23.0.2146-d958f-dirty
.\" Build with pdfmom(1); output to pd
.
>
> Also .ne is effective in the absence of traps, a fact that groff(7)
> misses, too.
How about
.ne d Spring the next vertical postion trap if it is nearer than
distance d (default scaling unit v). In the absence of a
trap, break to a new page if page botto
Deri --
On Thu, Sep 05, 2024, Deri wrote:
> Hi Peter,
>
> There is a way for -Tpdf, I just have not written it yet! When I do, you get
> text hi-light, score through, and squiggly line as a bonus, they are all
> related.
Gropdf to the rescue.
--
Peter Schaffter
https://www.schaffter.ca
RSCORE uses \D'l ...',
which does not span lines, a limitation mitigated by there being no
restriction on the chosen output device.
--
Peter Schaffter
https://www.schaffter.ca
om has macros to
facilitate both (plus letter-pair kerning). Not sure about the
other macro packages.
That said, no matter how you tighten or loosen a line, it must not
be noticeable.
--
Peter Schaffter
https://www.schaffter.ca
On Wed, Aug 28, 2024, Tadziu Hoffmann wrote:
>
> I suspect conventions might be strongly regionally
> dependent.
Indeed. My bias is entirely North American.
--
Peter Schaffter
https://www.schaffter.ca
scaling, so the only change needed in mom is to the
documentation, instructing users to call on pdfinfo(1) for pdf image
dimensions and identify(1) for everything else.
--
Peter Schaffter
https://www.schaffter.ca
pace, q.v.
Given the clarity and former prevalence of these conventions,
I can't see any reason why documents intended for the terminal
shouldn't observe them.
--
Peter Schaffter
https://www.schaffter.ca
I can shoehorn Debian's 'experimental'
imagemagick/perlmagick into my Ubuntu 22.04 and test.
--
Peter Schaffter
https://www.schaffter.ca
which would solve
> the problem of some versions of identify returning incorrect data.
Makes sense for now.
> You say that jpg and jp2 are "almost" correct. What is the issue?
The "almost" refers only to the wrong size pdf output. jpg and jp2
are fine.
--
Peter Schaffter
https://www.schaffter.ca
Branden --
On Wed, Aug 21, 2024, G. Branden Robinson wrote:
> So please await a full answer, but in the meantime, the warnings
> are restored so that it's easier for me to tell when I've fixed
> what causes them.
Understood.
--
Peter Schaffter
https://www.schaffter.ca
te).
I haven't seen these messages for a while, so I was a bit surprised.
--
Peter Schaffter
https://www.schaffter.ca
implemented
switching between typewritten and typeset copy of the same
document (with the PRINTSTYLE directive), a functionality I find
indispensable for generating hard copies of drafts for blue
penciling.
My way of saying, "Don't be afraid of the t-word." Neatly
formatte
t; Does this mean the problem doesn't happen for the ps device? Or
> have you not tried that?
Tested. The problem affects -Tps as well. The best solution is to
use the urw fonts, which render fine. Should a ticket be opened
on savannah for the built-in fonts?
--
Peter Schaffter
https://www.schaffter.ca
Branden --
Deri sent me privately an amended gropdf that fixes the issue. I
missed a couple of commit messages this morning but I believe he has
pushed the changes to the repo.
--
Peter Schaffter
https://www.schaffter.ca
'll do another bisect to see where the 'u]' started creeping in, but it
> looks to me like there's more than one problem to solve.
I rather suspected it might be the tip of an iceberg.
--
Peter Schaffter
https://www.schaffter.ca
the scaling unit and closing
delimiter of the \s inline being interpreted as literal text when
the text of a heading with \*[COND] is passed to pdfbookmark.
--
Peter Schaffter
https://www.schaffter.ca
m release. For now,
1. Open the file om.tmac.
2. Look for .MAC ITEM END
3. Add this line immediately underneath
.if \\n[#START]+\\n[@TOP]>0 .RESTORE_SPACE
--
Peter Schaffter
https://www.schaffter.ca
ng
or decreasing the size of the bullets, or, in your case, increasing
the gutter between the bullet and the text.
--
Peter Schaffter
https://www.schaffter.ca
of advice: As a general rule, it is preferable to insert
blank lines (visual spacers) into mom text files by putting a period
(dot) at the start of the line, like so
.PAPER A4
.
.TITLE "Some Title"
--
Peter Schaffter
https://www.schaffter.ca
list-test.pdf
Description: Adobe PDF document
On Sun, Mar 24, 2024, Steve Izma wrote:
> Do you remember what the costs of the Linotronic machines would
> have been?
IIRC, the 202 cost between $40,000 and $60,00 at the end of the
eighties. The 300 series ran about $60,000.
--
Peter Schaffter
https://www.schaffter.ca
MacIIfx
computers. I wouldn't call those Macs cheap or hobby-level, not by
a long shot. :)
--
Peter Schaffter
https://www.schaffter.ca
files with a mapped key in vim(1). The key
invokes a script that throws -Kutf8 -e -t -p -R -s -G at groff
regardless of which preprocessors are needed, if any. I've never
noticed a performance penalty. The -A option might be a good idea.
--
Peter Schaffter
https://www.schaffter.ca
ing to ps2ps imposes no penalty on the mom documentation,
which explicitly instructs users to acquire and install the psutils
package if it is not already on their system.
--
Peter Schaffter
https://www.schaffter.ca
patch and send it to me.
> If that is done (regardless of who does it), I can also chop out the `ie
> d PRINTSTYLE` branches from pdf.tmac shown below.
Which would address Doug's concern about PRINTSTYLE (mom specific
macro) appearing in pdf.tmac, which should be macroset agnostic.
--
P
ith Palatino (URW-Palladio) in roman, italic,
bold, and bold-italic. Nothing special is required to access the
fonts. The single-letter identifier is P, thus
.ft PR = Palatino roman
.ft PI = Palatino italic
etc.
--
Peter Schaffter
https://www.schaffter.ca
>
> It looks idiomatic enough to me. You can expect this change in my next
> push. Thanks!
Deri sent me a patch this morning. I've applied and tested it.
Fixes the issue. If you want, I can push the change.
--
Peter Schaffter
https://www.schaffter.ca
atively, I suppose the documentation for -K could simply be
amended to read "don't use -k with -K" (though more elegantly
worded) instead of "implies -k".
--
Peter Schaffter
https://www.schaffter.ca
Hi, Branden.
On Mon, Feb 19, 2024, G. Branden Robinson wrote:
> At 2024-02-19T12:39:53-0500, Peter Schaffter wrote:
> > Your minimal file renders fine on my system without -Kutf8 *and* I
> > recently encountered a file with a single accented character where
> > passing -Kutf8
s.
.LABELS IMG FONT R
.PDF_IMAGE myimage.pdf 5c 5c \
LABEL "Label that looks like a caption."
The output will have the LABEL text underneath the image, as
expected (even though here it serves as a caption) and the image
will appear in the List of Figures as "Label that looks like a
caption."
--
Peter Schaffter
https://www.schaffter.ca
d for giving the paper size at the command line, and no
need to convert .ps to .pdf.
--
Peter Schaffter
https://www.schaffter.ca
f8 *and* I
recently encountered a file with a single accented character where
passing -Kutf8 had no effect (I had to introduce the character
"silently" in an unused diversion to fix the problem).
--
Peter Schaffter
https://www.schaffter.ca
next,a future} push?
Let me take care of it. I'm planning to push a couple of changes in
the next few days. I'll include it then.
--
Peter Schaffter
https://www.schaffter.ca
oice
on the list.
--
Peter Schaffter
https://www.schaffter.ca
]<=\n[loop] \{\
. TN \" Call remaining tabs with "tab next" to keep on same baseline
. nop \*[glyph]
.\}
.TQ
.
.\" Left
.while (\n[.t]-\n[.v])>\n[.v] \{\
. nop \*[glyph]
.\}
.
.\" Right
.rt
.sp
.RIGHT
.while (\n[.t]-\n[.v])>\n[.v] \{\
. nop \*[glyph]
.\}
.
.\" B
or if it's a gropdf bug.
--
Peter Schaffter
https://www.schaffter.ca
.TITLE "PDF outline test
.COVER TITLE AUTHOR
.AUTHOR "Peter Schaffter
.PRINTSTYLE TYPESET
.AUTO_RELOCATE_TOC
.START
.PP
1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at
ante. Mauris eleifend, q
columns with cutouts for
images. However, floating justified text around an image is a whole
'nother ball of wax.
--
Peter Schaffter
https://www.schaffter.ca
On Fri, Dec 08, 2023, G. Branden Robinson wrote:
> I propose that GNU troff stop behaving like AT&T troff in one aspect of
> end-of-input macro processing, documented in our Texinfo manual.
I'm all for it, for all the reasons given.
--
Peter Schaffter
https://www.schaffter.ca
to say. If you are using 2.6 or 2.6_a and the problem
persists, please send me a file exhibiting the error. Occasionally,
when testing mom, I inadvertently set up conditions that give
perfect results but which overlook some real world scenarios.
Cheers.
--
Peter Schaffter
https://www.schaffter.ca
w to update, that's all.
> 2. In groff_mom there's a link to the local html manual (/usr/share/doc/
> groff-1.23.0/html/mom/toc.html), but most recent version of Groff on Arch
> Linux
> doesn't include the html pages, at least not where the points to.
Branden? Anyone?
--
Peter Schaffter
https://www.schaffter.ca
arball of the fixed version (2.6_a) from the mom website:
https://www.schaffter.ca/mom/mom-05.html#most-recent-release
--
Peter Schaffter
https://www.schaffter.ca
Heinz-Jürgen --
On Tue, Aug 29, 2023, Peter Schaffter wrote:
> On Tue, Aug 29, 2023, Heinz-Jürgen Oertel wrote:
> > I'm translating from English to German so I have to overtake more
> > ore less the long heading lines from a book. Using mom i can
> > split the tex
y
> possibly required additional space. See the attached example.
The example was enormously helpful. There's light at the end of my
TOC multi-line entry tunnel.
--
Peter Schaffter
https://www.schaffter.ca
got
it now.
--
Peter Schaffter
https://www.schaffter.ca
Branden --
On Sat, Sep 02, 2023, G. Branden Robinson wrote:
> > Question 1:
> > Is \a only interpreted in copy mode as this would suggest?
>
> Yes. This has been documented for a long time, but I don't think very
> clearly.
Precisely why I asked. :)
> Until (he boasted) groff 1.23.0.
> ...
>
quot; is
justification for adopting an "it doesn't matter" attitude, at least
not in this case.
--
Peter Schaffter
https://www.schaffter.ca
and some leader.
Question 3:
Why do the leaders not respect .ta \n[.l]u?
--
Peter Schaffter
https://www.schaffter.ca
es in mom. For very long titles
there's TITLE_SHORT, but nothing equivalent for headings.
I'm working on a solution.
--
Peter Schaffter
https://www.schaffter.ca
dd to be discovering this for the first time after
decades of preparing documents. Live and learn.
--
Peter Schaffter
https://www.schaffter.ca
s the problem
with the initial mangled glyph. Try adding
.\"ô
or similar to the end of chats_1 and processing it to see what I mean.
I'm not sure if this is new behaviour because I can't
recall ever creating a document with only one accented glyph.
Ideas, anyone?
--
Peter Schaff
ler. I use it frequently.
--
Peter Schaffter
https://www.schaffter.ca
; for your tireless work in making groff more featureful, more portable,
> better documented, and less buggy.
Hear, hear!
--
Peter Schaffter
https://www.schaffter.ca
Quite so. I apologise for my carelessness nonetheless. The last
thing we needed was a hitch in the 1.23 release.
--
Peter Schaffter
https://www.schaffter.ca
tring.
The latter. It affects all the graphical object macros. I've
pushed the fix. 'typesetting.mom' should now build without error.
--
Peter Schaffter
https://www.schaffter.ca
no "past" words preceding it.
Cheers.
--
Peter Schaffter
https://www.schaffter.ca
On Fri, Jun 09, 2023, G. Branden Robinson wrote:
> At 2023-06-09T02:02:48-0400, Peter Schaffter wrote:
> > Hmm... It might be a subtle point, but mom already compensates for
> > it any time \D't n' is used to set line weight in a macro.
>
> Ah. Unless you compen
Not sure how
germane this is but I thought I should mention it.
--
Peter Schaffter
https://www.schaffter.ca
ither.
> > Also, how do I force a column to break? .bp forces a page break, it
> > does not break a column.
Mom has .COL_NEXT (quad and break) and .COL_BREAK (force justify
["spread"] and break).
--
Peter Schaffter
https://www.schaffter.ca
n, but the fix is simple. Replace the PAGEWIDTH macro in
your om.tmac with
.MAC PAGEWIDTH END
.br
.nr #PAGE_WIDTH \\$1
.if !r#L_MARGIN .L_MARGIN \\n[.o]
.if !r#R_MARGIN .R_MARGIN 1i
.if '\\*[.T]'pdf' \X'papersize=\\n[#PAGE_WIDTH]z,\\n[#PAGE_LENGTH]z'\c
.END
--
Peter Schaffter
https://www.schaffter.ca
nt results when processing with tbl, i.e. you are
not seeing the error messages. Given that an older version of tbl
does not report any errors, it would seem the problem is with tbl in
1.23.0.rc4, however I wouldn't bet the farm on it.
--
Peter Schaffter
https://www.schaffter.ca
is empty (except for the header) and
> "Second heading" is pushed back to page 3. Without the .NEWPAGE,
> "Second heading" is on page 2 as it should be but too low.
I'm unable to reproduce either of these problems with mom 2.5_c. As
posted earlier, I suspect updating your version of mom may be all
that's required.
--
Peter Schaffter
https://www.schaffter.ca
27;--if I give groff an
> input document consisting solely of this:
>
> .PRINTSTYLE TYPESET
>
> ...so much of this output may be a red herring
It is.
> For the time being I propose we back off of '-ww' usage with mom(7).
> I'm not sure it is helping illuminate anything.
Agreed.
> Maybe passing the white-gloved barracks inspection can be an objective
> for mom 2.6. ;-)
Cheers.
--
Peter Schaffter
https://www.schaffter.ca
If not, you can get it at
https://www.schaffter.ca/mom/mom-2.5_c.tar.gz
The mom version that ships with 1.22.3 is quite out of date; this
may have a bearing on your problem.
--
Peter Schaffter
https://www.schaffter.ca
Sorry for top-quoting Branden's reply _in toto_ but it will make
replying easier.
On Sun, Apr 23, 2023, G. Branden Robinson wrote:
> Hi Frederic,
>
> At 2023-04-24T01:37:00+0200, Frederic Chartier wrote:
> > I've stumbled on another problem with -mom. There is a table at
> > the bottom of a page.
t be done ? I don't need or want a document header, if
> that matters, so .DOCHEADER OFF.
With the docheader turned off, insert the macro .HEADER immediately
after .START.
--
Peter Schaffter
https://www.schaffter.ca
Deri --
My emails to you are getting bounced so I'm replying to your latest
on the list.
Fixing the pdf outline pagenumbers is great. Very happy about
it. I'll integrate '.pdfpagenumbering' into mom but leave it
undocumented until after you commit.
Cheers.
--
P
nline at
https://www.schaffter.ca/mom/momdoc/toc.html
PDF usage is covered in a separate document, mom-pdf.pdf, which is
on your system and available online at the mom website.
--
Peter Schaffter
https://www.schaffter.ca
the -z
flag. Formerly,
echo -e ".nr foo 1\n.if r foo .ab\n" | groff -z
would helpfully spit out "User abort." Now there's no way to know
whether groff exited cleanly or aborted unless you add a string
after .ab. (A minor annoyance, but I thought I should mention it.)
--
Peter Schaffter
https://www.schaffter.ca
Before I file a bug report, I'm wondering if this is unique to me.
echo ".ab" | groff -Tutf8
does not print "User abort". (".ab foo" correctly prints "foo".)
My current build is 1.23.0.rc1.3711-25fb.
--
Peter Schaffter
https://www.schaffter.ca
margins before
> executing "NEWPAGE"?
First, make sure to disable adjusted document leading:
.PRINTSTYLE TYPESET
.DOC_LEAD_ADJUST off
Assuming you have page headers and bottom-of-page pagination
enabled:
.HEADER_MARGIN
.HEADER_GAP
.T_MARGIN \n[#HEADER_MARGIN]u+\n[#HEADER_
if it runs deeper, please post with more
details.
--
Peter Schaffter
https://www.schaffter.ca
me, so I can't at present see any
advantage to giving users the option.
--
Peter Schaffter
https://www.schaffter.ca
On Sun, Dec 11, 2022, Wim Stockman wrote:
> I found a small error in the install-font script of Peter Schaffter from
> the mom macros
> Link: https://www.schaffter.ca/mom/bin/install-font.sh
>
> The generated internalname is missing a "-" between font family and
>
its of lint off the pedestals.
--
Peter Schaffter
https://www.schaffter.ca
mand line. (Thanks, Deri!). The one
instance where papersize.tmac needs to be called is when .ps output
is desired and the file consists entirely of presentational
(bare-metal) macros. IOW, quite rare.
--
Peter Schaffter
https://www.schaffter.ca
--- papersize.tmac 2022-11-16 11:56:45.088890965 -0
t; raise amount and width of the graphic.
.ds graphic:1 \v'-\n[depth:1]u'\[graphic:1]\h'\n[width:1]u'
.
.START
.PP
Lorem ipsum \*[graphic:1] dolor sit amet.
.
.\" End inline-graphic template
I'm attaching a pdf of the template.
--
Peter Schaffter
https://www.schaffter.ca
inline-graphic.pdf
Description: Adobe PDF document
er
.PP
Lorem ipsum...
I'm attaching a pdf of a simple, default document with borders added
to demonstrate. If your docs have covers, title pages, a table
of contents, etc. that need borders, they require further special
treatment, which I'm omitting here for the sake of simplicity.
invoking preconv before
soelim? My confusion grows. If soelim, invoked at the start of the
chain, renders the sourced file correctly, it suggests that soelim
is performing preconv magic on it. Why, then, doesn't '-s' do the
same, regardless of preprocessing order?
> Ing
lim main | groff -Tutf8 -k
and
groff -Tutf8 -ks main
should produce identical output, however the -s flag is ignored and
groff spits out garbage. What's up?
--
Peter Schaffter
https://www.schaffter.ca
of contents page.
At a guess, it looks as if gropdf or pdfmark isn't recognizing Cyrillic
characters as valid input for creating pdf bookmarks. I'm at a
loss as to how to overcome this. Ideas?
--
Peter Schaffter
https://www.schaffter.ca
On Sun, Aug 28, 2022, Mike Bianchi wrote:
> I often enjoy listening the Brian Kernighan reminisce and foretell.
> Witness
> Coffee with Brian Kernighan - Computerphile
> https://youtu.be/GNyQxXw_oMQ
Fantastic interview. Thanks, Mike.
--
Peter Schaffter
https://www.schaffter.ca
when it comes to
reading 'download' files (decidedly preferable).
install-font.sh can take care of planting a 'download' file in
site-font/devps that contains the necessary entries, but I think
it's a poor idea to rely on third-party software for this.
--
Peter Schaffter
https://www.schaffter.ca
On Sat, Aug 20, 2022, Deri wrote:
> > On Saturday, 20 August 2022 02:06:10 BST Peter Schaffter wrote:
> > Deri --
> >
> > 'pdfmom -Tps' seems to be broken. I never use the -Tps option
> > so I haven't notice before. When I run
> >
> &g
Light
which makes BMR come out as BMI and vice versa. I can't recall
having futzed around in the file, so I'm assuming this needs to be
fixed.
--
Peter Schaffter
https://www.schaffter.ca
test.ps
Description: PostScript document
ries.
Is this a bug, or is it something that needs to be documented? I'm
running a 1.22.4.7-72b4 build; perhaps it's already been corrected?
--
Peter Schaffter
https://www.schaffter.ca
t;
> places, site_font, system font, /usr/lib/ font.
I haven't experienced any problem with the duplication.
--
Peter Schaffter
https://www.schaffter.ca
;ll also be amending the long-form font installation instructions
in the appendices to the momdocs.
--
Peter Schaffter
https://www.schaffter.ca
6p
> which breaks the line and advances one full linespace plus six points.
This is clearly wrong. In the far distant past I changed the
behaviour of SPACE to mirror groff's .sp request. I obviously
neglected to update the documentation at that time. Thanks.
--
Peter Schaffter
https://www.schaffter.ca
- Forwarded message from Peter Schaffter -
Date: Mon, 15 Aug 2022 12:22:11 -0400
To: Ulrich Lauther
From: Peter Schaffter
Subject: Re: mom problem
Ulrich --
On Mon, Aug 15, 2022, Ulrich Lauther wrote:
> I added the modified SPACE macro to my private collection of
> macros,
.ns is removed when SPACE is called. It fixes the
problem for your sample file, though I'm not sure how robust it is
for real-world files.
--
Peter Schaffter
https://www.schaffter.ca
ich
mom is unable to restore vertical spacing after a page transition
automatically, which is what RESTORE_SPACE is for. Without a test
file, I can't say whether this is genuinely one of them or a bug.
See if RESTORE_SPACE helps. If not, I'll need a test file to see
exactly where thing
Alexis --
Thanks for the doc fixes for mom. I've been meaning to get out the
broom and clean them up. This is a great help.
--
Peter Schaffter
https://www.schaffter.ca
My solution was to write a macro set so clearly
documented that users would never have to consult the g/troff
documentation at all unless they were themselves macro programmers.
Crazy, I know, but when I look at the amount of work Branden has put
into improving the official docs, I don't reg
ng, zero-width
character."
--
Peter Schaffter
https://www.schaffter.ca
1 - 100 of 702 matches
Mail list logo