Skip to content

Report reference

Read a Unicode text report

Use a three-point embroidery label to read offsets, flags and normalization lengths in a downloaded report. The input and example report let you check each field.

Identify the input and format

Use input.txt without adding a final newline. Check its report against unicode-report.example.json. The format field reads yagiro-unicode-text-report-v1. At the top level, utf16Units is 4 and codePoints is 3.

Follow the entries in points. Each gives the one-based position, zero-based utf16Offset, utf16Width, hexadecimal codePoint and any flags. The last point is U+1F9F5 at offset 2 with width 2.

Read flags as overlapping observations

The second point, U+0301, has the mark flag. Its count in flagCounts is 1. A single point can carry several flags, so adding all the counters need not give the number of flagged positions.

whitespace follows JavaScript trim for an individual point. mark, control and format reflect Unicode general categories M, Cc and Cf. bidiControl identifies bidirectional controls, and joiner covers U+200C and U+200D. Directional controls and joiners can have a purpose in the source text.

variationSelector covers only U+FE00–U+FE0F and U+E0100–U+E01EF here. For example, Mongolian U+180B receives mark alone. These labels cover selected properties. They cannot establish whether a label is deceptive or how it will render.

Compare the lengths

nfc and nfkc each carry changed, utf16Units and codePoints for a separate normalization of the whole input. Both report true, 3 units and 2 points for the embroidery label.

The report lists the original sequence in logical order. Grapheme boundaries, visual display order and the encoding of the original file require other information. A code-point count should be labelled as such when copied into a manual record.

Verify a saved example

unicode-report.schema.json defines the required field shapes. To verify the positions and counts against this specific label, run the same input again and compare the resulting report with the example.

The download is ASCII JSON ending in a line feed. The original text can be reconstructed from the codePoint values. Keep the report with the source access restrictions even if a viewer shows only its counts.

Schema and examples

The report records code points and UTF-16 positions, with a limited set of character flags. Its code points can reconstruct the input; review the report before sharing it.

Reference sources

Continue with a check