Commit Graph

364 Commits

Author SHA1 Message Date
Amir E. Aharoni
3c10659ef4 Update language search index
Adds languages recently added to core MediaWiki
and CLDR local names: knc, mdh, maw.

Bug: T356144
Bug: T377797
Bug: T377851
Change-Id: I3f9d0c02640fb0e27b3539cf71ee4702e3f9ee58
2024-10-28 10:42:04 -04:00
Amir E. Aharoni
800a1b6df6 Update language search index and add alias for dtp
Bug: T375891
Change-Id: I367ac4f2a2f0c356a862bf642248c5a8c64d2d82
2024-10-21 17:35:46 +00:00
Amir E. Aharoni
5ad9ee98e8 Add Hebrew search aliases for Tigre and Tigrinya
The Tigre and Tigrinya languages are spoken by thousands
of people in Israel, who have a more convenient access
to Hebrew keyboards than to Ethiopic keyboards.
The situation is further complicated by the fact that
the languages' names in the Hebrew alphabet have several
variant spellings, especially with regard to the first letter,
which is the most important one for searching.

This patch ensures that the languages are conveniently
findable in any Hebrew-script spelling.

(Every variant is on a separate line because
otherwise code editors mess up RTL text display.)

Bug: T375052
Change-Id: I8a6414718802f091ca1df9367b2dbc170cd568c4
2024-10-15 12:01:44 +00:00
Amir E. Aharoni
dfa087f611 Update jquery.uls from upstream and update search index
Updating jquery.uls to
8b10421221

Add:
* Acholi (ach)
* Lango (laj)
* Mansi (mns)

Update autonym:
* Komering

Update Manchu configuration (bug T284043).

Change-Id: Ide7eba5690992390413112d4764b9f2a83b5ca58
2024-10-02 18:32:26 -04:00
Amir E. Aharoni
152d3df6ae Restore "tonga" search test and update language search index
This test was removed in I62f6c9da90074258f13b7fb281e777b3bcf5d17d
to allow the easy updating of local English language names in
the CLDR extension in I2c09d409567efef2e0498cde15ecead4c438c657

Now this test is restored with the new name of the Tonga (toi)
language.

This also updates the search index with the languages
whose English names were updated in
I2c09d409567efef2e0498cde15ecead4c438c657

Bug: T374785
Depends-On: I2c09d409567efef2e0498cde15ecead4c438c657
Change-Id: I922570d7bf0fb00740c1411c36e2d2e889df4c9b
2024-10-02 20:39:32 +00:00
Amir E. Aharoni
e9165cc37d Update language search index
Incorporates local language names that were recently added
to the CLDR extension.

Also remove a test case for "tonga". It checks a disambiguation
that will be done differently starting from
I2c09d409567efef2e0498cde15ecead4c438c657

The test will be restored in a subsequent patch
with a different language name.

Bug: T374785
Depends-On: I9b5b7aa91532eee0a1ff6ab868b3cb5f95c4590b
Change-Id: I62f6c9da90074258f13b7fb281e777b3bcf5d17d
2024-10-02 19:28:36 +00:00
Amir E. Aharoni
3e1ab196ea Update jquery.uls, jquery.ime, and search index
jquery.ime:
* Fixes in Indonesian Jawi keyboard
* Add a keyboard for languages with click consonants
* Add a keyboard for Krio

Updating to:
d82b0b1bce

jquery.uls:
* Update language-data:
  https://github.com/wikimedia/jquery.uls/pull/491

Updating to:
52f6ee5180

Change-Id: I3e0a1b0d5e319335d053b94c84589e3ca6ce2d7e
2024-09-24 23:32:40 -04:00
Amir E. Aharoni
bf55f0287e Update jquery.ime and jquery.uls and update search index
jquery.ime:
* Add Jju tilde
* Rename Tigre (tig) autonym
* Enable Cameroon keyboard for Ngiemboon (nnh)
* Update Javanese (Latin) keyboard

Updating to
76a0db24b3

jquery.uls:
* Localization updates
* Update language-data to
  https://github.com/wikimedia/jquery.uls/pull/489

