1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-09-28 22:40:50 +00:00
Commit Graph

916 Commits

Author SHA1 Message Date
gnosygnu
1e254caa79 Html_dump: Synchronize Xol_name_mgr [#549] 2019-08-14 08:03:20 -04:00
gnosygnu
41e9fc1287 Release: v4.6.4.1908 2019-08-14 08:01:00 -04:00
gnosygnu
be5c65c24c User.Cfg: Ignore duplicate keys in user cache [#534] 2019-08-11 14:28:51 -04:00
gnosygnu
e213d123f8 Search.Suggest: Move highlighting code out of cache pathway to js_wtr [#538] 2019-08-11 08:33:17 -04:00
gnosygnu
dee491a684 HTTP Server: Remove trailing new line else POST log messages will show up with extra blank line [#537] 2019-08-11 08:02:10 -04:00
gnosygnu
2ef6211e87 HTTP Server: Fix NullPointerException when restarting HTTP_Server and going directly to search suggest [#537] 2019-08-11 08:00:49 -04:00
gnosygnu
6449368800 HTTP_Server: Move call to fsys_hack for mild performance improvement [#524] 2019-08-10 17:35:45 -04:00
gnosygnu
06afe7a7b1 Html_dump: Add configuration to show WIKITEXT / HTML indicators in top-right [#525] 2019-08-10 17:17:50 -04:00
gnosygnu
a421703fb1 HTTP_Server: Generalize file:///.*/file/.* logic [#524] 2019-08-10 08:17:39 -04:00
gnosygnu
19c50b94be Release: v4.6.3.1908 2019-08-04 23:35:48 -04:00
gnosygnu
b350d95206 HTTP Server: Add search-suggest [#489] 2019-08-04 21:25:04 -04:00
gnosygnu
f5abfa11da HTTP Server: Append url_args to page [#489] 2019-08-03 17:33:04 -04:00
gnosygnu
66039fc9b3 HTTP_Server: Temporary fix to handle broken links and images in 2019-05 enwiki [#524] 2019-08-03 10:04:11 -04:00
gnosygnu
a1da02a99f HTTP_Server: Add initial implementation for post-processing HTML to change to /fsys/ etc [#524] 2019-08-03 10:00:40 -04:00
gnosygnu
a51906bf4b Make: Update wiki domains for 2019-06 Wikidata [#528] 2019-07-31 23:31:20 -04:00
gnosygnu
f38930b63a Xomw.Preprocessor: Remove deleted classes [#508] 2019-07-29 21:41:58 -04:00
gnosygnu
0854cf9ba1 Xomw.Preprocessor: Integrate rest of Preprocessor_Hash tests [#508] 2019-07-28 10:42:02 -04:00
gnosygnu
9dcc571fc5 Release: 4.6.2.1907 2019-07-25 21:51:41 -04:00
gnosygnu
dea0556df5 Xomw.Preprocessor: Add XomwPPDStackElement [#508] 2019-07-24 22:17:21 -04:00
gnosygnu
5c8b70fd76 Mass_parse: Use page_cache hashCode, not wiki hashCode [#514] 2019-07-22 22:38:17 -04:00
gnosygnu
4547fa541f Dev: Move XomwEnv.NewTest to XomwEnv_fxt.NewTest [#512] 2019-07-22 21:57:47 -04:00
gnosygnu
9bc2bd400c Dev: Rename test files to use '_tst' and '_fxt' convention [#512] 2019-07-22 21:51:24 -04:00
gnosygnu
0181a42d3d Xomw.Preprocessor: Add initial unit tests for DOM [#508] 2019-07-21 22:09:21 -04:00
gnosygnu
989ccde83a Sqlite: Add option for read-only detection [#509] 2019-07-19 07:14:24 -04:00
gnosygnu
7f76d8128d Xomw.Preprocessor: Start integrating Preprocessor_Hash [#508] 2019-07-11 23:17:06 -04:00
gnosygnu
b65fda764f Luaj: Support PCRE character definitions for Luaj Regex [#502] 2019-07-01 14:09:31 -04:00
gnosygnu
5055f82d21 Scribunto: Print dbg arguments to console [#506] 2019-06-30 14:36:40 -04:00
gnosygnu
e3dce04680 Scribunto: Adjust index position correctly for ucs-2 strings [#506] 2019-06-30 14:28:46 -04:00
gnosygnu
0bfacb2ea5 Scribunto: Add frame_ttl to all Xot_invk_tkn [#503] 2019-06-29 22:29:15 -04:00
gnosygnu
9da8b4dde8 Add gplx.xowa.mediawiki source to gplx.xowa [#508] 2019-06-29 10:18:43 -04:00
gnosygnu
5d886501e8 Language: Escape left-to-right / right-to-left marks in names.json ('\xE2\x80\x8E' to '\u200E') [#501] 2019-06-23 21:35:21 -04:00
gnosygnu
d4a28d3ffe Wikibase: Add qualifiers-order to GetEntityStatements [#374] 2019-06-22 21:53:07 -04:00
gnosygnu
2526b677fa Scribunto: Format date correctly for years with less than 4 digits (EX: +0065 -> 65 x> 2065) [#500] 2019-06-22 17:19:58 -04:00
gnosygnu
334bb0a6d0 Xtn.SyntaxHighlight: Add 'class=pretty-print lang-{lang_name}' if 'lang' is passed [#498] 2019-06-22 08:43:13 -04:00
gnosygnu
cbae5d55bb Xtn.SyntaxHighlight: Highlight lines if 'highlight' is passed but 'line' is not [#498] 2019-06-22 08:17:11 -04:00
gnosygnu
a01e7409eb Mass_parse: Change page_cache to LRU cache [#483] 2019-06-21 23:02:49 -04:00
gnosygnu
0cfb0b19ad Parser: Do not parse '&#x;' as byte 0 [#494] 2019-06-16 15:38:56 -04:00
gnosygnu
d812b21dec Add comment for /LocalNames/ support [#388] 2019-06-11 07:10:29 -04:00
gnosygnu
70d845f438 Xtn.Cldr: Check CldrNames for IsKnownLanguageTag [#388] 2019-06-11 06:49:06 -04:00
gnosygnu
8ab9bc5444 Category: Replace UNION with sequential loading from each catlink db [#268] 2019-06-09 06:58:16 -04:00
gnosygnu
c459454da3 Allow hxtn command to be run multiple times during xomp_resume [#482] 2019-06-07 21:50:18 -04:00
gnosygnu
c7f54287af Html: Change self-link pages from <b> to <a class='mw-selflink selflink'> [#478] 2019-06-02 21:11:51 -04:00
gnosygnu
3852d4762b HttpServer: Navigate to an error page for invalid titles like Earth] [#480] 2019-06-02 18:10:48 -04:00
gnosygnu
43cc4b15e8 Json: Parse surrogate-pairs correctly in unicode-escaped strings [#487] 2019-06-02 16:43:39 -04:00
gnosygnu
641a17621f Json: Skip forward by 5 characters, not 4 for unicode sequences [#486] 2019-06-02 14:31:04 -04:00
gnosygnu
a6ce48fffa Remove trailing whitespace [#482] 2019-06-02 13:05:13 -04:00
gnosygnu
491d1905c9 Scribunto: Ignore snak if novalue [#481] 2019-06-02 13:04:49 -04:00
gnosygnu
3d9491e2de Xtns.TemplateStyles: Cache TemplateStyles for HTML databases [#482] 2019-06-02 12:50:56 -04:00
gnosygnu
fbe158537e Fix build failing due to mis-named _fxt class [#476] 2019-06-02 11:32:57 -04:00
gnosygnu
17da6dc17f Fix build failing due to mis-named _fxt class [#476] 2019-06-02 10:07:40 -04:00
gnosygnu
b48b6def4e Xtn.Translate: Add #translation function with no implementation [#445] 2019-05-26 09:18:11 -04:00
gnosygnu
ee03d79536 Scribunto: Set frame title for pages when invoking Scribunto code [#476] 2019-05-25 17:19:47 -04:00
gnosygnu
cca043dff6 Do not wipe table upon initialization, else will lose data after xomp_resume [#456] 2019-05-24 19:31:11 -04:00
gnosygnu
05e8c11338 Scribunto: Apply namespace argument only if in main namespace [#473] 2019-05-22 22:36:15 -04:00
gnosygnu
b74ca77786 ParserFunctions: Increase precedence of E over ln and other operations [#397] 2019-05-19 11:08:08 -04:00
gnosygnu
42dbaff1d2 Scribunto: Encode key / val in GetUrl [#465] 2019-05-18 17:22:42 -04:00
gnosygnu
648cd4944a Remove unused invk branch; Update tests [#460] 2019-05-12 23:42:42 -04:00
gnosygnu
c07e6e25b5 Parser: Change encoding of html id to encode fewer characters [#462] 2019-05-12 23:31:48 -04:00
gnosygnu
ba35901865 Parser: Parse html in internal link captions [#460] 2019-05-12 20:09:51 -04:00
gnosygnu
4d9072830c HTTP Server: Parse links with trailing slash [#459] 2019-05-11 23:45:51 -04:00
gnosygnu
c94090cd09 Parser: Add test for djvu [#440] 2019-05-11 11:00:08 -04:00
gnosygnu
31c6576b50 Parser: Handle UTF-8 characters in attribute keys / values [#457] 2019-05-11 10:55:37 -04:00
gnosygnu
3a748eea32 Add comment to clarify that NULL content should return NULL [#450] 2019-05-08 06:40:52 -04:00
gnosygnu
cf94f252e9 Make: Add xomp_stats to track time per page (and other attributes) [#456] 2019-05-08 06:35:10 -04:00
gnosygnu
4e920af183 Fix broken gmatch test; Fix broken maven build 2019-04-28 18:29:57 -04:00
gnosygnu
f860edf064 Scribunto: Use Luaj for pattern-matching (instead of Java Regex) [#413] 2019-04-28 17:31:33 -04:00
gnosygnu
4a1b2e25c0 Parser: Comment|Terminate comment if new-line found [#437] 2019-04-27 09:00:30 -04:00
gnosygnu
f895259be6 Wikibase: Add entity-type for lexeme so that 2019-04 wikidata jsons don't fail 2019-04-26 22:27:36 -04:00
gnosygnu
42953aaa0f MassParse: Fix multi-threaded issues b/c wbase caches aren't locked 2019-04-26 22:26:54 -04:00
gnosygnu
74b63d5f08 Test: Add utility core.Page_url for easier logging; also do not run cfg during tests 2019-04-26 22:26:00 -04:00
gnosygnu
1cde843264 Project: Rename test classes for xowa_maven script 2019-04-26 22:24:44 -04:00
gnosygnu
4909799a67 Refactor: Rename *_test.java files to *_mock.java files [#427] 2019-04-07 21:26:54 -04:00
gnosygnu
f22a0cca43 Refactor: Remove unnecessary junit import [#427] 2019-04-07 21:14:13 -04:00
gnosygnu
09d9f93d20 Parser.Wikibase: Retrieve by label if pid is not present; also, return pid, not label [#354] 2019-04-07 12:27:50 -04:00
gnosygnu
623c7a129e Fix broken Luaj jar [#419] 2019-04-03 00:19:01 -04:00
gnosygnu
cc8b9810a7 Parser.Tidy: Add vnu as additional tidy engine [#417] 2019-04-01 23:50:26 -04:00
gnosygnu
31c7604f03 Scribunto: Add initial support for LuaJ StringLib as replacement for Regex [#413] 2019-04-01 22:34:45 -04:00
gnosygnu
2fc03f6211 Parser.TemplateStyles: Check if title is null [#416] 2019-04-01 00:13:30 -04:00
gnosygnu
581aa5123c Parser.Wikibase: Return null instead of empty string if invalid title passed to getEntityId [#415] 2019-04-01 00:00:05 -04:00
gnosygnu
8c1f30039b Css: Change css jump-to class from 'mw-navigation' to 'mw-head' [#394] 2019-03-30 10:08:20 -04:00
gnosygnu
61cc5e89a7 Release: v4.6.1.1903 [#404] 2019-03-26 22:52:55 -04:00
gnosygnu
7bcbdabbfc Htxt: Extract img.src data [#404] 2019-03-26 22:26:26 -04:00
gnosygnu
04c7326b1d Release: v4.6.0.1903 [#403] 2019-03-24 18:13:15 -04:00
gnosygnu
2dfa751958 Parser.Lnki: Treat keywords as caption if not File namespace or if keyless [#303] 2019-03-24 10:26:58 -04:00
gnosygnu
ef0300dfeb Make: Rewrite pagelink builder [#396] 2019-03-24 07:54:33 -04:00
gnosygnu
14d978e2af Html: Reformat HTML for jump-to div [#394] 2019-03-20 22:46:14 -04:00
gnosygnu
9b5d585750 Scribunto: Pull 0th argument if %1 is specified and 0 groups [#393] 2019-03-20 21:41:54 -04:00
gnosygnu
71232e4402 Gui: Fix Read / Edit / HTML not working by keyboard shortcuts / in personal wikis [#392] 2019-03-20 08:33:30 -04:00
gnosygnu
ab4cbbd3c1 Htxt: Do not redlink interwiki links [#391] 2019-03-20 02:58:37 -04:00
gnosygnu
ca8c4ce5a4 Htxt: Show Table of Contents [#390] 2019-03-20 02:42:45 -04:00
gnosygnu
82bee2e877 Html: Write full page url to log file, not just page title [#387] 2019-03-20 01:44:22 -04:00
gnosygnu
4f22548121 Transpiler: Misc whitespace changes 2019-03-20 01:15:42 -04:00
gnosygnu
ad317bd90e Html_dump: Lock calls to cat_core Select [#389] 2019-03-20 01:12:47 -04:00
gnosygnu
a94a9f0c7f Cite: Change Cite to follow MediaWiki behavior for super-scripting [#382] 2019-03-18 23:11:26 -04:00
gnosygnu
41deb3c0c1 Language: Update language list [#384] 2019-03-17 19:02:12 -04:00
gnosygnu
8ef5854eb7 Scribunto: Iterate regx by codepoint not by bytes [#383] 2019-03-16 23:50:26 -04:00
gnosygnu
7d747b6d28 Htxt: Register gallery images [#370] 2019-03-10 20:30:23 -04:00
gnosygnu
91a100f154 Parser: Fix anchorencode for trailing lnki [#373] 2019-03-10 10:09:08 -04:00
gnosygnu
992cde7e71 Update comments [#377] 2019-03-09 23:25:01 -05:00
gnosygnu
f40f227454 Htxt: Set src_bgn at start of block, not after video element [#369] 2019-03-07 07:14:26 -05:00
gnosygnu
790e82ac9e Scribunto: Classify 3 byte UTF-8 sequences as 1 Java char, not 2 Java chars [#377] 2019-03-04 23:16:43 -05:00
gnosygnu
beab14117e Parser.Lnke: Escape ampersand in external links [#371] 2019-03-03 21:20:34 -05:00
gnosygnu
a70131254f Math: Increment math uid [#375] 2019-03-03 16:39:47 -05:00
gnosygnu
5c724dc93d Timeline: Fix many minor timeline bugs [#368] 2019-03-03 15:33:04 -05:00
gnosygnu
3488084eca Scribunto: Use PHP.empty for noCommafy [#372] 2019-03-02 09:00:02 -05:00
gnosygnu
3fd759b020 Scribunto: Do not fail in ustring.find if negative bgn is large [#366] 2019-02-24 16:14:34 -05:00
gnosygnu
91cbb34fa5 Lang: Update comments for fallbacks [#330] 2019-02-17 20:14:16 -05:00
gnosygnu
c383f2a231 Language: Check if lang exists in fallback hash before adding it [#330] 2019-02-17 19:22:26 -05:00
gnosygnu
81ea765714 Dev: Downgrade 'no cldrName file exists for lang' to session.txt [#351] 2019-02-12 23:04:58 -05:00
gnosygnu
b822997638 Dev: Downgrade 'lang does not have a cldrName file' to session.txt [#351] 2019-02-12 22:52:02 -05:00
gnosygnu
be4d2fdfb4 Lang: Add more error message detail to track 'counts do not match' [#330] 2019-02-12 22:46:15 -05:00
gnosygnu
a5f8b6e482 Wikidata: Trim whitespace from start and end of qid in GetEntity [#363] 2019-02-12 22:19:52 -05:00
gnosygnu
21309d66be Wikidata: Trim whitespace from start and end of property keys [#361] 2019-02-11 22:36:28 -05:00
gnosygnu
298c83a806 Dev: Log page for messages of form 'wbase:could not find datatype for pid' [#351] 2019-02-10 14:13:17 -05:00
gnosygnu
2fa5d9bc03 Dev: Downgrade missing-cldrName-file message to session.txt [#351] 2019-02-10 09:10:55 -05:00
gnosygnu
78e8db95b9 Dev: Log page url not page ttl when missing wikidata doc [#351] 2019-02-10 09:05:31 -05:00
gnosygnu
e80dfc6adc Dev: Add synchronized block when loading lang [#330] 2019-02-10 08:33:58 -05:00
gnosygnu
571f0a2388 Dev: Release bry_bfr in Tag_html_wkr_basic [#351] 2019-02-05 22:37:45 -05:00
gnosygnu
ba40cf6c69 Htxt: Add comments for htxt [#320] 2019-02-04 23:32:12 -05:00
gnosygnu
cde0163ae7 Xtn.Cldr: Fix missing lang returning Cldr_name_file.Empty instead of null [#349] 2019-02-04 23:25:38 -05:00
gnosygnu
ebfd7a8352 Scribunto: Add 'dotted' form of file path [#353] 2019-02-04 22:11:45 -05:00
gnosygnu
cd56234e28 HTML Databases: Show redlinks for htxt [#320] 2019-02-03 23:48:23 -05:00
gnosygnu
4c47bb8793 HTML Databases: Allow Hzip_none for saving / loading images [#320] 2019-02-02 09:35:12 -05:00
gnosygnu
739d302850 Scribunto: Return ['en'] not [] if unknown language [#340] 2019-02-01 23:12:24 -05:00
gnosygnu
5daf74516a Dev: Convert file-names with underscores to keys; EX: En_gb -> en-gb [#349] 2019-02-01 22:51:04 -05:00
gnosygnu
c32a4ae253 Xtn.Popups: Update page title on Scrib_core when generating popup [#338] 2019-02-01 22:05:42 -05:00
gnosygnu
8b13930d30 Dev: Add comment to explain Id_xowa_wikidata [#348] 2019-01-31 23:46:14 -05:00
gnosygnu
46ec06986e Dev: Remove previous items with 'rm -rf' [#345] 2019-01-31 23:18:36 -05:00
gnosygnu
560e3c9685 Dev: Extend lock scope over Get_by_exact_id_or_null [#347] 2019-01-29 23:58:30 -05:00
gnosygnu
5fa8c20561 Scribunto: Change fetchForLanguages to return a key of languageCode, not integer-id [#331] 2019-01-27 21:25:30 -05:00
gnosygnu
4626203f16 Scribunto: Handle anypos flag [#337] 2019-01-27 21:18:20 -05:00
gnosygnu
0ecb31575f Wikidata: Exit early if invalid title [#333] 2019-01-21 00:38:16 -05:00
gnosygnu
aaa402119b Wikidata: Add 'P' to property link [#332] 2019-01-21 00:27:52 -05:00
gnosygnu
5d8a139903 Scribunto: Change default for fetchLanguageName from 'mw' to null [#331] 2019-01-21 00:16:23 -05:00
gnosygnu
f1c8fb3404 Scribunto: Allow strings and other primitive values for jsonEncode / jsonDecode [#329] 2019-01-13 17:33:35 -05:00
gnosygnu
8412119902 File: Suppress mismatch_exts for opus file_type [#295] 2019-01-10 23:26:37 -05:00
gnosygnu
8cd39534a6 Html: Change message from 'was last modified' to 'was last edited' [#321] 2019-01-10 23:12:09 -05:00
gnosygnu
85478ad7e7 Dev: Do not log 'inserting cat_link row' [#322] 2019-01-10 21:53:41 -05:00
gnosygnu
42d15b726c HTML Databases: Make plain-text parser thread-safe; Simplify code; Fix gallery not working [#320] 2019-01-06 21:27:33 -05:00
gnosygnu
2b4320b302 HTML Databases: Fix loading of plain-text pages; Normalize some behavior in page-sync code [#320] 2019-01-05 11:50:11 -05:00
gnosygnu
9e5a13f54f Category: Pass count into category msg [#316] 2019-01-01 18:18:07 -05:00
gnosygnu
e250331e97 HTTP Server: Retain new-line when processing form-data [#315] 2018-12-31 07:09:36 -05:00
gnosygnu
cc502c872f TemplateStyles: Add templatestyles to html.head [#314] 2018-12-30 23:25:29 -05:00
gnosygnu
e65d9268d6 Html: Change div_view_fmtr to be sitename aware [#313] 2018-12-29 10:12:28 -05:00
gnosygnu
b86228d6f2 Minor refactorings 2018-12-29 09:36:32 -05:00
gnosygnu
87cb6b5a01 Html: Do not hzip anchors with invalid href [#311] 2018-12-27 09:41:00 -05:00
gnosygnu
1f2b73699b Html: Standardize spacing between subpage entries [#308] 2018-12-27 08:46:53 -05:00
gnosygnu
1d54b8a756 Parser: Fix inconsistent html-encoding of {{#tag}} calls [#312] 2018-12-25 12:30:21 -05:00
gnosygnu
54ad1d697d Html: Replace underscores with spaces in subpages [#308] 2018-12-23 21:49:57 -05:00
gnosygnu
43ec6a8163 Css: Trim whitespace from start and end of css-related urls [#307] 2018-12-23 21:24:36 -05:00