protected override Segment ApplyInsertionSegments() { Segment seg = new Segment(m_segDef, new FeatureBundle(false, m_featSys)); seg.InstantiateSegment(m_segDef); return(seg); }
protected override void UnapplySegments(Segment seg) { foreach (SegmentDefinition segDef in m_natClass.SegmentDefinitions) { seg.InstantiateSegment(segDef); } }
protected override Segment ApplyInsertionSegments() { Segment seg = new Segment(ToString(), new FeatureBundle(false, m_featSys)); foreach (SegmentDefinition segDef in m_natClass.SegmentDefinitions) { seg.InstantiateSegment(segDef); } return(seg); }
PhoneticShapeNode GetPhoneticShapeNode(string strRep, ModeType mode) { PhoneticShapeNode node = null; SegmentDefinition segDef = GetSegmentDefinition(strRep); if (segDef != null) { Segment seg = new Segment(segDef, mode == ModeType.SYNTHESIS ? segDef.SynthFeatures.Clone() : segDef.AnalysisFeatures.Clone()); if (!Morpher.PhoneticFeatureSystem.HasFeatures) { seg.InstantiateSegment(segDef); } node = seg; } else { BoundaryDefinition bdryDef = GetBoundaryDefinition(strRep); if (bdryDef != null) { node = new Boundary(bdryDef); } } return(node); }
protected override void UnapplySegments(Segment seg) { seg.SegmentDefinition = m_segDef; seg.InstantiateSegment(m_segDef); }
protected override Segment ApplyInsertionSegments() { Segment seg = new Segment(m_segDef, new FeatureBundle(false, m_featSys)); seg.InstantiateSegment(m_segDef); return seg; }
PhoneticShapeNode GetPhoneticShapeNode(string strRep, ModeType mode) { PhoneticShapeNode node = null; SegmentDefinition segDef = GetSegmentDefinition(strRep); if (segDef != null) { Segment seg = new Segment(segDef, mode == ModeType.SYNTHESIS ? segDef.SynthFeatures.Clone() : segDef.AnalysisFeatures.Clone()); if (!Morpher.PhoneticFeatureSystem.HasFeatures) seg.InstantiateSegment(segDef); node = seg; } else { BoundaryDefinition bdryDef = GetBoundaryDefinition(strRep); if (bdryDef != null) node = new Boundary(bdryDef); } return node; }
protected override Segment ApplyInsertionSegments() { Segment seg = new Segment(ToString(), new FeatureBundle(false, m_featSys)); foreach (SegmentDefinition segDef in m_natClass.SegmentDefinitions) seg.InstantiateSegment(segDef); return seg; }
protected override void UnapplySegments(Segment seg) { foreach (SegmentDefinition segDef in m_natClass.SegmentDefinitions) seg.InstantiateSegment(segDef); }