Bug: T371985
Bug: T373741
Bug: T373561
Bug: T373928
Bug: T373931
Change-Id: Ibb61084a93ad54df1531dde96ff29ab8fbbd468f
2024-09-05 20:49:07 -04:00
Amir E. Aharoni
b9438f9f92 Update jquery.uls, jquery.ime, and search index
jquery.ime:
* Enable Akan keyboards for Abron (abr).
* Make the Sarjom baha layout default for Santali
  (Bug T372146)

jquery.uls: Localization and language-data updates.
See 4d90e5e165

Bug: T372146
Change-Id: Iffa6989d0caa828136870ac2f5e93b70fd91d08a
2024-08-26 16:01:26 -04:00
Fomafix
a2087c0492 Use $this->getConfig()->get instead of global variable
Also use MainConfigNames.

Change-Id: I4d41783ef4055afa5299acac295aef079f453999
2024-08-19 10:57:41 +00:00
Amir E. Aharoni
349d2737db Update language search index
An automatic update with recent
changes from the CLDR extension.

Change-Id: I3c17e738382ca890269b03dbdb95aea60b98faf3
2024-07-25 13:07:39 -04:00
Amir E. Aharoni
58908cdb1b Add search aliases for recently-added languages
Adding a test to ensure that both Tongan (to) and
Chitonga can be found by searching for "tonga".
Other cases are trivial and don't require a test.

Bug: T368046
Bug: T368856
Bug: T369464
Change-Id: Ia58f593729de1302749eeba349979a1a23e4eb4c
2024-07-23 17:00:43 -04:00
Amir E. Aharoni
3e15d5392b Add a search alias for Tai Nuea (tdd)
Bug: T367377
Change-Id: Id2bd59b97376af6b19a571be377b3f34ec03a4a5
2024-07-23 11:09:02 -04:00
Amir E. Aharoni
07f2349c17 Add search alias for Palembang (Musi)
Bug: T364291
Change-Id: I6514e446a6b2e5cb85dc8654942a00406127801f
2024-07-23 15:04:15 +00:00
Amir E. Aharoni
f29525185f Update language search index
* Add languages that were recently added to language-data.
* Replace mni-beng names with mni-mtei names
  (see bug T313883).

Change-Id: I2f47ecb678ba239fc09d7092fa0798eeba740524
2024-07-19 06:28:23 -04:00
Amir E. Aharoni
bd0cccacdf Update language search index
The changes are mostly automatic and add languages
that were recently added to language-data
or updated in the CLDR.

I went over the whole long diff and couldn't find
any issues that would affect the usage of the ULS
search box.

Tests are updated to reflect the current names,
but here, too, the language finding functionality
is not supposed to be affected.

Two kinds of tests were affected:
* The name of Hindi (Latin) in Malayalam: I removed
  the test because Hindi (Latin) is not used in
  MediaWiki anyway, so it doesn't matter.
* Some names of Chinese varieties. I updated
  the tests and also added aliases for languages
  whose names were changed, so that searching
  for "chinese" would find them (so it's good
  that we had those tests!).

Change-Id: I22344dadb0b01d7704ab7d76271ab27077daedb3
2024-07-17 20:20:08 +05:30
Abijeet
62ebf2e81f Update language name search database
Bug: T369059
Change-Id: I9c9475a2f4055dc419d9b454e67aac6ef35971a7
2024-07-05 00:00:14 +05:30
Fomafix
88b8176368 Use $this->getServiceContainer() in maintenance
Use
	$this->getServiceContainer()
instead of
	MediaWikiServices::getInstance()
in maintenance.

Change-Id: I61e57c5ab79a1cefad6e878be1dbd234139cfe96
2024-05-07 06:12:27 +00:00
Niklas Laxström
3367b51bbe Remove woff files
Bug: T318167
Change-Id: I54181a8ba084f0f1336dbe95389f046c9a987f2a
2024-05-04 14:56:46 +03:00
Kartik Mistry
17f182bb6a Update UnifrakturMaguntia fonts to v2017-03-19
Changes:
* Updated UnifrakturMaguntia fonts to 2017-03-19
* Updated upstream URL

