Kaydet (Commit) 68155a68 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Takeshi Abe

tdf#105483: let's put lowercase Greek letter in italic

and let uppercase one in non italic
See comments from tdf#52225 in addition to initial description of this one

+ adapt QA tests associated (keep on to test "0" case)

Change-Id: Ia84685fc5d336dd96b97d02c0e81f92e7966a6f1
Reviewed-on: https://gerrit.libreoffice.org/33480Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTakeshi Abe <tabe@fixedpoint.jp>
üst 5b37ec6e
......@@ -412,7 +412,7 @@
</info>
</maxInclusive>
</constraints>
<value>0</value>
<value>2</value>
</prop>
<prop oor:name="ScaleNormalBracket" oor:type="xs:boolean" oor:nillable="false">
<!-- OldPath: Math/StandardFormat -->
......
......@@ -105,10 +105,10 @@ void NodeTest::testTdf52225()
} while (false)
SmFormat aFormat = mxDocShell->GetFormat();
CPPUNIT_ASSERT_EQUAL(sal_Int16(0), aFormat.GetGreekCharStyle()); // default format
CPPUNIT_ASSERT_EQUAL(sal_Int16(2), aFormat.GetGreekCharStyle()); // default format = 2
CHECK_GREEK_SYMBOL("%ALPHA", 0x0391, false);
CHECK_GREEK_SYMBOL("%iALPHA", 0x0391, true);
CHECK_GREEK_SYMBOL("%alpha", 0x03b1, false);
CHECK_GREEK_SYMBOL("%alpha", 0x03b1, true);
CHECK_GREEK_SYMBOL("%ialpha", 0x03b1, true);
// mode 1
......@@ -119,12 +119,12 @@ void NodeTest::testTdf52225()
CHECK_GREEK_SYMBOL("%beta", 0x03b2, true);
CHECK_GREEK_SYMBOL("%ibeta", 0x03b2, true);
// mode 2
aFormat.SetGreekCharStyle(2);
// mode 0
aFormat.SetGreekCharStyle(0);
mxDocShell->SetFormat(aFormat);
CHECK_GREEK_SYMBOL("%GAMMA", 0x0393, false);
CHECK_GREEK_SYMBOL("%iGAMMA", 0x0393, true);
CHECK_GREEK_SYMBOL("%gamma", 0x03b3, true);
CHECK_GREEK_SYMBOL("%gamma", 0x03b3, false);
CHECK_GREEK_SYMBOL("%igamma", 0x03b3, true);
#undef CHECK_GREEK_SYMBOL
......
......@@ -132,13 +132,13 @@ void MathMLExportTest::testTdf101022()
} \
while (false)
CHECK_MATHVARIANT(false, false); // default mode 0
CHECK_MATHVARIANT(false, true); // default mode 2
mxDocShell->SetGreekCharStyle(1); // mode 1
CHECK_MATHVARIANT(true, true);
mxDocShell->SetGreekCharStyle(2); // mode 2
CHECK_MATHVARIANT(false, true);
mxDocShell->SetGreekCharStyle(0); // mode 0
CHECK_MATHVARIANT(false, false);
#undef CHECK_MATHVARIANT
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment