Lines Matching refs:h

41 			  struct html *h
247 synopsis_pre(struct html *h, struct roff_node *n) in synopsis_pre() argument
259 print_otag(h, TAG_BR, ""); in synopsis_pre()
275 print_otag(h, TAG_BR, ""); in synopsis_pre()
278 html_close_paragraph(h); in synopsis_pre()
279 print_otag(h, TAG_P, "c", "Pp"); in synopsis_pre()
285 struct html *h; in html_mdoc() local
289 h = (struct html *)arg; in html_mdoc()
292 if ((h->oflags & HTML_FRAGMENT) == 0) { in html_mdoc()
293 print_gen_decls(h); in html_mdoc()
294 print_otag(h, TAG_HTML, ""); in html_mdoc()
296 print_gen_comment(h, n); in html_mdoc()
297 t = print_otag(h, TAG_HEAD, ""); in html_mdoc()
298 print_mdoc_head(mdoc, h); in html_mdoc()
299 print_tagq(h, t); in html_mdoc()
300 print_otag(h, TAG_BODY, ""); in html_mdoc()
303 mdoc_root_pre(mdoc, h); in html_mdoc()
304 t = print_otag(h, TAG_DIV, "c", "manual-text"); in html_mdoc()
305 print_mdoc_nodelist(mdoc, n, h); in html_mdoc()
306 print_tagq(h, t); in html_mdoc()
307 mdoc_root_post(mdoc, h); in html_mdoc()
308 print_tagq(h, NULL); in html_mdoc()
312 print_mdoc_head(const struct roff_meta *meta, struct html *h) in print_mdoc_head() argument
316 print_gen_head(h); in print_mdoc_head()
328 print_otag(h, TAG_TITLE, ""); in print_mdoc_head()
329 print_text(h, cp); in print_mdoc_head()
338 print_mdoc_node(meta, n, h); in print_mdoc_nodelist()
353 html_fillmode(h, ROFF_fi); in print_mdoc_node()
354 else if (html_fillmode(h, ROFF_nf) == ROFF_nf && in print_mdoc_node()
356 print_endline(h); in print_mdoc_node()
365 h->col = 1; in print_mdoc_node()
366 print_endline(h); in print_mdoc_node()
369 if ((h->flags & HTML_NONEWLINE) == 0 && in print_mdoc_node()
371 print_otag(h, TAG_BR, ""); in print_mdoc_node()
377 t = h->tag; in print_mdoc_node()
380 h->flags |= HTML_NOSPACE; in print_mdoc_node()
382 print_tagged_text(h, n->string, n); in print_mdoc_node()
384 print_text(h, n->string); in print_mdoc_node()
386 h->flags |= HTML_NOSPACE; in print_mdoc_node()
389 t = h->tag; in print_mdoc_node()
391 print_eqn(h, n->eqn); in print_mdoc_node()
399 print_tbl(h, n->span); in print_mdoc_node()
407 if (h->tblt != NULL) in print_mdoc_node()
408 print_tblclose(h); in print_mdoc_node()
409 assert(h->tblt == NULL); in print_mdoc_node()
410 t = h->tag; in print_mdoc_node()
413 roff_html_pre(h, n); in print_mdoc_node()
415 print_stagq(h, t); in print_mdoc_node()
422 n, h); in print_mdoc_node()
426 if (h->flags & HTML_KEEP && n->flags & NODE_LINE) { in print_mdoc_node()
427 h->flags &= ~HTML_KEEP; in print_mdoc_node()
428 h->flags |= HTML_PREKEEP; in print_mdoc_node()
432 print_mdoc_nodelist(meta, n->child, h); in print_mdoc_node()
435 print_stagq(h, t); in print_mdoc_node()
445 (*mdoc_html_acts[n->tok - MDOC_Dd].post)(meta, n, h); in print_mdoc_node()
453 mdoc_root_post(const struct roff_meta *meta, struct html *h) in mdoc_root_post() argument
457 t = print_otag(h, TAG_TABLE, "c", "foot"); in mdoc_root_post()
458 tt = print_otag(h, TAG_TR, ""); in mdoc_root_post()
460 print_otag(h, TAG_TD, "c", "foot-date"); in mdoc_root_post()
461 print_text(h, meta->date); in mdoc_root_post()
462 print_stagq(h, tt); in mdoc_root_post()
464 print_otag(h, TAG_TD, "c", "foot-os"); in mdoc_root_post()
465 print_text(h, meta->os); in mdoc_root_post()
466 print_tagq(h, t); in mdoc_root_post()
470 mdoc_root_pre(const struct roff_meta *meta, struct html *h) in mdoc_root_pre() argument
487 t = print_otag(h, TAG_TABLE, "c", "head"); in mdoc_root_pre()
488 tt = print_otag(h, TAG_TR, ""); in mdoc_root_pre()
490 print_otag(h, TAG_TD, "c", "head-ltitle"); in mdoc_root_pre()
491 print_text(h, title); in mdoc_root_pre()
492 print_stagq(h, tt); in mdoc_root_pre()
494 print_otag(h, TAG_TD, "c", "head-vol"); in mdoc_root_pre()
495 print_text(h, volume); in mdoc_root_pre()
496 print_stagq(h, tt); in mdoc_root_pre()
498 print_otag(h, TAG_TD, "c", "head-rtitle"); in mdoc_root_pre()
499 print_text(h, title); in mdoc_root_pre()
500 print_tagq(h, t); in mdoc_root_pre()
510 print_otag_id(h, TAG_CODE, roff_name[n->tok], n); in mdoc_code_pre()
524 html_close_paragraph(h); in mdoc_sh_pre()
525 if ((h->oflags & HTML_TOC) == 0 || in mdoc_sh_pre()
526 h->flags & HTML_TOCDONE || in mdoc_sh_pre()
528 print_otag(h, TAG_SECTION, "c", "Sh"); in mdoc_sh_pre()
531 h->flags |= HTML_TOCDONE; in mdoc_sh_pre()
539 t = print_otag(h, TAG_H1, "c", "Sh"); in mdoc_sh_pre()
540 print_text(h, "TABLE OF CONTENTS"); in mdoc_sh_pre()
541 print_tagq(h, t); in mdoc_sh_pre()
542 t = print_otag(h, TAG_UL, "c", "Bl-compact"); in mdoc_sh_pre()
544 tsec = print_otag(h, TAG_LI, ""); in mdoc_sh_pre()
546 tsub = print_otag(h, TAG_A, "hR", id); in mdoc_sh_pre()
548 print_mdoc_nodelist(meta, sn->head->child, h); in mdoc_sh_pre()
549 print_tagq(h, tsub); in mdoc_sh_pre()
559 print_otag(h, TAG_UL, in mdoc_sh_pre()
561 tsub = print_otag(h, TAG_LI, ""); in mdoc_sh_pre()
562 print_otag(h, TAG_A, "hR", id); in mdoc_sh_pre()
565 subn->head->child, h); in mdoc_sh_pre()
566 print_tagq(h, tsub); in mdoc_sh_pre()
568 print_tagq(h, tsec); in mdoc_sh_pre()
570 print_tagq(h, t); in mdoc_sh_pre()
571 print_otag(h, TAG_SECTION, "c", "Sh"); in mdoc_sh_pre()
574 print_otag_id(h, TAG_H1, "Sh", n); in mdoc_sh_pre()
578 h->flags &= ~(HTML_SPLIT|HTML_NOSPLIT); in mdoc_sh_pre()
591 html_close_paragraph(h); in mdoc_ss_pre()
592 print_otag(h, TAG_SECTION, "c", "Ss"); in mdoc_ss_pre()
595 print_otag_id(h, TAG_H2, "Ss", n); in mdoc_ss_pre()
610 print_otag_id(h, TAG_CODE, "Fl", n); in mdoc_fl_pre()
611 print_text(h, "\\-"); in mdoc_fl_pre()
616 h->flags |= HTML_NOSPACE; in mdoc_fl_pre()
634 print_text(h, "\\(em"); in mdoc_nd_pre()
635 print_otag(h, TAG_SPAN, "c", "Nd"); in mdoc_nd_pre()
646 print_otag(h, TAG_TD, ""); in mdoc_nm_pre()
649 print_otag(h, TAG_CODE, "c", "Nm"); in mdoc_nm_pre()
652 print_otag(h, TAG_TD, ""); in mdoc_nm_pre()
657 html_close_paragraph(h); in mdoc_nm_pre()
658 synopsis_pre(h, n); in mdoc_nm_pre()
659 print_otag(h, TAG_TABLE, "c", "Nm"); in mdoc_nm_pre()
660 print_otag(h, TAG_TR, ""); in mdoc_nm_pre()
670 if (h->base_man1) in mdoc_xr_pre()
671 print_otag(h, TAG_A, "chM", "Xr", in mdoc_xr_pre()
675 print_otag(h, TAG_A, "c", "Xr"); in mdoc_xr_pre()
678 print_text(h, n->string); in mdoc_xr_pre()
683 h->flags |= HTML_NOSPACE; in mdoc_xr_pre()
684 print_text(h, "("); in mdoc_xr_pre()
685 h->flags |= HTML_NOSPACE; in mdoc_xr_pre()
686 print_text(h, n->string); in mdoc_xr_pre()
687 h->flags |= HTML_NOSPACE; in mdoc_xr_pre()
688 print_text(h, ")"); in mdoc_xr_pre()
698 print_tagq(h, print_otag(h, TAG_MARK, "i", id)); in mdoc_tg_pre()
709 h->flags |= HTML_NOSPACE; in mdoc_ns_pre()
716 print_otag(h, TAG_VAR, "c", "Ar"); in mdoc_ar_pre()
723 print_otag(h, TAG_SPAN, "c", "Ux"); in mdoc_xx_pre()
748 print_otag_id(h, TAG_LI, NULL, n); in mdoc_it_pre()
760 print_otag_id(h, TAG_DT, NULL, n); in mdoc_it_pre()
763 print_otag(h, TAG_DD, ""); in mdoc_it_pre()
772 print_otag_id(h, TAG_DT, NULL, n); in mdoc_it_pre()
776 print_otag(h, TAG_DD, "s", "width", "auto"); in mdoc_it_pre()
777 print_text(h, "\\ "); in mdoc_it_pre()
779 print_otag(h, TAG_DD, ""); in mdoc_it_pre()
790 print_otag(h, TAG_TD, ""); in mdoc_it_pre()
793 print_otag_id(h, TAG_TR, NULL, n); in mdoc_it_pre()
811 html_close_paragraph(h); in mdoc_bl_pre()
858 print_otag(h, TAG_DIV, "c", "Bd-indent"); in mdoc_bl_pre()
859 print_otag_id(h, TAG_DL, in mdoc_bl_pre()
873 print_otag_id(h, elemtype, cattr, n->body); in mdoc_bl_pre()
881 print_otag(h, TAG_BR, ""); in mdoc_ex_pre()
888 print_otag(h, TAG_SPAN, "c", "St"); in mdoc_st_pre()
895 print_otag_id(h, TAG_I, "Em", n); in mdoc_em_pre()
904 html_close_paragraph(h); in mdoc_d1_pre()
913 print_otag_id(h, TAG_DIV, "Bd Bd-indent", n); in mdoc_d1_pre()
915 print_otag(h, TAG_CODE, "c", "Li"); in mdoc_d1_pre()
925 print_otag(h, TAG_A, "chR", "Sx", id); in mdoc_sx_pre()
939 html_close_paragraph(h); in mdoc_bd_pre()
973 print_otag_id(h, TAG_DIV, buf, n); in mdoc_bd_pre()
980 print_otag(h, TAG_SPAN, "c", "Pa"); in mdoc_pa_pre()
987 print_otag(h, TAG_SPAN, "c", "Ad"); in mdoc_ad_pre()
995 h->flags &= ~HTML_NOSPLIT; in mdoc_an_pre()
996 h->flags |= HTML_SPLIT; in mdoc_an_pre()
1000 h->flags &= ~HTML_SPLIT; in mdoc_an_pre()
1001 h->flags |= HTML_NOSPLIT; in mdoc_an_pre()
1005 if (h->flags & HTML_SPLIT) in mdoc_an_pre()
1006 print_otag(h, TAG_BR, ""); in mdoc_an_pre()
1008 if (n->sec == SEC_AUTHORS && ! (h->flags & HTML_NOSPLIT)) in mdoc_an_pre()
1009 h->flags |= HTML_SPLIT; in mdoc_an_pre()
1011 print_otag(h, TAG_SPAN, "c", "An"); in mdoc_an_pre()
1018 synopsis_pre(h, n); in mdoc_cd_pre()
1019 print_otag(h, TAG_CODE, "c", "Cd"); in mdoc_cd_pre()
1030 print_otag(h, TAG_VAR, "c", "Fa"); in mdoc_fa_pre()
1034 t = print_otag(h, TAG_VAR, "c", "Fa"); in mdoc_fa_pre()
1035 print_text(h, nn->string); in mdoc_fa_pre()
1036 print_tagq(h, t); in mdoc_fa_pre()
1038 h->flags |= HTML_NOSPACE; in mdoc_fa_pre()
1039 print_text(h, ","); in mdoc_fa_pre()
1045 h->flags |= HTML_NOSPACE; in mdoc_fa_pre()
1046 print_text(h, ","); in mdoc_fa_pre()
1057 synopsis_pre(h, n); in mdoc_fd_pre()
1065 print_otag(h, TAG_CODE, "c", "Fd"); in mdoc_fd_pre()
1069 print_otag(h, TAG_CODE, "c", "In"); in mdoc_fd_pre()
1070 print_text(h, n->string); in mdoc_fd_pre()
1075 if (h->base_includes) { in mdoc_fd_pre()
1083 t = print_otag(h, TAG_A, "chI", "In", buf); in mdoc_fd_pre()
1086 t = print_otag(h, TAG_A, "c", "In"); in mdoc_fd_pre()
1088 print_text(h, n->string); in mdoc_fd_pre()
1089 print_tagq(h, t); in mdoc_fd_pre()
1096 print_text(h, n->string); in mdoc_fd_pre()
1106 synopsis_pre(h, n); in mdoc_vt_pre()
1109 synopsis_pre(h, n); in mdoc_vt_pre()
1113 print_otag(h, TAG_VAR, "c", "Vt"); in mdoc_vt_pre()
1120 synopsis_pre(h, n); in mdoc_ft_pre()
1121 print_otag(h, TAG_VAR, "c", "Ft"); in mdoc_ft_pre()
1134 synopsis_pre(h, n); in mdoc_fn_pre()
1142 t = print_otag(h, TAG_VAR, "c", "Ft"); in mdoc_fn_pre()
1148 print_text(h, nbuf); in mdoc_fn_pre()
1152 print_tagq(h, t); in mdoc_fn_pre()
1155 t = print_otag_id(h, TAG_CODE, "Fn", n); in mdoc_fn_pre()
1158 print_text(h, sp); in mdoc_fn_pre()
1160 print_tagq(h, t); in mdoc_fn_pre()
1162 h->flags |= HTML_NOSPACE; in mdoc_fn_pre()
1163 print_text(h, "("); in mdoc_fn_pre()
1164 h->flags |= HTML_NOSPACE; in mdoc_fn_pre()
1168 t = print_otag(h, TAG_VAR, "cs", "Fa", in mdoc_fn_pre()
1171 t = print_otag(h, TAG_VAR, "c", "Fa"); in mdoc_fn_pre()
1172 print_text(h, n->string); in mdoc_fn_pre()
1173 print_tagq(h, t); in mdoc_fn_pre()
1175 h->flags |= HTML_NOSPACE; in mdoc_fn_pre()
1176 print_text(h, ","); in mdoc_fn_pre()
1180 h->flags |= HTML_NOSPACE; in mdoc_fn_pre()
1181 print_text(h, ")"); in mdoc_fn_pre()
1184 h->flags |= HTML_NOSPACE; in mdoc_fn_pre()
1185 print_text(h, ";"); in mdoc_fn_pre()
1196 h->flags ^= HTML_NONOSPACE; in mdoc_sm_pre()
1198 h->flags &= ~HTML_NONOSPACE; in mdoc_sm_pre()
1200 h->flags |= HTML_NONOSPACE; in mdoc_sm_pre()
1202 if ( ! (HTML_NONOSPACE & h->flags)) in mdoc_sm_pre()
1203 h->flags &= ~HTML_NOSPACE; in mdoc_sm_pre()
1221 print_endline(h); in mdoc_pp_pre()
1223 mdoc_tg_pre(meta, n, h); in mdoc_pp_pre()
1225 h->col = 1; in mdoc_pp_pre()
1226 print_endline(h); in mdoc_pp_pre()
1229 html_close_paragraph(h); in mdoc_pp_pre()
1231 print_otag(h, TAG_P, "ci", "Pp", id); in mdoc_pp_pre()
1256 t = print_otag(h, TAG_A, "ch", "Lk", link->string); in mdoc_lk_pre()
1259 h->flags |= HTML_NOSPACE; in mdoc_lk_pre()
1260 print_text(h, descr->string); in mdoc_lk_pre()
1263 print_tagq(h, t); in mdoc_lk_pre()
1267 h->flags |= HTML_NOSPACE; in mdoc_lk_pre()
1268 print_text(h, punct->string); in mdoc_lk_pre()
1283 t = print_otag(h, TAG_A, "ch", "Mt", cp); in mdoc_mt_pre()
1284 print_text(h, n->string); in mdoc_mt_pre()
1285 print_tagq(h, t); in mdoc_mt_pre()
1298 synopsis_pre(h, n); in mdoc_fo_pre()
1302 t = print_otag_id(h, TAG_CODE, "Fn", n); in mdoc_fo_pre()
1303 print_text(h, n->child->string); in mdoc_fo_pre()
1304 print_tagq(h, t); in mdoc_fo_pre()
1308 h->flags |= HTML_NOSPACE; in mdoc_fo_pre()
1309 print_text(h, "("); in mdoc_fo_pre()
1310 h->flags |= HTML_NOSPACE; in mdoc_fo_pre()
1322 h->flags |= HTML_NOSPACE; in mdoc_fo_post()
1323 print_text(h, ")"); in mdoc_fo_post()
1324 h->flags |= HTML_NOSPACE; in mdoc_fo_post()
1325 print_text(h, ";"); in mdoc_fo_post()
1333 synopsis_pre(h, n); in mdoc_in_pre()
1334 print_otag(h, TAG_CODE, "c", "In"); in mdoc_in_pre()
1344 print_text(h, "#include"); in mdoc_in_pre()
1346 print_text(h, "<"); in mdoc_in_pre()
1347 h->flags |= HTML_NOSPACE; in mdoc_in_pre()
1352 if (h->base_includes) in mdoc_in_pre()
1353 t = print_otag(h, TAG_A, "chI", "In", n->string); in mdoc_in_pre()
1355 t = print_otag(h, TAG_A, "c", "In"); in mdoc_in_pre()
1356 print_text(h, n->string); in mdoc_in_pre()
1357 print_tagq(h, t); in mdoc_in_pre()
1362 h->flags |= HTML_NOSPACE; in mdoc_in_pre()
1363 print_text(h, ">"); in mdoc_in_pre()
1367 print_text(h, n->string); in mdoc_in_pre()
1375 print_otag(h, TAG_VAR, "c", "Va"); in mdoc_va_pre()
1382 h->flags |= HTML_NOSPACE; in mdoc_ap_pre()
1383 print_text(h, "\\(aq"); in mdoc_ap_pre()
1384 h->flags |= HTML_NOSPACE; in mdoc_ap_pre()
1395 html_close_paragraph(h); in mdoc_bf_pre()
1415 print_otag(h, TAG_DIV, "c", cattr); in mdoc_bf_pre()
1422 h->flags |= HTML_IGNDELIM; in mdoc_igndelim_pre()
1430 h->flags |= HTML_NOSPACE; in mdoc_pf_post()
1439 html_close_paragraph(h); in mdoc_rs_pre()
1445 print_otag(h, TAG_P, "c", "Pp"); in mdoc_rs_pre()
1446 print_otag(h, TAG_CITE, "c", "Rs"); in mdoc_rs_pre()
1457 print_otag_id(h, TAG_SPAN, roff_name[n->tok], n); in mdoc_no_pre()
1464 print_otag_id(h, TAG_B, "Sy", n); in mdoc_sy_pre()
1474 print_otag(h, TAG_BR, ""); in mdoc_lb_pre()
1476 print_otag(h, TAG_SPAN, "c", "Lb"); in mdoc_lb_pre()
1494 print_text(h, "and"); in mdoc__x_pre()
1533 print_otag(h, TAG_A, "ch", "RsU", n->child->string); in mdoc__x_pre()
1542 print_otag(h, t, "c", cattr); in mdoc__x_pre()
1562 h->flags |= HTML_NOSPACE; in mdoc__x_post()
1563 print_text(h, roff_node_next(n) ? "," : "."); in mdoc__x_post()
1577 h->flags |= HTML_PREKEEP; in mdoc_bk_pre()
1591 h->flags &= ~(HTML_KEEP | HTML_PREKEEP); in mdoc_bk_post()
1603 print_text(h, n->child != NULL && n->child->next == NULL && in mdoc_quote_pre()
1608 print_text(h, "\\(lC"); in mdoc_quote_pre()
1612 print_text(h, "\\(lB"); in mdoc_quote_pre()
1616 print_text(h, "\\(lB"); in mdoc_quote_pre()
1631 print_text(h, n->norm->Es->child->string); in mdoc_quote_pre()
1635 print_text(h, "\\(lq"); in mdoc_quote_pre()
1639 print_text(h, "\""); in mdoc_quote_pre()
1643 print_text(h, "("); in mdoc_quote_pre()
1646 print_text(h, "\\(oq"); in mdoc_quote_pre()
1647 h->flags |= HTML_NOSPACE; in mdoc_quote_pre()
1648 print_otag(h, TAG_CODE, "c", "Li"); in mdoc_quote_pre()
1652 print_text(h, "\\(oq"); in mdoc_quote_pre()
1658 h->flags |= HTML_NOSPACE; in mdoc_quote_pre()
1669 h->flags |= HTML_NOSPACE; in mdoc_quote_post()
1674 print_text(h, n->child != NULL && n->child->next == NULL && in mdoc_quote_post()
1679 print_text(h, "\\(rC"); in mdoc_quote_post()
1685 print_text(h, "\\(rB"); in mdoc_quote_post()
1691 h->flags &= ~HTML_NOSPACE; in mdoc_quote_post()
1693 print_text(h, n->norm->Es->child->next->string); in mdoc_quote_post()
1697 print_text(h, "\\(rq"); in mdoc_quote_post()
1701 print_text(h, "\""); in mdoc_quote_post()
1705 print_text(h, ")"); in mdoc_quote_post()
1710 print_text(h, "\\(cq"); in mdoc_quote_post()
1728 print_text(h, "\\&"); in mdoc_eo_pre()
1732 h->flags |= HTML_NOSPACE; in mdoc_eo_pre()
1745 h->flags &= ~HTML_NOSPACE; in mdoc_eo_post()
1753 h->flags |= HTML_NOSPACE; in mdoc_eo_post()
1755 h->flags &= ~HTML_NOSPACE; in mdoc_eo_post()