Change-Id: Icf0b3ebc71f48709c84e032a676d093d163b1f80
2024-05-03 19:23:02 +00:00
Kartik Mistry
1df7379b96 Update AbyssinicaSIL to 2.201
Changes:
* Updated AbyssinicaSIL font to 2.201
* Updated upstream URL

Change-Id: Id993365d0b51c59f605a96d41528f5347b9bc5f8
2024-05-03 18:41:06 +05:30
albertoleoncio
468f6e396a Add NotoNastaliqUrdu font for Kashmiri Wikipedia
Bug: T334811
Change-Id: Icfaaa33d6ebc9ec233f4bcdcc1c37fa42e6e8aad
2024-05-03 13:27:02 +03:00
likibp
a86f166d90 Add Noto Serif Hentaigana font for Japanese Language
In the Japanese locale, add the following fonts to the Universal Language Selector's Web Fonts feature.

Font Name: Noto Serif Hentaigana
Version: v1.000
Download Site URL: https://github.com/notofonts/hentaigana

Bug: T347520
Change-Id: I70d9bab18c138ea786df1aaf2394450f1f7044ea
2024-05-03 09:17:44 +00:00
Abijeet
186c412bfb Update language name search database
Fix failing tests

Bug: T356848
Change-Id: I1f00894e310e386bf9e91e8c67df44e677601f0b
2024-04-23 11:45:14 +00:00
thiemowmde
7d5cb91cfe Use native str_contains/str_starts_with in a few more places
This makes the code quit a bit more readable, I believe.

Change-Id: I4aef30d5e20d095c421a13ad5104d64c71361c88
2024-04-04 08:58:37 +02:00
Niklas Laxström
814a62926a Language name search: don't match on short infix terms
These are often punctuation, prepositions, articles which add
more noise than useful matches.

Bug: T358862
Change-Id: I364ef629049471410cc1b3dd9b5df5de1515097b
2024-04-02 11:12:46 +00:00
Niklas Laxström
67067138a8 Update Language name search database
Updated tests to reflect external changes.

NB: These tests and code should be rewritten to use mocked data to only
verify the algorithm to avoid the need to update them when the real
data changes.

Change-Id: I537df34405eea23569621ad0c5a31dc9d336c1b0
2024-03-21 05:39:35 +00:00
Fomafix
65b2576bb0 Use namespaced MediaWiki\Extension\CLDR\LanguageNames
This change requires change I591628b98d16bfeecd32d157abc263be1036a71b
in extension cldr included in REL1_39 and above.

Change-Id: I6789961e4140e57e5f253fd2fbaeacf9860923e1
2024-02-29 08:33:24 +00:00
Amir E. Aharoni
8304433fb8 Remove unnecessary removal of LRM characters
It should have been done long ago, but slipped my mind.

Bug: T280435
Change-Id: I96c84c28217f436896654df6ea47019552af4faa
2024-02-05 22:26:03 -05:00
Abijeet
48de278a85 Update language name search database
Bug: T355104
Change-Id: If638c0137187b9015f2b3f46c5c7a46947688562
2024-01-21 16:25:13 +05:30
Amir E. Aharoni
e3daa8753b Add an alias for the Mon language (mnw)
Bug: T352776
Change-Id: I9a484cf4290e7927b0868756703076725cbf8b3b
2024-01-08 09:33:55 +00:00
Niklas Laxström
5a23ea4635 LanguageNameIndexer: Stop writing to a global
It has no effect anymore. I could not find easy way to achieve what
it is trying to do, so just making the script exit with an error if
custom languages are present.

Change-Id: I693503b4ec46e6ac3eb4a11f4ce065f960f2ec62
2023-10-26 06:41:54 +00:00
Abijeet
6d22f7d23e Update language name search database
Fix failing tests

