# Change log/v4.5.2.1704

From XOWA: the free, open-source, offline wiki application

## v4.5.2.1704 (2017-04-26)

### Wiki

- Package: Publish 2017-04 English Wikipedia.

  Links: Wiki_setup/English_wikis

## PC

minor

- Full-text search: Tweak UI including consistently-sized wikis, borders around snips, and vertical-centering for snip num.

- Search: Include pages with scores of 10,000 or less.

  Example: list byzantine emperors; list latin proverbs.

- Scribunto.Common: Fix script error 'Country data' on many en.w game pages.

  Message: `=Module:CountryData:12 bad argument: string expected, got nil`
  Resolved by: Return error message if title is invalid.
  Links: https://en.wikipedia.org/wiki/Tetris

- Parser.Time: Fix script error 'Check date value in access date' on many en.w page.

  Message: `Check date values in: |access-date=`
  Resolved by: Ignore multiple years / multiple days when parsing date for #time function.
  Example: {{#time:Y-m-d|12 November 2016 2008}} {{#time:Y-m-d|2 12 November 2016}}.
  Links: https://en.wikipedia.org/wiki/Antipas,_Cotabato https://en.wikipedia.org/wiki/Paris

- Scribunto.Uniq: Handle '[convert invalid number]' on some en.w pages. {detected by khanhhung2512 }

  Resolved by: Add more support for UNIQ substitutions with extension tags.
  Links: https://en.wikipedia.org/Ethanol

- Scribunto.Uniq: Fix script errors for chart on a few dozen en.w pages.

  Message: `Module:Chart:212 group names should contain (2)`
  Resolved by: Change UNIQ marker to include quotes.
  Example: '\"`UNIQ--item-0-QINU`\"'.
  Links: https://en.wikipedia.org/Fokus_(magazine) https://en.wikipedia.org/wiki/Thin_film_solar_cell https://en.wikipedia.org/wiki/Economy_of_Greece

- Scribunto.Uniq: Fix script error on a few dozen en.w pages on American soccer.

  Message: `Unmatched close-bracket at pattern character 282`
  Resolved by: Replace xtag_bgn / xtag_end with UNIQ.
  Links: https://en.wikipedia.org/2015_San_Jose_Earthquakes_season

- Scribunto.Regex: Fix script error '=Module:fr-verb:249 Internal error: expected pronunciation' on many en.d page in French section.

  Message: `=Module:fr-verb:249 Internal error: expected pronunciation "tʁae" to end with "je"`
  Resolved by: If gsub_replace lua proc returns nothing, do not replace with empty string.
  Links: https://en.wiktionary.org/wiki/tracer https://en.wiktionary.org/wiki/bitter https://en.wiktionary.org/wiki/voir

- Luaj: Fix script error '=Module:zh-glyph:120 attempt to concatenate nil and string' on a few hundred en.d pages for Chinese chars.

  Message: `=Module:zh-glyph:120 attempt to concatenate nil and string` [broken since: stack]
  Resolved by: Add more logic for surrogate pairs (2-length chars).
  Links: https://en.wiktionary.org/wiki/儉 https://en.wiktionary.org/wiki/僮 https://en.wiktionary.org/wiki/僉 https://en.wiktionary.org/wiki/僅 https://en.wiktionary.org/wiki/佻

- Scribunto.Regex: Fix script error '=Module:ru-pron:827 Number of parts of speech' on a few dozen en.d page in Russian section.

  Message: `=Module:ru-pron:827 Number of parts of speech (4) should match number of words (5)`
  Resolved by: Add only first match for mw.ustring.match, not all of them.
  Links: https://en.wiktionary.org/wiki/действительное_причастие_настоящего_времени

- Parser.Table: Fix premature short paragraphs on some pages.

  Resolved by: Close previous paragraph when starting table.
  Example: [[A]] b\n{| -> <p>[[A]] b</p> x> <p>[[A]]\n<p>b.
  Links: https://en.wikipedia.org/wiki/Template_engine_(web)

- Wikibase.Coordinate: Reverse NS / EW direction for geocoordinates; also, standardize spacing / symbols for wikibase.

  Message: `=Module:Location map:353 Malformed coordinates value`
  Links: https://en.wikipedia.org/wiki/Hulme_Arch_Bridge https://www.wikidata.org/wiki/Q5936167 https://en.wikipedia.org/wiki/Paris

- Wikibase.Scribunto: Fix '{{#statements}}' showing up in page.

  Resolved by: Support #statements keyword.
  Example: {{#statements:P6|from=Q668}}.
  Links: https://en.wikipedia.org/wiki/India

- Scribunto.Site: Fix script error 'scn.wikipedia.org' on a few en.w page.

  Message: `=Module:Interwiki/data:42 could not find a host in URL 'scn.wikipedia.org'; please check your wiki's interwiki data`
  Resolved by: Use fully-qualified url for url property, not domain.
  Example: url -> https://scn.wikipedia.org/wiki/$1 x> scn.wikipedia.org.
  Links: https://en.wikipedia.org/wiki/Macaroon https://en.wikipedia.org/wiki/Academy_of_Music https://en.wikipedia.org/wiki/Tōkai_Nuclear_Power_Plant https://en.wikipedia.org/wiki/Country_lane

- Scribunto.Lang: Fix script error 'No name for language egy' on 1 en.w page.

  Message: `=Module:language:121 No name for the language egy could be found ;`
  Resolved by: Return 1st three letters of unknown language codes, not blank.
  Links: https://en.wikipedia.org/wiki/List_of_country-name_etymologies

- Parser.Xml: Fix script error 'Unable to convert section' on 1 en.w page.

  Message: `=Module:Decimals:10 Unable to convert "Expression error: Unrecognized word "section>"." to a number`
  Links: https://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact

- Parser.Date: Parse times with format of 'm/d/yyyy' where d == 13.

  Links: https://en.wiktionary.org/tongue-in-chic https://en.wiktionary.org/serve_up

- Personal_wikis: Do not prompt for upgrading to latest search database version when first using search.

  Resolved by: Create personal wikis with latest search database schema.

trivial

- Mass_parse: Do not fail when generating full-text search indexes.

- Mass_parse: Embed page_score in full-text search index.

- Scribunto.Regex: Demote message level of "regex is invalid" from warn to log.

  Links: https://en.wiktionary.org/仝

### XOWA

- Main page
- Screenshots
- Video
- Download XOWA
- Download wikis

### Getting started

- Requirements
- Installation
- Simple Wikipedia
- English Wikipedia
- Other Wikipedias

### Android

- Setup
- Video

### Help

- About
- Contents
- Media
- Feedback

### Blog

- Current

### Links

- Wikimedia dumps
- XOWA @ archive.org
- English Wikipedia

### Donate

- archive.org
- Wikipedia
- XOWA