Commit Graph

1260 Commits

Author SHA1 Message Date
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
Igor Chubin
6b050470bc Merge branch 'master' of https://github.com/chubin/wttr.in 2023-07-14 21:08:19 +02:00
Igor Chubin
cf70167529 Switch geolocation client to the internal service 2023-07-14 21:08:02 +02:00
Igor Chubin
9657b51815 Add several aliases 2023-07-14 21:07:30 +02:00
Igor Chubin
60e1a3bf68
Merge pull request #809 from evansa/fix-typo
Add missing 'of' in README.md file
2022-11-25 17:43:34 +01:00
Evansa
61d1fa1ca7 Add missing 'of' in README.md file 2022-11-14 16:20:28 +00:00
Igor Chubin
8f433de15a Split proxy access and errors logs 2022-10-26 08:41:20 +02:00
Igor Chubin
34684cb264 Add share/translations/gu* (#774) 2022-10-25 19:26:17 +02:00
Igor Chubin
284d3ae992 Merge branch 'master' of https://github.com/chubin/wttr.in 2022-10-25 19:22:45 +02:00
Igor Chubin
0be2669412 Increase expiration interval 2022-10-25 19:21:11 +02:00
Igor Chubin
ea1f93282f Move query wrapper to a separate function 2022-10-25 19:20:49 +02:00
Igor Chubin
4e861802c0 Add PROXY_LOG_FILE to globals 2022-10-25 19:20:19 +02:00
Igor Chubin
cedf3b58d6 Add proxy queries logging 2022-10-25 19:18:07 +02:00
Igor Chubin
e4d4ebc41f Add lib/proxy_log.py 2022-10-25 19:16:48 +02:00
Igor Chubin
b5ee05aaee Add share/translations/messages/gu.yaml (#774) 2022-10-24 20:18:05 +02:00
Igor Chubin
2eda939a8b Add share/translations/messages/en.yaml 2022-10-24 20:06:14 +02:00
Igor Chubin
5a22d31839 Use English unit names when needed (#755) 2022-10-22 19:57:03 +02:00
Igor Chubin
25797c21d5 Mention Diego Blanco in translation.txt (#756) 2022-10-22 17:28:17 +02:00
Igor Chubin
692dabb88c Add 'gl' to proxy langs (#756) 2022-10-22 17:25:54 +02:00
Igor Chubin
2bc8e2447c Add go.sum for we-lang 2022-10-22 17:18:58 +02:00
Igor Chubin
bd17db670b
Merge pull request #791 from nfsec/patch-1
Docker build failed after split we-lang.go into several files
2022-10-22 17:09:17 +02:00
Igor Chubin
1a35ca7f5d
Merge pull request #753 from kcm/patch-1
Nice update to preconfig formats
2022-10-22 17:07:49 +02:00
Igor Chubin
e5f0961303
Merge pull request #756 from diego-treitos/master
Added galician translation
2022-10-22 17:04:41 +02:00
Igor Chubin
7fda848692
Merge pull request #757 from Layerex/russian-translations
Add missing russian translations from #535
2022-10-22 16:55:06 +02:00
Igor Chubin
eb855b043e
Merge pull request #763 from lakejason0/patch-1
Fix wording in zh-cn-help.txt and zh-tw-help.txt
2022-10-22 16:49:19 +02:00
Igor Chubin
d53388f82b
Merge pull request #764 from pataquets/patch-1
Add Catalan to v2 footer strings.
2022-10-22 16:48:06 +02:00
Igor Chubin
ab21f64f26
Merge pull request #770 from Barry1/patch-1
Just switched the columns in line 10
2022-10-22 16:45:45 +02:00
Igor Chubin
5fa163bd03
Merge pull request #789 from Manan006/emoji_fix
Emoji Fix
2022-10-22 16:43:47 +02:00
Igor Chubin
9f49dfe9ce
Merge pull request #792 from Elvis020/master
Updated Malayalam translation for afternoon
2022-10-22 16:41:19 +02:00
Elvis020
d1e4ef9224 Updated Malayalam translation for afternoon with a more commonly used word 2022-10-15 18:34:12 +00:00
Patryk Krawaczyński
3e006c4163
Docker build failed after split we-lang.go into several files
COPY failed: file not found in build context or excluded by .dockerignore: stat share/we-lang/we-lang.go: file does not exist
COPY failed: stat app/we-lang: file does not exist
2022-10-14 13:33:13 +02:00
Dot
a0cac80ca2 Emoji Fix 2022-10-09 17:15:45 +05:30
Bastian Ebeling
23c1eafc65
Just switched the columns in line 10
see https://github.com/chubin/wttr.in/issues/769
2022-07-21 21:06:37 +02:00
Alfonso Montero
29fddae4c1
Add Catalan to v2 footer strings. 2022-07-09 16:10:32 +00:00
lakejason0
1112979e14
Update zh-tw-help.txt 2022-07-09 02:10:39 +08:00
lakejason0
bf0ecaa039
Fix wording in zh-cn-help.txt 2022-07-09 02:07:51 +08:00
Layerex
1267c32efe
translation.txt: Fix padding for lithuanian 2022-06-20 15:37:10 +03:00
Layerex
1744b5b179
translation.txt: Add myself to translators 2022-06-20 15:37:10 +03:00
Layerex
94d15990f6
ru.txt: Correct "low drifting snow" translation 2022-06-19 15:25:34 +03:00
Layerex
ba02c6b920
ru.txt: Pad colons 2022-06-19 15:24:05 +03:00
Layerex
7131539c4a
ru.txt: переохлажденный => переохлаждённый 2022-06-19 15:21:24 +03:00
Layerex
98e09c52e6
ru.txt: Add missing translations from #535
Correct "snow shower" translation
2022-06-19 15:21:12 +03:00
Diego Blanco
d60db6f5ea Added galician translation 2022-06-18 22:54:24 +02:00
Ken MacInnis
12c1f1639e
Nice update to preconfig formats 2022-06-13 17:09:05 -07:00
Igor Chubin
0097d022e8
Merge pull request #750 from ErrorNoInternet/master
Update terminal-images.md
2022-06-12 10:31:10 +02:00
ErrorNoInternet
2217cfae5a Update terminal-images.md 2022-06-12 16:11:35 +08:00
Igor Chubin
bf6c71a4e8 Add translation support for units 2022-06-11 19:38:42 +02:00
Igor Chubin
8fc5c84e95 Split we-lang.go into several files 2022-06-11 18:10:07 +02:00
Igor Chubin
c7507f3e3d Mention Ahmed D. ALi in translation.txt 2022-06-11 17:01:18 +02:00
Igor Chubin
1b11538c93 Mention Ahmed D. ALi in translation.txt 2022-06-11 16:57:13 +02:00