discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* Redux: linking in mdoc(7)?
@ 2015-04-30 15:42 Kristaps Dzonsons
  2015-04-30 17:31 ` Steffen Nurpmeso
  0 siblings, 1 reply; 5+ messages in thread
From: Kristaps Dzonsons @ 2015-04-30 15:42 UTC (permalink / raw)
  To: discuss

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I saw on groff another post about indexing, so I thought to bring this
up again.  I'm wary of mdocmx because it's unreadably huge.  Manpages
should be simple.

A few months ago, I floated an implementation of an mdoc(7) macro
(plus one more, for completion), `Ix', that's an invisible anchor to
which `Sx' can point.  I implemented an active front-end in -Thtml
mode: there's no console mode because I'm not aware of link support in
stock less(1).  In HTML, obviously, `Ix' is implemented as an empty
<span id=""> to which subsequent <a href="#"> can link.

The concept of `Ix' arises from the desire to link not only to
sections and subsections, but also subsubsections and other textual
components.  The mdoc(7) manual is an excellent example, which abuses
`Ss' to allow linking to descriptions of individual macros.

The ``pro'' of `Ix' is that it's trivially easy to support in
mandoc(1) (patch was included) and can be just as easily ignored in
groff(1).  (I go for ``ignore'' because that's what groff already does
with Sx and Ss and friends, which are the proto-Ix.)  The patch is
dead easy to read.

The ``con'' is that it's a new macro.  To which I argue that, yes, it
is a new macro, but we already have a crippled form of the
functionality it provides (via `Sh' and `Ss'): this merely completes it.

Is this a reasonable concept to move forward with?  Thoughts?  The
patch I provided is implementation-complete.  I leave a PS/PDF
bookmark implementation as an exercise to the reader.

Best,

Kristaps
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJVQk1/AAoJEMT2SUY9XBESHC4QALIlN5bruIt9bZ+muHt1+QuI
yjsccCwcxsJTk4adxFxYv/I4TAbeY7EAHFIJe+TpVsCeGuYx34ftKbbm2SdTx6Al
w4njGy7H0nXfNlBUo4n5z2QgVBIkzmgeGDXTpDdjFnlKD3xeFCMIxmZkQ8YSSY53
ADPnVqtSOAvrMgWkv+xR3lAhLF7si2ZpOC6Pe5EMF9iYnHdhh4R97E2crI+aRUkn
aAVddRvt4bwq5p3JH2SYtI+BfzrWLd6hkAJg+2Rzma1ZLtTtctYVSa8Zntiy7WRF
mKn7EwIWOHpWUe3nEJPyDbrs+QBrnN3unQmogVPik3YakwhDItabILSi9bH1BMtd
CN3MuFKtGLTpYohXEEUOL1lW9WKYDVDiih3YX/5eDz3K7SqTwjNWbS5/AOHw3UkX
JJPrJ95TV50mkoOh20tLW4nD9k0h2eyP2BrLT+1B+WHt85POhcmLadYpECfjGicV
23czGrxYiD24ZNXARXZZjbnY47SY+cdrLA5kej6RC5DSEKVwXAKbk6skYkb7xPx6
P+ptEl1rKfkQazcaLf7Ui+t2wwfP8KFSg8P44zb28hv/ekeVdKTfsrCzH3TSu6Gn
gJ7mHGA3DOwhQSYgjgMCZqIcQyOI3Bxs4wlK4+QdhztUgAA+g8yImbCK6t+IIIkp
QAvPfwQkQYXsnTkV2geP
=+/TN
-----END PGP SIGNATURE-----
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

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

end of thread, other threads:[~2015-05-05 13:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-30 15:42 Redux: linking in mdoc(7)? Kristaps Dzonsons
2015-04-30 17:31 ` Steffen Nurpmeso
2015-04-30 23:06   ` Kristaps Dzonsons
2015-05-01 20:04     ` Steffen Nurpmeso
2015-05-05 13:47       ` Steffen Nurpmeso

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).