Diff for /Amaya/amaya/XHTMLbuilder.c between versions 1.40 and 1.41

version 1.40, 2001/04/27 13:46:25 version 1.41, 2001/05/15 17:33:52
Line 351  void              XhtmlElementComplete ( Line 351  void              XhtmlElementComplete (
 {  {
    ElementType    elType, newElType, childType;     ElementType    elType, newElType, childType;
    Element        constElem, child, desc, leaf, prev, next, last,     Element        constElem, child, desc, leaf, prev, next, last,
                   elFrames, lastFrame, lastChild;                    elFrames, lastFrame, lastChild, parent;
    Attribute      attr;     Attribute      attr;
    AttributeType  attrType;     AttributeType  attrType;
    Language       lang;     Language       lang;
    char          *text;     char           *text;
    char           lastChar[2];     char           lastChar[2];
    char           *name1;     char           *name1;
    int            length;     int            length;
Line 702  void              XhtmlElementComplete ( Line 702  void              XhtmlElementComplete (
        /* show the TITLE in the main window */         /* show the TITLE in the main window */
        UpdateTitle (el, doc);         UpdateTitle (el, doc);
        break;         break;
          
        case HTML_EL_rbc:
          /* an rbc element has been read. Its parent should be a complex_ruby.
             Change the type of the parent, as simple_ruby are created by
             default */
          parent = TtaGetParent (el);
          if (parent)
            {
              newElType = TtaGetElementType (parent);
              if (newElType.ElSSchema == elType.ElSSchema &&
                  newElType.ElTypeNum == HTML_EL_simple_ruby)
                 ChangeElementType (parent, HTML_EL_complex_ruby);
            }
          break;
   
        case HTML_EL_rtc1:
          /* an rtc element has been parsed. If it has already a rtc1 sibling,
             change its type to rtc2 */
          prev = el;
          do
            {
              TtaPreviousSibling(&prev);
              if (prev)
                {
                  newElType = TtaGetElementType (prev);
                  if (newElType.ElSSchema == elType.ElSSchema &&
                      newElType.ElTypeNum == HTML_EL_rtc1)
                    {
                      ChangeElementType (el, HTML_EL_rtc2);
                      prev = NULL;
                    }
                }
            }
          while (prev);
          break;
   
      default:       default:
        break;         break;
      }       }

Removed from v.1.40  
changed lines
  Added in v.1.41


Webmaster