Page MenuHomePhabricator

Set $linkTrail rule for Rusyn (rue)
Closed, DeclinedPublicFeature

Description

Please set a linktrail rule for the Rusyn language (MessagesRue.php). The current (fallback?) linktrail is incomplete.

The required character set is:
$linkTrail = '/^((?:[a-z]|а|б|в|г|ґ|д|е|є|ё|ж|з|і|ї|и|ы|й|к|л|м|н|о|п|р|с|т|у|ф|х|ц|ч|ш|щ|ю|я|ь|ъ|ѣ|ӱ|ô)+)(.*)$/sDu'

(feel free to correct the code as I edited an existing example without delving deeper into the mechanics)

Details

Related Changes in Gerrit:

Event Timeline

If you are curious and want to try making this configuration change yourself, please follow https://wikitech.wikimedia.org/wiki/Wikimedia_site_requests (section "Change the linktrail") and give it a try! Thanks.

Change 777401 had a related patch set uploaded (by MarcoAurelio; author: MarcoAurelio):

[mediawiki/core@master] MessagesRue.php: Add $linkTrail

https://gerrit.wikimedia.org/r/777401

@Engelseziekte Hello. @Amire80 has some questions regarding your proposed linktrail:

what is the source for these particular letters? Is this the standard alphabet?

Could you please clarify?

Thanks

Checking Rusyn language#Alphabet on Wikipedia, it would appear that the correct link trail should be:

$linkTrail = '/^([a-zaбвгґдеєёжзіїиыйклмнопрстуфхцчшщюяьъѣӱô]+)(.*)$/sDu';

Why not just put something along the lines of (\p{Cyrillic}|\p{Latin})?

Why not just put something along the lines of (\p{Cyrillic}|\p{Latin})?

I've reviewed all Messages$Lang.php pages and I can't find such a syntax being used :)

Latin should be covered by the initial a-z and the rest are the letters of the Rusyn language alphabet as provided by @Engelseziekte and checked on Wikipedia (plus ѣ ӱ ô as requested). I feel that should work?

I've also seen some files using а-я to I guess cover all Cyrillic. Maybe the sytax could be shortened by:

$linkTrail = '/^([a-zа-яьъѣӱô]+)(.*)$/sDu';

(partially used in messagesKk_cyrl.php).

а-я is not all Cyrillic, it is basically Russian aphabet. For Ukrainian we have to use something along the lines of а-яієїґ.

а-я is not all Cyrillic, it is basically Russian aphabet. For Ukrainian we have to use something along the lines of а-яієїґ.

Thanks.

Do you think:

$linkTrail = '/^([a-zа-яьъѣӱô]+)(.*)$/sDu';

as proposed above, would work?

It depends on what you want to include. ії is not in that range for instance, I believe.

а-я is not all Cyrillic, it is basically Russian aphabet. For Ukrainian we have to use something along the lines of а-яієїґ.

Thanks.

Do you think:

$linkTrail = '/^([a-zа-яьъѣӱô]+)(.*)$/sDu';

as proposed above, would work?

Yes, technically, but I'd love an explanation about the letters ѣӱô. AFAIK, they are not part of the alphabet. And the letters і and ї appear to be missing.

Yes, technically, but I'd love an explanation about the letters ѣӱô. AFAIK, they are not part of the alphabet.

Not sure about ӱô, which were requested by @Engelseziekte above. As for ѣ, https://en.wikipedia.org/wiki/Rusyn_language#Usage_notes says:

Until World War II, the letter ѣ (їть or yat') was used (...). This letter is still used in part of the articles in the Rusyn Wikipedia.

so I think it makes sense to add it to the LinkTrail if they're still using it IMHO.

And the letters і and ї appear to be missing.

Correct. It should be, I think:

$linkTrail = '/^([a-zа-яіїьъѣӱô]+)(.*)$/sDu';

(notwithstanding the ѣӱô question which I am not able to answer)

Yes, technically, but I'd love an explanation about the letters ѣӱô. AFAIK, they are not part of the alphabet.

Not sure about ӱô, which were requested by @Engelseziekte above. As for ѣ, https://en.wikipedia.org/wiki/Rusyn_language#Usage_notes says:

Until World War II, the letter ѣ (їть or yat') was used (...). This letter is still used in part of the articles in the Rusyn Wikipedia.

so I think it makes sense to add it to the LinkTrail if they're still using it IMHO.

... Or to thoroughly check why are they using this letter. If it's not used in other publications in this language, this wiki may be violating the language policy: The Wikimedia Foundation does not seek to develop new linguistic entities.

MarcoAurelio changed the task status from Open to Stalled.Jun 15 2022, 8:41 AM

I'm going to set this task as Stalled as there are some open questions that prevent this task going fully forward, unless adding an incomplete linktrail without ѣӱô is an option? I'll try to contact @Engelseziekte on-wiki as well.

Change 777401 abandoned by MarcoAurelio:

[mediawiki/core@master] [WIP] MessagesRue.php: Add $linkTrail

Reason:

https://gerrit.wikimedia.org/r/777401

@Engelseziekte: Could you please answer the last comments? Otherwise this task remains non actionable and might get declined. Thanks in advance!

Unfortunately closing this Phabricator task as no further information has been provided.

@Engelseziekte: After you have provided the information asked for and if this still happens, please set the status of this task back to "Open" via the Add Action...Change Status dropdown. Thanks!