From da09513ae6221f46ee453943b3669d1d922a4aa3 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 28 May 2023 13:06:42 +0300 Subject: tdf#154547: Improve Hebrew font preview sample text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Hebrew font preview sample text include Nikkud (vowel marks) which are optional for modern Hebrew and not all Hebrew fonts have them, and for fonts lacking them we use a much shorter preview text. The inclusion of Nikkud is unnecessary and we don’t include vowel marks in many other scripts (e.g. Arabic where they are more used). This patch drop the Nikkud marks and leaves the sample text otherwise unchanged. Change-Id: Ie4e5abcd74599d25db41c4cdf7e1d3bf997a998c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152350 Tested-by: Jenkins Reviewed-by: خالد حسني --- svtools/source/misc/sampletext.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/svtools/source/misc/sampletext.cxx b/svtools/source/misc/sampletext.cxx index abcfde92b7a1..9000f6f73d6c 100644 --- a/svtools/source/misc/sampletext.cxx +++ b/svtools/source/misc/sampletext.cxx @@ -232,9 +232,8 @@ OUString makeShortRepresentativeTextForScript(UScriptCode eScript) case USCRIPT_HEBREW: { static constexpr OUStringLiteral aHebr = - u"\u05D0\u05B8\u05DC\u05B6\u05E3\u05BE\u05D1\u05B5" - "\u05BC\u05D9\u05EA \u05E2\u05B4\u05D1\u05B0" - "\u05E8\u05B4\u05D9"; + u"\u05D0\u05DC\u05E3\u05BE\u05D1\u05D9\u05EA " + "\u05E2\u05D1\u05E8\u05D9"; sSampleText = aHebr; break; } -- cgit