Stream: general

Topic: OSM key/tag linkifier


view this post on Zulip i-ky (Dec 20 2022 at 14:53):

Es arī par to sapņoju... :D
Var uztaisīt, lai visa key=tag kombinācija ved uz Tag:key%3Dtag lapu, bet tā, kā OSM Wiki taisa divus linkus (arī uz Key%3Akey) laikam neizdosies tehnisku iemeslu dēļ.

view this post on Zulip i-ky (Dec 20 2022 at 15:06):

Test highway=cycleway + bicycle=designated + foot=no

view this post on Zulip i-ky (Dec 20 2022 at 15:07):

Fail - sidewalk:left=yes

view this post on Zulip i-ky (Dec 20 2022 at 15:08):

i-ky said:

Fail - sidewalk:left=yes

Vēlreiz...

view this post on Zulip HellMap (Dec 20 2022 at 15:10):

access=*

view this post on Zulip HellMap (Dec 20 2022 at 15:11):

Bet nu tādu pa taisno arī neaizlinkot, tikai ja izdala access ārā

view this post on Zulip HellMap (Dec 20 2022 at 15:11):

maxspeed:conditional=110 @ (May 1-Oct 1)

view this post on Zulip HellMap (Dec 20 2022 at 15:12):

highway=footway

view this post on Zulip HellMap (Dec 20 2022 at 15:12):

Koda blokos linkus nevar?

view this post on Zulip i-ky (Dec 20 2022 at 15:13):

Jā, koda blokos viss ir "as is".

view this post on Zulip i-ky (Dec 20 2022 at 15:15):

HellMap said:

Bet nu tādu pa taisno arī neaizlinkot, tikai ja izdala access ārā

Ja ir interese paspēlēties, šeit ir aprakstīts, kā tas ir konfigurējams. Pēc būtības, vajag re2 regulāro izteiksmi.

Linkifiers make it easy to refer to issues or tickets in third party issue trackers, like GitHub, Salesforce, Zendesk, and others. For instance, you can add a linkifier that automatically turns #2468 into a link to https://github.com/zulip/zulip/issues/2468. | If the pattern appears in a message topic, Zulip adds a little button to the right of the topic that links to the appropriate URL. | This is best explained by example. | Hash followed by a number of any length. | String of hexadecimal digits between 7 and 40 characters long.
RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library. - Syntax · google/re2 Wiki

Last updated: Dec 22 2024 at 04:13 UTC