mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
'v3.3.4.1'
This commit is contained in:
@@ -57,70 +57,70 @@ public class Xop_xatr_whitelist_mgr {
|
||||
Ini_grp("tablealign" , null , "align", "char", "charoff", "valign");
|
||||
Ini_grp("tablecell" , null , "abbr", "axis", "headers", "scope", "rowspan", "colspan", "nowrap", "width", "height", "bgcolor");
|
||||
|
||||
Ini_nde(Xop_xnde_tag_.Tid_div , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_center , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_span , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_h1 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_h2 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_h3 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_h4 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_h5 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_h6 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_em , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_strong , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_cite , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_dfn , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_code , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_samp , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_kbd , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_var , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_abbr , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_blockquote , "common", "cite");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_sub , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_sup , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_p , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_br , "id", "class", "title", "style", "clear");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_pre , "common", "width");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_ins , "common", "cite", "datetime");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_del , "common", "cite", "datetime");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_ul , "common", "type");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_ol , "common", "type", "start");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_li , "common", "type", "value");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_dl , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_dd , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_dt , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_table , "common", "summary", "width", "border", "frame", "rules", "cellspacing", "cellpadding", "align", "bgcolor");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_caption , "common", "align");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_thead , "common", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_tfoot , "common", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_tbody , "common", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_colgroup , "common", "span", "width", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_col , "common", "span", "width", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_tr , "common", "bgcolor", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_td , "common", "tablecell", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_th , "common", "tablecell", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_a , "common", "href", "rel", "rev");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_img , "common", "alt", "src", "width", "height");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_tt , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_b , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_i , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_big , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_small , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_strike , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_s , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_u , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_font , "common", "size", "color", "face");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_hr , "common", "noshade", "size", "width");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_ruby , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_rb , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_rt , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_rp , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_math , "class", "style", "id", "title");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_time , "class", "datetime");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_bdi , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_data , "common", "value");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_mark , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid_q , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__div , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__center , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__span , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__h1 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__h2 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__h3 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__h4 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__h5 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__h6 , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__em , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__strong , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__cite , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__dfn , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__code , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__samp , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__kbd , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__var , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__abbr , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__blockquote , "common", "cite");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__sub , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__sup , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__p , "block");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__br , "id", "class", "title", "style", "clear");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__pre , "common", "width");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__ins , "common", "cite", "datetime");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__del , "common", "cite", "datetime");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__ul , "common", "type");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__ol , "common", "type", "start");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__li , "common", "type", "value");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__dl , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__dd , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__dt , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__table , "common", "summary", "width", "border", "frame", "rules", "cellspacing", "cellpadding", "align", "bgcolor");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__caption , "common", "align");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__thead , "common", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__tfoot , "common", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__tbody , "common", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__colgroup , "common", "span", "width", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__col , "common", "span", "width", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__tr , "common", "bgcolor", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__td , "common", "tablecell", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__th , "common", "tablecell", "tablealign");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__a , "common", "href", "rel", "rev");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__img , "common", "alt", "src", "width", "height");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__tt , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__b , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__i , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__big , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__small , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__strike , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__s , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__u , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__font , "common", "size", "color", "face");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__hr , "common", "noshade", "size", "width");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__ruby , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__rb , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__rt , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__rp , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__math , "class", "style", "id", "title");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__time , "class", "datetime");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__bdi , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__data , "common", "value");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__mark , "common");
|
||||
Ini_nde(Xop_xnde_tag_.Tid__q , "common");
|
||||
Ini_all_loose("data");
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -21,19 +21,19 @@ public class Xop_xatr_whitelist_mgr_tst {
|
||||
private final Xop_xatr_whitelist_fxt fxt = new Xop_xatr_whitelist_fxt();
|
||||
@Before public void init() {fxt.Clear();}
|
||||
@Test public void Basic() {
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_div , "style" , true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_div , "xstyle" , false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_div , "stylex" , false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_div , "styl" , false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_img , "alt" , true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_img , "span" , false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_div , "data-sort-type" , true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_data , "value" , true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_data , "valuex" , false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__div , "style" , true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__div , "xstyle" , false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__div , "stylex" , false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__div , "styl" , false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__img , "alt" , true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__img , "span" , false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__div , "data-sort-type" , true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__data , "value" , true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__data , "valuex" , false);
|
||||
}
|
||||
@Test public void Role() {
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_div , "role" , "presentation", true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid_div , "role" , "other", false);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__div , "role" , "presentation", true);
|
||||
fxt.Whitelist(Xop_xnde_tag_.Tid__div , "role" , "other", false);
|
||||
}
|
||||
@Test public void Scrub() {
|
||||
fxt.Scrub_style_fail("expression");
|
||||
|
||||
@@ -24,7 +24,7 @@ public class Xop_xnde_tag {
|
||||
this.name_str = name_str;
|
||||
this.name_len = name_bry.length;
|
||||
this.xtn_bgn_tag = Bry_.Add(Byte_ascii.Angle_bgn_bry, name_bry);
|
||||
this.xtn_end_tag = Bry_.Add(Xop_xnde_tag_.Xtn_end_tag_bgn, name_bry); // always force endtag; needed for <noinclude>
|
||||
this.xtn_end_tag = Bry_.Add(Xop_xnde_tag_.Bry__end_tag_bgn, name_bry); // always force endtag; needed for <noinclude>
|
||||
this.xtn_end_tag_tmp = new byte[xtn_end_tag.length]; Array_.Copy(xtn_end_tag, xtn_end_tag_tmp);
|
||||
}
|
||||
public int Id() {return id;} private final int id;
|
||||
@@ -36,11 +36,11 @@ public class Xop_xnde_tag {
|
||||
public byte[] Xtn_end_tag_tmp() {return xtn_end_tag_tmp;} private final byte[] xtn_end_tag_tmp;
|
||||
public boolean Xtn() {return xtn;} public Xop_xnde_tag Xtn_() {xtn = true; return this;} private boolean xtn;
|
||||
public boolean Xtn_mw() {return xtn_mw;} public Xop_xnde_tag Xtn_mw_() {xtn_mw = true; xtn = true; return this;} private boolean xtn_mw; // NOTE: Xtn_mw_() marks both xtn and xtn_mw as true
|
||||
public int Bgn_nde_mode() {return bgn_nde_mode;} private int bgn_nde_mode = Xop_xnde_tag_.Bgn_nde_mode_normal;
|
||||
public Xop_xnde_tag Bgn_nde_mode_inline_() {bgn_nde_mode = Xop_xnde_tag_.Bgn_nde_mode_inline; return this;}
|
||||
public int End_nde_mode() {return end_nde_mode;} private int end_nde_mode = Xop_xnde_tag_.End_nde_mode_normal;
|
||||
public Xop_xnde_tag End_nde_mode_inline_() {end_nde_mode = Xop_xnde_tag_.End_nde_mode_inline; return this;}
|
||||
public Xop_xnde_tag End_nde_mode_escape_() {end_nde_mode = Xop_xnde_tag_.End_nde_mode_escape; return this;}
|
||||
public int Bgn_mode() {return bgn_nde_mode;} private int bgn_nde_mode = Xop_xnde_tag_.Bgn_mode__normal;
|
||||
public Xop_xnde_tag Bgn_mode__inline_() {bgn_nde_mode = Xop_xnde_tag_.Bgn_mode__inline; return this;}
|
||||
public int End_mode() {return end_nde_mode;} private int end_nde_mode = Xop_xnde_tag_.End_mode__normal;
|
||||
public Xop_xnde_tag End_mode__inline_() {end_nde_mode = Xop_xnde_tag_.End_mode__inline; return this;}
|
||||
public Xop_xnde_tag End_mode__escape_() {end_nde_mode = Xop_xnde_tag_.End_mode__escape; return this;}
|
||||
public boolean Single_only() {return single_only;} public Xop_xnde_tag Single_only_() {single_only = true; return this;} private boolean single_only;
|
||||
public boolean Tbl_sub() {return tbl_sub;} public Xop_xnde_tag Tbl_sub_() {tbl_sub = true; return this;} private boolean tbl_sub;
|
||||
public boolean Restricted() {return restricted;} public Xop_xnde_tag Restricted_() {restricted = true; return this;} private boolean restricted;
|
||||
|
||||
@@ -18,250 +18,256 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
package gplx.xowa.parsers.xndes; import gplx.*; import gplx.xowa.*; import gplx.xowa.parsers.*;
|
||||
import gplx.xowa.langs.*;
|
||||
public class Xop_xnde_tag_ {
|
||||
public static final int End_nde_mode_normal = 0, End_nde_mode_inline = 1, End_nde_mode_escape = 2; // escape is for hr which does not support </hr>
|
||||
public static final int Bgn_nde_mode_normal = 0, Bgn_nde_mode_inline = 1;
|
||||
public static final byte[] Name_onlyinclude = Bry_.new_a7("onlyinclude");
|
||||
public static final byte[] Xtn_end_tag_bgn = Bry_.new_a7("</");
|
||||
public static final int Bgn_mode__normal = 0, Bgn_mode__inline = 1;
|
||||
public static final int End_mode__normal = 0, End_mode__inline = 1, End_mode__escape = 2; // escape is for hr which does not support </hr>
|
||||
public static final byte[] Bry__onlyinclude = Bry_.new_a7("onlyinclude");
|
||||
public static final byte[] Bry__end_tag_bgn = Bry_.new_a7("</");
|
||||
public static final int
|
||||
Tid__null = -1
|
||||
, Tid_b = 0
|
||||
, Tid_strong = 1
|
||||
, Tid_i = 2
|
||||
, Tid_em = 3
|
||||
, Tid_cite = 4
|
||||
, Tid_dfn = 5
|
||||
, Tid_var = 6
|
||||
, Tid_u = 7
|
||||
, Tid_ins = 8
|
||||
, Tid_abbr = 9
|
||||
, Tid_strike = 10
|
||||
, Tid_del = 11
|
||||
, Tid_s = 12
|
||||
, Tid_sub = 13
|
||||
, Tid_sup = 14
|
||||
, Tid_big = 15
|
||||
, Tid_small = 16
|
||||
, Tid_code = 17
|
||||
, Tid_tt = 18
|
||||
, Tid_kbd = 19
|
||||
, Tid_samp = 20
|
||||
, Tid_blockquote = 21
|
||||
, Tid_pre = 22
|
||||
, Tid_font = 23
|
||||
, Tid_center = 24
|
||||
, Tid_p = 25
|
||||
, Tid_span = 26
|
||||
, Tid_div = 27
|
||||
, Tid_hr = 28
|
||||
, Tid_br = 29
|
||||
, Tid_h1 = 30
|
||||
, Tid_h2 = 31
|
||||
, Tid_h3 = 32
|
||||
, Tid_h4 = 33
|
||||
, Tid_h5 = 34
|
||||
, Tid_h6 = 35
|
||||
, Tid_li = 36
|
||||
, Tid_dt = 37
|
||||
, Tid_dd = 38
|
||||
, Tid_ol = 39
|
||||
, Tid_ul = 40
|
||||
, Tid_dl = 41
|
||||
, Tid_table = 42
|
||||
, Tid_tr = 43
|
||||
, Tid_td = 44
|
||||
, Tid_th = 45
|
||||
, Tid_thead = 46
|
||||
, Tid_tfoot = 47
|
||||
, Tid_tbody = 48
|
||||
, Tid_caption = 49
|
||||
, Tid_colgroup = 50
|
||||
, Tid_col = 51
|
||||
, Tid_a = 52
|
||||
, Tid_img = 53
|
||||
, Tid_ruby = 54
|
||||
, Tid_rt = 55
|
||||
, Tid_rb = 56
|
||||
, Tid_rp = 57
|
||||
, Tid_includeonly = 58
|
||||
, Tid_noinclude = 59
|
||||
, Tid_onlyinclude = 60
|
||||
, Tid_nowiki = 61
|
||||
, Tid_xowa_cmd = 62
|
||||
, Tid_poem = 63
|
||||
, Tid_math = 64
|
||||
, Tid_ref = 65
|
||||
, Tid_references = 66
|
||||
, Tid_source = 67
|
||||
, Tid_syntaxHighlight = 68
|
||||
, Tid_gallery = 69
|
||||
, Tid_imageMap = 70
|
||||
, Tid_timeline = 71
|
||||
, Tid_hiero = 72
|
||||
, Tid_inputBox = 73
|
||||
, Tid_pages = 74
|
||||
, Tid_section = 75
|
||||
, Tid_pagequality = 76
|
||||
, Tid_pagelist = 77
|
||||
, Tid_categoryList = 78
|
||||
, Tid_categoryTree = 79
|
||||
, Tid_dynamicPageList = 80
|
||||
, Tid_time = 81
|
||||
, Tid_input = 82
|
||||
, Tid_textarea = 83
|
||||
, Tid_score = 84
|
||||
, Tid_button = 85
|
||||
, Tid_select = 86
|
||||
, Tid_option = 87
|
||||
, Tid_optgroup = 88
|
||||
, Tid_script = 89
|
||||
, Tid_style = 90
|
||||
, Tid_form = 91
|
||||
, Tid_translate = 92
|
||||
, Tid_languages = 93
|
||||
, Tid_templateData = 94
|
||||
, Tid_bdi = 95
|
||||
, Tid_data = 96
|
||||
, Tid_mark = 97
|
||||
, Tid_wbr = 98
|
||||
, Tid_bdo = 99
|
||||
, Tid_listing_buy = 100
|
||||
, Tid_listing_do = 101
|
||||
, Tid_listing_drink = 102
|
||||
, Tid_listing_eat = 103
|
||||
, Tid_listing_listing = 104
|
||||
, Tid_listing_see = 105
|
||||
, Tid_listing_sleep = 106
|
||||
, Tid_rss = 107
|
||||
, Tid_xowa_html = 108
|
||||
, Tid_xowa_tag_bgn = 109
|
||||
, Tid_xowa_tag_end = 110
|
||||
, Tid_quiz = 111
|
||||
, Tid_indicator = 112
|
||||
, Tid_q = 113
|
||||
, Tid_graph = 114
|
||||
, Tid__b = 0
|
||||
, Tid__strong = 1
|
||||
, Tid__i = 2
|
||||
, Tid__em = 3
|
||||
, Tid__cite = 4
|
||||
, Tid__dfn = 5
|
||||
, Tid__var = 6
|
||||
, Tid__u = 7
|
||||
, Tid__ins = 8
|
||||
, Tid__abbr = 9
|
||||
, Tid__strike = 10
|
||||
, Tid__del = 11
|
||||
, Tid__s = 12
|
||||
, Tid__sub = 13
|
||||
, Tid__sup = 14
|
||||
, Tid__big = 15
|
||||
, Tid__small = 16
|
||||
, Tid__code = 17
|
||||
, Tid__tt = 18
|
||||
, Tid__kbd = 19
|
||||
, Tid__samp = 20
|
||||
, Tid__blockquote = 21
|
||||
, Tid__pre = 22
|
||||
, Tid__font = 23
|
||||
, Tid__center = 24
|
||||
, Tid__p = 25
|
||||
, Tid__span = 26
|
||||
, Tid__div = 27
|
||||
, Tid__hr = 28
|
||||
, Tid__br = 29
|
||||
, Tid__h1 = 30
|
||||
, Tid__h2 = 31
|
||||
, Tid__h3 = 32
|
||||
, Tid__h4 = 33
|
||||
, Tid__h5 = 34
|
||||
, Tid__h6 = 35
|
||||
, Tid__li = 36
|
||||
, Tid__dt = 37
|
||||
, Tid__dd = 38
|
||||
, Tid__ol = 39
|
||||
, Tid__ul = 40
|
||||
, Tid__dl = 41
|
||||
, Tid__table = 42
|
||||
, Tid__tr = 43
|
||||
, Tid__td = 44
|
||||
, Tid__th = 45
|
||||
, Tid__thead = 46
|
||||
, Tid__tfoot = 47
|
||||
, Tid__tbody = 48
|
||||
, Tid__caption = 49
|
||||
, Tid__colgroup = 50
|
||||
, Tid__col = 51
|
||||
, Tid__a = 52
|
||||
, Tid__img = 53
|
||||
, Tid__ruby = 54
|
||||
, Tid__rt = 55
|
||||
, Tid__rb = 56
|
||||
, Tid__rp = 57
|
||||
, Tid__includeonly = 58
|
||||
, Tid__noinclude = 59
|
||||
, Tid__onlyinclude = 60
|
||||
, Tid__nowiki = 61
|
||||
, Tid__xowa_cmd = 62
|
||||
, Tid__poem = 63
|
||||
, Tid__math = 64
|
||||
, Tid__ref = 65
|
||||
, Tid__references = 66
|
||||
, Tid__source = 67
|
||||
, Tid__syntaxHighlight = 68
|
||||
, Tid__gallery = 69
|
||||
, Tid__imageMap = 70
|
||||
, Tid__timeline = 71
|
||||
, Tid__hiero = 72
|
||||
, Tid__inputBox = 73
|
||||
, Tid__pages = 74
|
||||
, Tid__section = 75
|
||||
, Tid__pagequality = 76
|
||||
, Tid__pagelist = 77
|
||||
, Tid__categoryList = 78
|
||||
, Tid__categoryTree = 79
|
||||
, Tid__dynamicPageList = 80
|
||||
, Tid__time = 81
|
||||
, Tid__input = 82
|
||||
, Tid__textarea = 83
|
||||
, Tid__score = 84
|
||||
, Tid__button = 85
|
||||
, Tid__select = 86
|
||||
, Tid__option = 87
|
||||
, Tid__optgroup = 88
|
||||
, Tid__script = 89
|
||||
, Tid__style = 90
|
||||
, Tid__form = 91
|
||||
, Tid__translate = 92
|
||||
, Tid__languages = 93
|
||||
, Tid__templateData = 94
|
||||
, Tid__bdi = 95
|
||||
, Tid__data = 96
|
||||
, Tid__mark = 97
|
||||
, Tid__wbr = 98
|
||||
, Tid__bdo = 99
|
||||
, Tid__listing_buy = 100
|
||||
, Tid__listing_do = 101
|
||||
, Tid__listing_drink = 102
|
||||
, Tid__listing_eat = 103
|
||||
, Tid__listing_listing = 104
|
||||
, Tid__listing_see = 105
|
||||
, Tid__listing_sleep = 106
|
||||
, Tid__rss = 107
|
||||
, Tid__xowa_html = 108
|
||||
, Tid__xowa_tag_bgn = 109
|
||||
, Tid__xowa_tag_end = 110
|
||||
, Tid__quiz = 111
|
||||
, Tid__indicator = 112
|
||||
, Tid__q = 113
|
||||
, Tid__graph = 114
|
||||
, Tid__random_selection = 115
|
||||
, Tid__tabber = 116
|
||||
, Tid__tabview = 117
|
||||
;
|
||||
public static final int Tid__len = 115;
|
||||
public static final int Tid__len = 118;
|
||||
public static final Xop_xnde_tag[] Ary = new Xop_xnde_tag[Tid__len];
|
||||
private static Xop_xnde_tag new_(int id, String name) {
|
||||
private static Xop_xnde_tag New(int id, String name) {
|
||||
Xop_xnde_tag rv = new Xop_xnde_tag(id, name);
|
||||
Ary[id] = rv;
|
||||
return rv;
|
||||
}
|
||||
public static final Xop_xnde_tag
|
||||
Tag_b = new_(Tid_b, "b").No_inline_()
|
||||
, Tag_strong = new_(Tid_strong, "strong").No_inline_()
|
||||
, Tag_i = new_(Tid_i, "i").No_inline_()
|
||||
, Tag_em = new_(Tid_em, "em").No_inline_()
|
||||
, Tag_cite = new_(Tid_cite, "cite").No_inline_()
|
||||
, Tag_dfn = new_(Tid_dfn, "dfn").No_inline_()
|
||||
, Tag_var = new_(Tid_var, "var").No_inline_()
|
||||
, Tag_u = new_(Tid_u, "u").No_inline_().Repeat_ends_() // PAGE:en.b:Textbook_of_Psychiatry/Alcoholism_and_Psychoactive_Substance_Use_Disorders; DATE:2014-09-05
|
||||
, Tag_ins = new_(Tid_ins, "ins").No_inline_()
|
||||
, Tag_abbr = new_(Tid_abbr, "abbr").No_inline_()
|
||||
, Tag_strike = new_(Tid_strike, "strike").No_inline_()
|
||||
, Tag_del = new_(Tid_del, "del").No_inline_()
|
||||
, Tag_s = new_(Tid_s, "s").No_inline_()
|
||||
, Tag_sub = new_(Tid_sub, "sub").No_inline_()
|
||||
, Tag_sup = new_(Tid_sup, "sup").No_inline_()
|
||||
, Tag_big = new_(Tid_big, "big").No_inline_()
|
||||
, Tag_small = new_(Tid_small, "small").No_inline_()
|
||||
, Tag_code = new_(Tid_code, "code").No_inline_().Repeat_ends_()
|
||||
, Tag_tt = new_(Tid_tt, "tt").No_inline_().Repeat_ends_()
|
||||
, Tag_kbd = new_(Tid_kbd, "kbd").No_inline_()
|
||||
, Tag_samp = new_(Tid_samp, "samp").No_inline_()
|
||||
, Tag_blockquote = new_(Tid_blockquote, "blockquote").No_inline_().Repeat_mids_().Section_().Block_open_bgn_().Block_close_end_() // NOTE: should be open_end_, but leaving for now; DATE:2014-03-11; added Repeat_mids_(); PAGE:en.w:Ring_a_Ring_o'_Roses DATE:2014-06-26
|
||||
, Tag_pre = new_(Tid_pre, "pre").No_inline_().Section_().Xtn_mw_().Raw_().Block_open_bgn_().Block_close_end_().Ignore_empty_().Xtn_skips_template_args_()
|
||||
, Tag_font = new_(Tid_font, "font").No_inline_()
|
||||
, Tag_center = new_(Tid_center, "center").No_inline_().Block_open_end_().Block_close_end_() // removed .Repeat_ends_(); added Nest_(); EX: w:Burr Truss; DATE:2012-12-12
|
||||
, Tag_p = new_(Tid_p, "p").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_span = new_(Tid_span, "span").Section_()
|
||||
, Tag_div = new_(Tid_div, "div").Section_().Block_open_end_().Block_close_end_()
|
||||
, Tag_hr = new_(Tid_hr, "hr").Single_only_().Single_only_html_().Bgn_nde_mode_inline_().Inline_by_backslash_().End_nde_mode_escape_().Section_().Block_close_end_()
|
||||
, Tag_br = new_(Tid_br, "br").Single_only_().Single_only_html_().Bgn_nde_mode_inline_().Inline_by_backslash_().End_nde_mode_inline_().Section_()
|
||||
, Tag_h1 = new_(Tid_h1, "h1").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_h2 = new_(Tid_h2, "h2").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_h3 = new_(Tid_h3, "h3").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_h4 = new_(Tid_h4, "h4").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_h5 = new_(Tid_h5, "h5").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_h6 = new_(Tid_h6, "h6").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_li = new_(Tid_li, "li").Repeat_mids_().Empty_ignored_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_dt = new_(Tid_dt, "dt").Repeat_mids_()
|
||||
, Tag_dd = new_(Tid_dd, "dd").Repeat_mids_()
|
||||
, Tag_ol = new_(Tid_ol, "ol").No_inline_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_ul = new_(Tid_ul, "ul").No_inline_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_dl = new_(Tid_dl, "dl").No_inline_()
|
||||
, Tag_table = new_(Tid_table, "table").No_inline_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_tr = new_(Tid_tr, "tr").Tbl_sub_().Block_open_bgn_().Block_open_end_()
|
||||
, Tag_td = new_(Tid_td, "td").Tbl_sub_().Block_open_end_().Block_close_bgn_()
|
||||
, Tag_th = new_(Tid_th, "th").Tbl_sub_().Block_open_end_().Block_close_bgn_()
|
||||
, Tag_thead = new_(Tid_thead, "thead")
|
||||
, Tag_tfoot = new_(Tid_tfoot, "tfoot")
|
||||
, Tag_tbody = new_(Tid_tbody, "tbody")
|
||||
, Tag_caption = new_(Tid_caption, "caption").No_inline_().Tbl_sub_()
|
||||
, Tag_colgroup = new_(Tid_colgroup, "colgroup")
|
||||
, Tag_col = new_(Tid_col, "col")
|
||||
, Tag_a = new_(Tid_a, "a").Restricted_()
|
||||
, Tag_img = new_(Tid_img, "img").Single_only_html_().Restricted_() // NOTE: was .Xtn() DATE:2014-11-06
|
||||
, Tag_ruby = new_(Tid_ruby, "ruby").No_inline_()
|
||||
, Tag_rt = new_(Tid_rt, "rt").No_inline_()
|
||||
, Tag_rb = new_(Tid_rb, "rb").No_inline_()
|
||||
, Tag_rp = new_(Tid_rp, "rp").No_inline_()
|
||||
, Tag_includeonly = new_(Tid_includeonly, "includeonly")
|
||||
, Tag_noinclude = new_(Tid_noinclude, "noinclude")
|
||||
, Tag_onlyinclude = new_(Tid_onlyinclude, "onlyinclude")
|
||||
, Tag_nowiki = new_(Tid_nowiki, "nowiki")
|
||||
, Tag_xowa_cmd = new_(Tid_xowa_cmd, "xowa_cmd").Xtn_()
|
||||
, Tag_poem = new_(Tid_poem, "poem").Xtn_mw_().Xtn_auto_close_()
|
||||
, Tag_math = new_(Tid_math, "math").Xtn_mw_()
|
||||
, Tag_ref = new_(Tid_ref, "ref").Xtn_mw_()
|
||||
, Tag_references = new_(Tid_references, "references").Xtn_mw_()
|
||||
, Tag_source = new_(Tid_source, "source").Xtn_mw_().Block_open_bgn_().Block_close_end_() // deactivate pre; pre; PAGE:en.w:Comment_(computer_programming); DATE:2014-06-23
|
||||
, Tag_syntaxHighlight = new_(Tid_syntaxHighlight, "syntaxHighlight").Xtn_mw_().Block_open_bgn_().Block_close_end_() // deactivate pre; pre; PAGE:en.w:Comment_(computer_programming); DATE:2014-06-23
|
||||
, Tag_gallery = new_(Tid_gallery, "gallery").Xtn_mw_().Block_open_bgn_().Block_close_end_().Xtn_auto_close_()
|
||||
, Tag_imageMap = new_(Tid_imageMap, "imageMap").Xtn_mw_()
|
||||
, Tag_timeline = new_(Tid_timeline, "timeline").Xtn_mw_()
|
||||
, Tag_hiero = new_(Tid_hiero, "hiero").Xtn_mw_()
|
||||
, Tag_inputBox = new_(Tid_inputBox, "inputBox").Xtn_mw_()
|
||||
, Tag_pages = new_(Tid_pages, "pages").Xtn_mw_()
|
||||
, Tag_section = new_(Tid_section, "section").Xtn_mw_().Langs_(Xol_lang_stub_.Id_de, "Abschnitt").Langs_(Xol_lang_stub_.Id_he, "קטע").Langs_(Xol_lang_stub_.Id_pt, "trecho") // DATE:2014-07-18
|
||||
, Tag_pagequality = new_(Tid_pagequality, "pagequality").Xtn_mw_()
|
||||
, Tag_pagelist = new_(Tid_pagelist, "pagelist").Xtn_mw_()
|
||||
, Tag_categoryList = new_(Tid_categoryList, "categoryList").Xtn_mw_()
|
||||
, Tag_categoryTree = new_(Tid_categoryTree, "categoryTree").Xtn_mw_()
|
||||
, Tag_dynamicPageList = new_(Tid_dynamicPageList, "dynamicPageList").Xtn_mw_()
|
||||
, Tag_time = new_(Tid_time, "time")
|
||||
, Tag_input = new_(Tid_input, "input").Restricted_()
|
||||
, Tag_textarea = new_(Tid_textarea, "textarea").Restricted_()
|
||||
, Tag_score = new_(Tid_score, "score").Xtn_mw_()
|
||||
, Tag_button = new_(Tid_button, "button").Restricted_()
|
||||
, Tag_select = new_(Tid_select, "select").Restricted_()
|
||||
, Tag_option = new_(Tid_option, "option").Restricted_()
|
||||
, Tag_optgroup = new_(Tid_optgroup, "optgroup").Restricted_()
|
||||
, Tag_script = new_(Tid_script, "script").Restricted_() // NOTE: had ".Block_open_bgn_().Block_close_end_()"; PAGE:en.w:Cascading_Style_Sheets DATE:2014-06-23
|
||||
, Tag_style = new_(Tid_style, "style").Restricted_() // NOTE: had ".Block_open_bgn_().Block_close_end_()"; PAGE:en.w:Cascading_Style_Sheets DATE:2014-06-23
|
||||
, Tag_form = new_(Tid_form, "form").Restricted_() // NOTE: had ".Block_open_bgn_().Block_close_end_()"; PAGE:en.w:Cascading_Style_Sheets DATE:2014-06-23
|
||||
, Tag_translate = new_(Tid_translate, "translate").Xtn_mw_()
|
||||
, Tag_languages = new_(Tid_languages, "languages").Xtn_mw_()
|
||||
, Tag_templateData = new_(Tid_templateData, "templateData").Xtn_mw_()
|
||||
, Tag_bdi = new_(Tid_bdi, "bdi")
|
||||
, Tag_data = new_(Tid_data, "data")
|
||||
, Tag_mark = new_(Tid_mark, "mark")
|
||||
, Tag_wbr = new_(Tid_wbr, "wbr").Single_only_().Single_only_html_()
|
||||
, Tag_bdo = new_(Tid_bdo, "bdo").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_listing_buy = new_(Tid_listing_buy, "buy").Xtn_mw_()
|
||||
, Tag_listing_do = new_(Tid_listing_do, "do").Xtn_mw_()
|
||||
, Tag_listing_drink = new_(Tid_listing_drink, "drink").Xtn_mw_()
|
||||
, Tag_listing_eat = new_(Tid_listing_eat, "eat").Xtn_mw_()
|
||||
, Tag_listing_listing = new_(Tid_listing_listing, "listing").Xtn_mw_()
|
||||
, Tag_listing_see = new_(Tid_listing_see, "see").Xtn_mw_()
|
||||
, Tag_listing_sleep = new_(Tid_listing_sleep, "sleep").Xtn_mw_()
|
||||
, Tag_rss = new_(Tid_rss, "rss").Xtn_mw_()
|
||||
, Tag_xowa_html = new_(Tid_xowa_html, "xowa_html").Xtn_()
|
||||
, Tag_xowa_tag_bgn = new_(Tid_xowa_tag_bgn, "xtag_bgn").Xtn_()
|
||||
, Tag_xowa_tag_end = new_(Tid_xowa_tag_end, "xtag_end").Xtn_()
|
||||
, Tag_quiz = new_(Tid_quiz, "quiz").Xtn_mw_()
|
||||
, Tag_indicator = new_(Tid_indicator, "indicator").Xtn_mw_()
|
||||
, Tag_q = new_(Tid_q, "q")
|
||||
, Tag_graph = new_(Tid_graph, "graph").Xtn_mw_()
|
||||
Tag__b = New(Tid__b, "b").No_inline_()
|
||||
, Tag__strong = New(Tid__strong, "strong").No_inline_()
|
||||
, Tag__i = New(Tid__i, "i").No_inline_()
|
||||
, Tag__em = New(Tid__em, "em").No_inline_()
|
||||
, Tag__cite = New(Tid__cite, "cite").No_inline_()
|
||||
, Tag__dfn = New(Tid__dfn, "dfn").No_inline_()
|
||||
, Tag__var = New(Tid__var, "var").No_inline_()
|
||||
, Tag__u = New(Tid__u, "u").No_inline_().Repeat_ends_() // PAGE:en.b:Textbook_of_Psychiatry/Alcoholism_and_Psychoactive_Substance_Use_Disorders; DATE:2014-09-05
|
||||
, Tag__ins = New(Tid__ins, "ins").No_inline_()
|
||||
, Tag__abbr = New(Tid__abbr, "abbr").No_inline_()
|
||||
, Tag__strike = New(Tid__strike, "strike").No_inline_()
|
||||
, Tag__del = New(Tid__del, "del").No_inline_()
|
||||
, Tag__s = New(Tid__s, "s").No_inline_()
|
||||
, Tag__sub = New(Tid__sub, "sub").No_inline_()
|
||||
, Tag__sup = New(Tid__sup, "sup").No_inline_()
|
||||
, Tag__big = New(Tid__big, "big").No_inline_()
|
||||
, Tag__small = New(Tid__small, "small").No_inline_()
|
||||
, Tag__code = New(Tid__code, "code").No_inline_().Repeat_ends_()
|
||||
, Tag__tt = New(Tid__tt, "tt").No_inline_().Repeat_ends_()
|
||||
, Tag__kbd = New(Tid__kbd, "kbd").No_inline_()
|
||||
, Tag__samp = New(Tid__samp, "samp").No_inline_()
|
||||
, Tag__blockquote = New(Tid__blockquote, "blockquote").No_inline_().Repeat_mids_().Section_().Block_open_bgn_().Block_close_end_() // NOTE: should be open_end_, but leaving for now; DATE:2014-03-11; added Repeat_mids_(); PAGE:en.w:Ring_a_Ring_o'_Roses DATE:2014-06-26
|
||||
, Tag__pre = New(Tid__pre, "pre").No_inline_().Section_().Xtn_mw_().Raw_().Block_open_bgn_().Block_close_end_().Ignore_empty_().Xtn_skips_template_args_()
|
||||
, Tag__font = New(Tid__font, "font").No_inline_()
|
||||
, Tag__center = New(Tid__center, "center").No_inline_().Block_open_end_().Block_close_end_() // removed .Repeat_ends_(); added Nest_(); EX: w:Burr Truss; DATE:2012-12-12
|
||||
, Tag__p = New(Tid__p, "p").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__span = New(Tid__span, "span").Section_()
|
||||
, Tag__div = New(Tid__div, "div").Section_().Block_open_end_().Block_close_end_()
|
||||
, Tag__hr = New(Tid__hr, "hr").Single_only_().Single_only_html_().Bgn_mode__inline_().Inline_by_backslash_().End_mode__escape_().Section_().Block_close_end_()
|
||||
, Tag__br = New(Tid__br, "br").Single_only_().Single_only_html_().Bgn_mode__inline_().Inline_by_backslash_().End_mode__inline_().Section_()
|
||||
, Tag__h1 = New(Tid__h1, "h1").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__h2 = New(Tid__h2, "h2").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__h3 = New(Tid__h3, "h3").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__h4 = New(Tid__h4, "h4").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__h5 = New(Tid__h5, "h5").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__h6 = New(Tid__h6, "h6").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__li = New(Tid__li, "li").Repeat_mids_().Empty_ignored_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__dt = New(Tid__dt, "dt").Repeat_mids_()
|
||||
, Tag__dd = New(Tid__dd, "dd").Repeat_mids_()
|
||||
, Tag__ol = New(Tid__ol, "ol").No_inline_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__ul = New(Tid__ul, "ul").No_inline_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__dl = New(Tid__dl, "dl").No_inline_()
|
||||
, Tag__table = New(Tid__table, "table").No_inline_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__tr = New(Tid__tr, "tr").Tbl_sub_().Block_open_bgn_().Block_open_end_()
|
||||
, Tag__td = New(Tid__td, "td").Tbl_sub_().Block_open_end_().Block_close_bgn_()
|
||||
, Tag__th = New(Tid__th, "th").Tbl_sub_().Block_open_end_().Block_close_bgn_()
|
||||
, Tag__thead = New(Tid__thead, "thead")
|
||||
, Tag__tfoot = New(Tid__tfoot, "tfoot")
|
||||
, Tag__tbody = New(Tid__tbody, "tbody")
|
||||
, Tag__caption = New(Tid__caption, "caption").No_inline_().Tbl_sub_()
|
||||
, Tag__colgroup = New(Tid__colgroup, "colgroup")
|
||||
, Tag__col = New(Tid__col, "col")
|
||||
, Tag__a = New(Tid__a, "a").Restricted_()
|
||||
, Tag__img = New(Tid__img, "img").Single_only_html_().Restricted_() // NOTE: was .Xtn() DATE:2014-11-06
|
||||
, Tag__ruby = New(Tid__ruby, "ruby").No_inline_()
|
||||
, Tag__rt = New(Tid__rt, "rt").No_inline_()
|
||||
, Tag__rb = New(Tid__rb, "rb").No_inline_()
|
||||
, Tag__rp = New(Tid__rp, "rp").No_inline_()
|
||||
, Tag__includeonly = New(Tid__includeonly, "includeonly")
|
||||
, Tag__noinclude = New(Tid__noinclude, "noinclude")
|
||||
, Tag__onlyinclude = New(Tid__onlyinclude, "onlyinclude")
|
||||
, Tag__nowiki = New(Tid__nowiki, "nowiki")
|
||||
, Tag__xowa_cmd = New(Tid__xowa_cmd, "xowa_cmd").Xtn_()
|
||||
, Tag__poem = New(Tid__poem, "poem").Xtn_mw_().Xtn_auto_close_()
|
||||
, Tag__math = New(Tid__math, "math").Xtn_mw_()
|
||||
, Tag__ref = New(Tid__ref, "ref").Xtn_mw_()
|
||||
, Tag__references = New(Tid__references, "references").Xtn_mw_()
|
||||
, Tag__source = New(Tid__source, "source").Xtn_mw_().Block_open_bgn_().Block_close_end_() // deactivate pre; pre; PAGE:en.w:Comment_(computer_programming); DATE:2014-06-23
|
||||
, Tag__syntaxHighlight = New(Tid__syntaxHighlight, "syntaxHighlight").Xtn_mw_().Block_open_bgn_().Block_close_end_() // deactivate pre; pre; PAGE:en.w:Comment_(computer_programming); DATE:2014-06-23
|
||||
, Tag__gallery = New(Tid__gallery, "gallery").Xtn_mw_().Block_open_bgn_().Block_close_end_().Xtn_auto_close_()
|
||||
, Tag__imageMap = New(Tid__imageMap, "imageMap").Xtn_mw_()
|
||||
, Tag__timeline = New(Tid__timeline, "timeline").Xtn_mw_()
|
||||
, Tag__hiero = New(Tid__hiero, "hiero").Xtn_mw_()
|
||||
, Tag__inputBox = New(Tid__inputBox, "inputBox").Xtn_mw_()
|
||||
, Tag__pages = New(Tid__pages, "pages").Xtn_mw_()
|
||||
, Tag__section = New(Tid__section, "section").Xtn_mw_().Langs_(Xol_lang_stub_.Id_de, "Abschnitt").Langs_(Xol_lang_stub_.Id_he, "קטע").Langs_(Xol_lang_stub_.Id_pt, "trecho") // DATE:2014-07-18
|
||||
, Tag__pagequality = New(Tid__pagequality, "pagequality").Xtn_mw_()
|
||||
, Tag__pagelist = New(Tid__pagelist, "pagelist").Xtn_mw_()
|
||||
, Tag__categoryList = New(Tid__categoryList, "categoryList").Xtn_mw_()
|
||||
, Tag__categoryTree = New(Tid__categoryTree, "categoryTree").Xtn_mw_()
|
||||
, Tag__dynamicPageList = New(Tid__dynamicPageList, "dynamicPageList").Xtn_mw_()
|
||||
, Tag__time = New(Tid__time, "time")
|
||||
, Tag__input = New(Tid__input, "input").Restricted_()
|
||||
, Tag__textarea = New(Tid__textarea, "textarea").Restricted_()
|
||||
, Tag__score = New(Tid__score, "score").Xtn_mw_()
|
||||
, Tag__button = New(Tid__button, "button").Restricted_()
|
||||
, Tag__select = New(Tid__select, "select").Restricted_()
|
||||
, Tag__option = New(Tid__option, "option").Restricted_()
|
||||
, Tag__optgroup = New(Tid__optgroup, "optgroup").Restricted_()
|
||||
, Tag__script = New(Tid__script, "script").Restricted_() // NOTE: had ".Block_open_bgn_().Block_close_end_()"; PAGE:en.w:Cascading_Style_Sheets DATE:2014-06-23
|
||||
, Tag__style = New(Tid__style, "style").Restricted_() // NOTE: had ".Block_open_bgn_().Block_close_end_()"; PAGE:en.w:Cascading_Style_Sheets DATE:2014-06-23
|
||||
, Tag__form = New(Tid__form, "form").Restricted_() // NOTE: had ".Block_open_bgn_().Block_close_end_()"; PAGE:en.w:Cascading_Style_Sheets DATE:2014-06-23
|
||||
, Tag__translate = New(Tid__translate, "translate").Xtn_mw_()
|
||||
, Tag__languages = New(Tid__languages, "languages").Xtn_mw_()
|
||||
, Tag__templateData = New(Tid__templateData, "templateData").Xtn_mw_()
|
||||
, Tag__bdi = New(Tid__bdi, "bdi")
|
||||
, Tag__data = New(Tid__data, "data")
|
||||
, Tag__mark = New(Tid__mark, "mark")
|
||||
, Tag__wbr = New(Tid__wbr, "wbr").Single_only_().Single_only_html_()
|
||||
, Tag__bdo = New(Tid__bdo, "bdo").No_inline_().Section_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag__listing_buy = New(Tid__listing_buy, "buy").Xtn_mw_()
|
||||
, Tag__listing_do = New(Tid__listing_do, "do").Xtn_mw_()
|
||||
, Tag__listing_drink = New(Tid__listing_drink, "drink").Xtn_mw_()
|
||||
, Tag__listing_eat = New(Tid__listing_eat, "eat").Xtn_mw_()
|
||||
, Tag__listing_listing = New(Tid__listing_listing, "listing").Xtn_mw_()
|
||||
, Tag__listing_see = New(Tid__listing_see, "see").Xtn_mw_()
|
||||
, Tag__listing_sleep = New(Tid__listing_sleep, "sleep").Xtn_mw_()
|
||||
, Tag__rss = New(Tid__rss, "rss").Xtn_mw_()
|
||||
, Tag__xowa_html = New(Tid__xowa_html, "xowa_html").Xtn_()
|
||||
, Tag__xowa_tag_bgn = New(Tid__xowa_tag_bgn, "xtag_bgn").Xtn_()
|
||||
, Tag__xowa_tag_end = New(Tid__xowa_tag_end, "xtag_end").Xtn_()
|
||||
, Tag__quiz = New(Tid__quiz, "quiz").Xtn_mw_()
|
||||
, Tag__indicator = New(Tid__indicator, "indicator").Xtn_mw_()
|
||||
, Tag__q = New(Tid__q, "q")
|
||||
, Tag__graph = New(Tid__graph, "graph").Xtn_mw_()
|
||||
, Tag__random_selection = New(Tid__random_selection, "choose").Xtn_mw_()
|
||||
, Tag__tabber = New(Tid__tabber, "tabber").Xtn_mw_()
|
||||
, Tag__tabview = New(Tid__tabview, "tabview").Xtn_mw_()
|
||||
;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class Xop_xnde_tag_lang {
|
||||
lang_code = Int_obj_ref.new_(lang_code_int);
|
||||
this.name_str = name_str;
|
||||
this.name_bry = Bry_.new_u8(name_str);
|
||||
this.xtnEndTag_tmp = Bry_.Add(Xop_xnde_tag_.Xtn_end_tag_bgn, name_bry);
|
||||
this.xtnEndTag_tmp = Bry_.Add(Xop_xnde_tag_.Bry__end_tag_bgn, name_bry);
|
||||
}
|
||||
public Int_obj_ref Lang_code() {return lang_code;} private Int_obj_ref lang_code;
|
||||
public String Name_str() {return name_str;} private String name_str;
|
||||
|
||||
@@ -49,17 +49,17 @@ public class Xop_xnde_tag_regy {
|
||||
Add_itm(trie, xnde);
|
||||
}
|
||||
if (is_tmpl) { // is_tmpl also has <nowiki>, <includeonly>, <noinclude>, <onlyinclude>
|
||||
Add_itm(trie, Xop_xnde_tag_.Tag_nowiki);
|
||||
Add_itm(trie, Xop_xnde_tag_.Tag_includeonly);
|
||||
Add_itm(trie, Xop_xnde_tag_.Tag_noinclude);
|
||||
Add_itm(trie, Xop_xnde_tag_.Tag_onlyinclude);
|
||||
Add_itm(trie, Xop_xnde_tag_.Tag__nowiki);
|
||||
Add_itm(trie, Xop_xnde_tag_.Tag__includeonly);
|
||||
Add_itm(trie, Xop_xnde_tag_.Tag__noinclude);
|
||||
Add_itm(trie, Xop_xnde_tag_.Tag__onlyinclude);
|
||||
}
|
||||
}
|
||||
private boolean Ignore_xnde(Hash_adp_bry xtn_hash, Xop_xnde_tag xnde) {
|
||||
return xtn_hash != null // xtn_hash is null during tests or when wiki is not in site_meta_db
|
||||
&& xnde.Xtn_mw() // only apply filter to xtn_xnde, not basic_xnde; EX: <dynamicpagelist> not <table>
|
||||
&& !xtn_hash.Has(xnde.Name_bry()) // xtn_xnde is not in xtn_hash
|
||||
&& !Int_.In(xnde.Id(), Xop_xnde_tag_.Tid_translate, Xop_xnde_tag_.Tid_languages) // always include <translate> and <languages>; TODO:filter out when extensions supported in site_cfg; DATE:2015-10-13
|
||||
&& !Int_.In(xnde.Id(), Xop_xnde_tag_.Tid__translate, Xop_xnde_tag_.Tid__languages) // always include <translate> and <languages>; TODO:filter out when extensions supported in site_cfg; DATE:2015-10-13
|
||||
; // skip; xtn is not defined in site_meta_db
|
||||
}
|
||||
private void Add_itm(Btrie_slim_mgr trie, Xop_xnde_tag xnde) {
|
||||
|
||||
@@ -45,10 +45,10 @@ public class Xop_xnde_tkn extends Xop_tkn_itm_base implements Xop_tblw_tkn {
|
||||
public Xox_xnde Xnde_xtn() {return xnde_xtn;} public Xop_xnde_tkn Xnde_xtn_(Xox_xnde v) {xnde_xtn = v; return this;} private Xox_xnde xnde_xtn;
|
||||
@Override public void Tmpl_compile(Xop_ctx ctx, byte[] src, Xot_compile_data prep_data) {
|
||||
switch (tag.Id()) {
|
||||
case Xop_xnde_tag_.Tid_noinclude: // NOTE: prep_mode is false to force recompile; see Ex_Tmpl_noinclude and {{{1<ni>|a</ni>}}}
|
||||
case Xop_xnde_tag_.Tid_includeonly: // NOTE: changed to always ignore <includeonly>; DATE:2014-05-10
|
||||
case Xop_xnde_tag_.Tid__noinclude: // NOTE: prep_mode is false to force recompile; see Ex_Tmpl_noinclude and {{{1<ni>|a</ni>}}}
|
||||
case Xop_xnde_tag_.Tid__includeonly: // NOTE: changed to always ignore <includeonly>; DATE:2014-05-10
|
||||
break;
|
||||
case Xop_xnde_tag_.Tid_nowiki: {
|
||||
case Xop_xnde_tag_.Tid__nowiki: {
|
||||
int subs_len = this.Subs_len();
|
||||
for (int i = 0; i < subs_len; i++) {
|
||||
Xop_tkn_itm sub = this.Subs_get(i);
|
||||
@@ -56,7 +56,7 @@ public class Xop_xnde_tkn extends Xop_tkn_itm_base implements Xop_tblw_tkn {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Xop_xnde_tag_.Tid_onlyinclude: {
|
||||
case Xop_xnde_tag_.Tid__onlyinclude: {
|
||||
int subs_len = this.Subs_len();
|
||||
for (int i = 0; i < subs_len; i++) {
|
||||
Xop_tkn_itm sub = this.Subs_get(i);
|
||||
@@ -84,21 +84,21 @@ public class Xop_xnde_tkn extends Xop_tkn_itm_base implements Xop_tblw_tkn {
|
||||
// }
|
||||
int subs_len = this.Subs_len();
|
||||
switch (tag.Id()) {
|
||||
case Xop_xnde_tag_.Tid_noinclude: // do not evaluate subs
|
||||
case Xop_xnde_tag_.Tid__noinclude: // do not evaluate subs
|
||||
break;
|
||||
case Xop_xnde_tag_.Tid_includeonly: // evaluate subs
|
||||
case Xop_xnde_tag_.Tid__includeonly: // evaluate subs
|
||||
if (!ctx.Only_include_evaluate()) {
|
||||
for (int i = 0; i < subs_len; i++)
|
||||
this.Subs_get(i).Tmpl_evaluate(ctx, src, caller, bfr);
|
||||
}
|
||||
break;
|
||||
case Xop_xnde_tag_.Tid_nowiki: // evaluate subs; add tags
|
||||
bfr.Add_byte(Byte_ascii.Lt).Add(Xop_xnde_tag_.Tag_nowiki.Name_bry()).Add_byte(Byte_ascii.Gt);
|
||||
case Xop_xnde_tag_.Tid__nowiki: // evaluate subs; add tags
|
||||
bfr.Add_byte(Byte_ascii.Lt).Add(Xop_xnde_tag_.Tag__nowiki.Name_bry()).Add_byte(Byte_ascii.Gt);
|
||||
for (int i = 0; i < subs_len; i++)
|
||||
this.Subs_get(i).Tmpl_evaluate(ctx, src, caller, bfr);
|
||||
bfr.Add_byte(Byte_ascii.Lt).Add_byte(Byte_ascii.Slash).Add(Xop_xnde_tag_.Tag_nowiki.Name_bry()).Add_byte(Byte_ascii.Gt);
|
||||
bfr.Add_byte(Byte_ascii.Lt).Add_byte(Byte_ascii.Slash).Add(Xop_xnde_tag_.Tag__nowiki.Name_bry()).Add_byte(Byte_ascii.Gt);
|
||||
break;
|
||||
case Xop_xnde_tag_.Tid_onlyinclude: // evaluate subs but toggle onlyinclude flag on/off
|
||||
case Xop_xnde_tag_.Tid__onlyinclude: // evaluate subs but toggle onlyinclude flag on/off
|
||||
// boolean prv_val = ctx.Onlyinclude_enabled;
|
||||
// ctx.Onlyinclude_enabled = false;
|
||||
for (int i = 0; i < subs_len; i++)
|
||||
|
||||
@@ -138,14 +138,14 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
int valid_inner_xnde_gt = atr_parser.Xnde_find_gt_find(src, name_bgn_pos, src_len); // check if <nowiki>, <noinclude>, <includeonly> or <onlyinclude> (which can exist inside tag)
|
||||
if (valid_inner_xnde_gt == String_.Find_none){ // not a <nowiki>
|
||||
switch (tag.Id()) {
|
||||
case Xop_xnde_tag_.Tid_input: break; // noop; needed for Options which may have < in value; DATE:2014-07-04
|
||||
case Xop_xnde_tag_.Tid__input: break; // noop; needed for Options which may have < in value; DATE:2014-07-04
|
||||
default: return ctx.Lxr_make_txt_(cur_pos); // escape text; EX: "<div </div>" -> "<div </div>"; SEE:it.u:; DATE:2014-02-03
|
||||
}
|
||||
}
|
||||
else { // is a <nowiki> skip to </nowiki>
|
||||
if ( i == end_name_pos
|
||||
&& ctx.Parse_tid() == Xop_parser_.Parse_tid_tmpl
|
||||
&& Bry_.Eq(atr_parser.Bry_obj().Val(), Xop_xnde_tag_.Tag_includeonly.Name_bry())
|
||||
&& Bry_.Eq(atr_parser.Bry_obj().Val(), Xop_xnde_tag_.Tag__includeonly.Name_bry())
|
||||
) {
|
||||
pre2_hack = true;
|
||||
}
|
||||
@@ -171,11 +171,11 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
switch (ctx.Parse_tid()) { // NOTE: special logic to handle <include>; SEE: NOTE_1 below
|
||||
case Xop_parser_.Parse_tid_page_wiki: // NOTE: ignore if (a) wiki and (b) <noinclude> or <onlyinclude>
|
||||
switch (tag.Id()) {
|
||||
case Xop_xnde_tag_.Tid_noinclude:
|
||||
case Xop_xnde_tag_.Tid_onlyinclude:
|
||||
case Xop_xnde_tag_.Tid__noinclude:
|
||||
case Xop_xnde_tag_.Tid__onlyinclude:
|
||||
ctx.Subs_add(root, tkn_mkr.Ignore(bgn_pos, end_pos, Xop_ignore_tkn.Ignore_tid_include_wiki));
|
||||
return end_pos;
|
||||
case Xop_xnde_tag_.Tid_nowiki:
|
||||
case Xop_xnde_tag_.Tid__nowiki:
|
||||
force_xtn_for_nowiki = true;
|
||||
ctx_cur_tid_is_tblw_atr_owner = false;
|
||||
break;
|
||||
@@ -183,15 +183,15 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
break;
|
||||
case Xop_parser_.Parse_tid_tmpl: // NOTE: ignore if (a) tmpl and (b) <includeonly>
|
||||
switch (tag.Id()) {
|
||||
case Xop_xnde_tag_.Tid_includeonly:
|
||||
case Xop_xnde_tag_.Tid__includeonly:
|
||||
ctx.Subs_add(root, tkn_mkr.Ignore(bgn_pos, end_pos, Xop_ignore_tkn.Ignore_tid_include_tmpl));
|
||||
return end_pos;
|
||||
case Xop_xnde_tag_.Tid_noinclude:
|
||||
case Xop_xnde_tag_.Tid__noinclude:
|
||||
return Make_noinclude(ctx, tkn_mkr, root, src, src_len, bgn_pos, gt_pos, tag, atrs_bgn_pos - 1, tag_is_closing); // -1 b/c atrs_bgn_pos may be set past >; may need to adjust above logic; DATE:2014-06-24
|
||||
case Xop_xnde_tag_.Tid_nowiki:
|
||||
case Xop_xnde_tag_.Tid__nowiki:
|
||||
force_xtn_for_nowiki = true;
|
||||
break;
|
||||
case Xop_xnde_tag_.Tid_onlyinclude:
|
||||
case Xop_xnde_tag_.Tid__onlyinclude:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -199,11 +199,11 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
break;
|
||||
case Xop_parser_.Parse_tid_page_tmpl: // NOTE: added late; SEE:comment test for "a <!-<noinclude></noinclude>- b -->c"
|
||||
switch (tag.Id()) {
|
||||
case Xop_xnde_tag_.Tid_noinclude:
|
||||
case Xop_xnde_tag_.Tid__noinclude:
|
||||
ctx.Subs_add(root, tkn_mkr.Ignore(bgn_pos, end_pos, Xop_ignore_tkn.Ignore_tid_include_tmpl));
|
||||
return end_pos;
|
||||
case Xop_xnde_tag_.Tid_nowiki: // if encountered in page_tmpl stage, mark nowiki as xtn; added for nowiki_xnde_frag; DATE:2013-01-27
|
||||
case Xop_xnde_tag_.Tid_includeonly: // includeonly should be resolved during template stage; EX: =<io>=</io>A=<io>=</io>; DATE:2014-02-12
|
||||
case Xop_xnde_tag_.Tid__nowiki: // if encountered in page_tmpl stage, mark nowiki as xtn; added for nowiki_xnde_frag; DATE:2013-01-27
|
||||
case Xop_xnde_tag_.Tid__includeonly: // includeonly should be resolved during template stage; EX: =<io>=</io>A=<io>=</io>; DATE:2014-02-12
|
||||
force_xtn_for_nowiki = true;
|
||||
break;
|
||||
}
|
||||
@@ -246,7 +246,7 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
}
|
||||
}
|
||||
int end_rhs = -1, findPos = gtPos;
|
||||
byte[] end_bry = Xop_xnde_tag_.Tag_noinclude.Xtn_end_tag(); int end_bry_len = end_bry.length;
|
||||
byte[] end_bry = Xop_xnde_tag_.Tag__noinclude.Xtn_end_tag(); int end_bry_len = end_bry.length;
|
||||
if (tag_is_closing) // </noinclude>; no end tag to search for; DATE:2014-05-02
|
||||
end_rhs = gtPos;
|
||||
else { // <noinclude>; search for end tag
|
||||
@@ -323,11 +323,11 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
|
||||
boolean tag_ignore = false;
|
||||
int tagId = tag.Id();
|
||||
if (tagId == Xop_xnde_tag_.Tid_table || tag.Tbl_sub()) { // tbl tag; EX: <table>,<tr>,<td>,<th>
|
||||
if (tagId == Xop_xnde_tag_.Tid__table || tag.Tbl_sub()) { // tbl tag; EX: <table>,<tr>,<td>,<th>
|
||||
Tblw_bgn(ctx, tkn_mkr, root, src, src_len, bgn_pos, gtPos + 1, tagId, atrs_bgn, atrs_end);
|
||||
return gtPos + 1;
|
||||
}
|
||||
else if (prv_xnde_tagId == Xop_xnde_tag_.Tid_p && tagId == Xop_xnde_tag_.Tid_p) {
|
||||
else if (prv_xnde_tagId == Xop_xnde_tag_.Tid__p && tagId == Xop_xnde_tag_.Tid__p) {
|
||||
ctx.Msg_log().Add_itm_none(Xop_xnde_log.Auto_closing_section, src, bgn_pos, bgn_pos);
|
||||
End_tag(ctx, root, prv_xnde, src, src_len, bgn_pos - 1, bgn_pos - 1, tagId, true, tag);
|
||||
}
|
||||
@@ -347,7 +347,7 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
}
|
||||
Xop_xnde_tkn xnde = null;
|
||||
xnde = Xnde_bgn(ctx, tkn_mkr, root, tag, inline ? Xop_xnde_tkn.CloseMode_inline : Xop_xnde_tkn.CloseMode_open, src, bgn_pos, open_tag_end, atrs_bgn, atrs_end, atrs);
|
||||
if (!inline && tag.Bgn_nde_mode() != Xop_xnde_tag_.Bgn_nde_mode_inline)
|
||||
if (!inline && tag.Bgn_mode() != Xop_xnde_tag_.Bgn_mode__inline)
|
||||
ctx.Stack_add(xnde);
|
||||
if (tag_ignore)
|
||||
xnde.Tag_visible_(false);
|
||||
@@ -368,10 +368,10 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
case Xop_tkn_itm_.Tid_xnde:
|
||||
Xop_xnde_tkn xnde_tkn = (Xop_xnde_tkn)tkn;
|
||||
int stack_tag_id = xnde_tkn.Tag().Id();
|
||||
if (cur_tag_id == Xop_xnde_tag_.Tid_li) {
|
||||
if (cur_tag_id == Xop_xnde_tag_.Tid__li) {
|
||||
switch (stack_tag_id) {
|
||||
case Xop_xnde_tag_.Tid_ul: // ul / ol resets tag_stack for li; EX: <li><ul><li>; 2nd li is not nested in 1st
|
||||
case Xop_xnde_tag_.Tid_ol:
|
||||
case Xop_xnde_tag_.Tid__ul: // ul / ol resets tag_stack for li; EX: <li><ul><li>; 2nd li is not nested in 1st
|
||||
case Xop_xnde_tag_.Tid__ol:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -384,11 +384,11 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
private void Tblw_bgn(Xop_ctx ctx, Xop_tkn_mkr tkn_mkr, Xop_root_tkn root, byte[] src, int src_len, int bgn_pos, int cur_pos, int tagId, int atrs_bgn, int atrs_end) {
|
||||
byte wlxr_type = 0;
|
||||
switch (tagId) {
|
||||
case Xop_xnde_tag_.Tid_table: wlxr_type = Xop_tblw_wkr.Tblw_type_tb; break;
|
||||
case Xop_xnde_tag_.Tid_tr: wlxr_type = Xop_tblw_wkr.Tblw_type_tr; break;
|
||||
case Xop_xnde_tag_.Tid_td: wlxr_type = Xop_tblw_wkr.Tblw_type_td; break;
|
||||
case Xop_xnde_tag_.Tid_th: wlxr_type = Xop_tblw_wkr.Tblw_type_th; break;
|
||||
case Xop_xnde_tag_.Tid_caption: wlxr_type = Xop_tblw_wkr.Tblw_type_tc; break;
|
||||
case Xop_xnde_tag_.Tid__table: wlxr_type = Xop_tblw_wkr.Tblw_type_tb; break;
|
||||
case Xop_xnde_tag_.Tid__tr: wlxr_type = Xop_tblw_wkr.Tblw_type_tr; break;
|
||||
case Xop_xnde_tag_.Tid__td: wlxr_type = Xop_tblw_wkr.Tblw_type_td; break;
|
||||
case Xop_xnde_tag_.Tid__th: wlxr_type = Xop_tblw_wkr.Tblw_type_th; break;
|
||||
case Xop_xnde_tag_.Tid__caption: wlxr_type = Xop_tblw_wkr.Tblw_type_tc; break;
|
||||
}
|
||||
ctx.Tblw().Make_tkn_bgn(ctx, tkn_mkr, root, src, src_len, bgn_pos, cur_pos, true, wlxr_type, Xop_tblw_wkr.Called_from_general, atrs_bgn, atrs_end);
|
||||
}
|
||||
@@ -396,11 +396,11 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
int typeId = 0;
|
||||
byte wlxr_type = 0;
|
||||
switch (tagId) {
|
||||
case Xop_xnde_tag_.Tid_table: typeId = Xop_tkn_itm_.Tid_tblw_tb; wlxr_type = Xop_tblw_wkr.Tblw_type_tb; break;
|
||||
case Xop_xnde_tag_.Tid_tr: typeId = Xop_tkn_itm_.Tid_tblw_tr; wlxr_type = Xop_tblw_wkr.Tblw_type_tr; break;
|
||||
case Xop_xnde_tag_.Tid_td: typeId = Xop_tkn_itm_.Tid_tblw_td; wlxr_type = Xop_tblw_wkr.Tblw_type_td; break;
|
||||
case Xop_xnde_tag_.Tid_th: typeId = Xop_tkn_itm_.Tid_tblw_th; wlxr_type = Xop_tblw_wkr.Tblw_type_th; break;
|
||||
case Xop_xnde_tag_.Tid_caption: typeId = Xop_tkn_itm_.Tid_tblw_tc; wlxr_type = Xop_tblw_wkr.Tblw_type_tc; break;
|
||||
case Xop_xnde_tag_.Tid__table: typeId = Xop_tkn_itm_.Tid_tblw_tb; wlxr_type = Xop_tblw_wkr.Tblw_type_tb; break;
|
||||
case Xop_xnde_tag_.Tid__tr: typeId = Xop_tkn_itm_.Tid_tblw_tr; wlxr_type = Xop_tblw_wkr.Tblw_type_tr; break;
|
||||
case Xop_xnde_tag_.Tid__td: typeId = Xop_tkn_itm_.Tid_tblw_td; wlxr_type = Xop_tblw_wkr.Tblw_type_td; break;
|
||||
case Xop_xnde_tag_.Tid__th: typeId = Xop_tkn_itm_.Tid_tblw_th; wlxr_type = Xop_tblw_wkr.Tblw_type_th; break;
|
||||
case Xop_xnde_tag_.Tid__caption: typeId = Xop_tkn_itm_.Tid_tblw_tc; wlxr_type = Xop_tblw_wkr.Tblw_type_tc; break;
|
||||
}
|
||||
Xop_tblw_tkn prv_tkn = ctx.Stack_get_tbl();
|
||||
int prv_tkn_typeId = prv_tkn == null ? -1 : prv_tkn.Tkn_tid();
|
||||
@@ -414,19 +414,19 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
Xop_xnde_tkn bgn_nde = (Xop_xnde_tkn)ctx.Stack_get(prv_xnde_pos);
|
||||
int bgn_tag_id = bgn_nde == null ? -1 : bgn_nde.Tag().Id();
|
||||
|
||||
int end_nde_mode = end_tag.End_nde_mode();
|
||||
int end_nde_mode = end_tag.End_mode();
|
||||
boolean force_end_tag_to_match_bgn_tag = false;
|
||||
switch (bgn_tag_id) {
|
||||
case Xop_xnde_tag_.Tid_sub: if (end_tag_id == Xop_xnde_tag_.Tid_sup) force_end_tag_to_match_bgn_tag = true; break;
|
||||
case Xop_xnde_tag_.Tid_sup: if (end_tag_id == Xop_xnde_tag_.Tid_sub) force_end_tag_to_match_bgn_tag = true; break;
|
||||
case Xop_xnde_tag_.Tid_mark: if (end_tag_id == Xop_xnde_tag_.Tid_span) force_end_tag_to_match_bgn_tag = true; break;
|
||||
case Xop_xnde_tag_.Tid_span: if (end_tag_id == Xop_xnde_tag_.Tid_font) force_end_tag_to_match_bgn_tag = true; break;
|
||||
case Xop_xnde_tag_.Tid__sub: if (end_tag_id == Xop_xnde_tag_.Tid__sup) force_end_tag_to_match_bgn_tag = true; break;
|
||||
case Xop_xnde_tag_.Tid__sup: if (end_tag_id == Xop_xnde_tag_.Tid__sub) force_end_tag_to_match_bgn_tag = true; break;
|
||||
case Xop_xnde_tag_.Tid__mark: if (end_tag_id == Xop_xnde_tag_.Tid__span) force_end_tag_to_match_bgn_tag = true; break;
|
||||
case Xop_xnde_tag_.Tid__span: if (end_tag_id == Xop_xnde_tag_.Tid__font) force_end_tag_to_match_bgn_tag = true; break;
|
||||
}
|
||||
if (force_end_tag_to_match_bgn_tag) {
|
||||
end_tag_id = bgn_tag_id;
|
||||
ctx.Msg_log().Add_itm_none(Xop_xnde_log.Sub_sup_swapped, src, bgn_pos, cur_pos);
|
||||
}
|
||||
if (end_tag_id == Xop_xnde_tag_.Tid_table || end_tag.Tbl_sub()) {
|
||||
if (end_tag_id == Xop_xnde_tag_.Tid__table || end_tag.Tbl_sub()) {
|
||||
Tblw_end(ctx, tkn_mkr, root, src, src_len, bgn_pos, cur_pos, end_tag_id);
|
||||
return cur_pos;
|
||||
}
|
||||
@@ -437,10 +437,10 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
return cur_pos;
|
||||
}
|
||||
switch (end_nde_mode) {
|
||||
case Xop_xnde_tag_.End_nde_mode_inline: // PATCH.WP: allows </br>, </br/> and many other variants
|
||||
case Xop_xnde_tag_.End_mode__inline: // PATCH.WP: allows </br>, </br/> and many other variants
|
||||
Xnde_bgn(ctx, tkn_mkr, root, end_tag, Xop_xnde_tkn.CloseMode_inline, src, bgn_pos, cur_pos, Int_.Min_value, Int_.Min_value, null); // NOTE: atrs is null b/c </br> will never have atrs
|
||||
return cur_pos;
|
||||
case Xop_xnde_tag_.End_nde_mode_escape: // handle </hr>
|
||||
case Xop_xnde_tag_.End_mode__escape: // handle </hr>
|
||||
ctx.Lxr_make_(false);
|
||||
ctx.Msg_log().Add_itm_none(Xop_xnde_log.Escaped_xnde, src, bgn_pos, cur_pos - 1);
|
||||
return cur_pos;
|
||||
@@ -592,7 +592,7 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
case Xop_parser_.Parse_tid_page_tmpl: {
|
||||
Xox_xnde xnde_xtn = null;
|
||||
switch (tag.Id()) {
|
||||
case Xop_xnde_tag_.Tid_xowa_cmd: xnde_xtn = tkn_mkr.Xnde_xowa_cmd(); break;
|
||||
case Xop_xnde_tag_.Tid__xowa_cmd: xnde_xtn = tkn_mkr.Xnde__xowa_cmd(); break;
|
||||
}
|
||||
if (xnde_xtn != null) {
|
||||
xnde_xtn.Xtn_parse(ctx.Wiki(), ctx, root, src, xnde);
|
||||
@@ -605,18 +605,18 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
int tag_id = tag.Id();
|
||||
boolean escaped = false;
|
||||
switch (tag_id) {
|
||||
case Xop_xnde_tag_.Tid_xowa_cmd: xnde_xtn = tkn_mkr.Xnde_xowa_cmd(); break;
|
||||
case Xop_xnde_tag_.Tid_math: xnde_xtn = tkn_mkr.Xnde_math(); break;
|
||||
case Xop_xnde_tag_.Tid_poem: xnde_xtn = tkn_mkr.Xnde_poem(); break;
|
||||
case Xop_xnde_tag_.Tid_ref: xnde_xtn = gplx.xowa.xtns.cites.References_nde.Enabled ? tkn_mkr.Xnde_ref() : null; break;
|
||||
case Xop_xnde_tag_.Tid_references: xnde_xtn = gplx.xowa.xtns.cites.References_nde.Enabled ? tkn_mkr.Xnde_references() : null; break;
|
||||
case Xop_xnde_tag_.Tid_gallery: xnde_xtn = tkn_mkr.Xnde_gallery(); break;
|
||||
case Xop_xnde_tag_.Tid_imageMap: xnde_xtn = tkn_mkr.Xnde_imageMap(); break;
|
||||
case Xop_xnde_tag_.Tid_hiero: xnde_xtn = tkn_mkr.Xnde_hiero(); break;
|
||||
case Xop_xnde_tag_.Tid_inputBox: xnde_xtn = tkn_mkr.Xnde_inputbox(); break;
|
||||
case Xop_xnde_tag_.Tid_dynamicPageList: xnde_xtn = tkn_mkr.Xnde_dynamicPageList(); break;
|
||||
case Xop_xnde_tag_.Tid_pages: {
|
||||
xnde_xtn = tkn_mkr.Xnde_pages();
|
||||
case Xop_xnde_tag_.Tid__xowa_cmd: xnde_xtn = tkn_mkr.Xnde__xowa_cmd(); break;
|
||||
case Xop_xnde_tag_.Tid__math: xnde_xtn = tkn_mkr.Xnde__math(); break;
|
||||
case Xop_xnde_tag_.Tid__poem: xnde_xtn = tkn_mkr.Xnde__poem(); break;
|
||||
case Xop_xnde_tag_.Tid__ref: xnde_xtn = gplx.xowa.xtns.cites.References_nde.Enabled ? tkn_mkr.Xnde__ref() : null; break;
|
||||
case Xop_xnde_tag_.Tid__references: xnde_xtn = gplx.xowa.xtns.cites.References_nde.Enabled ? tkn_mkr.Xnde__references() : null; break;
|
||||
case Xop_xnde_tag_.Tid__gallery: xnde_xtn = tkn_mkr.Xnde__gallery(); break;
|
||||
case Xop_xnde_tag_.Tid__imageMap: xnde_xtn = tkn_mkr.Xnde__imageMap(); break;
|
||||
case Xop_xnde_tag_.Tid__hiero: xnde_xtn = tkn_mkr.Xnde__hiero(); break;
|
||||
case Xop_xnde_tag_.Tid__inputBox: xnde_xtn = tkn_mkr.Xnde__inputbox(); break;
|
||||
case Xop_xnde_tag_.Tid__dynamicPageList: xnde_xtn = tkn_mkr.Xnde__dynamicPageList(); break;
|
||||
case Xop_xnde_tag_.Tid__pages: {
|
||||
xnde_xtn = tkn_mkr.Xnde__pages();
|
||||
boolean enabled = ctx.Wiki().Xtn_mgr().Xtn_proofread().Enabled();
|
||||
if (!enabled) { // if Page / Index ns does not exist, disable xtn and escape content; DATE:2014-11-28
|
||||
escaped = true;
|
||||
@@ -624,36 +624,39 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Xop_xnde_tag_.Tid_pagequality: xnde_xtn = tkn_mkr.Xnde_pagequality(); break;
|
||||
case Xop_xnde_tag_.Tid_pagelist: xnde_xtn = tkn_mkr.Xnde_pagelist(); break;
|
||||
case Xop_xnde_tag_.Tid_section: xnde_xtn = tkn_mkr.Xnde_section(); break;
|
||||
case Xop_xnde_tag_.Tid_categoryList: xnde_xtn = tkn_mkr.Xnde_categoryList(); break;
|
||||
case Xop_xnde_tag_.Tid_source: // changed to be synonymn of syntax_highlight; DATE:2014-06-24
|
||||
case Xop_xnde_tag_.Tid_syntaxHighlight: xnde_xtn = tkn_mkr.Xnde_syntaxHighlight(); break;
|
||||
case Xop_xnde_tag_.Tid_score: xnde_xtn = tkn_mkr.Xnde_score(); break;
|
||||
case Xop_xnde_tag_.Tid_translate: xnde_xtn = tkn_mkr.Xnde_translate(); break;
|
||||
case Xop_xnde_tag_.Tid_languages: xnde_xtn = tkn_mkr.Xnde_languages(); break;
|
||||
case Xop_xnde_tag_.Tid_templateData: xnde_xtn = tkn_mkr.Xnde_templateData(); break;
|
||||
case Xop_xnde_tag_.Tid_rss: xnde_xtn = tkn_mkr.Xnde_rss(); break;
|
||||
case Xop_xnde_tag_.Tid_quiz: xnde_xtn = tkn_mkr.Xnde_quiz(); break;
|
||||
case Xop_xnde_tag_.Tid_indicator: xnde_xtn = tkn_mkr.Xnde_indicator(); break;
|
||||
case Xop_xnde_tag_.Tid_xowa_html: xnde_xtn = tkn_mkr.Xnde_xowa_html(); break;
|
||||
case Xop_xnde_tag_.Tid_graph: xnde_xtn = tkn_mkr.Xnde_graph(); break;
|
||||
case Xop_xnde_tag_.Tid_listing_buy:
|
||||
case Xop_xnde_tag_.Tid_listing_do:
|
||||
case Xop_xnde_tag_.Tid_listing_drink:
|
||||
case Xop_xnde_tag_.Tid_listing_eat:
|
||||
case Xop_xnde_tag_.Tid_listing_listing:
|
||||
case Xop_xnde_tag_.Tid_listing_see:
|
||||
case Xop_xnde_tag_.Tid_listing_sleep: xnde_xtn = tkn_mkr.Xnde_listing(tag_id); break;
|
||||
case Xop_xnde_tag_.Tid_timeline:
|
||||
case Xop_xnde_tag_.Tid__pagequality: xnde_xtn = tkn_mkr.Xnde__pagequality(); break;
|
||||
case Xop_xnde_tag_.Tid__pagelist: xnde_xtn = tkn_mkr.Xnde__pagelist(); break;
|
||||
case Xop_xnde_tag_.Tid__section: xnde_xtn = tkn_mkr.Xnde__section(); break;
|
||||
case Xop_xnde_tag_.Tid__categoryList: xnde_xtn = tkn_mkr.Xnde__categoryList(); break;
|
||||
case Xop_xnde_tag_.Tid__source: // changed to be synonymn of syntax_highlight; DATE:2014-06-24
|
||||
case Xop_xnde_tag_.Tid__syntaxHighlight: xnde_xtn = tkn_mkr.Xnde__syntaxHighlight(); break;
|
||||
case Xop_xnde_tag_.Tid__score: xnde_xtn = tkn_mkr.Xnde__score(); break;
|
||||
case Xop_xnde_tag_.Tid__translate: xnde_xtn = tkn_mkr.Xnde__translate(); break;
|
||||
case Xop_xnde_tag_.Tid__languages: xnde_xtn = tkn_mkr.Xnde__languages(); break;
|
||||
case Xop_xnde_tag_.Tid__templateData: xnde_xtn = tkn_mkr.Xnde__templateData(); break;
|
||||
case Xop_xnde_tag_.Tid__rss: xnde_xtn = tkn_mkr.Xnde__rss(); break;
|
||||
case Xop_xnde_tag_.Tid__quiz: xnde_xtn = tkn_mkr.Xnde__quiz(); break;
|
||||
case Xop_xnde_tag_.Tid__indicator: xnde_xtn = tkn_mkr.Xnde__indicator(); break;
|
||||
case Xop_xnde_tag_.Tid__xowa_html: xnde_xtn = tkn_mkr.Xnde__xowa_html(); break;
|
||||
case Xop_xnde_tag_.Tid__graph: xnde_xtn = tkn_mkr.Xnde__graph(); break;
|
||||
case Xop_xnde_tag_.Tid__random_selection: xnde_xtn = tkn_mkr.Xnde__random_selection(); break;
|
||||
case Xop_xnde_tag_.Tid__tabber: xnde_xtn = tkn_mkr.Xnde__tabber(); break;
|
||||
case Xop_xnde_tag_.Tid__tabview: xnde_xtn = tkn_mkr.Xnde__tabview(); break;
|
||||
case Xop_xnde_tag_.Tid__listing_buy:
|
||||
case Xop_xnde_tag_.Tid__listing_do:
|
||||
case Xop_xnde_tag_.Tid__listing_drink:
|
||||
case Xop_xnde_tag_.Tid__listing_eat:
|
||||
case Xop_xnde_tag_.Tid__listing_listing:
|
||||
case Xop_xnde_tag_.Tid__listing_see:
|
||||
case Xop_xnde_tag_.Tid__listing_sleep: xnde_xtn = tkn_mkr.Xnde__listing(tag_id); break;
|
||||
case Xop_xnde_tag_.Tid__timeline:
|
||||
boolean log_wkr_enabled = Timeline_log_wkr != Xop_log_basic_wkr.Null; if (log_wkr_enabled) Timeline_log_wkr.Log_end_xnde(ctx.Page(), Xop_log_basic_wkr.Tid_timeline, src, xnde);
|
||||
ctx.Page().Html_data().Head_mgr().Itm__timeline().Enabled_y_();
|
||||
break;
|
||||
case Xop_xnde_tag_.Tid_xowa_tag_bgn:
|
||||
case Xop_xnde_tag_.Tid_xowa_tag_end:
|
||||
case Xop_xnde_tag_.Tid__xowa_tag_bgn:
|
||||
case Xop_xnde_tag_.Tid__xowa_tag_end:
|
||||
break;
|
||||
case Xop_xnde_tag_.Tid_pre: // NOTE: pre must be an xtn, but does not create an xtn node (it gobbles up everything between); still need to touch the para_wkr; DATE:2014-02-20
|
||||
case Xop_xnde_tag_.Tid__pre: // NOTE: pre must be an xtn, but does not create an xtn node (it gobbles up everything between); still need to touch the para_wkr; DATE:2014-02-20
|
||||
ctx.Para().Process_block__xnde(tag, Xop_xnde_tag.Block_bgn);
|
||||
if (Bry_find_.Find_fwd(src, Byte_ascii.Nl, xnde.Tag_open_end(), xnde.Tag_close_bgn()) != Bry_find_.Not_found)
|
||||
ctx.Para().Process_nl(ctx, root, src, xnde.Tag_open_bgn(), xnde.Tag_open_bgn());
|
||||
@@ -670,7 +673,7 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
xnde_xtn.Xtn_parse(ctx.Wiki(), ctx, root, src, xnde);
|
||||
}
|
||||
catch (Exception e) {
|
||||
String err_msg = String_.Format("failed to render extension: title={0} excerpt={1} err={2}", ctx.Page().Ttl().Full_txt()
|
||||
String err_msg = String_.Format("failed to render extension: title={0} excerpt={1} err={2}", ctx.Page().Ttl().Full_txt_w_ttl_case()
|
||||
, Bry_.Mid(src, xnde.Tag_open_end(), xnde.Tag_close_bgn())
|
||||
, Err_.Message_gplx_log(e));
|
||||
if (Env_.Mode_testing())
|
||||
@@ -691,7 +694,7 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
ctx.Subs_add(root, rv);
|
||||
return rv;
|
||||
}
|
||||
private static final byte[]
|
||||
private static final byte[]
|
||||
Bry_escape_lt_slash = Bry_.new_a7("</")
|
||||
;
|
||||
public static int Find_gt_pos(Xop_ctx ctx, byte[] src, int cur_pos, int src_len) { // UNUSED
|
||||
|
||||
Reference in New Issue
Block a user