底本表記の照合と検証 / Source accountability
Aozora Bunko marks up its texts with its own notation: 《》 for ruby, ※[#...] for characters that could not be typed, [#...] for layout and emphasis. Source accountability evaluates how much of that notation was accounted for in conversion. Rights are covered by assessment evaluation and schema validity by TEI validation.
Two reports
Two reports are generated for each work alongside the exported TEI:
source-accountability.jsonlists every piece of notation in the source text. An independent scanner matches the text against a catalog of Aozora syntax, recording for each marker its exact spelling, its byte span in the decoded UTF-8 text, its section of the file, and its syntax family. Unrecognised markers and text that could not be decoded are listed as well.- In
interpretation-coverage.json, that list is compared with the parser's claims. A claim counts only when it covers the same byte span as a scanned occurrence and a compatible family. For each family, occurrences are counted asinterpreter_claimed,unaccountedoroutside_claim_vocabulary, and every occurrence with an unaccounted or unclassified part is listed in full.
Because the scanner does not use the parser, a change to the parser cannot alter the list the parser's claims are compared with.
What the reports do not show
The counts confirm that a marker was recognised, not that it was converted correctly. Correctness is checked by conformance tests on specific examples and by schema validation. So an empty list of unaccounted occurrences does not mean the conversion is complete, and a claim over a span does not cancel a problem the parser reported over the same span; the problem stays in the published TEI as an interpretation-problem note.
Both reports stay with the build. They are not published with the work; of the build's reports, only tei-validation.json is.
Exported representations
TEI retains ruby, gaiji declarations, headings, layout and source apparatus; plaintext and the principal-body view retain visible body text only. Structural XML is indented for inspection while mixed content preserves lexical whitespace.
- Gaiji and iteration marks: Resolved gaiji place Unicode text directly in
g(including inside ruby bases) and keep source mappings inrefandcharDecl. Complete iteration notation (/\,/″\) keeps its source spelling inchoice/origand realizes〱or〲inchoice/regwithout expanding the repeated reading. Iteration marks inside a ruby reading stay part of the ruby annotation; malformed notation and literal half-marks stay literal text. - Kunten and supplied diacritics: Supplied kunten uses
note type="kunten"(subtype="return-mark"subscript,subtype="okurigana"superscript, with nestedhiwhen okurigana carries 傍点 or 傍線) and is excluded from plaintext. Supplied diacritic annotations keep source spelling inchoice/origand composed Unicode inchoice/reg; interior-letter selectors retain the original marker as source apparatus, and unresolved selectors retain explicit uncertainty. - Emphasis and between-operand marks: Exclusion selectors such as
[#「自律・自由・人格・性格」の「・」を除く部分に傍点]mark every non-excluded span while leaving excluded runs as unmarked body text; unmappable exclusions remain unread. For junction markers such as[#「自」と「然」の間に白三角傍点], a supplied mark is anchored between adjacent operands rather than formatted as emphasis over a span. - Block geometry and alignment: Indentation, continuation indentation, line width (
jizume), and foot offset (chitsuki) are retained independently. Paragraph-leading indentation uses CSStext-indent; heading and source-note continuation indentation usespadding-inline-start. Supplied line counts userend="line-count(N)", and page centering follows Aozora's page-centering convention until the next page break. Consecutive indentation instructions replace the preceding indentation scope; a closing marker that restates a measure closes only a matching opener, and unmatched closers stay retained source. Relative placement links to its anchor's source span viacorrespand recordsplacement-below,anchor-kind(...), andanchor-offset-chars(N)inrend. - Frames, tables, quotations and letters: Frame styles (
solid,dashed,double) and co-applied typography share the@rendvocabulary ondivandhi. Supplied table scopes map todiv type="table"(図表totype="figure-table"), keeping enclosed lines verbatim without inferring row or cell structure;罫無しmaps torend="table-rules(none)", and罫仕切りremains an explanation note with literal----divider lines. Quotation and letter openers (引用文,手紙文) map todiv type="quotation"ordiv type="letter"alongside their indentation and close only on a matching role closer; unmodeled clauses (3行アキ,はじめの「一」のみ2字下げ) stay retained source. - Font size and baseline placement: Qualitative size comparisons (
字が小さい,ポイントを下げて, with optionalややorひとまわり) map tofont-size qualitative(smaller|larger)andqualifier(...), including when combined with a line-scoped foot offset. Bare下付きmaps tobaseline-lowered(distinct from下付き小文字) and指数maps toexponentwhile keeping the target glyphs unchanged in plaintext and Markdown.