Lines Matching refs:TRACE

432 	TRACE(("ERROR: shading requested, but there is no reference axis\n"));
475 TRACE(("ERROR: shading requested, but there is no reference axis\n"));
520 TRACE(("point %d,%d can not be added to filled polygon\n",
797 TRACE(("orig a_length=%d a_start=%d\n", a_length, a_start));
808 TRACE(("positive a_length=%d a_start=%d\n", a_length, a_start));
841 TRACE(("drawing arc with %d points clockwise from %g degrees for %g degrees (from point %d to %d out of %d)\n",
876 TRACE(("drawing point %u at %d,%d (%.5g deg)\n",
888 TRACE(("skipping point %u at %d,%d which is outside of range (%.5g deg)\n",
1590 TRACE(("refusing impossible bitmap size w=%d h=%d xmin=%d ymin=%d for ch='%c'\n",
1598 TRACE(("unable to create Pixmap for Xft\n"));
1605 TRACE(("unable to create XftDraw\n"));
1627 TRACE(("unable to create GC\n"));
1636 TRACE(("unable to create XImage\n"));
1645 TRACE(("'%c'[%02u]:", ch, yy));
1652 TRACE((" %lu", pix));
1656 TRACE(("\n"));
1708 TRACE(("reported metrics:\n"));
1709 TRACE((" %ux%u ascent=%u descent=%u\n", font->max_advance_width,
1711 TRACE(("computed metrics:\n"));
1712 TRACE((" (unable to allocate pixel array)\n"));
1805 TRACE(("reported metrics:\n"));
1806 TRACE((" %ux%u ascent=%u descent=%u\n", font->max_advance_width,
1808 TRACE(("computed metrics:\n"));
1809 TRACE((" (no characters found)\n"));
1892 TRACE(("determining best size of font \"%s\" for %ux%u glyph with max_pixels=%u\n",
1924 TRACE(("Giving up finding suitable Xft font size for \"%s\" at %ux%u.\n",
1956 TRACE(("trying targeth=%g\n", targeth / 10.0));
1975 TRACE(("unable to open a monospaced Xft font matching \"%s\" with pixelsize %g\n",
1984 TRACE(("Testing font named \"%s\"\n", buffer));
1986 TRACE(("Testing unknown font\n"));
2002 TRACE(("got %ux%u dimensions for target size targeth=%d; trying reduced target size\n",
2010 TRACE(("checking max=%ux%u targeth=%u.%u\n", maxw, maxh, targeth /
2018 TRACE(("got %ux%u glyph; too tall; reducing target size\n", *w, *h));
2031 TRACE(("got %ux%u glyph; too wide; reducing target size\n", *w, *h));
2043 TRACE(("got %ux%u glyph; too many pixels; reducing target size\n",
2066 TRACE(("Final font for \"%s\" max %dx%d is \"%s\"\n",
2069 TRACE(("Final font for \"%s\" max %dx%d is unknown\n",
2127 TRACE(("trying to load glyph '%c' at max size %dx%d\n", ch, maxw, maxh));
2131 TRACE(("Unable to find suitable Xft font\n"));
2136 TRACE(("empty glyph found for '%c'\n", ch));
2143 TRACE(("Unable to create bitmap for '%c'\n", ch));
2148 TRACE(("loaded glyph '%c' at max size %dx%d\n", ch, maxw, maxh));
2163 TRACE(("Not rendering Xft font for ReGIS (support not compiled in).\n"));
2228 TRACE(("for target size %ux%u alphabet %u found index %u size %ux%u font=%s\n",
2235 TRACE(("for target size %ux%u alphabet %u found no suitable alphabets\n",
2261 TRACE(("BUG: in alphabet %u with alphabet index %u user glyph for '%c' not loaded\n",
2275 TRACE(("in alphabet %u with alphabet index %u user glyph for '%c' is too large: %ux%u (max_pixels=%u)\n",
2340 TRACE(("getting bitmap of glyph %d, current alphabet %d\n", ch,
2362 TRACE(("checking user glyph for slot=%u alphabet=%d use_font=%d loaded=%d\n",
2370 TRACE(("found user glyph for alphabet number %d (index %u)\n\n",
2384 TRACE(("using xft font \"%s\"\n", fontname));
2390 TRACE(("BUG: Xft glyph is too wide: %ux%u but max is %ux%u\n",
2393 TRACE(("BUG: Xft glyph is too tall: %ux%u but max is %ux%u\n",
2396 TRACE(("BUG: Xft glyph has too many pixels: %u but max is %u\n",
2399 TRACE(("got glyph from \"%s\" for alphabet number %d\n",
2415 TRACE(("unable to load any bitmap for character '%c' in alphabet number %u at %ux%u\n",
2561 TRACE(("str_shear: %.5f, %.5f (sign=%d)\n",
2570 TRACE(("after pv output updating position %+d,%+d\n", ox, oy));
2621 TRACE(("ERROR: unsupported character slant angle %d\n",
2645 TRACE(("scaled up text to %dx%d\n",
2688 TRACE(("float version: %.5f\n", tan(2.0 * M_PI * abs(slant) / 360.0)));
2697 TRACE(("string rotation: %d\n",
2699 TRACE(("character rotation: %d\n",
2701 TRACE(("character slant: %d (%.5f pixels per line)\n",
2705 TRACE(("str_shear: %.5f, %.5f (sign=%d)\n",
2709 TRACE(("chr_shear: %.5f, %.5f (xsign=%d,%d, ysign=%d,%d)\n",
2714 TRACE(("character_inc: %d,%d\n",
2739 TRACE(("during text output updating position to %d,%d + %+d,%+d for '%c'\n",
2755 TRACE(("after text output updating position to %d,%d + %+d,%+d\n",
3017 TRACE(("end of input line\n\n"));
3053 TRACE(("DATA_ERROR: end of input before closing bracket\n"));
3262 TRACE(("DATA_ERROR: end of input before closing quote\n"));
3312 TRACE(("leaving parenthesized data nested %d levels deep due to command termination character\n",
3327 TRACE(("DATA_ERROR: end of input before closing paren (%d levels deep)\n",
3377 TRACE(("looking at char '%c' in option '%c'\n", ch, *option));
3396 TRACE(("DATA_ERROR: found ReGIS option has value with too many close parens \"%c\"\n",
3407 TRACE(("DATA_ERROR: found ReGIS option has value with too many close brackets \"%c\"\n",
3432 TRACE(("DATA_ERROR: mismatched parens in argument to ReGIS option \"%c\"\n",
3437 TRACE(("DATA_ERROR: mismatched brackets in argument to ReGIS option \"%c\"\n",
3442 TRACE(("found ReGIS option and value \"%c\" \"%s\"\n",
3466 TRACE(("converting \"%s\" to an int\n", fragment_to_tempstr(input)));
3502 TRACE(("colorspec option: \"%s\"\n", fragment_to_tempstr(&colorspec)));
3525 TRACE(("got ReGIS RGB colorspec pattern '%c' with arguments: \"%s\"\n",
3585 TRACE(("DATA_ERROR: unknown RGB color name: \"%c\"\n", ch));
3637 TRACE(("DATA_ERROR: unrecognized component in colorspec: '%c'\n",
3644 TRACE(("DATA_ERROR: expected int after '%c' component in colorspec: \"%s\"\n",
3649 TRACE(("DATA_ERROR: component value \"%s\" is not a number\n",
3655 TRACE(("DATA_ERROR: component value %d out of range\n", val));
3688 TRACE(("DATA_ERROR: conflicting colorspec format\n"));
3691 TRACE(("found HLS colorspec to be converted: %hd,%hd,%hd\n",
3694 TRACE(("converted to RGB: %hd,%hd,%hd\n", r, g, b));
3696 TRACE(("found RGB colorspec: %hd,%hd,%hd\n", r, g, b));
3698 TRACE(("calculated L: %d\n", l));
3701 TRACE(("using partial HLS %hd,%hd,%hd\n", h, l, s));
3709 TRACE(("resulting HLS colorspec to convert: %hd,%hd,%hd\n",
3712 TRACE(("converted to RGB: %hd,%hd,%hd\n", r, g, b));
3714 TRACE(("DATA_ERROR: unrecognized colorspec format\n"));
3724 TRACE(("converted to grayscale: %hd,%hd,%hd\n", r, g, b));
3737 TRACE(("DATA_ERROR: ignoring unexpected character in ReGIS colorspec \"%c\"\n",
3755 TRACE(("looking at colorspec pattern: \"%s\"\n",
3762 TRACE(("DATA_ERROR: colorspec value \"%s\" is not a valid register\n",
3768 TRACE(("DATA_ERROR: ignoring negative colorspec value: %d\n", val));
3773 TRACE(("DATA_ERROR: colorspec value %d is too big; wrapping\n",
3778 TRACE(("colorspec contains index for register %u\n", val));
3787 TRACE(("DATA_ERROR: unexpected character after register \"%c\"\n",
3800 TRACE(("unable to parse colorspec\n"));
3806 TRACE(("colorspec maps to closest register %u\n", *out));
3811 TRACE(("expected register number or colorspec, but found: \"%s\"\n",
3843 TRACE(("unexpected character %c in number %s\n", end[0], num));
3939 TRACE(("invalid coordinates in extent \"%s\"\n", extent));
3943 TRACE(("invalid relative value in multiplier extent \"%s\"\n", extent));
3961 TRACE(("invalid coordinates in extent \"%s\"\n", extent));
3986 TRACE(("invalid coordinates in extent \"%s\"\n", extent));
3992 TRACE(("converted relative user X coord %.03f to relative pixel X coord %d (width=%d xoff=%d xdiv=%d)\n",
3998 TRACE(("converted absolute user X coord %.03f to absolute pixel X coord %d\n",
4004 TRACE(("converted relative user Y coord %.03f to relative pixel Y coord %d (height=%d yoff=%d ydiv=%d)\n",
4010 TRACE(("converted absolute user Y coord %.03f to absolute pixel Y coord %d\n",
4074 TRACE(("DATA_ERROR: ignoring unknown pixel vector digits: \"%s\"\n",
4101 TRACE(("DATA_ERROR: ignoring unknown pixel vector digits: \"%s\"\n",
4107 TRACE(("converted relative X coord %.03f to relative pixel X coord %d (width=%d xoff=%d xdiv=%d)\n",
4112 TRACE(("converted relative Y coord %.03f to relative pixel Y coord %d (height=%d yoff=%d ydiv=%d)\n",
4135 TRACE(("DATA_ERROR: ignoring unknown pixel vector digits: \"%s\"\n",
4141 TRACE(("converted relative X coord %.03f to relative pixel X coord %d (width=%d xoff=%d xdiv=%d)\n",
4146 TRACE(("converted relative Y coord %.03f to relative pixel Y coord %d (height=%d yoff=%d ydiv=%d)\n",
4163 TRACE(("checking write control option \"%c\" with arg \"%s\"\n",
4168 TRACE(("write control alternate display method \"%s\"\n",
4173 TRACE(("DATA_ERROR: interpreting out of range value as 0 FIXME\n"));
4180 TRACE(("write control compliment writing mode \"%s\"\n",
4186 TRACE(("write control erase writing mode \"%s\"\n",
4192 TRACE(("write control plane write mask \"%s\"\n",
4198 TRACE(("DATA_ERROR: interpreting out of range value as 0 FIXME\n"));
4207 TRACE(("write control foreground color \"%s\"\n",
4210 TRACE(("DATA_ERROR: write control foreground color specifier not recognized: \"%s\"\n",
4217 TRACE(("write control line width \"%s\" (FIXME: currently ignored)\n",
4223 TRACE(("interpreting out of range value as 1 FIXME\n"));
4232 TRACE(("write control found pixel multiplication factor \"%s\"\n",
4237 TRACE(("interpreting out of range value %d as 1 FIXME\n", val));
4246 TRACE(("write control negative pattern control \"%s\"\n",
4255 TRACE(("interpreting out of range value %d as 0 FIXME\n", val));
4269 TRACE(("write control found pattern control \"%s\"\n",
4281 TRACE(("looking for option in \"%s\"\n",
4284 TRACE(("got write pattern suboptionset: \"%s\"\n",
4291 TRACE(("inspecting write pattern suboption \"%c\" with value \"%s\"\n",
4297 TRACE(("found pattern multiplier \"%s\"\n",
4307 TRACE(("interpreting out of range pattern multiplier \"%s\" as 2 FIXME\n",
4318 TRACE(("DATA_ERROR: unknown content after pattern multiplier \"%s\"\n",
4325 TRACE(("DATA_ERROR: unknown ReGIS write pattern suboption '%c' arg \"%s\"\n",
4333 TRACE(("DATA_ERROR: skipping unknown token in pattern control suboptionset (expecting option): \"%s\"\n",
4340 TRACE(("looking for int in \"%s\"\n",
4348 TRACE(("converting pattern bits \"%s\"\n",
4367 TRACE(("DATA_ERROR: unknown ReGIS write pattern bit value \"%c\"\n",
4392 TRACE(("converting pattern id \"%s\"\n",
4428 TRACE(("DATA_ERROR: unknown ReGIS standard write pattern \"%d\"\n",
4434 TRACE(("final pattern is %02x\n", out->pattern));
4439 TRACE(("DATA_ERROR: skipping unknown token in pattern suboption: \"%s\"\n",
4447 TRACE(("write control switch to replacement writing mode \"%s\"\n",
4453 TRACE(("write control shading control \"%s\"\n",
4471 TRACE(("found fill char \"%s\"\n", state->temp));
4474 TRACE(("DATA_ERROR: expected exactly one char in fill string FIXME\n"));
4479 TRACE(("shading character is: '%c' (%d)\n",
4486 TRACE(("got shading control suboptionset: \"%s\"\n",
4493 TRACE(("inspecting write shading suboption \"%c\" with value \"%s\"\n",
4499 TRACE(("found horizontal shading suboption \"%s\"\n",
4502 TRACE(("DATA_ERROR: unexpected value to horizontal shading suboption FIXME\n"));
4509 TRACE(("DATA_ERROR: unknown ReGIS write pattern suboption '%c' arg \"%s\"\n",
4517 TRACE(("DATA_ERROR: skipping unknown token in shading control suboptionset (expecting option): \"%s\"\n",
4525 TRACE(("found extent in shading option curr=%d,%d ref=%d,%d\n",
4531 TRACE(("DATA_ERROR: unable to parse extent in write shading option '%c': \"%s\"\n",
4535 TRACE(("shading reference = %d,%d (%s)\n", ref_x, ref_y,
4544 TRACE(("DATA_ERROR: unable to parse int in write shading option '%c': \"%s\"\n",
4549 TRACE(("interpreting out of range value %d as 0 FIXME\n",
4553 TRACE(("shading enabled = %d\n", shading_enabled));
4561 TRACE(("DATA_ERROR: skipping unknown token in shade suboption: \"%s\"\n",
4573 TRACE(("final shading state: enabled, dim=%d ref=%d, char=%c\n",
4581 TRACE(("final shading state: shading disabled\n"));
4587 TRACE(("write control switch to overlay writing mode \"%s\"\n",
4592 TRACE(("DATA_ERROR: ignoring unknown ReGIS write option \"%c\" arg \"%s\"\n",
4616 TRACE(("got write control optionset: \"%s\"\n",
4622 TRACE(("got write control option and value: \"%c\" \"%s\"\n",
4632 TRACE(("DATA_ERROR: skipping unknown token in write control optionset (expecting option): \"%s\"\n",
4639 TRACE(("DATA_ERROR: skipping unknown token in write controls (expecting optionset): \"%s\"\n",
4730 TRACE(("using graphics destination=[%d -> %u] display=[%d -> %u]\n",
4893 TRACE(("found ReGIS command \"%c\" (curve)\n", ch));
4908 TRACE(("found ReGIS command \"%c\" (filled polygon)\n", ch));
4921 TRACE(("found ReGIS command \"%c\" (load charset)\n", ch));
4940 TRACE(("found ReGIS command \"%c\" (position)\n", ch));
4957 TRACE(("found ReGIS command \"%c\" (report status)\n", ch));
4992 TRACE(("found ReGIS command \"%c\" (screen)\n", ch));
5021 TRACE(("found ReGIS command \"%c\" (text)\n", ch));
5038 TRACE(("found ReGIS command \"%c\" (vector)\n", ch));
5068 TRACE(("found ReGIS command \"%c\" (write parameters)\n", ch));
5078 TRACE(("found ReGIS macrograph command\n"));
5082 TRACE(("DATA_ERROR: unknown ReGIS command %04x (%c), setting to '_'\n",
5104 TRACE(("found ReGIS option '%c', parsing argument \"%s\"\n",
5109 TRACE(("inspecting curve option \"%c\" with value \"%s\"\n",
5114 TRACE(("found arc length \"%s\"\n",
5120 TRACE(("DATA_ERROR: expected int in curve arclen option: \"%s\"\n",
5124 TRACE(("arc length string %s\n",
5127 TRACE(("DATA_ERROR: unable to parse int in curve arclen option: \"%s\"\n",
5131 TRACE(("value of arc length is %d\n", state->arclen));
5136 TRACE(("using final arc length %d\n", state->arclen));
5140 TRACE(("DATA_ERROR: ignoring trailing junk in arc length option \"%s\"\n",
5148 TRACE(("begin closed curve \"%s\"\n",
5151 TRACE(("DATA_ERROR: invalid closed curve option \"%s\"\n",
5165 TRACE(("found center position mode \"%s\"\n",
5168 TRACE(("DATA_ERROR: invalid center position option \"%s\"\n",
5176 TRACE(("found end curve \"%s\"\n", fragment_to_tempstr(&optionarg)));
5178 TRACE(("DATA_ERROR: ignoring unexpected arguments to curve option '%c' arg \"%s\"\n",
5253 TRACE(("drawing closed spline\n"));
5254 TRACE(("output location was: %d,%d\n",
5261 TRACE(("output location now: %d,%d\n",
5264 TRACE(("output location finally: %d,%d\n",
5280 TRACE(("drawing open spline\n"));
5281 TRACE(("output location was: %d,%d\n",
5288 TRACE(("output location now: %d,%d\n",
5296 TRACE(("output location finally: %d,%d\n",
5302 TRACE(("DATA_ERROR: end curve option unexpected \"%s\"\n",
5309 TRACE(("begin open curve \"%s\"\n",
5312 TRACE(("DATA_ERROR: invalid open curve option \"%s\"\n",
5323 TRACE(("first point on curve with location %d,%d\n",
5329 TRACE(("found temporary write options \"%s\"\n",
5336 TRACE(("DATA_ERROR: invalid temporary write options \"%s\"\n",
5342 TRACE(("DATA_ERROR: ignoring unknown ReGIS curve command option '%c' arg \"%s\"\n",
5348 TRACE(("ERROR: fill commands should not be handled here\n"));
5351 TRACE(("inspecting load option \"%c\" with value \"%s\"\n",
5356 TRACE(("found alphabet specifier option \"%s\"\n",
5364 TRACE(("alphabet number: %s\n",
5367 TRACE(("DATA_ERROR: unable to parse int in load alphabet option: \"%s\"\n",
5373 TRACE(("DATA_ERROR: invalid alphabet: \"%d\"\n",
5379 TRACE(("DATA_ERROR: alphabet 0 can not be modified\n"));
5384 TRACE(("setting load alphabet: %d\n", alphabet));
5389 TRACE(("alphabet name: %s\n", state->temp));
5392 TRACE(("DATA_ERROR: alphabet names must be between 1 and %u characters long: \"%s\" FIXME\n",
5398 TRACE(("using name for alphabet %u: %s\n",
5405 TRACE(("DATA_ERROR: expected int or string in load alphabet option: \"%s\"\n",
5414 TRACE(("found font option \"%s\"\n",
5422 TRACE(("current alphabet is %u and size is %ux%u; assigning alphabet index %u\n",
5435 TRACE(("fontname enabled: %s\n",
5438 TRACE(("DATA_ERROR: unable to parse int in load fontname option: \"%s\"\n",
5443 TRACE(("DATA_ERROR: invalid fontname enable state: \"%d\"\n", enabled));
5447 TRACE(("fontname enabled: %d\n", enabled));
5455 TRACE(("DATA_ERROR: font names must be between 1 and %u characters long: \"%s\"\n",
5463 TRACE(("using backing font: %s\n",
5470 TRACE(("DATA_ERROR: unexpected text in load fontname option: \"%s\"\n",
5480 TRACE(("found glyph size option \"%s\"\n",
5492 TRACE(("glyph size: %s\n", fragment_to_tempstr(&sizearg)));
5496 TRACE(("DATA_ERROR: unable to parse extent in glyph size option: \"%s\"\n",
5501 TRACE(("DATA_ERROR: glyph dimensions must not be negative or zero: %dx%d\n",
5507 TRACE(("DATA_ERROR: glyph is too large (%u bytes, limit is %u bytes)\n",
5513 TRACE(("DATA_ERROR: glyph size can not be changed after any data is loaded\n"));
5517 TRACE(("using glyph size: %dx%d\n", w, h));
5523 TRACE(("DATA_ERROR: expected extent in glyph size option: \"%s\"\n",
5530 TRACE(("DATA_ERROR: ignoring unknown ReGIS load command option '%c' arg \"%s\"\n",
5536 TRACE(("inspecting position option \"%c\" with value \"%s\"\n",
5541 TRACE(("found begin bounded position stack \"%s\"\n",
5545 TRACE(("DATA_ERROR: ignoring unexpected arguments to position option '%c' arg \"%s\"\n",
5550 TRACE(("unable to push position to full stack\n"));
5553 TRACE(("pushing location: %d,%d\n",
5565 TRACE(("found end position stack \"%s\"\n",
5569 TRACE(("DATA_ERROR: ignoring unexpected arguments to position option '%c' arg \"%s\"\n",
5573 TRACE(("DATA_ERROR: unable to pop position from empty stack\n"));
5584 TRACE(("popped location: %d,%d\n",
5588 TRACE(("not popping location\n"));
5593 TRACE(("found graphics page destination option \"%s\"\n",
5600 TRACE(("DATA_ERROR: expected int in page destination option: \"%s\"\n",
5604 TRACE(("page option arg: %s\n", fragment_to_tempstr(&pagearg)));
5606 TRACE(("DATA_ERROR: unable to parse int in page destination option: \"%s\"\n",
5611 TRACE(("DATA_ERROR: invalid page: \"%d\"\n", page));
5615 TRACE(("using destination page number: %d\n", page));
5623 TRACE(("found begin unbounded position stack \"%s\"\n",
5627 TRACE(("DATA_ERROR: ignoring unexpected arguments to end position option '%c' arg \"%s\"\n",
5632 TRACE(("unable to push dummy position to full stack\n"));
5636 TRACE(("pushing dummy positions instead of %d,%d\n",
5645 TRACE(("found temporary write options \"%s\"\n",
5652 TRACE(("DATA_ERROR: invalid temporary write options \"%s\"\n",
5657 TRACE(("DATA_ERROR: ignoring unknown ReGIS position command option '%c' arg \"%s\"\n",
5663 TRACE(("inspecting report option \"%c\" with value \"%s\"\n",
5668 TRACE(("found parse error report \"%s\" FIXME\n",
5672 TRACE(("DATA_ERROR: unexpected arguments to ReGIS report command option '%c' arg \"%s\"\n",
5679 TRACE(("got report last error condition\n"));
5692 TRACE(("found set input mode \"%s\"\n",
5699 TRACE(("DATA_ERROR: expected int in report input mode option: \"%s\"\n",
5704 TRACE(("input mode: %s\n", fragment_to_tempstr(&modearg)));
5706 TRACE(("DATA_ERROR: unable to parse int in report input mode option: \"%s\"\n",
5711 TRACE(("DATA_ERROR: ignoring invalid input mode: \"%d\"\n",
5716 TRACE(("using input mode: %d (%s)\n", mode,
5722 TRACE(("ERROR: multi-mode input not implemented FIXME\n"));
5739 TRACE(("DATA_ERROR: unexpected arguments to ReGIS report command option '%c' arg \"%s\"\n",
5747 TRACE(("found character set load report \"%s\"\n",
5750 TRACE(("DATA_ERROR: unexpected arguments to ReGIS report command option '%c' arg \"%s\"\n",
5754 TRACE(("DATA_ERROR: unable to report current load alphabet\n"));
5772 TRACE(("found macrograph report \"%s\" request\n",
5781 TRACE(("got macrograph report character request: \"%s\"\n",
5790 TRACE(("DATA_ERROR: unexpected content in ReGIS macrograph report suboptions: \"%s\"\n",
5798 TRACE(("DATA_ERROR: unexpected arguments to ReGIS report command option '%c' arg \"%s\"\n",
5804 TRACE(("DATA_ERROR: no macro name given to ReGIS macrograph report command\n"));
5812 TRACE(("got report macrograph storage request\n"));
5822 TRACE(("DATA_ERROR: invalid macrograph name: \"%c\"\n", name));
5826 TRACE(("got report macrograph request for name '%c'\n", name));
5839 TRACE(("found cursor position report \"%s\"\n",
5848 TRACE(("got cursor position report suboption: \"%s\"\n",
5858 TRACE(("DATA_ERROR: unknown ReGIS position report suboption '%c'\n",
5865 TRACE(("DATA_ERROR: unexpected content in ReGIS position report suboptions: \"%s\"\n",
5873 TRACE(("DATA_ERROR: unexpected arguments to ReGIS report command option '%c' arg \"%s\"\n",
5878 TRACE(("got report cursor position (output=%d)\n", output));
5896 TRACE(("sending multi-mode input report at %u,%u\n", x, y));
5914 TRACE(("sending one-shot input report with %c at %u,%u\n",
5929 TRACE(("DATA_ERROR: sending empty report for unknown ReGIS report command option '%c' arg \"%s\"\n",
5938 TRACE(("inspecting screen option \"%c\" with value \"%s\"\n",
5943 TRACE(("found address definition \"%s\"\n",
5961 TRACE(("DATA_ERROR: unable to parse extent in address definition: \"%s\"\n",
5975 TRACE(("DATA_ERROR: ignoring extra extent argument in address definition: \"%s\"\n",
5981 TRACE(("DATA_ERROR: ignoring malformed ReGIS screen address definition: expected extent argument but found: \"%s\"\n",
5987 TRACE(("DATA_ERROR: ignoring malformed ReGIS screen address definition: one or both locations missing in definition\n"));
5991 TRACE(("DATA_ERROR: ignoring malformed ReGIS screen address definition: one or both dimensions are zero: ul=%d,%d lr=%d,%d\n",
6009 TRACE(("custom screen size pre scaling: %dx%d\n", cw, ch));
6032 TRACE(("custom screen address: ul=%d,%d lr=%d,%d\n",
6045 TRACE(("conversion factors: off=%+d,%+d div=%+d,%+d width=%d, height=%d\n",
6054 TRACE(("found cursor control \"%s\" FIXME\n",
6062 TRACE(("DATA_ERROR: ignoring malformed ReGIS screen cursor control option value \"%s\"\n",
6069 TRACE(("found erase request \"%s\"\n",
6072 TRACE(("DATA_ERROR: ignoring unexpected argument to ReGIS erase request \"%s\"\n",
6087 TRACE(("found page eject request \"%s\"\n",
6090 TRACE(("DATA_ERROR: ignoring unexpected argument to ReGIS page eject request \"%s\"\n",
6101 TRACE(("found hardcopy control \"%s\" FIXME\n",
6106 TRACE(("DATA_ERROR: ignoring malformed ReGIS screen hardcopy control option value \"%s\"\n",
6113 TRACE(("found screen background color index \"%s\"\n",
6117 TRACE(("DATA_ERROR: screen background color specifier not recognized: \"%s\"\n",
6124 TRACE(("found screen color register mapping \"%s\"\n",
6140 TRACE(("DATA_ERROR: unable to parse int in screen color register mapping option: \"%s\"\n",
6146 TRACE(("interpreting out of range register number %d as 0 FIXME\n",
6153 TRACE(("DATA_ERROR: expected to find parentheses after register number: \"%s\"\n",
6174 TRACE(("mapping register %d %d,%d,%d to color spec: \"%s\"\n",
6181 TRACE(("DATA_ERROR: unable to use colorspec for mapping of register %d\n",
6189 TRACE(("NOT setting color register %d to %hd,%hd,%hd\n",
6192 TRACE(("setting color register %d to %hd,%hd,%hd\n",
6205 TRACE(("DATA_ERROR: ignoring mapping request with unexpected character \"%c\"\n",
6214 TRACE(("found graphics page display option \"%s\"\n",
6221 TRACE(("DATA_ERROR: expected int in page display option: \"%s\"\n",
6225 TRACE(("page option arg: %s\n", fragment_to_tempstr(&pagearg)));
6227 TRACE(("DATA_ERROR: unable to parse int in page display option: \"%s\"\n",
6232 TRACE(("DATA_ERROR: invalid page: \"%d\"\n", page));
6236 TRACE(("using display page number: %d\n", page));
6243 TRACE(("found time delay \"%s\" FIXME\n",
6250 TRACE(("DATA_ERROR: expected int in delay display option: \"%s\"\n",
6254 TRACE(("delay option arg: %s\n",
6257 TRACE(("DATA_ERROR: unable to parse int in delay display option: \"%s\"\n",
6262 TRACE(("DATA_ERROR: delay out of range: \"%d\"\n", delay));
6268 TRACE(("using delay for %d ticks\n", delay));
6276 TRACE(("found temporary write options \"%s\"\n",
6283 TRACE(("DATA_ERROR: invalid temporary write options \"%s\"\n",
6289 TRACE(("DATA_ERROR: ignoring unknown ReGIS screen command option '%c' arg \"%s\"\n",
6295 TRACE(("inspecting text option \"%c\" with value \"%s\"\n",
6300 TRACE(("found alphabet specifier option \"%s\"\n",
6307 TRACE(("DATA_ERROR: expected int in text alphabet option: \"%s\"\n",
6311 TRACE(("alphabet: %s\n", fragment_to_tempstr(&alphabetarg)));
6313 TRACE(("DATA_ERROR: unable to parse int in text alphabet option: \"%s\"\n",
6319 TRACE(("DATA_ERROR: invalid alphabet: \"%d\"\n", alphabet));
6323 TRACE(("using alphabet number: %d\n", alphabet));
6329 TRACE(("DATA_ERROR: ignoring trailing junk in text alphabet option \"%s\"\n",
6337 TRACE(("found beginning of temporary text control \"%s\"\n",
6345 TRACE(("found text tilt control \"%s\"\n",
6352 TRACE(("DATA_ERROR: expected int in text tilt option: \"%s\"\n",
6356 TRACE(("tilt: %s\n", fragment_to_tempstr(&rotationarg)));
6358 TRACE(("DATA_ERROR: unable to parse int in text tilt option: \"%s\"\n",
6389 TRACE(("character rotation (direction): %d\n", rotation));
6398 TRACE(("character rotation (direction): %d\n", rotation));
6403 TRACE(("changing character rotation (direction): %d\n",
6414 TRACE(("changing character rotation (direction): %d\n",
6423 TRACE(("DATA_ERROR: ignoring trailing junk in text tilt option \"%s\"\n",
6431 TRACE(("found end of temporary text control \"%s\"\n",
6437 TRACE(("found height multiplier \"%s\"\n",
6445 TRACE(("DATA_ERROR: expected int in text height multiplier option: \"%s\"\n",
6449 TRACE(("multiplier: %s\n", fragment_to_tempstr(&multiarg)));
6451 TRACE(("DATA_ERROR: unable to parse int in text height multiplier option: \"%s\"\n",
6456 TRACE(("DATA_ERROR: out of range height multiplier: \"%d\", using 0 FIXME\n",
6461 TRACE(("DATA_ERROR: out of range height multiplier: \"%d\", using 256 FIXME\n",
6465 TRACE(("using height multiplier: %d\n", multiplier));
6474 TRACE(("DATA_ERROR: ignoring trailing junk in text multiplier option \"%s\"\n",
6482 TRACE(("found italic control \"%s\"\n",
6489 TRACE(("DATA_ERROR: expected int in text italic option: \"%s\"\n",
6493 TRACE(("italic angle: %s\n", fragment_to_tempstr(&italicarg)));
6495 TRACE(("DATA_ERROR: unable to parse int in text italic option: \"%s\"\n",
6522 TRACE(("using italic angle: %d\n", italic));
6527 TRACE(("DATA_ERROR: ignoring trailing junk in text italic option \"%s\"\n",
6535 TRACE(("found text command unit size multiplier \"%s\"\n",
6543 TRACE(("DATA_ERROR: expected extent in unit size multiplier option: \"%s\"\n",
6547 TRACE(("size multiplier: %s\n",
6552 TRACE(("DATA_ERROR: unable to parse extent in '%c' command: \"%s\"\n",
6558 TRACE(("DATA_ERROR: unable to parse extent in size multiplier option: \"%s\"\n",
6563 TRACE(("DATA_ERROR: invalid size multiplier: %d,%d FIXME\n",
6574 TRACE(("using unit size multiplier: %d,%d\n", ww, hh));
6587 TRACE(("DATA_ERROR: ignoring trailing junk in text unit cell size option \"%s\"\n",
6595 TRACE(("found display size or standard character cell size \"%s\"\n",
6604 TRACE(("custom display size: %s\n",
6609 TRACE(("DATA_ERROR: unable to parse extent in text display size option: \"%s\"\n",
6614 TRACE(("DATA_ERROR: invalid text display size: %dx%d FIXME\n",
6619 TRACE(("using display cell size: %d,%d\n", disp_w, disp_h));
6624 TRACE(("using offset: %d,%d\n", disp_w, 0));
6636 TRACE(("standard display cell size: %s\n",
6639 TRACE(("DATA_ERROR: unable to parse int in text standard cell size option: \"%s\"\n",
6647 TRACE(("DATA_ERROR: unrecognized standard cell size: \"%d\"\n",
6652 TRACE(("using display cell size: %u,%u\n", disp_w, disp_h));
6657 TRACE(("using offset: %d,%d\n", off_x, off_y));
6670 TRACE(("using unit cell size: %u,%u\n", unit_w, unit_h));
6682 TRACE(("upgrading character rotation to string and character rotation: %d\n", context->current_text_controls->character_rotation));
6691 TRACE(("DATA_ERROR: unexpected duplicate size option: \"%s\" (state=%d)\n",
6700 TRACE(("DATA_ERROR: unexpected duplicate size option: \"%s\" (state=%d)\n",
6716 TRACE(("DATA_ERROR: expected int or extent in text display size option: \"%s\"\n",
6723 TRACE(("found text command custom unit cell size \"%s\"\n",
6731 TRACE(("DATA_ERROR: expected extent in text unit cell size option: \"%s\"\n",
6735 TRACE(("unitsize cell size: %s\n",
6740 TRACE(("DATA_ERROR: unable to parse extent in '%c' command: \"%s\"\n",
6745 TRACE(("DATA_ERROR: unable to parse extent in text unit cell size option: \"%s\"\n",
6750 TRACE(("DATA_ERROR: invalid text unit cell size: %dx%d FIXME\n",
6755 TRACE(("using unit cell size: %d,%d\n", unit_w, unit_h));
6764 TRACE(("DATA_ERROR: ignoring trailing junk in text unit cell size option \"%s\"\n",
6772 TRACE(("found temporary write options \"%s\"\n",
6779 TRACE(("DATA_ERROR: invalid temporary write options \"%s\"\n",
6785 TRACE(("DATA_ERROR: ignoring unknown ReGIS text command option '%c' arg \"%s\"\n",
6791 TRACE(("inspecting vector option \"%c\" with value \"%s\"\n",
6796 TRACE(("found begin bounded position stack \"%s\"\n",
6800 TRACE(("DATA_ERROR: ignoring unexpected arguments to vector option '%c' arg \"%s\"\n",
6805 TRACE(("unable to push position to full stack\n"));
6808 TRACE(("pushing location: %d,%d\n",
6820 TRACE(("found end vector position stack \"%s\"\n",
6824 TRACE(("DATA_ERROR: ignoring unexpected arguments to vector option '%c' arg \"%s\"\n",
6828 TRACE(("DATA_ERROR: unable to pop position from empty stack\n"));
6843 TRACE(("popped location: %d,%d\n",
6847 TRACE(("drawing line to popped location\n"));
6853 TRACE(("not popping location\n"));
6858 TRACE(("found begin unbounded position stack \"%s\"\n",
6862 TRACE(("DATA_ERROR: ignoring unexpected arguments to vector option '%c' arg \"%s\"\n",
6867 TRACE(("unable to push dummy position to full stack\n"));
6871 TRACE(("pushing dummy vector positions instead of %d,%d\n",
6880 TRACE(("found temporary write options \"%s\"\n",
6887 TRACE(("DATA_ERROR: invalid temporary write options \"%s\"\n",
6892 TRACE(("DATA_ERROR: ignoring unknown ReGIS vector command option '%c' arg \"%s\"\n",
6899 TRACE(("inspecting permanent write option \"%c\" with value \"%s\"\n",
6906 TRACE(("DATA_ERROR: invalid write options\n"));
6911 TRACE(("DATA_ERROR: unexpected option in \"%c\" command: \"%s\"\n",
6935 TRACE(("expanding macrograph '%c' with %u characters FIXME\n", name, 0U));
6952 TRACE(("found extent \"%s\"\n", fragment_to_tempstr(&item)));
6970 TRACE(("DATA_ERROR: unable to parse extent in '%c' command: \"%s\"\n",
6985 TRACE(("drawing arc: curve_mode=%d\n", state->curve_mode));
6986 TRACE(("drawing arc: new=%d,%d orig=%d,%d\n",
7006 TRACE(("drawing arc centered at location %d,%d to location %d,%d from %g degrees (%g radians) for %d degrees\n",
7041 TRACE(("moving cursor to final point on arc %d,%d\n",
7057 TRACE(("DATA_ERROR: got curve point, but already have max points (%d)\n",
7064 TRACE(("adding point to curve with location %d,%d\n",
7068 TRACE(("ERROR: got position, but curve mode %d is unknown\n",
7081 TRACE(("DATA_ERROR: unable to parse extent in '%c' command: \"%s\"\n",
7085 TRACE(("moving pen to location %d,%d\n",
7090 TRACE(("extent scroll argument to screen command: \"%s\"\n",
7099 TRACE(("current upper-left coordinate in pixel coordinates: %d,%d\n",
7106 TRACE(("DATA_ERROR: unable to parse extent in '%c' command: \"%s\"\n",
7110 TRACE(("scrolling image to updated upper-left coordinate in pixel coordinates: %d,%d\n",
7138 TRACE(("DATA_ERROR: unable to parse extent in '%c' command: \"%s\"\n",
7142 TRACE(("setting character spacing to %d,%d\n",
7157 TRACE(("DATA_ERROR: unable to parse extent in '%c' command: \"%s\"\n",
7161 TRACE(("drawing line to location %d,%d\n",
7171 TRACE(("DATA_ERROR: unexpected extent in \"%c\" command: \"%s\"\n",
7179 TRACE(("found pixel vector \"%s\"\n", fragment_to_tempstr(&item)));
7183 TRACE(("pixelvector in curve command FIXME\n"));
7194 TRACE(("DATA_ERROR: unable to parse pixel vector in '%c' command: \"%s\"\n",
7198 TRACE(("moving pen to location %d,%d\n",
7203 TRACE(("pixelvector scroll argument to screen command: \"%s\"\n",
7212 TRACE(("current upper-left coordinate in pixel coordinates: %d,%d\n",
7222 TRACE(("DATA_ERROR: unable to parse pixel vector in '%c' command: \"%s\"\n",
7226 TRACE(("scrolling image to updated upper-left coordinate in pixel coordinates: %d,%d\n",
7255 TRACE(("DATA_ERROR: unable to parse pixel vector in '%c' command: \"%s\"\n",
7264 TRACE(("adding character offset %d,%d\n (ds=%dx%d)", dx, dy,
7283 TRACE(("DATA_ERROR: unable to parse pixel vector in '%c' command: \"%s\"\n",
7287 TRACE(("drawing line to location %d,%d\n",
7297 TRACE(("DATA_ERROR: unexpected pixel vector in \"%c\" command: \"%s\"\n",
7308 TRACE(("found character to load: \"%s\"\n", state->temp));
7313 TRACE(("found string to draw: \"%s\"\n", state->temp));
7317 TRACE(("found comment: \"%s\"\n", state->temp));
7320 TRACE(("DATA_ERROR: unexpected string argument to \"%c\" command: \"%s\"\n",
7338 TRACE(("found end of hexadecimal string witch '%c' on digit %u\n",
7364 TRACE(("found row %u for glyph %u: \"%s\" value %02lx (%lu)\n",
7368 TRACE(("DATA_ERROR: ignoring extra row for glyph %u\n",
7378 TRACE(("current alphabet is %u and size is %ux%u; assigning alphabet index %u\n",
7389 TRACE(("ERROR: unable to allocate %u bytes for glyph storage\n",
7414 TRACE(("bytew=%u val=%lx byte=%u output=%x\n",
7426 TRACE(("marking alphabet %u at index %u glyph %u as loaded\n",
7438 TRACE(("inspecting macrograph character \"%c\"\n", ch));
7442 TRACE(("clearing all macrographs\n"));
7447 TRACE(("defining macrograph\n"));
7450 TRACE(("DATA_ERROR: macrograph definition without name, ignoring\n"));
7462 TRACE(("defining macrograph for \"%c\"\n", name));
7464 TRACE(("DATA_ERROR: invalid macrograph name\n"));
7476 TRACE(("DATA_ERROR: macrograph definition ends before semicolon\n"));
7487 TRACE(("DATA_ERROR: macrograph definition too long\n"));
7495 TRACE(("ERROR: would have saved macrograph: \"%s\"\n", temp));
7500 TRACE(("DATA_ERROR: found extraneous terminator for macrograph definition\n"));
7504 TRACE(("DATA_ERROR: unknown macrograph command '%c'\n", ch));
7519 TRACE(("parsing top level: char %u of %u (next char '%c')\n",
7532 TRACE(("ending '%c' command\n", state->command));
7541 TRACE(("checking for top level command...\n"));
7545 TRACE(("resetting temporary write controls and pattern state before handling command\n"));
7558 TRACE(("checking for top level parentheses...\n"));
7564 TRACE(("found commands in fill mode \"%s\"\n",
7585 TRACE(("parsing optionset \"%s\"\n",
7590 TRACE(("parsing at optionset level (char %u of %u)\n",
7596 TRACE(("looking at optionset character %u: \"%c\"\n",
7611 TRACE(("DATA_ERROR: skipping unexpected character in optionset: \"%c\"\n",
7626 TRACE(("found temporary write options \"%s\"\n",
7633 TRACE(("DATA_ERROR: invalid temporary write options \"%s\"\n",
7638 TRACE(("checking for top level items (though none should be present)...\n"));
7643 TRACE(("checking for top level items...\n"));
7654 TRACE(("DATA_ERROR: skipping unexpected character at top level: \"%c\"\n", ch));
7685 TRACE(("ReGIS vector graphics mode, param_count=%d mode=%d\n",
7691 TRACE(("Unable to allocate temporary buffer of size %u\n",
7750 TRACE(("refreshing after %u iterations and %ldms\n",
7770 TRACE(("DONE! Successfully parsed ReGIS data.\n"));