version 1.208, 2011/01/06 14:05:12 |
version 1.212, 2011/01/25 15:28:56 |
Line 73 static void termp_an_post(DECL_ARGS); |
|
Line 73 static void termp_an_post(DECL_ARGS); |
|
static void termp_bd_post(DECL_ARGS); |
static void termp_bd_post(DECL_ARGS); |
static void termp_bk_post(DECL_ARGS); |
static void termp_bk_post(DECL_ARGS); |
static void termp_bl_post(DECL_ARGS); |
static void termp_bl_post(DECL_ARGS); |
static void termp_bx_post(DECL_ARGS); |
|
static void termp_d1_post(DECL_ARGS); |
static void termp_d1_post(DECL_ARGS); |
static void termp_fo_post(DECL_ARGS); |
static void termp_fo_post(DECL_ARGS); |
static void termp_in_post(DECL_ARGS); |
static void termp_in_post(DECL_ARGS); |
Line 95 static int termp_bk_pre(DECL_ARGS); |
|
Line 94 static int termp_bk_pre(DECL_ARGS); |
|
static int termp_bl_pre(DECL_ARGS); |
static int termp_bl_pre(DECL_ARGS); |
static int termp_bold_pre(DECL_ARGS); |
static int termp_bold_pre(DECL_ARGS); |
static int termp_bt_pre(DECL_ARGS); |
static int termp_bt_pre(DECL_ARGS); |
|
static int termp_bx_pre(DECL_ARGS); |
static int termp_cd_pre(DECL_ARGS); |
static int termp_cd_pre(DECL_ARGS); |
static int termp_d1_pre(DECL_ARGS); |
static int termp_d1_pre(DECL_ARGS); |
static int termp_ex_pre(DECL_ARGS); |
static int termp_ex_pre(DECL_ARGS); |
Line 187 static const struct termact termacts[MDOC_MAX] = { |
|
Line 187 static const struct termact termacts[MDOC_MAX] = { |
|
{ termp_quote_pre, termp_quote_post }, /* Bo */ |
{ termp_quote_pre, termp_quote_post }, /* Bo */ |
{ termp_quote_pre, termp_quote_post }, /* Bq */ |
{ termp_quote_pre, termp_quote_post }, /* Bq */ |
{ termp_xx_pre, NULL }, /* Bsx */ |
{ termp_xx_pre, NULL }, /* Bsx */ |
{ NULL, termp_bx_post }, /* Bx */ |
{ termp_bx_pre, NULL }, /* Bx */ |
{ NULL, NULL }, /* Db */ |
{ NULL, NULL }, /* Db */ |
{ NULL, NULL }, /* Dc */ |
{ NULL, NULL }, /* Dc */ |
{ termp_quote_pre, termp_quote_post }, /* Do */ |
{ termp_quote_pre, termp_quote_post }, /* Do */ |
Line 315 print_mdoc_node(DECL_ARGS) |
|
Line 315 print_mdoc_node(DECL_ARGS) |
|
|
|
switch (n->type) { |
switch (n->type) { |
case (MDOC_TEXT): |
case (MDOC_TEXT): |
|
if (' ' == *n->string && MDOC_LINE & n->flags) |
|
term_newln(p); |
term_word(p, n->string); |
term_word(p, n->string); |
break; |
break; |
case (MDOC_TBL): |
case (MDOC_TBL): |
Line 1672 termp_bd_post(DECL_ARGS) |
|
Line 1674 termp_bd_post(DECL_ARGS) |
|
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static void |
static int |
termp_bx_post(DECL_ARGS) |
termp_bx_pre(DECL_ARGS) |
{ |
{ |
|
char buf[3]; |
|
|
if (n->child) |
if (NULL != (n = n->child)) { |
|
term_word(p, n->string); |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
term_word(p, "BSD"); |
term_word(p, "BSD"); |
|
} else { |
|
term_word(p, "BSD"); |
|
return(0); |
|
} |
|
|
|
if (NULL != (n = n->next)) { |
|
buf[0] = '-'; |
|
buf[1] = toupper((unsigned char)*n->string); |
|
buf[2] = '\0'; |
|
|
|
p->flags |= TERMP_NOSPACE; |
|
term_word(p, buf); |
|
p->flags |= TERMP_NOSPACE; |
|
term_word(p, n->string + 1); |
|
} |
|
|
|
return(0); |
} |
} |
|
|
|
|
Line 2167 termp__t_post(DECL_ARGS) |
|
Line 2188 termp__t_post(DECL_ARGS) |
|
* us instead of underlining us (for disambiguation). |
* us instead of underlining us (for disambiguation). |
*/ |
*/ |
if (n->parent && MDOC_Rs == n->parent->tok && |
if (n->parent && MDOC_Rs == n->parent->tok && |
n->parent->norm->Rs.child_J) |
n->parent->norm->Rs.quote_T) |
termp_quote_post(p, pair, m, n); |
termp_quote_post(p, pair, m, n); |
|
|
termp____post(p, pair, m, n); |
termp____post(p, pair, m, n); |
Line 2183 termp__t_pre(DECL_ARGS) |
|
Line 2204 termp__t_pre(DECL_ARGS) |
|
* us instead of underlining us (for disambiguation). |
* us instead of underlining us (for disambiguation). |
*/ |
*/ |
if (n->parent && MDOC_Rs == n->parent->tok && |
if (n->parent && MDOC_Rs == n->parent->tok && |
n->parent->norm->Rs.child_J) |
n->parent->norm->Rs.quote_T) |
return(termp_quote_pre(p, pair, m, n)); |
return(termp_quote_pre(p, pair, m, n)); |
|
|
term_fontpush(p, TERMFONT_UNDER); |
term_fontpush(p, TERMFONT_UNDER); |