8using System.Collections.Generic;
9using NanoXLSX.Exceptions;
10using NanoXLSX.Utils.Xml;
64 if (
string.IsNullOrEmpty(value))
66 throw new FormatException(
"The text of the phonetic run cannot be null or empty");
68 text = XmlUtils.SanitizeXmlValue(value);
100 return new PhoneticRun(this.Text, this.StartBase, this.EndBase);
122 var hashCode = -2139365225;
123 hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(text);
124 hashCode = hashCode * -1521134295 +
StartBase.GetHashCode();
125 hashCode = hashCode * -1521134295 +
EndBase.GetHashCode();
string Text
The phonetic text to be displayed (Ruby text,like Furigana, Pinyin or Zhuyin).
PhoneticAlignment
Enumeration for phonetic text alignment.
@ Center
Center the phonetic characters over the base word, per word.
@ NoControl
Each phonetic character is left justified without respect to the base text (so it is not per word).
@ Distributed
Each phonetic character is distributed above each base word character, per word.
@ Left
Each phonetic character is left justified with respect to the base text., per word.
PhoneticType
Enumeration for phonetic text types.
@ FullwidthKatakana
Full-width Katakana characters for phonetic text.
@ NoConversion
No conversion for phonetic text.
@ HalfwidthKatakana
Half-width Katakana characters for phonetic text.
@ Hiragana
Hiragana characters for phonetic text.
uint StartBase
The start index of the base text (character where the Ruby text starts).
PhoneticRun Copy()
Creates a copy of the current phonetic run.
uint EndBase
The end index of the base text (character where the Ruby text ends).
override bool Equals(object obj)
Equals method to compare two phonetic runs.
override int GetHashCode()
Hash code of the current object.
PhoneticRun(string text, uint startBase, uint endBase)
Constructor to create a phonetic run.