Bug: T347847
Change-Id: I1c14f6aa805a3b102c70c1eb275812f8e83b02bc
2023-10-25 16:37:17 +00:00
Niklas Laxström
8a38906b8a Update Junicode font to 2.100
Bug: T253006
Change-Id: I7d02c91dec8200e26ebd7312ab87556b79cd806e
2023-10-17 16:19:53 +03:00
Niklas Laxström
ee42cf07bb Add AwamiNastaliqBold
Fixes: I1a50a699543ad6502e452f7be380419246c3b6b8
Change-Id: I336f137750efd1cfe2a0eb46c2e746d7c116b081
2023-09-17 10:06:21 +00:00
Niklas Laxström
f02dd2f72c Use Linux newlines for consistency
Fixes: I86870360f00e5fda48bc1fbc2da47f807318e137
Change-Id: I3db4dcb6b1a413abf1fa5177f19a3e996873bf73
2023-09-14 09:23:22 +00:00
Niklas Laxström
49f42b3daa Remove all TTF font files
The TTF files are not served or used for anything else than converting
them to woff and woff2 formats, so there is no need to store them in the
git repo. In case a new format comes along, we would need to fetch these
from the git history or from upstream sources.

Change-Id: Iedc9162011b3b37587a2a176949afde6878d122d
2023-09-13 14:15:33 +03:00
Stang
953ca0ad88 Add Tiro Bangla font for Bengali Language
Bug: T343658
Change-Id: I86870360f00e5fda48bc1fbc2da47f807318e137
2023-09-11 04:53:20 +00:00
Abijeet
7a6906604f Update language name search database
Bug: T340729
Change-Id: Ic7b39c6c143e1cd1ba08c4e5f2da9c06a57f25db
2023-07-05 13:44:07 +00:00
Niklas Laxström
08645aae8b Update AwamiNastaliq to 3.100
Add bold variant.

Change-Id: I1a50a699543ad6502e452f7be380419246c3b6b8
2023-05-17 12:24:15 +03:00
Niklas Laxström
3ac1c1b9ce Update Junicode to 1.003
Bug: T253006
Change-Id: I34321e7430b04c8a4dcd8cc07015e65e31cc3362
2023-05-17 12:03:08 +03:00
Niklas Laxström
124b1a0ba0 Update instructions for converting ttf files
Change-Id: I51d18bdfd86dcc4b5eb665efa1adeb7062a6f141
2023-05-17 11:39:07 +03:00
Niklas Laxström
744eeae6a1 Update Amiri font to 1.000
Bug: T335231
Change-Id: Ief092bf4ffd6e06f208db14b79a18ce944dc9e1b
2023-05-17 11:37:34 +03:00
Abijeet
6ae4b983a7 Update language name search database and related tests
Bug: T333822
Change-Id: Id5a2f1528e0ab009c8866c2237a827631adea0a9
2023-04-25 19:04:20 +05:30
Niklas Laxström
25a5691942 Update language name search index
Incorporates changes from CLDR 42 via the cldr extension update.

Change-Id: I944b159fd128386887dc389ff453dd8e49ff8401
2023-03-04 13:41:23 +00:00
Niklas Laxström
c4833878ec Update language name search index
Change-Id: Ic88c976e409a9f1ea0543365fc4493b1e2ef0cf1
2023-01-25 15:54:46 +02:00
Umherirrender
61256e25b7 Use LanguageNameUtils::AUTONYMS/SUPPORTED instead of hard coded value
Easier to spot the documentation what happen with this option

Change-Id: I977485c2cba0063b5bdee3724d9262b75341faec
2022-12-29 13:41:24 +01:00
Umherirrender
7ea30c85bf Replace deprecated Language::fetchLanguageNames
Bug: T325962
Change-Id: I8d5724cd9b79639a0b2001759a70b8d8106c74ee
2022-12-27 17:22:26 +01:00
Fomafix
e44e4c4c0c Remove phpcs exclude rules and update PHP code
Change-Id: Ie37deda368a4d163cf324988721033829ae8af77
2022-11-13 18:33:34 +00:00
Kartik Mistry
34c41a0e04 Add Western Punjabi to Nastaleeq font
Also, update fonts to 0.03 version.

Bug: T118677
Change-Id: I90e60c670fb3c655612bf9ac9b04edfd57dd7c85
2022-09-08 09:11:49 +00:00