Lines Matching defs:h

20 #include "config.h"
22 #include <sys/types.h>
24 #include <assert.h>
25 #include <ctype.h>
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include <string.h>
30 #include "mandoc_aux.h"
31 #include "mandoc.h"
32 #include "roff.h"
33 #include "man.h"
34 #include "out.h"
35 #include "html.h"
36 #include "main.h"
40 struct html *h
117 struct html *h;
121 h = (struct html *)arg;
124 if ((h->oflags & HTML_FRAGMENT) == 0) {
125 print_gen_decls(h);
126 print_otag(h, TAG_HTML, "");
127 t = print_otag(h, TAG_HEAD, "");
128 print_man_head(man, h);
129 print_tagq(h, t);
131 print_gen_comment(h, n);
132 print_otag(h, TAG_BODY, "");
135 man_root_pre(man, h);
136 t = print_otag(h, TAG_MAIN, "c", "manual-text");
137 print_man_nodelist(man, n, h);
138 print_tagq(h, t);
139 man_root_post(man, h);
140 print_tagq(h, NULL);
144 print_man_head(const struct roff_meta *man, struct html *h)
148 print_gen_head(h);
150 print_otag(h, TAG_TITLE, "");
151 print_text(h, cp);
159 print_man_node(man, n, h);
174 html_fillmode(h, ROFF_fi);
175 else if (html_fillmode(h, ROFF_nf) == ROFF_nf &&
178 print_endline(h);
184 print_endline(h);
188 (h->flags & HTML_NONEWLINE) == 0)
189 print_otag(h, TAG_BR, "");
191 h->flags |= HTML_NOSPACE;
192 t = h->tag;
194 print_text(h, n->string);
197 t = h->tag;
199 print_eqn(h, n->eqn);
207 print_tbl(h, n->span);
214 if (h->metac != ESCAPE_FONTROMAN) {
215 h->metal = h->metac;
216 h->metac = ESCAPE_FONTROMAN;
224 if (h->tblt != NULL)
225 print_tblclose(h);
226 t = h->tag;
229 roff_html_pre(h, n);
231 print_stagq(h, t);
237 n, h);
242 print_man_nodelist(man, n->child, h);
248 t = h->tag;
256 print_tagq(h, t);
261 print_stagq(h, t);
265 man_root_pre(const struct roff_meta *man, struct html *h)
274 t = print_otag(h, TAG_DIV, "cr?", "head", "doc-pageheader",
277 print_otag(h, TAG_SPAN, "c", "head-ltitle");
278 print_text(h, title);
279 print_stagq(h, t);
281 print_otag(h, TAG_SPAN, "c", "head-vol");
283 print_text(h, man->vol);
284 print_stagq(h, t);
286 print_otag(h, TAG_SPAN, "c", "head-rtitle");
287 print_text(h, title);
288 print_tagq(h, t);
293 man_root_post(const struct roff_meta *man, struct html *h)
304 t = print_otag(h, TAG_DIV, "cr?", "foot", "doc-pagefooter",
307 print_otag(h, TAG_SPAN, "c", "foot-left");
309 print_text(h, man->os);
310 print_stagq(h, t);
312 print_otag(h, TAG_SPAN, "c", "foot-date");
313 print_text(h, man->date);
314 print_stagq(h, t);
316 print_otag(h, TAG_SPAN, "c", "foot-right");
317 print_text(h, title);
318 print_tagq(h, t);
337 html_close_paragraph(h);
338 print_otag(h, TAG_SECTION, "c", class);
341 print_otag_id(h, tag, class, n);
384 h->flags |= HTML_NOSPACE;
387 t = print_otag(h, fp, "");
389 print_text(h, nn->string);
392 print_tagq(h, t);
400 print_otag(h, TAG_SMALL, "");
402 print_otag(h, TAG_B, "");
411 html_close_paragraph(h);
418 print_otag(h, TAG_P, "c",
496 html_close_paragraph(h);
498 print_otag(h, list_elem, "c", list_class);
503 print_otag_id(h, TAG_DT, NULL, n);
506 print_otag(h, body_elem, "");
514 print_man_node(man, n->child, h);
522 print_man_node(man, nn, h);
539 html_setfont(h, ESCAPE_FONTROMAN);
552 if (name != NULL && section != NULL && h->base_man1 != NULL)
553 t = print_otag(h, TAG_A, "chM?", "Xr",
556 t = print_otag(h, TAG_A, "c?", "Xr", "aria-label", label);
560 print_text(h, name);
561 h->flags |= HTML_NOSPACE;
563 print_text(h, "(");
564 h->flags |= HTML_NOSPACE;
566 print_text(h, section);
567 h->flags |= HTML_NOSPACE;
569 print_text(h, ")");
570 print_tagq(h, t);
572 h->flags |= HTML_NOSPACE;
573 print_text(h, suffix);
583 print_text(h, "[");
584 h->flags |= HTML_NOSPACE;
585 tt = print_otag(h, TAG_SPAN, "c", "Op");
588 print_otag(h, TAG_B, "");
589 print_text(h, n->string);
592 print_stagq(h, tt);
595 print_otag(h, TAG_I, "");
596 print_text(h, n->next->string);
599 print_stagq(h, tt);
600 h->flags |= HTML_NOSPACE;
601 print_text(h, "]");
608 print_otag(h, TAG_B, "");
615 print_otag(h, TAG_I, "");
622 print_otag(h, TAG_BR, "");
637 html_close_paragraph(h);
642 print_otag(h, TAG_DIV, "c", "Bd-indent");
655 html_close_paragraph(h);
656 print_otag(h, TAG_TABLE, "c", "Nm");
657 print_otag(h, TAG_TR, "");
660 print_otag(h, TAG_TD, "");
661 print_otag(h, TAG_CODE, "c", "Nm");
664 print_otag(h, TAG_TD, "");
683 print_otag(h, TAG_A, "ch", "Mt", cp);
686 print_otag(h, TAG_A, "ch", "Lk", n->child->string);
693 print_man_nodelist(man, n->child, h);