69 musx::dom::ResolvedFontInfo
font;
93 std::vector<text::Run>
runs;
FormattedText classifyFormattedText(const musx::util::EnigmaParsingContext &text)
Classifies a formatted Enigma text.
Core public API for the Denigma conversion libraries.
Definition articulations.h:33
Document-independent classification of a formatted Enigma text.
Definition formatted_text.h:91
std::vector< text::Run > runs
Visible runs in source order.
Definition formatted_text.h:93
std::string plainText
The runs' text joined, with Unicode accidental characters.
Definition formatted_text.h:95
The Enigma text insert a run was substituted for.
Definition formatted_text.h:42
std::vector< std::string > parameters
The insert's parameters as written.
Definition formatted_text.h:59
Kind kind
The insert's meaning.
Definition formatted_text.h:55
std::string command
The insert as written, without the leading caret.
Definition formatted_text.h:57
Kind
The insert's meaning, for the inserts the classifier names.
Definition formatted_text.h:45
@ RehearsalMark
The rehearsal mark's sequence text: ^rehearsal.
@ PlaybackPass
The expression's repeat pass: ^pass.
@ PlaybackController
The expression's playback controller value: ^control.
@ Other
An insert the classifier does not name; command and parameters still identify it.
@ PlaybackValue
The expression's playback value: ^value.
@ Accidental
An accidental symbol: ^flat, ^sharp, ^natural, ^dbflat, ^dbsharp.
One stretch of formatted text in a single font, holding either text or music glyphs.
Definition formatted_text.h:65
std::string text
Visible UTF-8 text of the run. For a glyph run, the source characters the glyphs came from.
Definition formatted_text.h:67
musx::dom::ResolvedFontInfo font
Document-independent snapshot of the run's font.
Definition formatted_text.h:69
std::optional< Insert > insert
The insert the run was substituted for, when it was. Such a run is never merged with its neighbors.
Definition formatted_text.h:73
std::vector< std::string > glyphNames
One SMuFL glyph name per code point when the run is music glyphs; empty for a text run.
Definition formatted_text.h:71
bool isGlyphRun() const noexcept
True when the run is music glyphs rather than text.
Definition formatted_text.h:76