/// Tests for rules shared between various speech styles: /// * this has tests focused on the various alphabets use crate::common::*; #[test] fn special_alphabet_chars() { let expr = " ,"; test("en", "SimpleSpeak", expr, "fraktur cap h comma fraktur cap c"); let expr = " ,"; test("en", "SimpleSpeak", expr, "double struck cap h comma double struck cap pi"); let expr = " ,"; test("en", "SimpleSpeak", expr, "script cap i comma script cap m"); } #[test] fn greek() { let expr = " Α,Ω"; test("en", "SimpleSpeak", expr, "cap alpha comma cap omega"); let expr = " α,ω"; test("en", "SimpleSpeak", expr, "alpha comma omega"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "double struck cap delta, comma double struck cap upsilon"); let expr = " α,ω"; test("en", "SimpleSpeak", expr, "alpha comma omega"); } #[test] fn cap_cyrillic() { let expr = " А,Я"; test("en", "SimpleSpeak", expr, "cap a comma cap ya"); } #[test] fn parenthesized() { let expr = " ,"; test("en", "SimpleSpeak", expr, "parenthesized eigh comma parenthesized z"); } #[test] fn circled() { let expr = " ,"; test("en", "SimpleSpeak", expr, "circled cap eigh comma circled cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "circled eigh comma circled z"); } #[test] fn fraktur() { let expr = " 𝔄,𝔜"; test("en", "SimpleSpeak", expr, "fraktur cap eigh comma fraktur cap y"); let expr = " 𝔞,𝔷"; test("en", "SimpleSpeak", expr, "fraktur eigh comma fraktur z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "fraktur cap eigh comma fraktur cap y"); let expr = " ,"; test("en", "SimpleSpeak", expr, "fraktur eigh comma fraktur z"); } #[test] fn bold_fraktur() { let expr = " 𝕬,𝖅"; test("en", "SimpleSpeak", expr, "fraktur bold cap eigh, comma fraktur bold cap z"); let expr = " 𝖆,𝖟"; test("en", "SimpleSpeak", expr, "fraktur bold eigh comma fraktur bold z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "fraktur bold cap eigh, comma fraktur bold cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "fraktur bold eigh comma fraktur bold z"); } #[test] fn double_struck() { let expr = " 𝔸,𝕐"; test("en", "SimpleSpeak", expr, "double struck cap eigh, comma double struck cap y"); let expr = " 𝕒,𝕫"; test("en", "SimpleSpeak", expr, "double struck eigh comma double struck z"); let expr = " 𝟘,𝟡"; test("en", "SimpleSpeak", expr, "double struck 0 comma double struck 9"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "double struck cap eigh, comma double struck cap y"); let expr = " ,"; test("en", "SimpleSpeak", expr, "double struck eigh comma double struck z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "double struck 0 comma double struck 9"); } #[test] fn script() { let expr = " 𝒜,𝒵"; test("en", "SimpleSpeak", expr, "script cap eigh comma script cap z"); let expr = " 𝒶,𝓏"; test("en", "SimpleSpeak", expr, "script eigh comma script z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "script cap eigh comma script cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "script eigh comma script z"); } #[test] fn bold_script() { let expr = " 𝓐,𝓩"; test("en", "SimpleSpeak", expr, "script bold cap eigh comma script bold cap z"); let expr = " 𝓪,𝔃"; test("en", "SimpleSpeak", expr, "script bold eigh comma script bold z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "script bold cap eigh comma script bold cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "script bold eigh comma script bold z"); } #[test] fn bold() { let expr = " 𝐀,𝐙"; test("en", "SimpleSpeak", expr, "bold cap eigh comma bold cap z"); let expr = " 𝐚,𝐳"; test("en", "SimpleSpeak", expr, "bold eigh comma bold z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold cap eigh comma bold cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "bold eigh comma bold z"); } #[test] fn italic() { let expr = " 𝐴,𝑍"; test("en", "SimpleSpeak", expr, "cap eigh comma cap z"); let expr = " 𝑎,𝑧"; test("en", "SimpleSpeak", expr, "eigh comma z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "cap eigh comma cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "eigh comma z"); } #[test] fn sans_serif() { let expr = " 𝖠,𝖹"; test("en", "SimpleSpeak", expr, "cap eigh comma cap z"); let expr = " 𝖺,𝗓"; test("en", "SimpleSpeak", expr, "eigh comma z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "cap eigh comma cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "eigh comma z"); } #[test] fn sans_serif_bold() { let expr = " 𝗔,𝗭"; test("en", "SimpleSpeak", expr, "bold cap eigh comma bold cap z"); let expr = " 𝗮,𝘇"; test("en", "SimpleSpeak", expr, "bold eigh comma bold z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold cap eigh comma bold cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "bold eigh comma bold z"); } #[test] fn sans_serif_italic() { let expr = " 𝘈,𝘡"; test("en", "SimpleSpeak", expr, "cap eigh comma cap z"); let expr = " 𝘢,𝘻"; test("en", "SimpleSpeak", expr, "eigh comma z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "cap eigh comma cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "eigh comma z"); } #[test] fn sans_serif_bold_italic() { let expr = " 𝘼,𝙕"; test("en", "SimpleSpeak", expr, "bold cap eigh comma bold cap z"); let expr = " 𝙖,𝙯"; test("en", "SimpleSpeak", expr, "bold eigh comma bold z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold cap eigh comma bold cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "bold eigh comma bold z"); } #[test] fn monospace() { let expr = " 𝙰,𝚉"; test("en", "SimpleSpeak", expr, "cap eigh comma cap z"); let expr = " 𝚊,𝚣"; test("en", "SimpleSpeak", expr, "eigh comma z"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "cap eigh comma cap z"); let expr = " ,"; test("en", "SimpleSpeak", expr, "eigh comma z"); } #[test] fn bold_greek() { let expr = " 𝚨,𝛀"; test("en", "SimpleSpeak", expr, "bold cap alpha comma bold cap omega"); let expr = " 𝛂,𝛚"; test("en", "SimpleSpeak", expr, "bold alpha comma bold omega"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold cap alpha comma bold cap omega"); let expr = " ,"; test("en", "SimpleSpeak", expr, "bold alpha comma bold omega"); } #[test] fn bold_greek_others() { let expr = " 𝛛,𝛡"; test("en", "SimpleSpeak", expr, "bold partial derivative, comma bold pi"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold partial derivative, comma bold pi"); } #[test] fn italic_greek() { let expr = " 𝛢,𝛺"; test("en", "SimpleSpeak", expr, "cap alpha comma cap omega"); let expr = " 𝛼,𝜔"; test("en", "SimpleSpeak", expr, "alpha comma omega"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "cap alpha comma cap omega"); let expr = " ,"; test("en", "SimpleSpeak", expr, "alpha comma omega"); } #[test] fn italic_greek_others() { let expr = " 𝜕,𝜛"; test("en", "SimpleSpeak", expr, "partial derivative comma pi"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "partial derivative comma pi"); } #[test] fn bold_italic_greek() { let expr = " 𝜜,𝜴"; test("en", "SimpleSpeak", expr, "bold cap alpha comma bold cap omega"); let expr = " 𝜶,𝝎"; test("en", "SimpleSpeak", expr, "bold alpha comma bold omega"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold cap alpha comma bold cap omega"); let expr = " ,"; test("en", "SimpleSpeak", expr, "bold alpha comma bold omega"); } #[test] fn bold_italic_greek_others() { let expr = " 𝝏,𝝕"; test("en", "SimpleSpeak", expr, "bold partial derivative, comma bold pi"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold partial derivative, comma bold pi"); } #[test] fn sans_serif_bold_greek() { let expr = " 𝝖,𝝮"; test("en", "SimpleSpeak", expr, "bold cap alpha comma bold cap omega"); let expr = " 𝝰,𝞈"; test("en", "SimpleSpeak", expr, "bold alpha comma bold omega"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold cap alpha comma bold cap omega"); let expr = " ,"; test("en", "SimpleSpeak", expr, "bold alpha comma bold omega"); } #[test] fn sans_serif_bold_greek_others() { let expr = " 𝞉,𝞏"; test("en", "SimpleSpeak", expr, "bold partial derivative, comma bold pi"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold partial derivative, comma bold pi"); } #[test] fn sans_serif_bold_italic_greek() { let expr = " 𝞐,𝞨"; test("en", "SimpleSpeak", expr, "bold cap alpha comma bold cap omega"); let expr = " 𝞪,𝟂"; test("en", "SimpleSpeak", expr, "bold alpha comma bold omega"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold cap alpha comma bold cap omega"); let expr = " ,"; test("en", "SimpleSpeak", expr, "bold alpha comma bold omega"); } #[test] fn sans_serif_bold_italic_greek_others() { let expr = " 𝟃,𝟉"; test("en", "SimpleSpeak", expr, "bold partial derivative, comma bold pi"); // MathType private space versions let expr = " ,"; test("en", "SimpleSpeak", expr, "bold partial derivative, comma bold pi"); } #[test] fn pua_regular() { let expr = " ,"; test("en", "SimpleSpeak", expr, "cap eigh comma cap z"); } #[test] fn turned() { let expr = " ,"; test("en", "SimpleSpeak", expr, "turned cap f comma turned sans-serif cap y"); } #[test] fn enclosed_numbers() { let expr = " ,"; test("en", "SimpleSpeak", expr, "circled 1 comma circled 9"); let expr = " ,"; test("en", "SimpleSpeak", expr, "parenthesized 1 comma parenthesized 9"); let expr = " ,"; test("en", "SimpleSpeak", expr, "1 with period comma 9 with period"); let expr = " ,"; test("en", "SimpleSpeak", expr, "double circled 1 comma double circled 9"); }