tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Kristaps Dzonsons <kristaps@bsd.lv>
To: tech@mdocml.bsd.lv
Subject: Re: mdocml: Renamed mandoc.c to libmandoc.c.
Date: Wed, 07 Jul 2010 12:56:37 +0200	[thread overview]
Message-ID: <4C345D65.6090003@bsd.lv> (raw)
In-Reply-To: <20100706233016.GF19714@iris.usta.de>

Ingo,

> resolving via ".\*(A3" to ".Fl" which will be evaluated as -
> the mdoc(7) flag macro.  Obfuscation, anybody?

That's the nail in the coffin to put this in libroff, as once the 
character is re-written, it can be pumped (ROFF_RERUN) back in for more 
processing.  Sigh.

> I don't say we need to implement all that, probably most such
> stuff will be rarely needed, but when we have the choice, it
> is perhaps worthwhile doing some of the expansions on the
> preprocessor level, maybe even iteratively.
> 
> Of course, things like special characters and font escapes,
> which depend critically on the choice of the frontend, have
> no business in the preprocessor, but belong into the frontend.
> Yet, the escape sequence parsing logic for \*x, \*(xx, \*[xxx]
> is the same for both cases.  Not sure how to organize the code
> to deal with that situation, to minimize code duplication as
> well as duplicate processing...

mandoc_special() should be merged with a2roffdeco(), which would address 
this.

> In any case, the one place where i would least expect to find
> escape sequence parsing is in the mdoc/man parser backends.

Warnings about malformed escape sequences should be raised somewhere, 
and this shouldn't be in the front-end.

Thanks,

Kristaps
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

  reply	other threads:[~2010-07-07 10:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <201007052000.o65K0uQH002309@krisdoz.my.domain>
2010-07-06  3:15 ` Ingo Schwarze
2010-07-06  9:24   ` Kristaps Dzonsons
2010-07-06 10:58     ` Kristaps Dzonsons
2010-07-06 22:01       ` Ingo Schwarze
2010-07-06 23:30     ` Ingo Schwarze
2010-07-07 10:56       ` Kristaps Dzonsons [this message]
2010-07-07 21:58         ` Ingo Schwarze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C345D65.6090003@bsd.lv \
    --to=kristaps@bsd.lv \
    --cc=tech@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).