Tk Library Source Code

View Ticket
Login
Ticket UUID: 2915921
Title: Add commands for extended punctuation (em-dash, en-dash)
Type: RFE Version: None
Submitter: flatworm Created on: 2009-12-17 00:34:25
Subsystem: doctools Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2010-07-07 01:49:44
Resolution: Closed By: andreas_kupries
    Closed on: 2010-07-06 18:49:44
Description:
It would be convenient to have a set of markup commands which would produce special punctuation signs on output.
Of most interest are "wide dashes", namely, em-dash and en-dash.
Such commands could be named as [mdash] and [ndash] respectively, and produce:
[mdash]: — in HTML and \(em in nroff;
[ndash]: – in HTML and \(en in nroff.

Ideally, it would be nice to have a generic framework for defining special markup commands which would generate assigned Unicode characters on output, but I think this can't play together with nroff as it's not yet really Unicode-aware (while it's being developed to finally become UTF-8 compliant).
So the two commands I proposed above could facilitate creation of a bit more beautiful manpages while being portable.
User Comments: andreas_kupries added on 2010-07-07 01:49:44:

allow_comments - 1

Accepted. Changes committed to CVS. I am not sure if my code is correct for nroff. If not, just open a bug.