-.\" $Id: mdoc.7,v 1.68 2009/10/22 10:36:20 kristaps Exp $
+.\" $Id: mdoc.7,v 1.69 2009/10/24 05:52:13 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: October 22 2009 $
+.Dd $Mdocdate: October 24 2009 $
.Dt MDOC 7
.Os
.
.It Sx \&%N Ta \&No Ta \&No Ta >0
.It Sx \&%O Ta \&No Ta \&No Ta >0
.It Sx \&%P Ta \&No Ta \&No Ta >0
+.It Sx \&%Q Ta \&No Ta \&No Ta >0
.It Sx \&%R Ta \&No Ta \&No Ta >0
.It Sx \&%T Ta \&No Ta \&No Ta >0
+.It Sx \&%U Ta \&No Ta \&No Ta >0
.It Sx \&%V Ta \&No Ta \&No Ta >0
.It Sx \&Ad Ta Yes Ta Yes Ta n
.It Sx \&An Ta Yes Ta Yes Ta n
block. This macro may also be used in a non-bibliographical context
when referring to article titles.
.
+.Ss \&%U
+URI of current document.
+.
.Ss \&%V
Volume number of an
.Sx \&Rs
-/* $Id: mdoc.c,v 1.109 2009/10/15 02:56:51 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.110 2009/10/24 05:52:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
/* LINTED */
"Brc", "\%C", "Es", "En",
/* LINTED */
- "Dx", "\%Q", "br", "sp"
+ "Dx", "\%Q", "br", "sp",
+ /* LINTED */
+ "\%U"
};
const char *const __mdoc_argnames[MDOC_ARG_MAX] = {
-/* $Id: mdoc.h,v 1.70 2009/10/15 01:33:12 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.71 2009/10/24 05:52:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
#define MDOC__Q 117
#define MDOC_br 118
#define MDOC_sp 119
-#define MDOC_MAX 120
+#define MDOC__U 120
+#define MDOC_MAX 121
/* What follows is a list of ALL possible macro arguments. */
-/* $Id: mdoc_action.c,v 1.42 2009/10/22 17:54:24 kristaps Exp $ */
+/* $Id: mdoc_action.c,v 1.43 2009/10/24 05:52:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
{ NULL, NULL }, /* %Q */
{ NULL, NULL }, /* br */
{ NULL, NULL }, /* sp */
+ { NULL, NULL }, /* %U */
};
#define RSORD_MAX 13
-/* $Id: mdoc_argv.c,v 1.29 2009/10/19 09:40:23 kristaps Exp $ */
+/* $Id: mdoc_argv.c,v 1.30 2009/10/24 05:52:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
0, /* %Q */
0, /* br */
0, /* sp */
+ 0, /* %U */
};
-/* $Id: mdoc_html.c,v 1.36 2009/10/22 18:55:32 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.37 2009/10/24 05:52:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
{mdoc__x_pre, mdoc__x_post}, /* %Q */
{mdoc_sp_pre, NULL}, /* br */
{mdoc_sp_pre, NULL}, /* sp */
+ {mdoc__x_pre, mdoc__x_post}, /* %U */
};
{
struct htmlpair tag;
+ /* TODO: %U. */
+
switch (n->tok) {
case(MDOC__A):
PAIR_CLASS_INIT(&tag, "ref-auth");
-/* $Id: mdoc_macro.c,v 1.36 2009/09/20 17:24:57 kristaps Exp $ */
+/* $Id: mdoc_macro.c,v 1.37 2009/10/24 05:52:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
{ in_line_eoln, 0 }, /* %Q */
{ in_line_eoln, 0 }, /* br */
{ in_line_eoln, 0 }, /* sp */
+ { in_line_eoln, 0 }, /* %U */
};
const struct mdoc_macro * const mdoc_macros = __mdoc_macros;
-/* $Id: mdoc_term.c,v 1.94 2009/10/22 18:55:32 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.95 2009/10/24 05:52:14 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
{ NULL, termp____post }, /* %Q */
{ termp_sp_pre, NULL }, /* br */
{ termp_sp_pre, NULL }, /* sp */
+ { NULL, termp____post }, /* %U */
};
#ifdef __linux__
termp____post(DECL_ARGS)
{
+ /* TODO: %U. */
+
p->flags |= TERMP_NOSPACE;
switch (n->tok) {
case (MDOC__T):
-/* $Id: mdoc_validate.c,v 1.49 2009/10/22 10:35:33 kristaps Exp $ */
+/* $Id: mdoc_validate.c,v 1.50 2009/10/24 05:52:14 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
{ NULL, posts_text }, /* %Q */
{ NULL, posts_notext }, /* br */
{ NULL, posts_sp }, /* sp */
+ { NULL, posts_text }, /* %U */
};
for (nn = mdoc->last->child; nn; nn = nn->next)
switch (nn->tok) {
+ case(MDOC__U):
+ /* FALLTHROUGH */
case(MDOC__Q):
/* FALLTHROUGH */
case(MDOC__C):