Diff for /Amaya/amaya/HTML.trans between versions 1.31 and 1.32

version 1.31, 2003/10/16 15:03:18 version 1.32, 2003/11/03 16:40:37
Line 73  Address:(p{*+})+; Line 73  Address:(p{*+})+;
         * > address:*;          * > address:*;
         }          }
   
   Paragraph:(address{*+});
           {
           * > p:*;
           }
   
 !between lists  !between lists
 !!!!!!!!!!!!!!  !!!!!!!!!!!!!!
   
Line 130  Paragraphs: Line 135  Paragraphs:
 ! Preformatted to/from paragraphs  ! Preformatted to/from paragraphs
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   
 !Preformatted: p+;  Preformatted: p+;
 !       {          {
 !       p>:pre;          p > :pre;
 !       }          }
   
 !Paragraph: pre+;  Paragraph: pre+;
 !       {          {
 !       pre>:p;          pre > :p;
 !       }          }
   
   
 !Tables to/from lists  !Tables to/from lists
Line 164  Numbered List:table{?caption,(block:*{(t Line 169  Numbered List:table{?caption,(block:*{(t
         tr > ol:li;          tr > ol:li;
         td > ol.li:;          td > ol.li:;
         th > ol.li:;          th > ol.li:;
         td2 >ol.li.ul:li;          td2 > ol.li.ul:li;
         th2 >ol.li.ul:li;          th2 > ol.li.ul:li;
         }          }
   
 Bulleted List:table{?caption,(block:*{(tr{(td|th),?(td2:td|th2:th)+})+})+};  Bulleted List:table{?caption,(block:*{(tr{(td|th),?(td2:td|th2:th)+})+})+};
Line 175  Bulleted List:table{?caption,(block:*{(t Line 180  Bulleted List:table{?caption,(block:*{(t
         tr > ul:li;          tr > ul:li;
         td > ul.li:;          td > ul.li:;
         th > ul.li:;          th > ul.li:;
         td2 >ul.li.ul:li;          td2 > ul.li.ul:li;
         th2 >ul.li.ul:li;          th2 > ul.li.ul:li;
         }          }
   
 Definition List:table{?caption,(block:*{(tr{(td|th),?(td2:td|th2:th)+})+})+};  Definition List:table{?caption,(block:*{(tr{(td|th),?(td2:td|th2:th)+})+})+};
         {          {
         caption > :dl.dt;          caption > :dl.dt;
Line 188  Definition List:table{?caption,(block:*{ Line 194  Definition List:table{?caption,(block:*{
         th2     > dl:dd;          th2     > dl:dd;
         }          }
   
 ! List transformations  ! Other transformations
 !!!!!!!!!!!!!!!!!!!!!!  !!!!!!!!!!!!!!!!!!!!!!
   
 Remove one level: *{(li{(cont:*)+})+};  
         {  
         cont > :*;  
         }  
   
 Remove two levels: *{(li{(*{?(li{(lev2:*)+})+})+})+};  
         {  
         lev2 > :*;  
         }  
   
 Merge Items: li,(li2:li)+;  Merge Items: li,(li2:li)+;
         {          {
         li > li:;          li > li:;
Line 223  Split Items: (li{a:*,(b:*)+})+; Line 219  Split Items: (li{a:*,(b:*)+})+;
         b > :li.*;          b > :li.*;
         }          }
   
 Merge Lists: ul{li+},(ul{li+})+;  Merge ul lists: ul{li+},(ul{li+})+;
         {          {
         li > ul:li;          li > ul:li;
         }          }
   
 Merge Lists: ol{li+},(ol{li+})+;  Merge ol lists: ol{li+},(ol{li+})+;
         {          {
         li > ol:li;          li > ol:li;
         }          }
   
 Merge Lists: dl{(dt|dd)+},(dl{(dt|dd)+})+;  Merge dl lists: dl{(dt|dd)+},(dl{(dt|dd)+})+;
         {          {
         dt > dl:dt;          dt > dl:dt;
         dd > dl:dd;          dd > dl:dd;
         }          }
   
   !Paragraph: *{(li{(cont:*)+})+};
   !       {
   !       cont > :*;
   !       }
   
   Paragraph: *{(li{(*{?(li{(lev2:*)+})+})+})+};
           {
           lev2 > :*;
           }
   
   Paragraphs: (ol{(li{(h1|h2|h3|h4|h5|h6|p|*)+})+})+;
           {
           h1 > :h1;
           h2 > :h2;
           h3 > :h3;
           h4 > :h4;
           h5 > :h5;
           h6 > :h6;
           p > :p;
           * > :p.*;
           }
   
   Paragraphs: (ul{(li{(h1|h2|h3|h4|h5|h6|p|*)+})+})+;
           {
           h1 > :h1;
           h2 > :h2;
           h3 > :h3;
           h4 > :h4;
           h5 > :h5;
           h6 > :h6;
           p > :p;
           * > :p.*;
           }
   
   Remove two list levels: *{(li{(*{?(li{(lev2:*)+})+})+})+};
           {
           lev2 > :*;
           }
   
 ! Forms to/from elements  ! Forms to/from elements
 !!!!!!!!!!!!!!!!!!!!!!!!  !!!!!!!!!!!!!!!!!!!!!!!!
   
 Form: *+;  Enclosing Form: *+;
         {          {
         *>Form:*;          * > Form:*;
         }          }
   
 Remove Form: form{*+};  Remove Form: form{*+};
         {          {
         *>:*;          * > :*;
         }          }
   
 Remove submenu: (optgroup{*+})+;  Remove submenu: (optgroup{*+})+;
Line 263  Remove submenu: (optgroup{*+})+; Line 298  Remove submenu: (optgroup{*+})+;
 Bulleted list: (p|ol|menu|dir|pre|form)+;  Bulleted list: (p|ol|menu|dir|pre|form)+;
         {          {
         p > ul:<li style=p.style>;          p > ul:<li style=p.style>;
         ol> ul;          ol > ul;
         pre> ul:li.pre;          pre > ul:li.pre;
         form> ul:li.form;          form > ul:li.form;
         }          }
   
 Numbered list:(p|ul|menu|dir|pre|form)+;  Numbered list:(p|ul|menu|dir|pre|form)+;
            {             {
         p > ol:li;          p > ol:li;
         ul> ol;          ul > ol;
         pre> ol:li.pre;          pre > ol:li.pre;
         form> ol:li.form;          form > ol:li.form;
         }          }
   
 ! Tables to/from elements  ! Tables to/from elements
 !!!!!!!!!!!!!!!!!!!!!!!!!  !!!!!!!!!!!!!!!!!!!!!!!!!
   
 !Table: (h:h1|h:h2|h:h3|h:h4|h:h5|h:h6|p),(h:h1|h:h2|h:h3|h:h4|h:h5|h:h6|*)+;  
 !       {  
 !       p> <table border="1">.tr.td:p;  
 !       h> <table border="1">:tr.td.*;  
 !       *> <table border="1">.tr:td.*;  
 !       }  
   
   
 Vertical Table: *+;  Vertical Table: *+;
         {          {
         *><table border="1">:tr.td.*;          * > <table border="1">:tr.td.*;
         }          }
   
 Horizontal Table : *+;  Horizontal Table : *+;
         {          {
         *><table border="1">.tr:td.*;          * > <table border="1">.tr:td.*;
         }          }
   
 Remove Table:table{?caption,?(body:*{(tr{(*{(?cell_content:*)+})+})+})+};  
         {  Remove Table:table{?caption,(block:*{(tr{(td|th),?(td2:td|th2:th)+})+})+};
         caption>h3;          {
         cell_content>:*;          caption > :div.p;
         }          block   > :div;
           td      > :div;
           th      > :div;
           td2     > :div;
           th2     > :div;
           }
   
   !Remove Table:table{?caption,?(body:*{(tr{(*{(?cell_content:*)+})+})+})+};
   !       {
   !       caption > h3;
   !       cell_content > :*;
   !       }
   
 Transpose Table:table{tbody{tr{(td|th)+}|(tr{td2:td|th2:th})+}};  Transpose Table:table{tbody{tr{(td|th)+}|(tr{td2:td|th2:th})+}};
         {          {
         td><table border=table.border>:tr.td;          td > <table border=table.border>:tr.td;
         th>table:tr.td;          th > table:tr.td;
         td2><table border=table.border>.tr:td;          td2 > <table border=table.border>.tr:td;
         th2>table.tr:td;          th2 > table.tr:td;
         }          }
   
 Heading Cell :?(td|th)+,td,?(td|th)+;  Heading Cell :?(td|th)+,td,?(td|th)+;
Line 352  Definition list:(h1,?hr,?(level1:*)+,?(h Line 390  Definition list:(h1,?hr,?(level1:*)+,?(h
 Definition list:(h2,?hr,?(level1:*)+,(h3,?(level2:*)+,((h4|h5|h6),(level3:*)+)+)+)+;  Definition list:(h2,?hr,?(level1:*)+,(h3,?(level2:*)+,((h4|h5|h6),(level3:*)+)+)+)+;
         {          {
         h2 > dl:dt;          h2 > dl:dt;
         level1>dl.dd:*;          level1 > dl.dd:*;
         h3 > dl.dd:dl.dt ;          h3 > dl.dd:dl.dt ;
         level2 > dl.dd.dl.dd:*;          level2 > dl.dd.dl.dd:*;
         h4 > dl.dd.dl.dd:dl.dt ;          h4 > dl.dd.dl.dd:dl.dt ;
Line 364  Definition list:(h2,?hr,?(level1:*)+,(h3 Line 402  Definition list:(h2,?hr,?(level1:*)+,(h3
 Definition list:(h3,?hr,?(level1:*)+,?(h4,?(level2:*)+,((h5|h6),(level3:*)+)+)+)+;  Definition list:(h3,?hr,?(level1:*)+,?(h4,?(level2:*)+,((h5|h6),(level3:*)+)+)+)+;
         {          {
         h3 > dl:dt;          h3 > dl:dt;
         level1>dl.dd:*;          level1 > dl.dd:*;
         h4 > dl.dd:dl.dt ;          h4 > dl.dd:dl.dt ;
         level2 > dl.dd.dl.dd:*;          level2 > dl.dd.dl.dd:*;
         h5 > dl.dd.dl.dd:dl.dt ;          h5 > dl.dd.dl.dd:dl.dt ;
Line 375  Definition list:(h3,?hr,?(level1:*)+,?(h Line 413  Definition list:(h3,?hr,?(level1:*)+,?(h
 Multi level Definition list:(h4,?hr,?(level1:*)+,(h5,?(level2:*)+,((h6)+,(level3:*)+)+)+)+;  Multi level Definition list:(h4,?hr,?(level1:*)+,(h5,?(level2:*)+,((h6)+,(level3:*)+)+)+)+;
         {          {
         h4 > dl:dt;          h4 > dl:dt;
         level1>dl.dd:*;          level1 > dl.dd:*;
         h5 > dl.dd:dl.dt ;          h5 > dl.dd:dl.dt ;
         level2 > dl.dd.dl.dd:*;          level2 > dl.dd.dl.dd:*;
         h6 > dl.dd.dl.dd:dl.dt ;          h6 > dl.dd.dl.dd:dl.dt ;
Line 439  Remove font: font{*+}; Line 477  Remove font: font{*+};
   
 Remove span: span{*+};  Remove span: span{*+};
         {          {
         *>:*;          * > :*;
         }          }
   
 Remove Subscript: sub{*+};  Remove Subscript: sub{*+};
Line 475  DistrThot: body{*+} Line 513  DistrThot: body{*+}
         body > :<table border="0" with="100%">.tbody.tr.<td with="30%">.h2.<a href="Index.html">."Home";          body > :<table border="0" with="100%">.tbody.tr.<td with="30%">.h2.<a href="Index.html">."Home";
         * > table.tbody.tr:td.*;          * > table.tbody.tr:td.*;
         }          }
   

Removed from v.1.31  
changed lines
  Added in v.1.32


Webmaster