Scope and Review
Word-Count Basis and Recalculation Method
about 530 words 3 min Study 37 of 53
The original bytes of each research Markdown file are decoded as UTF-8 and counted code point by code point. Line endings are not unified or normalized. Primary texts use the encoding marked for each item. Gramsci’s original UTF-16 must carry a BOM; on decoding, only the encoding mark is removed, and the original CR/LF is retained in the count. A research copy with normalized line endings may not be passed off as the count of the original file. The Chinese character ranges are U+3400–4DBF, U+4E00–9FFF, and U+20000–2FA1F. The total character count includes headings, punctuation, whitespace, links, and Markdown; non-whitespace characters are listed separately.
Each of the four newly added studies is divided, by the single separator string set in the configuration, into the argument body and the closing primary-text location note. The boundary itself belongs to the note, and the two parts add up exactly to the full MD. The eighteen earlier studies are counted by their full MD, including the earlier source notes, and are not equivalent to the other net body-text bases used for the earlier package. Files with fully identical text (identical SHA) are counted only once, which does not mean that the content is net original in meaning. Primary texts, theory, reviews, source notes, HTML, and other deliverable carriers are not added to the research body count.
Primary texts and licenses are counted item by item only for the files actually shipped with the package, including their titles, formatting, and whitespace. OCR, scanned page counts, fully online-readable texts, and unattached modern translations are not counted as added research words. The current theory and the same-SHA copies in the old catalogue are retained but listed only once, and are not counted as research. Old sources and existing notes keep their original bytes and are not counted as new research written in this round.
Offline recalculation (Python 3.9 or later; no network access; original manuscripts are not modified):
python3 06_交付核验/count_line4_deep_texts.py --root . --output /tmp/line4_counts.json
python3 06_交付核验/复核与重新封包.py --root .
The tool refuses -O, -OO, and PYTHONOPTIMIZE with optimization enabled, to avoid having verification assertions stripped. Repackaging output must be written outside the package root, and the tool refuses to overwrite existing files:
python3 06_交付核验/复核与重新封包.py --root . --zip-output /tmp/line4_rebuilt.zip
Paths are sorted. The ZIP time is fixed at 2026-11-04 00:00:00, permissions are Unix 0644, and compression is DEFLATE level 9. With the same Python and zlib, the outer ZIP is reproducible. Other compression versions may change the outer bytes, but the SHA of each internal file can still be checked. The root SHA256SUMS covers all actual members except itself. The identity of the outer ZIP is recorded separately outside the package, to avoid self-reference.
The reading pages can be rebuilt with the accompanying render_line4_deep_reader.py, which requires Pandoc and lxml; the Node control tests additionally require Node. After rebuilding, the counts must be rerun and the root manifest regenerated. The fidelity of text, formula source, and tables does not mean that a real browser or visual formula typesetting has been verified. The actual verification boundary is set by the independent report.