wttr.in/lib
mataha 9d23087ca4 Introduce 'dumb' mode for terminals without fallback glyphs
Windows' native terminal, `conhost.exe`, lacks font fallback support.
This causes some of the characters used in `wttr.in`'s terminal output
to not be displayed at all - placeholders are supplied in their place.
This PR provides a mode that, when enabled, translates missing glyphs
to ones available on every platform without (*I believe*) making any
compromises regarding their meaning; see translation table below.

| Character        | C-UCP  | Replacements                          | R-UCPs |
| :--------------- | :----: | :------------------------------------ | :----: |
| NORTH WEST ARROW | U+2196 | BOX DRAWINGS LIGHT ARC DOWN AND LEFT  | U+256E |
| NORTH EAST ARROW | U+2197 | BOX DRAWINGS LIGHT ARC DOWN AND RIGHT | U+256D |
| SOUTH EAST ARROW | U+2198 | BOX DRAWINGS LIGHT ARC UP AND RIGHT   | U+2570 |
| SOUTH WEST ARROW | U+2199 | BOX DRAWINGS LIGHT ARC UP AND LEFT    | U+256F |
| HIGH VOLTAGE SIGN | U+26A1 | BOX DRAWINGS LIGHT DOWN AND RIGHT + UP AND LEFT | U+250C + U+2518 |
2023-08-09 19:02:39 +02:00
..
datasource Add AQI sites to the datasources list (#49) 2021-10-31 13:20:10 +01:00
fmt Emoji Fix 2022-10-09 17:15:45 +05:30
view Introduce 'dumb' mode for terminals without fallback glyphs 2023-08-09 19:02:39 +02:00
airports.py added lib/airports.py 2020-02-16 19:41:40 +01:00
buttons.py updated twitter button 2020-03-31 21:05:59 +02:00
cache.py cache signature location handling fixed (#460, #466) 2020-06-09 08:25:11 +02:00
constants.py Add mg_MG 2021-10-28 21:44:29 +03:00
extract_emoji.py added lib/extract_emoji.py 2020-04-03 20:27:00 +02:00
fields.py README: Document Prometheus format output 2020-06-13 11:32:45 +02:00
globals.py Introduce 'dumb' mode for terminals without fallback glyphs 2023-08-09 19:02:39 +02:00
limits.py added lib/limits.py (from cheat.sh) 2018-10-05 20:37:46 +02:00
location.py Switch geolocation client to the internal service 2023-07-14 21:08:02 +02:00
metno.py initial metno implementation 2020-10-08 16:24:19 -07:00
parse_query.py Introduce 'dumb' mode for terminals without fallback glyphs 2023-08-09 19:02:39 +02:00
proxy_log.py Switch geolocation client to the internal service 2023-07-14 21:08:02 +02:00
translations.py Add 'gl' to proxy langs (#756) 2022-10-22 17:25:54 +02:00
translations_v2.py Merge pull request #764 from pataquets/patch-1 2022-10-22 16:48:06 +02:00
weather_data.py initial v2 format implementation (fixes #332) 2019-08-25 20:39:22 +02:00
wttr_srv.py Introduce 'dumb' mode for terminals without fallback glyphs 2023-08-09 19:02:39 +02:00