Esempio n. 1
0
 public bool Equals(BoundaryDefinition other)
 {
     if (other == null)
     {
         return(false);
     }
     return(m_strRep == other.m_strRep && m_charDefTable == other.m_charDefTable);
 }
Esempio n. 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);
        }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 5
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="ctxt">The boundary context.</param>
 public BoundaryContext(BoundaryContext ctxt)
     : base(ctxt)
 {
     m_bdryDef = ctxt.m_bdryDef;
 }
Esempio n. 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;
 }
		/// <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);
		}
		public bool Equals(BoundaryDefinition other)
		{
			if (other == null)
				return false;
			return m_strRep == other.m_strRep && m_charDefTable == other.m_charDefTable;
		}
Esempio n. 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);
 }
Esempio n. 10
0
		/// <summary>
		/// Copy constructor.
		/// </summary>
		/// <param name="bdry">The bdry.</param>
		public Boundary(Boundary bdry)
			: base(bdry)
		{
			m_bdryDef = bdry.m_bdryDef;
		}
Esempio n. 11
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;
		}
Esempio n. 12
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;
		}
Esempio n. 13
0
		/// <summary>
		/// Copy constructor.
		/// </summary>
		/// <param name="ctxt">The boundary context.</param>
		public BoundaryContext(BoundaryContext ctxt)
			: base(ctxt)
		{
			m_bdryDef = ctxt.m_bdryDef;
		}
Esempio n. 14
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;
		}
Esempio n. 15
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="bdry">The bdry.</param>
 public Boundary(Boundary bdry)
     : base(bdry)
 {
     m_bdryDef = bdry.m_bdryDef;
 }
Esempio n. 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;
 }
Esempio n. 17
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;
		}