mirror of
https://github.com/gnosygnu/xowa.git
synced 2025-05-31 22:44:34 +00:00
Math: Increment math uid [#375]
This commit is contained in:
parent
5c724dc93d
commit
a70131254f
@ -48,6 +48,7 @@ public class Xoae_page implements Xoa_page {
|
|||||||
public void Xtn_gallery_packed_exists_y_() {html.Xtn_gallery_packed_exists_y_();}
|
public void Xtn_gallery_packed_exists_y_() {html.Xtn_gallery_packed_exists_y_();}
|
||||||
public boolean Xtn__timeline_exists() {return false;} // drd always sets timeline
|
public boolean Xtn__timeline_exists() {return false;} // drd always sets timeline
|
||||||
public boolean Xtn__gallery_exists() {return false;} // drd does not need to set gallery.style.css
|
public boolean Xtn__gallery_exists() {return false;} // drd does not need to set gallery.style.css
|
||||||
|
public int Xtn__math_uid__next() {return xtn__math_uid++;} private int xtn__math_uid;
|
||||||
public Xoa_kv_hash Kv_data() {return kv_data;} private final Xoa_kv_hash kv_data = new Xoa_kv_hash();
|
public Xoa_kv_hash Kv_data() {return kv_data;} private final Xoa_kv_hash kv_data = new Xoa_kv_hash();
|
||||||
private Guid_adp page_guid;
|
private Guid_adp page_guid;
|
||||||
public Guid_adp Page_guid() {
|
public Guid_adp Page_guid() {
|
||||||
@ -83,6 +84,7 @@ public class Xoae_page implements Xoa_page {
|
|||||||
hdump.Clear();
|
hdump.Clear();
|
||||||
wtxt.Clear();
|
wtxt.Clear();
|
||||||
kv_data.Clear();
|
kv_data.Clear();
|
||||||
|
xtn__math_uid = 0;
|
||||||
|
|
||||||
lnki_list.Clear();
|
lnki_list.Clear();
|
||||||
file_math.Clear();
|
file_math.Clear();
|
||||||
|
@ -38,7 +38,7 @@ public class Xoh_page_wtr_mgr_tst {
|
|||||||
, "-{zh-hans:A;zh-hant:B;}-"
|
, "-{zh-hans:A;zh-hant:B;}-"
|
||||||
), String_.Concat_lines_nl_skip_last
|
), String_.Concat_lines_nl_skip_last
|
||||||
( "<span id='xowa_math_txt_0'>x_{1}-1</span>" // not converted
|
( "<span id='xowa_math_txt_0'>x_{1}-1</span>" // not converted
|
||||||
, "<span id='xowa_math_txt_0'>x-{1+2}-1</span>" // not converted
|
, "<span id='xowa_math_txt_1'>x-{1+2}-1</span>" // not converted
|
||||||
, "A" // converted
|
, "A" // converted
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class Xomath_html_wtr {
|
|||||||
if (scrubbed_js != null) math_bry = scrubbed_js; // js found; use clean version; DATE:2013-08-26
|
if (scrubbed_js != null) math_bry = scrubbed_js; // js found; use clean version; DATE:2013-08-26
|
||||||
|
|
||||||
// if latex, (a) calc md5 and url; (b) write <img> or add to queue
|
// if latex, (a) calc md5 and url; (b) write <img> or add to queue
|
||||||
int uid = page.File_math().Count();
|
int uid = page.Xtn__math_uid__next();
|
||||||
if (is_latex) {
|
if (is_latex) {
|
||||||
byte[] math_src = subst_mgr.Subst(math_bry);
|
byte[] math_src = subst_mgr.Subst(math_bry);
|
||||||
byte[] md5 = md5_wkr.Hash_bry_as_bry(math_src);
|
byte[] md5 = md5_wkr.Hash_bry_as_bry(math_src);
|
||||||
|
Loading…
Reference in New Issue
Block a user