summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-08-27 12:34:12 +0300
committerAndras Timar <andras.timar@collabora.com>2018-08-28 16:21:20 +0200
commitc18e2c314a8f694abd3d31a168f670078d183011 (patch)
tree6352a93f0bf42e40fd073446dbe171bff65d48b3 /sw
parentce6a51307863a69bf832647458cff3a58ddfaec4 (diff)
tdf#119143: introduce tentative directional embedding import support
ECMA-376-1:2016 states that w:dir is functionally equivalent to LRE/RLE+PDF pair around the enclosed runs. So this patch does just that. Change-Id: Ibf9775338cc38a3bbc38a42a33fc64ae787b478f Reviewed-on: https://gerrit.libreoffice.org/59643 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/59671 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf119143.docxbin0 -> 17052 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport11.cxx20
2 files changed, 20 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf119143.docx b/sw/qa/extras/ooxmlexport/data/tdf119143.docx
new file mode 100644
index 000000000000..be0bc03f71c1
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf119143.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
index a00d8f4f546d..131953eb9723 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
@@ -315,6 +315,26 @@ DECLARE_OOXMLEXPORT_TEST(testTdf112118_DOCX, "tdf112118.docx")
}
}
+DECLARE_OOXMLEXPORT_TEST(testTdf119143, "tdf119143.docx")
+{
+ // The runs inside <w:dir> were ignored
+ const OUString sParaText = getParagraph(1)->getString();
+ CPPUNIT_ASSERT_EQUAL(
+ OUString::fromUtf8(
+ u8"عندما يريد العالم أن يتكلّم ‬ ، فهو يتحدّث "
+ u8"بلغة "
+ u8"يونيكود. تسجّل الآن لحضور المؤتمر الدولي العاشر "
+ u8"ليونيكود (Unicode Conference)، الذي سيعقد في 10-12 "
+ u8"آذار 1997 بمدينة مَايِنْتْس، ألمانيا. و سيجمع المؤتمر "
+ u8"بين خبراء من كافة قطاعات الصناعة على الشبكة "
+ u8"العالمية انترنيت ويونيكود، حيث ستتم، على الصعيدين "
+ u8"الدولي والمحلي على حد سواء مناقشة سبل استخدام "
+ u8"يونكود في النظم القائمة وفيما يخص التطبيقات "
+ u8"الحاسوبية، الخطوط، تصميم النصوص والحوسبة متعددة "
+ u8"اللغات."),
+ sParaText);
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */