示例#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;
 }
		/// <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;
		}
示例#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
		/// <summary>
		/// Copy constructor.
		/// </summary>
		/// <param name="bdry">The bdry.</param>
		public Boundary(Boundary bdry)
			: base(bdry)
		{
			m_bdryDef = bdry.m_bdryDef;
		}
示例#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;
		}
示例#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;
		}
示例#13
0
		/// <summary>
		/// Copy constructor.
		/// </summary>
		/// <param name="ctxt">The boundary context.</param>
		public BoundaryContext(BoundaryContext ctxt)
			: base(ctxt)
		{
			m_bdryDef = ctxt.m_bdryDef;
		}
示例#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;
		}
示例#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
		/// <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;
		}