mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-11 16:31:54 -06:00
Word's Font › Emphasis mark (a mark over or under each character, used
to stress East Asian text) wasn't modelled. DOCX `w:em` and ODT
`style:text-emphasize` were dropped.
- Model: `CharProps::emphasis` (dot, comma, circle, dot below, or none
to turn off a style's).
- Layout: a mark is drawn over (or under) each character, and the line
is made taller to fit it.
- `format.emphasisMark {"mark": …}` sets it, and Format state reports
it. The catalog lists it under Home › Font.
- DOCX: `w:em` is read, and written in its place in `w:rPr` (after
`w:cs`, before `w:lang`).
- ODT: `style:text-emphasize` maps to it: an accent is the comma, a
disc the dot, a dot below the under-dot.
Also fixes two problems from the previous commit (ODT variables):
- Field updates blanked a SET field's stored result. The layout
already draws nothing for SET, so its result stays as it was, as
`ask_and_set_fields_draw_nothing` pins.
- A clippy lint (manual char comparison) failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GBVQLyDnrG8Tn1yDQcUabC
40 lines
769 B
Rust
40 lines
769 B
Rust
mod bidi;
|
|
mod bidi_runs;
|
|
mod cell_margin_inheritance;
|
|
mod char_units;
|
|
mod citations;
|
|
mod comment_save_cost;
|
|
mod complex_script_inheritance;
|
|
mod content_control_save_cost;
|
|
mod content_controls;
|
|
mod custom_xml;
|
|
mod default_size;
|
|
mod drawing_payload;
|
|
mod east_asian_lang;
|
|
mod east_asian_layout;
|
|
mod emphasis_marks;
|
|
mod fixtures;
|
|
mod glossary;
|
|
mod heading_levels;
|
|
mod legacy_forms;
|
|
mod ligatures;
|
|
mod malformed;
|
|
mod note_comments;
|
|
mod passthrough;
|
|
mod positional_tabs;
|
|
mod privacy;
|
|
mod roundtrip;
|
|
mod row_property_exceptions;
|
|
mod run_props;
|
|
mod section_form_protection;
|
|
mod section_page_number_type;
|
|
mod section_text_direction;
|
|
mod section_valign;
|
|
mod settings_merge;
|
|
mod text_boxes;
|
|
mod toc_ranges;
|
|
mod undefined_style;
|
|
mod vml_shapes;
|
|
mod word_xml;
|
|
mod wordml2003_write;
|