/// 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("sv", "SimpleSpeak", expr, "fraktur versal h komma fraktur versal c"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "dubbelslaget versal h, komma dubbelslaget versal pi"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "skrivstilt versal i komma skrivstilt versal m"); } #[test] fn greek() { let expr = " Α,Ω"; test("sv", "SimpleSpeak", expr, "versal alfa komma versal omega"); let expr = " α,ω"; test("sv", "SimpleSpeak", expr, "alfa komma omega"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "dubbelslaget versal dellta, komma dubbelslaget versal ypsilon"); let expr = " α,ω"; test("sv", "SimpleSpeak", expr, "alfa komma omega"); } #[test] fn cap_cyrillic() { let expr = " А,Я"; test("sv", "SimpleSpeak", expr, "versal a komma versal ja"); } #[test] fn parenthesized() { let expr = " ,"; test("sv", "SimpleSpeak", expr, "a inom parentes komma z inom parentes"); } #[test] fn circled() { let expr = " ,"; test("sv", "SimpleSpeak", expr, "versal a i cirkel komma versal z i cirkel"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "a i cirkel komma z i cirkel"); } #[test] fn fraktur() { let expr = " 𝔄,𝔜"; test("sv", "SimpleSpeak", expr, "fraktur versal a komma fraktur versal y"); let expr = " 𝔞,𝔷"; test("sv", "SimpleSpeak", expr, "fraktur a komma fraktur z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fraktur versal a komma fraktur versal y"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "fraktur a komma fraktur z"); } #[test] fn bold_fraktur() { let expr = " 𝕬,𝖅"; test("sv", "SimpleSpeak", expr, "fraktur fetstilt versal a, komma fraktur fetstilt versal z"); let expr = " 𝖆,𝖟"; test("sv", "SimpleSpeak", expr, "fraktur fetstilt a komma fraktur fetstilt z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fraktur fetstilt versal a, komma fraktur fetstilt versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "fraktur fetstilt a komma fraktur fetstilt z"); } #[test] fn double_struck() { let expr = " 𝔸,𝕐"; test("sv", "SimpleSpeak", expr, "dubbelslaget versal a, komma dubbelslaget versal y"); let expr = " 𝕒,𝕫"; test("sv", "SimpleSpeak", expr, "dubbelslaget a komma dubbelslaget z"); let expr = " 𝟘,𝟡"; test("sv", "SimpleSpeak", expr, "dubbelslaget 0 komma dubbelslaget 9"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "dubbelslaget versal a, komma dubbelslaget versal y"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "dubbelslaget a komma dubbelslaget z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "dubbelslaget 0 komma dubbelslaget 9"); } #[test] fn script() { let expr = " 𝒜,𝒵"; test("sv", "SimpleSpeak", expr, "skrivstilt versal a komma skrivstilt versal z"); let expr = " 𝒶,𝓏"; test("sv", "SimpleSpeak", expr, "skrivstilt a komma skrivstilt z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "skrivstilt versal a komma skrivstilt versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "skrivstilt a komma skrivstilt z"); } #[test] fn bold_script() { let expr = " 𝓐,𝓩"; test("sv", "SimpleSpeak", expr, "skrivstilt fetstilt versal a, komma skrivstilt fetstilt versal z"); let expr = " 𝓪,𝔃"; test("sv", "SimpleSpeak", expr, "skrivstilt fetstilt a komma skrivstilt fetstilt z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "skrivstilt fetstilt versal a, komma skrivstilt fetstilt versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "skrivstilt fetstilt a komma skrivstilt fetstilt z"); } #[test] fn bold() { let expr = " 𝐀,𝐙"; test("sv", "SimpleSpeak", expr, "fetstilt versal a komma fetstilt versal z"); let expr = " 𝐚,𝐳"; test("sv", "SimpleSpeak", expr, "fetstilt a komma fetstilt z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt versal a komma fetstilt versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt a komma fetstilt z"); } #[test] fn italic() { let expr = " 𝐴,𝑍"; test("sv", "SimpleSpeak", expr, "versal a komma versal z"); let expr = " 𝑎,𝑧"; test("sv", "SimpleSpeak", expr, "a komma z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "versal a komma versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "a komma z"); } #[test] fn sans_serif() { let expr = " 𝖠,𝖹"; test("sv", "SimpleSpeak", expr, "versal a komma versal z"); let expr = " 𝖺,𝗓"; test("sv", "SimpleSpeak", expr, "a komma z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "versal a komma versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "a komma z"); } #[test] fn sans_serif_bold() { let expr = " 𝗔,𝗭"; test("sv", "SimpleSpeak", expr, "fetstilt versal a komma fetstilt versal z"); let expr = " 𝗮,𝘇"; test("sv", "SimpleSpeak", expr, "fetstilt a komma fetstilt z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt versal a komma fetstilt versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt a komma fetstilt z"); } #[test] fn sans_serif_italic() { let expr = " 𝘈,𝘡"; test("sv", "SimpleSpeak", expr, "versal a komma versal z"); let expr = " 𝘢,𝘻"; test("sv", "SimpleSpeak", expr, "a komma z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "versal a komma versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "a komma z"); } #[test] fn sans_serif_bold_italic() { let expr = " 𝘼,𝙕"; test("sv", "SimpleSpeak", expr, "fetstilt versal a komma fetstilt versal z"); let expr = " 𝙖,𝙯"; test("sv", "SimpleSpeak", expr, "fetstilt a komma fetstilt z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt versal a komma fetstilt versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt a komma fetstilt z"); } #[test] fn monospace() { let expr = " 𝙰,𝚉"; test("sv", "SimpleSpeak", expr, "versal a komma versal z"); let expr = " 𝚊,𝚣"; test("sv", "SimpleSpeak", expr, "a komma z"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "versal a komma versal z"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "a komma z"); } #[test] fn bold_greek() { let expr = " 𝚨,𝛀"; test("sv", "SimpleSpeak", expr, "fetstilt versal alfa komma fetstilt versal omega"); let expr = " 𝛂,𝛚"; test("sv", "SimpleSpeak", expr, "fetstilt alfa komma fetstilt omega"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt versal alfa komma fetstilt versal omega"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt alfa komma fetstilt omega"); } #[test] fn bold_greek_others() { let expr = " 𝛛,𝛡"; test("sv", "SimpleSpeak", expr, "fetstilt dell komma fetstilt pi"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt dell komma fetstilt pi"); } #[test] fn italic_greek() { let expr = " 𝛢,𝛺"; test("sv", "SimpleSpeak", expr, "versal alfa komma versal omega"); let expr = " 𝛼,𝜔"; test("sv", "SimpleSpeak", expr, "alfa komma omega"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "versal alfa komma versal omega"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "alfa komma omega"); } #[test] fn italic_greek_others() { let expr = " 𝜕,𝜛"; test("sv", "SimpleSpeak", expr, "dell komma pi"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "dell komma pi"); } #[test] fn bold_italic_greek() { let expr = " 𝜜,𝜴"; test("sv", "SimpleSpeak", expr, "fetstilt versal alfa komma fetstilt versal omega"); let expr = " 𝜶,𝝎"; test("sv", "SimpleSpeak", expr, "fetstilt alfa komma fetstilt omega"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt versal alfa komma fetstilt versal omega"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt alfa komma fetstilt omega"); } #[test] fn bold_italic_greek_others() { let expr = " 𝝏,𝝕"; test("sv", "SimpleSpeak", expr, "fetstilt dell komma fetstilt pi"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt dell komma fetstilt pi"); } #[test] fn sans_serif_bold_greek() { let expr = " 𝝖,𝝮"; test("sv", "SimpleSpeak", expr, "fetstilt versal alfa komma fetstilt versal omega"); let expr = " 𝝰,𝞈"; test("sv", "SimpleSpeak", expr, "fetstilt alfa komma fetstilt omega"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt versal alfa komma fetstilt versal omega"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt alfa komma fetstilt omega"); } #[test] fn sans_serif_bold_greek_others() { let expr = " 𝞉,𝞏"; test("sv", "SimpleSpeak", expr, "fetstilt dell komma fetstilt pi"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt dell komma fetstilt pi"); } #[test] fn sans_serif_bold_italic_greek() { let expr = " 𝞐,𝞨"; test("sv", "SimpleSpeak", expr, "fetstilt versal alfa komma fetstilt versal omega"); let expr = " 𝞪,𝟂"; test("sv", "SimpleSpeak", expr, "fetstilt alfa komma fetstilt omega"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt versal alfa komma fetstilt versal omega"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt alfa komma fetstilt omega"); } #[test] fn sans_serif_bold_italic_greek_others() { let expr = " 𝟃,𝟉"; test("sv", "SimpleSpeak", expr, "fetstilt dell komma fetstilt pi"); // MathType private space versions let expr = " ,"; test("sv", "SimpleSpeak", expr, "fetstilt dell komma fetstilt pi"); } #[test] fn pua_regular() { let expr = " ,"; test("sv", "SimpleSpeak", expr, "versal a komma versal z"); } #[test] fn turned() { let expr = " ,"; test("sv", "SimpleSpeak", expr, "roterat versal f komma roterat sans-serif versal y"); } #[test] fn enclosed_numbers() { let expr = " ,"; test("sv", "SimpleSpeak", expr, "1 i cirkel komma 9 i cirkel"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "1 inom parentes komma 9 inom parentes"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "1 med punkt komma 9 med punkt"); let expr = " ,"; test("sv", "SimpleSpeak", expr, "1 i dubbel cirkel komma 9 i dubbel cirkel"); }