/// 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("zh-tw", "SimpleSpeak", expr, "fraktur 大寫 h 逗號 fraktur 大寫 c"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "空心 大寫 h 逗號 空心 大寫 pi"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "草體 大寫 i 逗號 草體 大寫 m"); } #[test] fn greek() { let expr = " Α,Ω"; test("zh-tw", "SimpleSpeak", expr, "大寫 alpha 逗號 大寫 omega"); let expr = " α,ω"; test("zh-tw", "SimpleSpeak", expr, "alpha 逗號 omega"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "空心 大寫 delta 逗號 空心 大寫 upsilon"); let expr = " α,ω"; test("zh-tw", "SimpleSpeak", expr, "alpha 逗號 omega"); } #[test] fn cap_cyrillic() { let expr = " А,Я"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 ya"); } #[test] fn parenthesized() { let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "括號圍繞 a 逗號 括號圍繞 z"); } #[test] fn circled() { let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "圈圈 大寫 a 逗號 圈圈 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "圈圈 a 逗號 圈圈 z"); } #[test] fn fraktur() { let expr = " 𝔄,𝔜"; test("zh-tw", "SimpleSpeak", expr, "fraktur 大寫 a 逗號 fraktur 大寫 y"); let expr = " 𝔞,𝔷"; test("zh-tw", "SimpleSpeak", expr, "fraktur a 逗號 fraktur z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "fraktur 大寫 a 逗號 fraktur 大寫 y"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "fraktur a 逗號 fraktur z"); } #[test] fn bold_fraktur() { let expr = " 𝕬,𝖅"; test("zh-tw", "SimpleSpeak", expr, "fraktur 粗體 大寫 a, 逗號 fraktur 粗體 大寫 z"); let expr = " 𝖆,𝖟"; test("zh-tw", "SimpleSpeak", expr, "fraktur 粗體 a 逗號 fraktur 粗體 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "fraktur 粗體 大寫 a, 逗號 fraktur 粗體 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "fraktur 粗體 a 逗號 fraktur 粗體 z"); } #[test] fn double_struck() { let expr = " 𝔸,𝕐"; test("zh-tw", "SimpleSpeak", expr, "空心 大寫 a 逗號 空心 大寫 y"); let expr = " 𝕒,𝕫"; test("zh-tw", "SimpleSpeak", expr, "空心 a 逗號 空心 z"); let expr = " 𝟘,𝟡"; test("zh-tw", "SimpleSpeak", expr, "空心 0 逗號 空心 9"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "空心 大寫 a 逗號 空心 大寫 y"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "空心 a 逗號 空心 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "空心 0 逗號 空心 9"); } #[test] fn script() { let expr = " 𝒜,𝒵"; test("zh-tw", "SimpleSpeak", expr, "草體 大寫 a 逗號 草體 大寫 z"); let expr = " 𝒶,𝓏"; test("zh-tw", "SimpleSpeak", expr, "草體 a 逗號 草體 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "草體 大寫 a 逗號 草體 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "草體 a 逗號 草體 z"); } #[test] fn bold_script() { let expr = " 𝓐,𝓩"; test("zh-tw", "SimpleSpeak", expr, "粗草體 大寫 a 逗號 粗草體 大寫 z"); let expr = " 𝓪,𝔃"; test("zh-tw", "SimpleSpeak", expr, "粗草體 a 逗號 粗草體 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗草體 大寫 a 逗號 粗草體 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗草體 a 逗號 粗草體 z"); } #[test] fn bold() { let expr = " 𝐀,𝐙"; test("zh-tw", "SimpleSpeak", expr, "粗體 大寫 a 逗號 粗體 大寫 z"); let expr = " 𝐚,𝐳"; test("zh-tw", "SimpleSpeak", expr, "粗體 a 逗號 粗體 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 大寫 a 逗號 粗體 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 a 逗號 粗體 z"); } #[test] fn italic() { let expr = " 𝐴,𝑍"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 z"); let expr = " 𝑎,𝑧"; test("zh-tw", "SimpleSpeak", expr, "a 逗號 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "a 逗號 z"); } #[test] fn sans_serif() { let expr = " 𝖠,𝖹"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 z"); let expr = " 𝖺,𝗓"; test("zh-tw", "SimpleSpeak", expr, "a 逗號 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "a 逗號 z"); } #[test] fn sans_serif_bold() { let expr = " 𝗔,𝗭"; test("zh-tw", "SimpleSpeak", expr, "粗體 大寫 a 逗號 粗體 大寫 z"); let expr = " 𝗮,𝘇"; test("zh-tw", "SimpleSpeak", expr, "粗體 a 逗號 粗體 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 大寫 a 逗號 粗體 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 a 逗號 粗體 z"); } #[test] fn sans_serif_italic() { let expr = " 𝘈,𝘡"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 z"); let expr = " 𝘢,𝘻"; test("zh-tw", "SimpleSpeak", expr, "a 逗號 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "a 逗號 z"); } #[test] fn sans_serif_bold_italic() { let expr = " 𝘼,𝙕"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 大寫 a 逗號 粗斜體 大寫 z"); let expr = " 𝙖,𝙯"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 a 逗號 粗斜體 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 大寫 a 逗號 粗斜體 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 a 逗號 粗斜體 z"); } #[test] fn monospace() { let expr = " 𝙰,𝚉"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 z"); let expr = " 𝚊,𝚣"; test("zh-tw", "SimpleSpeak", expr, "a 逗號 z"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 z"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "a 逗號 z"); } #[test] fn bold_greek() { let expr = " 𝚨,𝛀"; test("zh-tw", "SimpleSpeak", expr, "粗體 大寫 alpha 逗號 粗體 大寫 omega"); let expr = " 𝛂,𝛚"; test("zh-tw", "SimpleSpeak", expr, "粗體 alpha 逗號 粗體 omega"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 大寫 alpha 逗號 粗體 大寫 omega"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 alpha 逗號 粗體 omega"); } #[test] fn bold_greek_others() { let expr = " 𝛛,𝛡"; test("zh-tw", "SimpleSpeak", expr, "粗體 偏微分 逗號 粗體 pi"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 偏微分 逗號 粗體 pi"); } #[test] fn italic_greek() { let expr = " 𝛢,𝛺"; test("zh-tw", "SimpleSpeak", expr, "大寫 alpha 逗號 大寫 omega"); let expr = " 𝛼,𝜔"; test("zh-tw", "SimpleSpeak", expr, "alpha 逗號 omega"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "大寫 alpha 逗號 大寫 omega"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "alpha 逗號 omega"); } #[test] fn italic_greek_others() { let expr = " 𝜕,𝜛"; test("zh-tw", "SimpleSpeak", expr, "偏微分 逗號 pi"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "偏微分 逗號 pi"); } #[test] fn bold_italic_greek() { let expr = " 𝜜,𝜴"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 大寫 alpha, 逗號 粗斜體 大寫 omega"); let expr = " 𝜶,𝝎"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 alpha 逗號 粗斜體 omega"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 大寫 alpha, 逗號 粗斜體 大寫 omega"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 alpha 逗號 粗斜體 omega"); } #[test] fn bold_italic_greek_others() { let expr = " 𝝏,𝝕"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 偏微分 逗號 粗斜體 pi"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 偏微分 逗號 粗斜體 pi"); } #[test] fn sans_serif_bold_greek() { let expr = " 𝝖,𝝮"; test("zh-tw", "SimpleSpeak", expr, "粗體 大寫 alpha 逗號 粗體 大寫 omega"); let expr = " 𝝰,𝞈"; test("zh-tw", "SimpleSpeak", expr, "粗體 alpha 逗號 粗體 omega"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 大寫 alpha 逗號 粗體 大寫 omega"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 alpha 逗號 粗體 omega"); } #[test] fn sans_serif_bold_greek_others() { let expr = " 𝞉,𝞏"; test("zh-tw", "SimpleSpeak", expr, "粗體 偏微分 逗號 粗體 pi"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗體 偏微分 逗號 粗體 pi"); } #[test] fn sans_serif_bold_italic_greek() { let expr = " 𝞐,𝞨"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 大寫 alpha, 逗號 粗斜體 大寫 omega"); let expr = " 𝞪,𝟂"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 alpha 逗號 粗斜體 omega"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 大寫 alpha, 逗號 粗斜體 大寫 omega"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 alpha 逗號 粗斜體 omega"); } #[test] fn sans_serif_bold_italic_greek_others() { let expr = " 𝟃,𝟉"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 偏微分 逗號 粗斜體 pi"); // MathType private space versions let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "粗斜體 偏微分 逗號 粗斜體 pi"); } #[test] fn pua_regular() { let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "大寫 a 逗號 大寫 z"); } #[test] fn turned() { let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "翻身 大寫 f 逗號 翻身sanserif 大寫 y"); } #[test] fn enclosed_numbers() { let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "圈圈 1 逗號 圈圈 9"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "括號圍繞 1 逗號 括號圍繞 9"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "1 點 逗號 9 點"); let expr = " ,"; test("zh-tw", "SimpleSpeak", expr, "雙圈 1 逗號 雙圈 9"); }