MCPcopy Create free account
hub / github.com/daisy/MathCAT / get_overview_text

Function get_overview_text

src/interface.rs:137–147  ·  view source on GitHub ↗

Get the spoken text for an overview of the MathML that was set. The speech takes into account any AT or user preferences. Note: this implementation for is currently minimal and should not be used.

()

Source from the content-addressed store, hash-verified

135/// The speech takes into account any AT or user preferences.
136/// Note: this implementation for is currently minimal and should not be used.
137pub fn get_overview_text() -> Result<String> {
138 // use std::time::{Instant};
139 // let instant = Instant::now();
140 return MATHML_INSTANCE.with(|package_instance| {
141 let package_instance = package_instance.borrow();
142 let mathml = get_element(&package_instance);
143 let speech = crate::speech::overview_mathml(mathml, "")?;
144 // info!("Time taken: {}ms", instant.elapsed().as_millis());
145 return Ok( speech );
146 });
147}
148
149/// Get the value of the named preference.
150/// None is returned if `name` is not a known preference.

Callers

nothing calls this directly

Calls 2

get_elementFunction · 0.85
overview_mathmlFunction · 0.85

Tested by

no test coverage detected