diff --git a/ClosedXML_Examples/Styles/UsingPhonetics.cs b/ClosedXML_Examples/Styles/UsingPhonetics.cs
index eaf2e32..f6c6483 100644
--- a/ClosedXML_Examples/Styles/UsingPhonetics.cs
+++ b/ClosedXML_Examples/Styles/UsingPhonetics.cs
@@ -23,8 +23,10 @@
// And then we add the phonetics
cell.RichText.Phonetics.SetFontSize(8);
- cell.RichText.Phonetics.Add("げん", 7, 1);
- cell.RichText.Phonetics.Add("き", 8, 1);
+ cell.RichText.Phonetics.Add("げん", 7, 8);
+ cell.RichText.Phonetics.Add("き", 8, 9);
+
+ //TODO: I'm looking for someone who understands Japanese to confirm the validity of the above code.
wb.SaveAs(filePath);
}
diff --git a/ClosedXML_Tests/ClosedXML_Tests.csproj b/ClosedXML_Tests/ClosedXML_Tests.csproj
index 8059cad..a0834a3 100644
--- a/ClosedXML_Tests/ClosedXML_Tests.csproj
+++ b/ClosedXML_Tests/ClosedXML_Tests.csproj
@@ -291,6 +291,7 @@
+
diff --git a/ClosedXML_Tests/Examples/StylesTests.cs b/ClosedXML_Tests/Examples/StylesTests.cs
index 4ecfb15..c400a81 100644
--- a/ClosedXML_Tests/Examples/StylesTests.cs
+++ b/ClosedXML_Tests/Examples/StylesTests.cs
@@ -67,9 +67,15 @@
}
[Test]
+ public void UsingPhonetics()
+ {
+ TestHelper.RunTestExample(@"Styles\UsingPhonetics.xlsx");
+ }
+
+ [Test]
public void UsingRichText()
{
TestHelper.RunTestExample(@"Styles\UsingRichText.xlsx");
}
}
-}
\ No newline at end of file
+}
diff --git a/ClosedXML_Tests/Resource/Examples/Styles/UsingPhonetics.xlsx b/ClosedXML_Tests/Resource/Examples/Styles/UsingPhonetics.xlsx
new file mode 100644
index 0000000..86fe3e6
--- /dev/null
+++ b/ClosedXML_Tests/Resource/Examples/Styles/UsingPhonetics.xlsx
Binary files differ