///|
fn main {
let source = "Chapters xiv and \u{2163}."
let policy : @roman.RomanLintPolicy = {
parse_config: @roman.compatibility_parse_config(),
case_requirement: @roman.RequireRomanUppercase,
allow_unicode: false,
allow_outer_whitespace: false,
require_canonical: true,
include_single_symbol: false,
retain_rejected_candidates: true,
max_candidate_length: 32,
}
let lint = @roman.lint_roman_document(source, policy).unwrap()
let plan = @roman.roman_edit_plan_from_document_lint(lint, {
max_projected_length: 1024L,
}).unwrap()
let applied = @roman.apply_roman_edit_plan(source, plan).unwrap()
println(applied.output)
println(applied.applied_edits.length())
}