mwoffliner icon indicating copy to clipboard operation
mwoffliner copied to clipboard

Vcard geographical co-ordinates incorrectly scraped in French Wikivoyage

Open Jaifroid opened this issue 10 months ago • 0 comments

At least in wikivoyage_fr_all_maxi_2023-08.zim, the geographical markers are not correctly scraped, and do not contain the longitude and latitude co-ordinates required to construct a geographical map marker. (In the latest English-language Wikivoyage from the same date wikivoyage_en_europe_maxi_2023-08.zim geo-data are correctly scraped.)

For example, looking at the article Myjava in that ZIM, we can compare the display in Kiwix desktop and in the online version of Wikivoyage (see image below, looking at circled markers).

In terms of the underlying code, this is what has been scraped in the ZIM for the corresponding vcard:

<span class="vcard">
    <span>1<span>
</span>

In the online version, we have (notice the coordinates):

<span class="vcard">
  <span class="noprint listing-coordinates" style="display:none">
    <span class="geo"><abbr class="latitude">48.7636</abbr><abbr class="longitude">17.571</abbr>
  </span>
</span>

image

Jaifroid avatar Aug 15 '23 17:08 Jaifroid