Re: [weewx-user] Localization,cn--->zh_cn

2024-01-06 Thread kranz
In Chinese, font files tend to be relatively large because unlike the English alphabet with its 26 letters that can compose all possible words, Chinese characters do not operate on an alphabetic principle. Each unique character in a Chinese font file represents a distinct graphical symbol, and

Re: [weewx-user] Localization,cn--->zh_cn

2024-01-06 Thread 'michael.k...@gmx.at' via weewx-user
That's correct and a possibility. Nevertheless, there are many reasons not to go the CDN way. GDPR is just one of them. Chuck Rhode schrieb am Samstag, 6. Januar 2024 um 19:33:34 UTC+1: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Sat, 6 Jan 2024 04:57:04 -0800 (PST) >

Re: [weewx-user] Localization,cn--->zh_cn

2024-01-06 Thread Chuck Rhode
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 6 Jan 2024 04:57:04 -0800 (PST) "'michael.k...@gmx.at' via weewx-user" wrote: > Another thing is that NotoSansSC is a bit large when it comes to > e.g. shipping it bundled with a skin. Not my field (Web design), but I'm under the

Re: [weewx-user] Localization,cn--->zh_cn

2024-01-06 Thread Nate Bargmann
* On 2024 06 Jan 07:22 -0600, Tom Keffer wrote: > Thanks for pointing that out. I'm not sure where "cn" came from. We'll > change it to 'zh". Perhaps the confusion stems from .cn being a top level domain: https://en.wikipedia.org/wiki/.cn There are so many of these things that it is easy to get

Re: [weewx-user] Localization,cn--->zh_cn

2024-01-06 Thread 'michael.k...@gmx.at' via weewx-user
Where ever it came from, it propagated :D https://github.com/brewster76/fuzzy-archer/pull/136 It still leaves me unsure how to handle the font thing, the thai fonts is shipped with the skin, but has a way smaller footprint. Tom Keffer schrieb am Samstag, 6. Januar 2024 um 14:22:18 UTC+1: >

Re: [weewx-user] Localization,cn--->zh_cn

2024-01-06 Thread Tom Keffer
Thanks for pointing that out. I'm not sure where "cn" came from. We'll change it to 'zh". Issue #912 . On Sat, Jan 6, 2024 at 1:59 AM 'michael.k...@gmx.at' via weewx-user < weewx-user@googlegroups.com> wrote: > This reveals also a limitation of WeeWX

Re: [weewx-user] Localization,cn--->zh_cn

2024-01-06 Thread 'michael.k...@gmx.at' via weewx-user
Another thing is that NotoSansSC is a bit large when it comes to e.g. shipping it bundled with a skin. 10MB for a single kind of font weight. michael.k...@gmx.at schrieb am Samstag, 6. Januar 2024 um 12:02:41 UTC+1: > Rather than changing skin.conf you are probably better off adding the >

Re: [weewx-user] Localization,cn--->zh_cn

2024-01-06 Thread 'michael.k...@gmx.at' via weewx-user
Rather than changing skin.conf you are probably better off adding the config in the matching section of weewx.conf, or your changes will be overwritten on next update. See https://weewx.com/docs/4.10/customizing.htm#customizing_reports Kranz Liang schrieb am Samstag, 6. Januar 2024 um 11:29:04

Re: [weewx-user] Localization,cn--->zh_cn

2024-01-06 Thread 'michael.k...@gmx.at' via weewx-user
This reveals also a limitation of WeeWX current localization support: according to Wikipedia's interpretation of ISO-639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) "Chinese" is "zh" and there is no way to distinguish between Traditional and Simplified Chinese. WeeWX

Re: [weewx-user] Localization,cn--->zh_cn

2024-01-05 Thread Graham Eddy
maybe check the font_path in skins.conf, ensure the image generator fonts include the simplified chinese symbols ⊣GE⊢ > On 6 Jan 2024, at 2:21 pm, Kranz Liang wrote: > > I have translated the language files in weewx, converting Traditional Chinese > into Simplified Chinese and also adjusted