discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* \h in PostScript and PDF output
@ 2022-01-09 13:59 Humm
  2022-01-10  7:37 ` Ingo Schwarze
  0 siblings, 1 reply; 4+ messages in thread
From: Humm @ 2022-01-09 13:59 UTC (permalink / raw)
  To: discuss

Consider the input

	.TH A 1
	.SH S
	a\h'1u'b

For ASCII and UTF-8 output, in the output there is

	ab

In PDF and PostScript output, the “b” is way too far to the right.  
The PostScript for it is

	87.274 687.599(a)s
	166.408(b)c

That scales up: With \h'1n', the “b” is already off the page and thus 
not visible.  For `a\h'1n'b c`, there is a line break before “c”.

roff(7) does mention: (COMPATIBILITY)

>Support for explicit movement requests and escapes is limited.

I’m using Alpine Linux’s build of mandoc 1.14.6.

---

The context is the way the (-)man page generator scdoc
( https://git.sr.ht/~sircmpwn/scdoc ) handles lists: A list item

	- a

becomes

	.RS 4
	.ie n \{\
	\h'-04'\(bu\h'+03'\c
	.\}
	.el \{\
	.IP \(bu 4
	.\}
	a
	.RE

apparently for the looks.

-- 
Humm
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-10 18:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-09 13:59 \h in PostScript and PDF output Humm
2022-01-10  7:37 ` Ingo Schwarze
2022-01-10 16:45   ` Humm
2022-01-10 18:50     ` Ingo Schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).