Lines Matching +full:6 +full:- +full:inch
58 if (su->scale < 0.0) in html_tbl_sulen()
61 switch (su->unit) { in html_tbl_sulen()
63 return su->scale * 65536.0 / 24.0; in html_tbl_sulen()
64 case SCALE_IN: /* 10 characters per inch */ in html_tbl_sulen()
65 return su->scale * 10.0; in html_tbl_sulen()
66 case SCALE_CM: /* 2.54 cm per inch */ in html_tbl_sulen()
67 return su->scale * 10.0 / 2.54; in html_tbl_sulen()
68 case SCALE_PC: /* 6 pica per inch */ in html_tbl_sulen()
70 return su->scale * 10.0 / 6.0; in html_tbl_sulen()
73 return su->scale; in html_tbl_sulen()
75 return su->scale * 10.0 / 6.0 / 12.0; in html_tbl_sulen()
77 return su->scale / 24.0; in html_tbl_sulen()
78 case SCALE_MM: /* 1/1000 inch */ in html_tbl_sulen()
79 return su->scale / 100.0; in html_tbl_sulen()
89 if (h->tbl.cols == NULL) { in html_tblopen()
90 h->tbl.len = html_tbl_len; in html_tblopen()
91 h->tbl.slen = html_tbl_strlen; in html_tblopen()
92 h->tbl.sulen = html_tbl_sulen; in html_tblopen()
93 tblcalc(&h->tbl, sp, 0, 0); in html_tblopen()
95 assert(NULL == h->tblt); in html_tblopen()
96 h->tblt = print_otag(h, TAG_TABLE, "c?ss", "tbl", in html_tblopen()
98 sp->opts->opts & TBL_OPT_ALLBOX ? "1" : NULL, in html_tblopen()
99 "border-style", in html_tblopen()
100 sp->opts->opts & TBL_OPT_DBOX ? "double" : in html_tblopen()
101 sp->opts->opts & TBL_OPT_BOX ? "solid" : NULL, in html_tblopen()
102 "border-top-style", in html_tblopen()
103 sp->pos == TBL_SPAN_DHORIZ ? "double" : in html_tblopen()
104 sp->pos == TBL_SPAN_HORIZ ? "solid" : NULL); in html_tblopen()
111 assert(h->tblt); in print_tblclose()
112 print_tagq(h, h->tblt); in print_tblclose()
113 h->tblt = NULL; in print_tblclose()
132 if (h->tblt == NULL) in print_tbl()
140 if (sp->pos != TBL_SPAN_DATA) in print_tbl()
145 h->flags |= HTML_NONOSPACE; in print_tbl()
146 h->flags |= HTML_NOSPACE; in print_tbl()
150 switch (sp->layout->vert) { in print_tbl()
165 if ((psp = sp->next) != NULL) { in print_tbl()
166 switch (psp->pos) { in print_tbl()
179 "border-left-style", lborder, in print_tbl()
180 "border-bottom-style", bborder); in print_tbl()
182 for (dp = sp->first; dp != NULL; dp = dp->next) { in print_tbl()
191 cp = dp->layout; in print_tbl()
192 if (cp->pos == TBL_CELL_SPAN || cp->pos == TBL_CELL_DOWN || in print_tbl()
193 (dp->string != NULL && strcmp(dp->string, "\\^") == 0)) in print_tbl()
198 if (dp->hspans > 0) { in print_tbl()
200 "%d", dp->hspans + 1); in print_tbl()
204 if (dp->vspans > 0) { in print_tbl()
206 "%d", dp->vspans + 1); in print_tbl()
211 switch (cp->pos) { in print_tbl()
223 if (cp->flags & TBL_CELL_TALIGN) in print_tbl()
225 else if (cp->flags & TBL_CELL_BALIGN) in print_tbl()
230 for (i = dp->hspans; i > 0; i--) in print_tbl()
231 cp = cp->next; in print_tbl()
232 switch (cp->vert) { in print_tbl()
248 "vertical-align", valign, in print_tbl()
249 "text-align", halign, in print_tbl()
250 "border-right-style", rborder); in print_tbl()
251 if (dp->layout->pos == TBL_CELL_HORIZ || in print_tbl()
252 dp->layout->pos == TBL_CELL_DHORIZ || in print_tbl()
253 dp->pos == TBL_DATA_HORIZ || in print_tbl()
254 dp->pos == TBL_DATA_NHORIZ || in print_tbl()
255 dp->pos == TBL_DATA_DHORIZ || in print_tbl()
256 dp->pos == TBL_DATA_NDHORIZ) in print_tbl()
258 else if (dp->string != NULL) { in print_tbl()
259 save_font = h->metac; in print_tbl()
260 html_setfont(h, dp->layout->font); in print_tbl()
261 if (dp->layout->pos == TBL_CELL_LONG) in print_tbl()
263 print_text(h, dp->string); in print_tbl()
264 if (dp->layout->pos == TBL_CELL_NUMBER) { in print_tbl()
265 col = h->tbl.cols + dp->layout->col; in print_tbl()
266 if (col->decimal < col->nwidth) { in print_tbl()
267 if ((ccp = strrchr(dp->string, in print_tbl()
268 sp->opts->decimal)) == NULL) { in print_tbl()
271 ccp = strchr(dp->string, '\0'); in print_tbl()
274 sz = col->nwidth - col->decimal; in print_tbl()
275 while (--sz > 0) { in print_tbl()
291 h->flags &= ~HTML_NONOSPACE; in print_tbl()
294 if (sp->next == NULL) { in print_tbl()
295 assert(h->tbl.cols); in print_tbl()
296 free(h->tbl.cols); in print_tbl()
297 h->tbl.cols = NULL; in print_tbl()