diff --git a/UnicodeCharacterInspector/CharacterInfoViewModel.cs b/UnicodeCharacterInspector/CharacterInfoViewModel.cs
index cbb3bb8..1396c35 100644
--- a/UnicodeCharacterInspector/CharacterInfoViewModel.cs
+++ b/UnicodeCharacterInspector/CharacterInfoViewModel.cs
@@ -52,6 +52,8 @@ namespace UnicodeCharacterInspector
NotifyPropertyChanged("CodePoint");
NotifyPropertyChanged("Name");
NotifyPropertyChanged("OldName");
+ NotifyPropertyChanged("NumericType");
+ NotifyPropertyChanged("NumericValue");
NotifyPropertyChanged("Category");
NotifyPropertyChanged("ContributoryProperties");
}
@@ -78,6 +80,16 @@ namespace UnicodeCharacterInspector
get { return character != null ? characterData != null ? characterData.Category : UnicodeCategory.OtherNotAssigned : null as UnicodeCategory?; }
}
+ public UnicodeNumericType? NumericType
+ {
+ get { return character != null ? characterData != null ? characterData.NumericType : UnicodeNumericType.None : null as UnicodeNumericType?; }
+ }
+
+ public UnicodeRationalNumber? NumericValue
+ {
+ get { return character != null && characterData != null && characterData.NumericType != UnicodeNumericType.None ? characterData.NumericValue : null as UnicodeRationalNumber?; }
+ }
+
public ContributoryProperties? ContributoryProperties
{
get { return character != null ? characterData != null ? characterData.ContributoryProperties : 0 : null as ContributoryProperties?; }
diff --git a/UnicodeCharacterInspector/MainWindow.xaml b/UnicodeCharacterInspector/MainWindow.xaml
index 5ad2a31..501a7ee 100644
--- a/UnicodeCharacterInspector/MainWindow.xaml
+++ b/UnicodeCharacterInspector/MainWindow.xaml
@@ -55,18 +55,24 @@
+
+
-
-
+
+
-
-
+
+
+
+
+
+
diff --git a/UnicodeInformation.Builder/UnicodeDataManager.cs b/UnicodeInformation.Builder/UnicodeDataManager.cs
index 1bb0110..d4aed13 100644
--- a/UnicodeInformation.Builder/UnicodeDataManager.cs
+++ b/UnicodeInformation.Builder/UnicodeDataManager.cs
@@ -123,6 +123,7 @@ namespace System.Unicode.Builder
{
throw new InvalidDataException("Invalid value for field 6 of code point " + characterData.CodePointRange.ToString() + ".");
}
+ characterData.NumericType = UnicodeNumericType.Decimal;
}
else
{
diff --git a/UnicodeInformation/UnicodeRationalNumber.cs b/UnicodeInformation/UnicodeRationalNumber.cs
index 849b5d6..8ef89f7 100644
--- a/UnicodeInformation/UnicodeRationalNumber.cs
+++ b/UnicodeInformation/UnicodeRationalNumber.cs
@@ -37,7 +37,7 @@ namespace System.Unicode
public override string ToString()
{
- return !IsDefaultValue ? Numerator.ToString() + "/" + Denominator.ToString() : string.Empty;
+ return !IsDefaultValue ? Denominator != 1 ? Numerator.ToString() + "/" + Denominator.ToString() : Numerator.ToString() : string.Empty;
}
public bool Equals(UnicodeRationalNumber other)
diff --git a/UnicodeInformation/ucd.dat b/UnicodeInformation/ucd.dat
index 77370ba..c2eaaae 100644
Binary files a/UnicodeInformation/ucd.dat and b/UnicodeInformation/ucd.dat differ