Skip to main content

A cldfbench plugin to create offline broweable CLDF datasets

Project description

cldfofflinebrowser

Provides a cldfbench plugin to create offline-browseable representations of the data in a CLDF dataset.

Build Status PyPI

Notes on offline maps

cldfbench create --with-tiles […] allows you to predownload the world map at different zoom levels for offline viewing. These tiles are provided by the kind folk at OpenStreetMap – free of charge, no less. But obviously they're not wizards who can make bandwidth appear out of thin air. That's why we should all be nice to them and play by their rules to reduce strain on their servers.

This is why we would like to ask you to follow the following guidelines:

  • Don't delete your offline/tiles folder unless you really, really have to!
    If you do you'll just end up re-downloading the same map tiles all over again, which is a waste of everybody's time and bandwidth.
  • Keep your LanguageTable clean!
    Make sure it only contains languages that you have actual data points for, otherwise you'll end up downloading map tiles for regions that nobody will look at.
  • Set --max-zoom to a reasonably low zoom level!
    This is especially true if your language sample spans over great distances. A map of that covers like half the planet will result in tens if not hundreds of thousands of tile downloads at higher zoom levels (10, 11, 12). So it's better to find a zoom-level that makes your data comfortable to look at and not go any deeper than that.
  • Bulk-downloading map tiles for zoom level 13 or higher is forbidden!
    At these zoom levels, if you try to download more than 250 tiles at once, OSM will straight-up refuse your request. End of story.
  • Don't run cldfbench offline.create multiple times at once!
    Whatever download speed you get is probably either your bandwidth limit or the server's. Either way, battering the server with more download requests isn't gonna make anything faster.

FAQ

Q: How to add sound files and transcriptions to an offline dataset?

A: If you want to make a new sound file and transcription browseable in an offline version:

  1. Determine relevant language (LID) and parameter (PID) (aka concept) IDs.
  2. Copy the sound file to ./parameter-<PID>/<LID>.mp3.
  3. Add a corresponding row to cldf/media.csv.
  4. Add a row to cldf/forms.csv.
  5. Re-run cldfbench offline.create ....

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cldfofflinebrowser-0.2.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

cldfofflinebrowser-0.2.0-py2.py3-none-any.whl (1.6 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file cldfofflinebrowser-0.2.0.tar.gz.

File metadata

  • Download URL: cldfofflinebrowser-0.2.0.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for cldfofflinebrowser-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5e02b0aa20593cf8037b0ec740ace7912c6aad32b8af52f2f2d7ce8536b7f70c
MD5 80ab18b8fe376bc6e9b2e17f1ca461d2
BLAKE2b-256 118063ebe9b6a7e524363be760aded37426c46cae40f2afaecd56c8fd87cadfb

See more details on using hashes here.

File details

Details for the file cldfofflinebrowser-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cldfofflinebrowser-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d5e4c2090aac8c9be4b1806a1746c0a2af772a974cb5907c10820e4ba71ee936
MD5 ecd2f3a2d9614858d2ad8df4973ede06
BLAKE2b-256 a7516922007e3ed97a4be6585dafaa27151baccd88cd845ca604d26740895eab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page