2015-07-13 01:10:02 +00:00
|
|
|
/*
|
|
|
|
XOWA: the XOWA Offline Wiki Application
|
|
|
|
Copyright (C) 2012 gnosygnu@gmail.com
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2015-10-19 02:17:57 +00:00
|
|
|
package gplx.xowa.htmls; import gplx.*; import gplx.xowa.*;
|
2015-07-13 01:10:02 +00:00
|
|
|
public class Xoh_consts {
|
|
|
|
public static final String
|
2015-08-03 04:10:03 +00:00
|
|
|
Atr_xowa_title_str = "xowa_title"
|
2015-07-13 01:10:02 +00:00
|
|
|
, Img_w_str = "width"
|
|
|
|
, Img_h_str = "height"
|
|
|
|
;
|
|
|
|
public static final byte[]
|
2015-09-28 03:04:13 +00:00
|
|
|
__end = Bry_.new_a7(">")
|
|
|
|
, __inline = Bry_.new_a7("/>")
|
|
|
|
, __end_quote = Bry_.new_a7("\">")
|
|
|
|
, __inline_quote = Bry_.new_a7("\"/>")
|
|
|
|
, Space_2 = Bry_.new_a7(" ")
|
2015-07-13 01:10:02 +00:00
|
|
|
|
2015-11-23 02:39:33 +00:00
|
|
|
, A_mid_id = Bry_.new_a7("\" id=\"xolnki_")
|
2015-07-13 01:10:02 +00:00
|
|
|
, Div_bgn_open = Bry_.new_a7("<div ")
|
|
|
|
|
2015-08-03 04:10:03 +00:00
|
|
|
, Img_bgn = Bry_.new_a7("<img src=\"")
|
|
|
|
, Span_bgn_open = Bry_.new_a7("<span")
|
|
|
|
, Span_end = Bry_.new_a7("</span>")
|
|
|
|
, Span_bgn = Bry_.new_a7("<span>")
|
2015-07-13 01:10:02 +00:00
|
|
|
|
|
|
|
, Pre_bgn = Bry_.new_a7("<pre>"), Pre_end = Bry_.new_a7("</pre>")
|
|
|
|
, Pre_bgn_open = Bry_.new_a7("<pre")
|
|
|
|
, Pre_bgn_overflow = Bry_.new_a7("<pre style=\"overflow:auto\">")
|
|
|
|
|
|
|
|
, Code_bgn_closed = Bry_.new_a7("<code>")
|
|
|
|
, Code_bgn_open = Bry_.new_a7("<code")
|
|
|
|
, Code_end = Bry_.new_a7("</code>")
|
|
|
|
, Id_atr = Bry_.new_a7(" id=\"")
|
|
|
|
, Style_atr = Bry_.new_a7(" style=\"")
|
|
|
|
, Atr_xowa_title_bry = Bry_.new_a7(Atr_xowa_title_str)
|
|
|
|
;
|
|
|
|
public static final int Nbsp_int = 160;
|
2015-11-09 04:48:07 +00:00
|
|
|
public static String Escape_apos(String s) {return String_.Replace(s, "'", "\"");}
|
2015-07-13 01:10:02 +00:00
|
|
|
}
|