394. How Logitech's compiler lays a command's name on a Harmony One pad¶
Asked for by todo-compile-one.md 1.2.6. The One's composers drew a pad's label as one line rounded to
the middle of its box and refused any name wider than the box, which on a receiver is most of its sound
modes; Logitech's compiles break such a name over lines and cut what does not fit.
Sources. The 19 distinct configurations Logitech compiled for the Harmony One that the lab holds, every pad drawn at the six places of
DEVICE_PAGE_SLOTS, and the device archive, decision 15, for the names of the four harvest compiles' catalogue
devices. Neither client nor firmware was read: the firmware draws what a screen program states, and the
layout is the compiler's, which ran on Logitech's server.
The rule¶
A pad is a box 81 pixels wide and 50 high, its label one to three lines in the configuration's pad font.
- Words. A name splits at each space, the space kept inside a line and dropped at a break; before an
upper case letter, a digit or a
+that follows a lower case letter; and after a hyphen not followed by another, where the exception is unmeasured, since no drawn label holds a doubled hyphen. Never inside a run of capitals, between a capital and a digit, between a digit and a letter, or at/,:or.. Each element was tested by adding or removing it over the labels the archive names: the breaks drawn are 253 lower to upper, 27 at a space, 11 lower to digit, 3 after a hyphen and 1 before a plus (VolumeMain+, the only one); dropping the digit boundary loses 11 labels, the hyphen 3, the plus 1, and adding a slash as a boundary loses 17. - Greedy lines. A line takes the next word while it stays at most 72 pixels with its separator: 111 pads, 18 distinct texts on 16 compiles, draw a joined line of exactly 72 and 39 break where joining would make 73. Greedy fills all 288 distinct names wider than 72 correctly; a balanced fill gets 39 of them wrong, one word per line 157.
- A word alone may be 73. A word wider than that takes a line of its own, cut to the longest prefix that
is at most 73 with
..after it, the rest dropped, and the next word starts a new line: "Mode" / "Direct/Ster..", "Effect" / "Entertainm.." / "Show". The 73 rests on one text,DTSSurround, drawn whole on 9 pads; the cut's limit is pinned to 72 or 73 only. 35 pads carry a cut, over 9 names. The Harmony 600, 650 and 700 allow the same one pixel more to a label that cannot break, section 325. - Placement. Each line is centred on its own width with the odd pixel to the left,
x = pad x + floor((81 - w) / 2), on 8310 of 8310 lines; rounding, which the composers did, puts 6053 of them a pixel right. The lines are 11 apart and centred on the one line position 20 below the box's top: 20; 15 and 26; 9, 20 and 31, on 6785, 695 and 45 pads with no exception. No pad draws a fourth line.
The pad font is the configuration's, one face 14 pixels high under base slot 7 index 5, 7, 8 or 9, one per
configuration; DEVICE_ROW_FONT, 9, which the composers assumed, is it on 8 of the 19. It is read off the
device pages on 18 of the 19; on harvest_one_families_1, whose one device, a Samsung test device, sends
nothing deviceModeMaps counts, no page is known as a device page, and the composer refuses rather than
fall back to font 9, which there is another subset of letters than the font 7 its pads are drawn in. It is
read off the device pages, the modes the device list enters, since a page's lead byte names a hit page whose number differs
per configuration, and since on calibration_one 25 texts inside boxes on other pages are in a 15 pixel face
against 325 in the pad font.
The checks¶
The rule reproduces the glyphs and places of 551 of the 558 pads in four catalogue compiles whose command is
named by the record its press sends; six of the seven are a Z the character map could not name until
section 396, and one is a
record named by its frame value whose pad draws another command of the same device. Against the drawn lines
joined back, with or without a space at each break, it reproduces all 6873 pads that carry no cut and no
unnamed glyph, and in the repository's census over eighteen compiles' device pages 3197 of 3197, since section 396 named the last glyphs. Against
the whole archive, 1264 of the 1266 distinct drawn texts with a candidate name come out as drawn, the two
others being Sync- and Sync+, whose only candidate is spelled Sync -. The census's control: centring by
rounding reproduces 24 of 81 pads on the first compile.
Corrected per review. This section named its population as every distinct Harmony One container in the lab, nineteen, which are 36 with our writes; it is Logitech's 19 compiles. The repository's census covered eight of them, 915 pads, and now covers the eighteen with device pages; the blind re-measure, given the question and not this section, placed 939 of 939 pads exactly on nine configurations, with the same limits, offsets and fill, and 342 of 342 more on four other Logitech region reads. The pad font fell back to 9 where it could not be read; it is refused now.
What is refused, never having been seen¶
A fourth line, which 54 of the archive's 37750 names would need; a word after a cut word that would have fitted beside it; a name with a leading, trailing or double space.
Scope, decision 16¶
Arch 12 (Harmony One), on device pages, activity screens and the other pages that draw the six boxes. The 600 family's labels are section 325's.
Falsification¶
A Harmony One pad whose label breaks, cuts or sits otherwise than the rule says, in a compile of Logitech's.
Where it lands¶
packages/codec/src/families/touch/labels.ts:touchLabelLines,touchLabelWords,padFontOf; the device page and activity screen composers lay their pads out with it.packages/codec/test/touchlabels.test.ts: the cases that pin each part, and the census.- The measurement's scripts are in the lab's
work/one-track/labels/.
Section 393 | the archive | section 395. Section 394 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.