public Grapheme(List <Glyph> glyphs) { Initialize(); var glyphChain = new GlyphChain(glyphs); Glyphs.Add(glyphChain); Graph = glyphChain.ToString(); }
public bool Equals(GlyphChain other) { if (other is null) { return(false); } else { return(this.ToString() == other.ToString()); } }
public void AddGlyphChain(List <Glyph> glyphs) { var glyphChain = new GlyphChain(glyphs); if (Glyphs != null) { if (Glyphs.Count == 0) { Graph = glyphChain.ToString(); } if (!Glyphs.Contains(glyphChain)) { Glyphs.Add(glyphChain); } } }