Lines Matching +full:bl +full:- +full:data +full:- +full:offset

14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
71 p->tcol = p->tcols = mandoc_calloc(1, sizeof(*p->tcol)); in ascii_init()
72 p->maxtcol = 1; in ascii_init()
74 p->line = 1; in ascii_init()
75 p->defindent = 5; in ascii_init()
76 p->defrmargin = p->lastrmargin = 78; in ascii_init()
77 p->fontq = mandoc_reallocarray(NULL, in ascii_init()
78 (p->fontsz = 8), sizeof(*p->fontq)); in ascii_init()
79 p->fontq[0] = p->fontl = TERMFONT_NONE; in ascii_init()
81 p->begin = ascii_begin; in ascii_init()
82 p->end = ascii_end; in ascii_init()
83 p->hspan = ascii_hspan; in ascii_init()
84 p->type = TERMTYPE_CHAR; in ascii_init()
86 p->enc = TERMENC_ASCII; in ascii_init()
87 p->advance = ascii_advance; in ascii_init()
88 p->endline = ascii_endline; in ascii_init()
89 p->letter = ascii_letter; in ascii_init()
90 p->setwidth = ascii_setwidth; in ascii_init()
91 p->width = ascii_width; in ascii_init()
108 * We only support UTF-8, in ascii_init()
113 strcmp(nl_langinfo(CODESET), "UTF-8") != 0) in ascii_init()
117 p->enc = TERMENC_UTF8; in ascii_init()
118 p->advance = locale_advance; in ascii_init()
119 p->endline = locale_endline; in ascii_init()
120 p->letter = locale_letter; in ascii_init()
121 p->width = locale_width; in ascii_init()
126 if (outopts->mdoc) in ascii_init()
127 p->mdocstyle = 1; in ascii_init()
128 if (outopts->indent) in ascii_init()
129 p->defindent = outopts->indent; in ascii_init()
130 if (outopts->width) in ascii_init()
131 p->defrmargin = outopts->width; in ascii_init()
132 if (outopts->synopsisonly) in ascii_init()
133 p->synopsisonly = 1; in ascii_init()
135 assert(p->defindent < UINT16_MAX); in ascii_init()
136 assert(p->defrmargin < UINT16_MAX); in ascii_init()
166 p->tcol->rmargin = p->defrmargin; in ascii_setwidth()
168 p->defrmargin += width; in ascii_setwidth()
170 p->defrmargin = width ? (size_t)width : p->lastrmargin; in ascii_setwidth()
171 else if (p->defrmargin > (size_t)width) in ascii_setwidth()
172 p->defrmargin -= width; in ascii_setwidth()
174 p->defrmargin = 0; in ascii_setwidth()
175 if (p->defrmargin > 1000) in ascii_setwidth()
176 p->defrmargin = 1000; in ascii_setwidth()
177 p->lastrmargin = p->tcol->rmargin; in ascii_setwidth()
178 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in ascii_setwidth()
188 (*p->endline)(p); in terminal_sepline()
189 for (i = 0; i < p->defrmargin; i++) in terminal_sepline()
190 (*p->letter)(p, '-'); in terminal_sepline()
191 (*p->endline)(p); in terminal_sepline()
192 (*p->endline)(p); in terminal_sepline()
219 (*p->headf)(p, p->argf); in ascii_begin()
226 (*p->footf)(p, p->argf); in ascii_end()
233 p->line++; in ascii_endline()
234 if ((int)p->tcol->offset > p->ti) in ascii_endline()
235 p->tcol->offset -= p->ti; in ascii_endline()
237 p->tcol->offset = 0; in ascii_endline()
238 p->ti = 0; in ascii_endline()
264 switch (su->unit) { in ascii_hspan()
266 r = su->scale; in ascii_hspan()
269 r = su->scale * 240.0 / 2.54; in ascii_hspan()
272 r = su->scale * 65536.0; in ascii_hspan()
275 r = su->scale * 240.0; in ascii_hspan()
278 r = su->scale * 0.24; in ascii_hspan()
282 r = su->scale * 40.0; in ascii_hspan()
285 r = su->scale * 10.0 / 3.0; in ascii_hspan()
289 r = su->scale * 24.0; in ascii_hspan()
294 return r > 0.0 ? r + 0.01 : r - 0.01; in ascii_hspan()
307 "(", ")", "*", "+", ",", "-", ".", "/", in ascii_uc2str()
322 nbrsp, "!", "/\bc", "-\bL", "o\bx", "=\bY", "|", "<section>", in ascii_uc2str()
323 "\"", "(C)", "_\ba", "<<", "~", "", "(R)", "-", in ascii_uc2str()
324 "<degree>","+-","^2", "^3", "'","<micro>","<paragraph>",".", in ascii_uc2str()
341 "q", "'\bL", "'\bl", ",\bL", ",\bl", "L", "l", "L", in ascii_uc2str()
342 "l", "/\bL", "/\bl", "'\bN", "'\bn", ",\bN", ",\bn", "N", in ascii_uc2str()
353 "K", "k", "/\bl", "l", "W", "N", "n", "~\bO", in ascii_uc2str()
408 p->line++; in locale_endline()
409 if ((int)p->tcol->offset > p->ti) in locale_endline()
410 p->tcol->offset -= p->ti; in locale_endline()
412 p->tcol->offset = 0; in locale_endline()
413 p->ti = 0; in locale_endline()