mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.5.4.1
This commit is contained in:
@@ -91,6 +91,6 @@ public class Xop_comm_lxr implements Xop_lxr {
|
||||
private static final int End_len = End_ary.length;
|
||||
public static final Xop_comm_lxr _ = new Xop_comm_lxr(); Xop_comm_lxr() {}
|
||||
private static final String Xowa_skip_text_str = "XOWA_SKIP";
|
||||
private static final byte[] Xowa_skip_text_bry = Bry_.new_ascii_(Xowa_skip_text_str);
|
||||
public static final byte[] Xowa_skip_comment_bry = Bry_.new_ascii_("<!--" + Xowa_skip_text_str + "-->");
|
||||
private static final byte[] Xowa_skip_text_bry = Bry_.new_a7(Xowa_skip_text_str);
|
||||
public static final byte[] Xowa_skip_comment_bry = Bry_.new_a7("<!--" + Xowa_skip_text_str + "-->");
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ import gplx.core.btries.*;
|
||||
public class Xop_tab_tkn extends Xop_tkn_itm_base {
|
||||
public Xop_tab_tkn(int bgn, int end) {this.Tkn_ini_pos(false, bgn, end);}
|
||||
@Override public byte Tkn_tid() {return Xop_tkn_itm_.Tid_tab;}
|
||||
public static final byte[] Bry_tab_ent = Bry_.new_ascii_("	");
|
||||
public static final byte[] Bry_tab_ent = Bry_.new_a7("	");
|
||||
}
|
||||
class Xop_tab_lxr implements Xop_lxr {
|
||||
public byte Lxr_tid() {return Xop_lxr_.Tid_tab;}
|
||||
|
||||
@@ -56,7 +56,7 @@ class Xop_under_lxr implements Xop_lxr {
|
||||
if (kwd_case_match) // cs; add word directly to trie
|
||||
core_trie.Add(kwd_bry, word_lxr);
|
||||
else { // NOTE: next part is imprecise; XOWA parser is cs, but kwd is ci; for now, just add all upper and all lower
|
||||
Gfo_usr_dlg_.I.Warn_many("", "", "under keyword does not start with __; id=~{0} key=~{1} word=~{2}", kwd_id, String_.new_utf8_(kwd_grp.Key()), String_.new_utf8_(kwd_bry));
|
||||
Gfo_usr_dlg_.I.Warn_many("", "", "under keyword does not start with __; id=~{0} key=~{1} word=~{2}", kwd_id, String_.new_u8(kwd_grp.Key()), String_.new_u8(kwd_bry));
|
||||
core_trie.Add(lang.Case_mgr().Case_build_lower(kwd_bry), word_lxr);
|
||||
core_trie.Add(lang.Case_mgr().Case_build_upper(kwd_bry), word_lxr);
|
||||
}
|
||||
@@ -128,7 +128,7 @@ class Xop_under_hook {
|
||||
public byte[] Key() {return key;} private byte[] key;
|
||||
public int Key_len() {return key_len;} private int key_len;
|
||||
public static final byte Tid_std = 1, Tid_alt = 2;
|
||||
public static final byte[] Key_std = new byte[] {Byte_ascii.Underline, Byte_ascii.Underline}, Key_alt = Bry_.new_utf8_("__"); // ja wikis
|
||||
public static final byte[] Key_std = new byte[] {Byte_ascii.Underline, Byte_ascii.Underline}, Key_alt = Bry_.new_u8("__"); // ja wikis
|
||||
public static final Xop_under_hook
|
||||
Itm_std = new Xop_under_hook(Tid_std, Key_std)
|
||||
, Itm_alt = new Xop_under_hook(Tid_alt, Key_alt)
|
||||
|
||||
Reference in New Issue
Block a user