コード例 #1
0
        protected override Segment ApplyInsertionSegments()
        {
            Segment seg = new Segment(m_segDef, new FeatureBundle(false, m_featSys));

            seg.InstantiateSegment(m_segDef);
            return(seg);
        }
コード例 #2
0
 protected override void UnapplySegments(Segment seg)
 {
     foreach (SegmentDefinition segDef in m_natClass.SegmentDefinitions)
     {
         seg.InstantiateSegment(segDef);
     }
 }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
 protected override void UnapplySegments(Segment seg)
 {
     seg.SegmentDefinition = m_segDef;
     seg.InstantiateSegment(m_segDef);
 }
コード例 #6
0
ファイル: Segment.cs プロジェクト: bbriggs/FieldWorks
		protected override Segment ApplyInsertionSegments()
		{
			Segment seg = new Segment(m_segDef, new FeatureBundle(false, m_featSys));
			seg.InstantiateSegment(m_segDef);
			return seg;
		}
コード例 #7
0
ファイル: Segment.cs プロジェクト: bbriggs/FieldWorks
		protected override void UnapplySegments(Segment seg)
		{
			seg.SegmentDefinition = m_segDef;
			seg.InstantiateSegment(m_segDef);
		}
コード例 #8
0
		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;
		}
コード例 #9
0
ファイル: NaturalClass.cs プロジェクト: bbriggs/FieldWorks
		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;
		}
コード例 #10
0
ファイル: NaturalClass.cs プロジェクト: bbriggs/FieldWorks
		protected override void UnapplySegments(Segment seg)
		{
			foreach (SegmentDefinition segDef in m_natClass.SegmentDefinitions)
				seg.InstantiateSegment(segDef);
		}