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

Function init_default_prefs

src/navigate.rs:855–864  ·  view source on GitHub ↗
(mathml: &str, nav_mode_default: &str)

Source from the content-addressed store, hash-verified

853 }
854
855 fn init_default_prefs(mathml: &str, nav_mode_default: &str) {
856 set_rules_dir(super::super::abs_rules_dir_path()).unwrap();
857 set_preference("NavMode".to_string(), nav_mode_default.to_string()).unwrap();
858 set_preference("NavVerbosity".to_string(), "Verbose".to_string()).unwrap();
859 set_preference("AutoZoomOut".to_string(), "True".to_string()).unwrap();
860 set_preference("Language".to_string(), "en".to_string()).unwrap();
861 set_preference("SpeechStyle".to_string(), "SimpleSpeak".to_string()).unwrap();
862 set_preference("Verbosity".to_string(), "Medium".to_string()).unwrap();
863 set_mathml(mathml.to_string()).unwrap();
864 }
865
866 #[test]
867 fn zoom_in() -> Result<()> {

Callers 15

zoom_inFunction · 0.85
zoom_in_parensFunction · 0.85
zoom_in_allFunction · 0.85
zoom_outFunction · 0.85
zoom_out_allFunction · 0.85
move_start_endFunction · 0.85
move_line_start_endFunction · 0.85
move_to_startFunction · 0.85
move_right_supFunction · 0.85
move_msubsup_charFunction · 0.85

Calls 4

set_rules_dirFunction · 0.85
set_preferenceFunction · 0.85
set_mathmlFunction · 0.85
abs_rules_dir_pathFunction · 0.70

Tested by 15

zoom_inFunction · 0.68
zoom_in_parensFunction · 0.68
zoom_in_allFunction · 0.68
zoom_outFunction · 0.68
zoom_out_allFunction · 0.68
move_start_endFunction · 0.68
move_line_start_endFunction · 0.68
move_to_startFunction · 0.68
move_right_supFunction · 0.68
move_msubsup_charFunction · 0.68