mirror of
https://github.com/gnosygnu/xowa.git
synced 2025-06-13 12:54:14 +00:00
52 lines
1.8 KiB
Java
52 lines
1.8 KiB
Java
/*
|
|
XOWA: the XOWA Offline Wiki Application
|
|
Copyright (C) 2012-2017 gnosygnu@gmail.com
|
|
|
|
XOWA is licensed under the terms of the General Public License (GPL) Version 3,
|
|
or alternatively under the terms of the Apache License Version 2.0.
|
|
|
|
You may use XOWA according to either of these licenses as is most appropriate
|
|
for your project on a case-by-case basis.
|
|
|
|
The terms of each license can be found in the source code repository:
|
|
|
|
GPLv3 License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-GPLv3.txt
|
|
Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
|
|
*/
|
|
package gplx.xowa.htmls; import gplx.*; import gplx.xowa.*;
|
|
public class Xoh_consts {
|
|
public static final String
|
|
Atr_xowa_title_str = "xowa_title"
|
|
, Img_w_str = "width"
|
|
, Img_h_str = "height"
|
|
;
|
|
public static final byte[]
|
|
__end = Bry_.new_a7(">")
|
|
, __inline = Bry_.new_a7("/>")
|
|
, __end_quote = Bry_.new_a7("\">")
|
|
, __inline_quote = Bry_.new_a7("\"/>")
|
|
, Space_2 = Bry_.new_a7(" ")
|
|
|
|
, A_mid_id = Bry_.new_a7("\" id=\"xolnki_")
|
|
, Div_bgn_open = Bry_.new_a7("<div ")
|
|
|
|
, 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>")
|
|
|
|
, 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;
|
|
public static String Escape_apos(String s) {return String_.Replace(s, "'", "\"");}
|
|
}
|