open-standards/wai/vector-conformance/vectors/a11y/clipped.json
Transaction Science 10ba6e9bcc wai-vector: the text layer and section 5, text and accessibility (D7-7)
graphics-vector.md section 5 (Draft): what a sink exposes to assistive
technology and to a text consumer, and how. Each text block's active set (the
effective windows of the items that draw it, merged), the projection at a
frame and the transcript as exact JSON, the text record and its digest, ruby,
purposes, writing modes and the cluster rule.

- wai-vector: src/text.rs (no_std, no dependency), the a11y and text commands,
  and vectors verify recomputing every text record.
- The corpus: a new a11y group, each payload with its text record
  (<name>.a11y.jsonl) and its digest in the expected file; canonical and
  refusal vectors for TEXT. No existing expected file changes.
- tests/text_layer.rs: each rule of section 5, with expected JSON written by
  hand from the text, each falsified once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-13 02:43:02 -04:00

162 lines
5 KiB
JSON

{
"header":{"magic":"WVG1","format":1,"tb":120000,"t0":50000,"dur":94000,"design_w":640,"design_h":360,"n_sizes":1,"n_rates":1,"n_sets":1,"n_tables":0,"n_paints":1,"n_texts":6,"n_tracks":0,"n_paths":0,"n_items":7,"n_keys":0,"n_glyphs":59,"n_clusters":59,"path_contours":0,"path_points":0,"strings_len":71,"inline_len":0,"held_len":105523,"zero@72":[0,0,0,0,0,0,0,0]},
"sizes":[
{"w":640,"h":360,"cost":6611664}
],
"rates":[
{"num":25,"den":1}
],
"sets":[
{"carriage":0,"zero@1":[0,0,0],"length":105523,"sha256":"05476c4658ef7366c7700736487eac4c3c1b7d21264978c7d05bd4c7427736c9"}
],
"tables":[],
"paints":[
[255,255,255,255]
],
"tracks":[],
"keys":[],
"paths":[],
"path_ends":[],
"path_points":[],
"texts":[
{"purpose":7,"dir":0,"lang_len":2,"mode":0,"group":0,"ruby":0,"ruby_start":0,"ruby_len":0,"str_len":13},
{"purpose":7,"dir":0,"lang_len":2,"mode":0,"group":0,"ruby":0,"ruby_start":0,"ruby_len":0,"str_len":10},
{"purpose":7,"dir":0,"lang_len":2,"mode":0,"group":0,"ruby":0,"ruby_start":0,"ruby_len":0,"str_len":8},
{"purpose":7,"dir":0,"lang_len":2,"mode":0,"group":0,"ruby":0,"ruby_start":0,"ruby_len":0,"str_len":12},
{"purpose":7,"dir":0,"lang_len":2,"mode":0,"group":0,"ruby":0,"ruby_start":0,"ruby_len":0,"str_len":7},
{"purpose":7,"dir":0,"lang_len":2,"mode":0,"group":0,"ruby":0,"ruby_start":0,"ruby_len":0,"str_len":9}
],
"items":[
{"kind":3,"rule":0,"zero@2":0,"ref":0,"paint":0,"text":0,"zero@10":0,"n_glyphs":13,"n_clusters":13,"t_on":0,"t_off":72000,"unit_scale":131072,"m00":65535,"m01":65535,"m10":65535,"m11":65535,"tx":65535,"ty":65535,"op":65535,"zero@42":[0,0,0,0,0,0]},
{"kind":3,"rule":0,"zero@2":0,"ref":0,"paint":0,"text":1,"zero@10":0,"n_glyphs":10,"n_clusters":10,"t_on":120000,"t_off":240000,"unit_scale":131072,"m00":65535,"m01":65535,"m10":65535,"m11":65535,"tx":65535,"ty":65535,"op":65535,"zero@42":[0,0,0,0,0,0]},
{"kind":3,"rule":0,"zero@2":0,"ref":0,"paint":0,"text":2,"zero@10":0,"n_glyphs":8,"n_clusters":8,"t_on":0,"t_off":2147483648,"unit_scale":131072,"m00":65535,"m01":65535,"m10":65535,"m11":65535,"tx":65535,"ty":65535,"op":65535,"zero@42":[0,0,0,0,0,0]},
{"kind":3,"rule":0,"zero@2":0,"ref":0,"paint":0,"text":3,"zero@10":0,"n_glyphs":12,"n_clusters":12,"t_on":0,"t_off":50000,"unit_scale":131072,"m00":65535,"m01":65535,"m10":65535,"m11":65535,"tx":65535,"ty":65535,"op":65535,"zero@42":[0,0,0,0,0,0]},
{"kind":3,"rule":0,"zero@2":0,"ref":0,"paint":0,"text":4,"zero@10":0,"n_glyphs":7,"n_clusters":7,"t_on":144000,"t_off":200000,"unit_scale":131072,"m00":65535,"m01":65535,"m10":65535,"m11":65535,"tx":65535,"ty":65535,"op":65535,"zero@42":[0,0,0,0,0,0]},
{"kind":3,"rule":0,"zero@2":0,"ref":0,"paint":0,"text":5,"zero@10":0,"n_glyphs":3,"n_clusters":3,"t_on":24000,"t_off":60000,"unit_scale":131072,"m00":65535,"m01":65535,"m10":65535,"m11":65535,"tx":65535,"ty":65535,"op":65535,"zero@42":[0,0,0,0,0,0]},
{"kind":3,"rule":0,"zero@2":0,"ref":0,"paint":0,"text":5,"zero@10":0,"n_glyphs":6,"n_clusters":6,"t_on":60000,"t_off":150000,"unit_scale":131072,"m00":65535,"m01":65535,"m10":65535,"m11":65535,"tx":65535,"ty":65535,"op":65535,"zero@42":[0,0,0,0,0,0]}
],
"glyphs":[
[115,0,4096,9216],
[116,0,5976,9216],
[97,0,7416,9216],
[114,0,9576,9216],
[116,0,11096,9216],
[115,0,12536,9216],
[32,0,14416,9216],
[98,0,15616,9216],
[101,0,17856,9216],
[102,0,20016,9216],
[111,0,21416,9216],
[114,0,23656,9216],
[101,0,25176,9216],
[101,0,4096,15872],
[110,0,6256,15872],
[100,0,8496,15872],
[115,0,10736,15872],
[32,0,12616,15872],
[97,0,13816,15872],
[102,0,15976,15872],
[116,0,17376,15872],
[101,0,18816,15872],
[114,0,20976,15872],
[115,0,4096,22528],
[112,0,5976,22528],
[97,0,8216,22528],
[110,0,10376,22528],
[115,0,12616,22528],
[32,0,14496,22528],
[105,0,15696,22528],
[116,0,16656,22528],
[111,0,4096,29184],
[118,0,6336,29184],
[101,0,8416,29184],
[114,0,10576,29184],
[32,0,12096,29184],
[98,0,13296,29184],
[121,0,15536,29184],
[32,0,17616,29184],
[116,0,18816,29184],
[104,0,20256,29184],
[101,0,22496,29184],
[110,0,24656,29184],
[110,0,4096,35840],
[111,0,6336,35840],
[116,0,8576,35840],
[32,0,10016,35840],
[121,0,11216,35840],
[101,0,13296,35840],
[116,0,15456,35840],
[116,0,4096,42496],
[119,0,5536,42496],
[111,0,8536,42496],
[32,0,10776,42496],
[112,0,11976,42496],
[97,0,14216,42496],
[114,0,16376,42496],
[116,0,17896,42496],
[115,0,19336,42496]
],
"clusters":[
[1,0,0,1],
[1,0,1,1],
[1,0,2,1],
[1,0,3,1],
[1,0,4,1],
[1,0,5,1],
[1,0,6,1],
[1,0,7,1],
[1,0,8,1],
[1,0,9,1],
[1,0,10,1],
[1,0,11,1],
[1,0,12,1],
[1,0,0,1],
[1,0,1,1],
[1,0,2,1],
[1,0,3,1],
[1,0,4,1],
[1,0,5,1],
[1,0,6,1],
[1,0,7,1],
[1,0,8,1],
[1,0,9,1],
[1,0,0,1],
[1,0,1,1],
[1,0,2,1],
[1,0,3,1],
[1,0,4,1],
[1,0,5,1],
[1,0,6,1],
[1,0,7,1],
[1,0,0,1],
[1,0,1,1],
[1,0,2,1],
[1,0,3,1],
[1,0,4,1],
[1,0,5,1],
[1,0,6,1],
[1,0,7,1],
[1,0,8,1],
[1,0,9,1],
[1,0,10,1],
[1,0,11,1],
[1,0,0,1],
[1,0,1,1],
[1,0,2,1],
[1,0,3,1],
[1,0,4,1],
[1,0,5,1],
[1,0,6,1],
[1,0,0,1],
[1,0,1,1],
[1,0,2,1],
[1,0,3,1],
[1,0,4,1],
[1,0,5,1],
[1,0,6,1],
[1,0,7,1],
[1,0,8,1]
],
"strings":"enstarts beforeenends afterenspans itenover by thenennot yetentwo parts",
"inline":""
}