version 1.208, 2011/01/06 14:05:12 |
version 1.216, 2011/02/06 21:44:36 |
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_EQN): |
|
break; |
case (MDOC_TBL): |
case (MDOC_TBL): |
term_tbl(p, n->span); |
term_tbl(p, n->span); |
break; |
break; |
Line 367 print_mdoc_node(DECL_ARGS) |
|
Line 371 print_mdoc_node(DECL_ARGS) |
|
break; |
break; |
case (MDOC_TBL): |
case (MDOC_TBL): |
break; |
break; |
|
case (MDOC_EQN): |
|
break; |
default: |
default: |
if ( ! termacts[n->tok].post || MDOC_ENDED & n->flags) |
if ( ! termacts[n->tok].post || MDOC_ENDED & n->flags) |
break; |
break; |
|
|
termp_ns_pre(DECL_ARGS) |
termp_ns_pre(DECL_ARGS) |
{ |
{ |
|
|
p->flags |= TERMP_NOSPACE; |
if ( ! (MDOC_LINE & n->flags)) |
|
p->flags |= TERMP_NOSPACE; |
return(1); |
return(1); |
} |
} |
|
|
Line 1672 termp_bd_post(DECL_ARGS) |
|
Line 1679 termp_bd_post(DECL_ARGS) |
|
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static void |
static int |
termp_bx_post(DECL_ARGS) |
termp_bx_pre(DECL_ARGS) |
{ |
{ |
|
|
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)) { |
|
p->flags |= TERMP_NOSPACE; |
|
term_word(p, "-"); |
|
p->flags |= TERMP_NOSPACE; |
|
term_word(p, n->string); |
|
} |
|
|
|
return(0); |
} |
} |
|
|
|
|
Line 1712 termp_xx_pre(DECL_ARGS) |
|
Line 1733 termp_xx_pre(DECL_ARGS) |
|
break; |
break; |
} |
} |
|
|
assert(pp); |
|
term_word(p, pp); |
term_word(p, pp); |
return(1); |
if (n->child) { |
|
p->flags |= TERMP_KEEP; |
|
term_word(p, n->child->string); |
|
p->flags &= ~TERMP_KEEP; |
|
} |
|
return(0); |
} |
} |
|
|
|
|
Line 2167 termp__t_post(DECL_ARGS) |
|
Line 2192 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 2208 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); |