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 
> 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 UTC+1:
>
>> Thanks!
>> The idea of editing the font configuration file in skin.conf was indeed 
>> correct. It just turned out that the font I initially chose was not 
>> supported. After switching to NotoSansSC, the seasons skin successfully ran
>> .[image: 屏幕截图 2024-01-06 182759.png]
>>
>> 在2024年1月6日星期六 UTC+8 17:59:34<michael.k...@gmx.at> 写道:
>>
>>> 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 documentation (
>>> https://weewx.com/docs/5.0/custom/localization/#create-the-localization-file)
>>>  
>>> doesn't exactly refer to ISO-639-1 but only to "ISO language and country 
>>> codes" linking to w3schools (
>>> https://www.w3schools.com/tags/ref_language_codes.asp), where w3schools 
>>> seems to have i's own interpretation of ISO-639-1  (they are listing 
>>> currently 191 language codes where wikipedia lists 184). 
>>>
>>> WeeWX seems to curve around this by inventing a language abbreviation 
>>> unknown to ISO-639-1: "cn" 
>>> https://github.com/weewx/weewx/blob/master/skins/Seasons/lang/cn.conf
>>>
>>> Bottom line: currently I don't know a solution to solve traditional vs. 
>>> simplified chinese translation without non-standard workarounds.
>>>
>>> Back to the very initial topic: @Kranz Liang can you check if you find a 
>>> font that works for you there: 
>>> https://fonts.google.com/noto/specimen/Noto+Sans+SC 
>>> Graham Eddy schrieb am Samstag, 6. Januar 2024 um 05:58:57 UTC+1:
>>>
>>>> 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 <kran...@gmail.com> wrote:
>>>>
>>>> I have translated the language files in weewx, converting Traditional 
>>>> Chinese into Simplified Chinese and also adjusted some word usages to 
>>>> better conform with the linguistic habits of users in Simplified Chinese 
>>>> regions. However, after these modifications, I am encountering garbled 
>>>> characters on the display interface and am unable to resolve this issue.
>>>>
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a5b5c6ea-057b-4d9e-8b3e-60f90b81eaf3n%40googlegroups.com.

Reply via email to