mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v1.9.2.1
This commit is contained in:
@@ -150,7 +150,7 @@ public class Xop_xnde_tag_ {
|
||||
, Tag_cite = new_(Tid_cite, "cite").NoInline_()
|
||||
, Tag_dfn = new_(Tid_dfn, "dfn").NoInline_()
|
||||
, Tag_var = new_(Tid_var, "var").NoInline_()
|
||||
, Tag_u = new_(Tid_u, "u").NoInline_()
|
||||
, Tag_u = new_(Tid_u, "u").NoInline_().Repeat_ends_() // PAGE:en.b:Textbook_of_Psychiatry/Alcoholism_and_Psychoactive_Substance_Use_Disorders; DATE:2014-09-05
|
||||
, Tag_ins = new_(Tid_ins, "ins").NoInline_()
|
||||
, Tag_abbr = new_(Tid_abbr, "abbr").NoInline_()
|
||||
, Tag_strike = new_(Tid_strike, "strike").NoInline_()
|
||||
|
||||
@@ -24,6 +24,7 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
public void Page_bgn(Xop_ctx ctx, Xop_root_tkn root) {}
|
||||
public void Page_end(Xop_ctx ctx, Xop_root_tkn root, byte[] src, int src_len) {this.Clear();}
|
||||
private void Clear() {
|
||||
|
||||
pre_at_bos = false;
|
||||
}
|
||||
public void AutoClose(Xop_ctx ctx, Xop_root_tkn root, byte[] src, int src_len, int bgn_pos, int cur_pos, Xop_tkn_itm tkn, int closing_tkn_tid) {
|
||||
|
||||
@@ -172,7 +172,7 @@ public class Xop_xnde_wkr__err_dangling_tst {
|
||||
, fxt.tkn_list_end_(7).List_path_(1)
|
||||
);
|
||||
}
|
||||
// @Test public void SpanX() {
|
||||
// fxt.Test_parse_page_wiki_str("<span>a<p></span>", "<span>a<p></span>");
|
||||
// }
|
||||
@Test public void Underline() { // PURPOSE: 2nd <u> should auto-close; PAGE:en.b:Textbook_of_Psychiatry/Alcoholism_and_Psychoactive_Substance_Use_Disorders DATE:2014-09-05
|
||||
fxt.Test_html_full_str("a<u>b<u>c", "a<u>b</u>c");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ public class Xop_xnde_wkr__include_uncommon_tst {
|
||||
, "1 2"
|
||||
);
|
||||
}
|
||||
@Test public void Only_include_preserves_nl() { // PURPOSE: given "a\n<onlyinclude>{|\n", "{|" should be table; EX:en.w:Wikipedia:Reference_desk
|
||||
@Test public void Only_include_preserves_nl() { // PURPOSE: given "a\n<onlyinclude>{|\n", "{|" should be table; PAGE:en.w:Wikipedia:Reference_desk
|
||||
fxt.Test_parse_page_all_str(String_.Concat_lines_nl
|
||||
( "a"
|
||||
, "<onlyinclude>==b==</onlyinclude>"
|
||||
@@ -141,7 +141,7 @@ public class Xop_xnde_wkr__include_uncommon_tst {
|
||||
fxt.Init_page_create("page", "abc"); // create page in main ns
|
||||
fxt.Test_parse_page_all_str("{{:<includeonly>safesubst:</includeonly>page}}", "abc"); // will become {{:page}} which should then transclude page
|
||||
}
|
||||
@Test public void Include_only_subst_in_function() {// PURPOSE: includeonly and subst inside function should be ignored; EX:en.w:WikiProject_Articles_for_creation/BLD_Preload; DATE:2014-04-29
|
||||
@Test public void Include_only_subst_in_function() {// PURPOSE: includeonly and subst inside function should be ignored; PAGE:en.w:WikiProject_Articles_for_creation/BLD_Preload; DATE:2014-04-29
|
||||
fxt.Test_parse_page_all_str("{{<includeonly>subst:</includeonly>#expr:0}}", "0");
|
||||
}
|
||||
@Test public void Hdr() { // PURPOSE: includeonly should be evaluated during template parse; EX: es.b:Billar/T<>cnica/Clases_de_puentes; DATE:2014-02-12
|
||||
|
||||
@@ -54,18 +54,18 @@ public class Xop_xnde_wkr__tblx_tst {
|
||||
@Test public void Td_in_lnki_should_be_ignored() {// PURPOSE: \n| inside lnki should not be interpreted as table cell; EX: uk.w:Дніпро; DATE:2014-03-11
|
||||
fxt.Init_para_y_();
|
||||
fxt.Test_parse_page_wiki_str(String_.Concat_lines_nl_skip_last
|
||||
( "<table><tr><td>"
|
||||
, "[[File:A.png|150px"
|
||||
, "|B]]</td></tr></table>"
|
||||
), String_.Concat_lines_nl_skip_last
|
||||
( "<table>"
|
||||
, " <tr>"
|
||||
, " <td>"
|
||||
, "<a href=\"/wiki/File:A.png\" class=\"image\" xowa_title=\"A.png\"><img id=\"xowa_file_img_0\" alt=\"B\" src=\"file:///mem/wiki/repo/trg/thumb/7/0/A.png/150px.png\" width=\"150\" height=\"0\" /></a>"
|
||||
, " </td>"
|
||||
, " </tr>"
|
||||
, "</table>"
|
||||
));
|
||||
( "<table><tr><td>"
|
||||
, "[[File:A.png|150px"
|
||||
, "|B]]</td></tr></table>"
|
||||
), String_.Concat_lines_nl_skip_last
|
||||
( "<table>"
|
||||
, " <tr>"
|
||||
, " <td>"
|
||||
, "<a href=\"/wiki/File:A.png\" class=\"image\" xowa_title=\"A.png\"><img id=\"xowa_file_img_0\" alt=\"B\" src=\"file:///mem/wiki/repo/trg/thumb/7/0/A.png/150px.png\" width=\"150\" height=\"0\" /></a>"
|
||||
, " </td>"
|
||||
, " </tr>"
|
||||
, "</table>"
|
||||
));
|
||||
fxt.Init_para_n_();
|
||||
}
|
||||
@Test public void Nl() {
|
||||
|
||||
Reference in New Issue
Block a user