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.
()
| 135 | /// The speech takes into account any AT or user preferences. |
| 136 | /// Note: this implementation for is currently minimal and should not be used. |
| 137 | pub 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. |
nothing calls this directly
no test coverage detected