コード例 #1
0
 public bool Equals(BoundaryDefinition other)
 {
     if (other == null)
     {
         return(false);
     }
     return(m_strRep == other.m_strRep && m_charDefTable == other.m_charDefTable);
 }
コード例 #2
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);
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Boundary"/> class.
 /// </summary>
 /// <param name="strRep">The string representation.</param>
 /// <param name="charDefTable">The character definition table.</param>
 /// <param name="morpher">The morpher.</param>
 public Boundary(BoundaryDefinition bdryDef)
 {
     m_bdryDef = bdryDef;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BoundaryContext"/> class from a boundary
 /// object.
 /// </summary>
 /// <param name="bdry">The bdry.</param>
 public BoundaryContext(Boundary bdry)
 {
     m_bdryDef = bdry.BoundaryDefinition;
 }
コード例 #5
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="ctxt">The boundary context.</param>
 public BoundaryContext(BoundaryContext ctxt)
     : base(ctxt)
 {
     m_bdryDef = ctxt.m_bdryDef;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BoundaryContext"/> class.
 /// </summary>
 /// <param name="strRep">The string representation.</param>
 /// <param name="charDefTable">The character definition table.</param>
 /// <param name="morpher">The morpher.</param>
 public BoundaryContext(BoundaryDefinition bdryDef)
 {
     m_bdryDef = bdryDef;
 }
コード例 #7
0
		/// <summary>
		/// Adds the boundary definition.
		/// </summary>
		/// <param name="strRep">The string representation.</param>
		public void AddBoundaryDefinition(string strRep)
		{
			m_bdryDefs[strRep] = new BoundaryDefinition(strRep, this);
		}
コード例 #8
0
		public bool Equals(BoundaryDefinition other)
		{
			if (other == null)
				return false;
			return m_strRep == other.m_strRep && m_charDefTable == other.m_charDefTable;
		}
コード例 #9
0
 /// <summary>
 /// Adds the boundary definition.
 /// </summary>
 /// <param name="strRep">The string representation.</param>
 public void AddBoundaryDefinition(string strRep)
 {
     m_bdryDefs[strRep] = new BoundaryDefinition(strRep, this);
 }
コード例 #10
0
ファイル: Boundary.cs プロジェクト: bbriggs/FieldWorks
		/// <summary>
		/// Copy constructor.
		/// </summary>
		/// <param name="bdry">The bdry.</param>
		public Boundary(Boundary bdry)
			: base(bdry)
		{
			m_bdryDef = bdry.m_bdryDef;
		}
コード例 #11
0
ファイル: Boundary.cs プロジェクト: bbriggs/FieldWorks
		/// <summary>
		/// Initializes a new instance of the <see cref="Boundary"/> class.
		/// </summary>
		/// <param name="strRep">The string representation.</param>
		/// <param name="charDefTable">The character definition table.</param>
		/// <param name="morpher">The morpher.</param>
		public Boundary(BoundaryDefinition bdryDef)
		{
			m_bdryDef = bdryDef;
		}
コード例 #12
0
ファイル: Boundary.cs プロジェクト: bbriggs/FieldWorks
		/// <summary>
		/// Initializes a new instance of the <see cref="BoundaryContext"/> class from a boundary
		/// object.
		/// </summary>
		/// <param name="bdry">The bdry.</param>
		public BoundaryContext(Boundary bdry)
		{
			m_bdryDef = bdry.BoundaryDefinition;
		}
コード例 #13
0
ファイル: Boundary.cs プロジェクト: bbriggs/FieldWorks
		/// <summary>
		/// Copy constructor.
		/// </summary>
		/// <param name="ctxt">The boundary context.</param>
		public BoundaryContext(BoundaryContext ctxt)
			: base(ctxt)
		{
			m_bdryDef = ctxt.m_bdryDef;
		}
コード例 #14
0
ファイル: Boundary.cs プロジェクト: bbriggs/FieldWorks
		/// <summary>
		/// Initializes a new instance of the <see cref="BoundaryContext"/> class.
		/// </summary>
		/// <param name="strRep">The string representation.</param>
		/// <param name="charDefTable">The character definition table.</param>
		/// <param name="morpher">The morpher.</param>
		public BoundaryContext(BoundaryDefinition bdryDef)
		{
			m_bdryDef = bdryDef;
		}
コード例 #15
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="bdry">The bdry.</param>
 public Boundary(Boundary bdry)
     : base(bdry)
 {
     m_bdryDef = bdry.m_bdryDef;
 }
コード例 #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Boundary"/> class from a boundary
 /// context.
 /// </summary>
 /// <param name="ctxt">The boundary context.</param>
 public Boundary(BoundaryContext ctxt)
 {
     m_bdryDef = ctxt.BoundaryDefinition;
 }
コード例 #17
0
ファイル: Boundary.cs プロジェクト: bbriggs/FieldWorks
		/// <summary>
		/// Initializes a new instance of the <see cref="Boundary"/> class from a boundary
		/// context.
		/// </summary>
		/// <param name="ctxt">The boundary context.</param>
		public Boundary(BoundaryContext ctxt)
		{
			m_bdryDef = ctxt.BoundaryDefinition;
		}