PupClockset settings in jwmrc-theme not read correctly

Post here if you feel others can duplicate your so discovered "bug"

Moderator: Forum moderators

Post Reply
thinkpadfreak
Posts: 243
Joined: Thu Jul 16, 2020 6:37 am
Has thanked: 7 times
Been thanked: 55 times

PupClockset settings in jwmrc-theme not read correctly

Post by thinkpadfreak »

Hello.

In my understanding. /usr/local/PupClockset/PupClockset-bin edits ~/.jwm/jwmrc-theme at some changes in settings.
However, because "gettext" is applied to items in comboboxes, the changes in settings are not read.

For example, in the Japanese environment, Japanese words are written in jwmrc-theme. As a result, font-weight and font-style do not change.

The following are some lines in question:

Code: Select all

#define $JWMFONTWEIGHT_ITEMS for font-weight combobox
JWMFONTWEIGHT_ITEMS="<item>$(gettext 'normal')</item> <item>$(gettext 'bold')</item>"

#define $JWMFONTSTYLE_ITEMS for font-style combobox
JWMFONTSTYLE_ITEMS="<item>$(gettext 'normal')</item> <item>$(gettext 'italic')</item>"
radky
Posts: 304
Joined: Fri May 28, 2021 2:14 am
Has thanked: 35 times
Been thanked: 268 times

Re: PupClockset settings in jwmrc-theme not read correctly

Post by radky »

@thinkpadfreak,

The gettext for the PupClockset comboxbox items that show font weight and style could be removed, but of course those items would appear only in English and I'm not sure this would be acceptable to most users in non-English locales.

I don't know if there is a Japanese language pack for Puppy Linu. If so, I assume it would provide partial localization for a few Puppy programs that interact with JWM but may not provide localization for some basic text strings of JWM such as font weight (light, medium, demibold, bold, black) or font style (roman, italic, oblique).

If I understand correctly, the link below suggests JWM does not currently provide po files in 'ja_JP' format:

https://github.com/joewing/jwm/blob/ca4 ... po/LINGUAS

da
de
es
fr
hu
it
lt
nl
pl
pt
pt_BR
ru
tr
zh_CN
zh_TW
uk

---

PupMates
https://www.smokey01.com/radky/PupMates.html

User avatar
rockedge
Site Admin
Posts: 5847
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2096 times
Been thanked: 2188 times
Contact:

Re: PupClockset settings in jwmrc-theme not read correctly

Post by rockedge »

Isn't there a Japanese Puppy Linux website somewhere? Possibly a source for Japanese language packs. Also I have run across conversations dealing with adding those fonts to Puppy Linux, but that I would have to track those down.

Maybe @MochiMoppel could give some insight on the situation.

thinkpadfreak
Posts: 243
Joined: Thu Jul 16, 2020 6:37 am
Has thanked: 7 times
Been thanked: 55 times

Re: PupClockset settings in jwmrc-theme not read correctly

Post by thinkpadfreak »

radky wrote: Wed Feb 02, 2022 4:53 pm

The gettext for the PupClockset comboxbox items that show font weight and style could be removed, but of course those items would appear only in English and I'm not sure this would be acceptable to most users in non-English locales.

I suspect that PupClockset will write German, French and so on into jwmrc-theme and consequently disable the changes in font attributes if there are translations in those languages. That would be rather inconvenient.
I would prefer seeing those combobox items in English to editing jwmrc-theme manually.

rockedge wrote: Wed Feb 02, 2022 6:06 pm

Isn't there a Japanese Puppy Linux website somewhere?

Puppy Linux Japanese Forum
https://sakurapup.com/forum1/

There is a language pack by Shinobar.
lang_pack_ja
https://sakurapup.com/forum1/viewtopic.php?f=25&t=1937

Shinobar's language pack is an elaborate work worth referring to, but it has two weak points.
1. It does not support 64bit Puppies.
2. It is not up to date.

So, I have made some language packs for recent specific Puppies by modifying the one by Shinobar.

thinkpadfreak
Posts: 243
Joined: Thu Jul 16, 2020 6:37 am
Has thanked: 7 times
Been thanked: 55 times

Re: PupClockset settings in jwmrc-theme not read correctly

Post by thinkpadfreak »

I am not a native speaker of English, and it seems that I have not been able to make myself understood.

Seeing is believing. What I mean is this.
See ClockStyle section. Japanese words are inserted. Though "bold" and "italic" are set, the changes are neglected.

I think this is not only true of Japanese, but also true of all languages other than English.

Attachments
Screenshot-1.png
Screenshot-1.png (70.37 KiB) Viewed 552 times
User avatar
MochiMoppel
Posts: 1139
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 18 times
Been thanked: 372 times

Re: PupClockset settings in jwmrc-theme not read correctly

Post by MochiMoppel »

radky wrote: Wed Feb 02, 2022 4:53 pm

The gettext for the PupClockset comboxbox items that show font weight and style could be removed, but of course those items would appear only in English and I'm not sure this would be acceptable to most users in non-English locales.

The gettext must be removed.
The problem, as far as I understand it from @thinkpadfreak 's screenshot: He has a Japanese po file in which words like 'bold' and 'italic' are registered with their Japanese equivalents (seen in screenshot after Sans -10 ), so with these attributes gettexted in the combobox they are translated and written to the <ClockStyle> tag in their Japanese form. And that's wrong because JWM accepts and understands only English terms.

radky
Posts: 304
Joined: Fri May 28, 2021 2:14 am
Has thanked: 35 times
Been thanked: 268 times

Re: PupClockset settings in jwmrc-theme not read correctly

Post by radky »

@thinkpadfreak & @MochiMoppel,

PupClockset-2.8 will be available soon with bug fixes and feature updates.

Thanks for your reports.

PupMates
https://www.smokey01.com/radky/PupMates.html

williams2
Posts: 1026
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 291 times

Re: PupClockset settings in jwmrc-theme not read correctly

Post by williams2 »

To whom it may concern: please do not set my hardware RTC clock automatically, without asking.

I set my hardware clock 516 days ago.

My hardware clock is now about 10 minutes fast.

Code: Select all

# hwclock --show
2022-02-06 14:15:46.429878-0500
# hwclock --get
2022-02-06 14:06:25.558718-0500
#

I tweak the systemic drift number in /etc/adjtime
so that the hwclock time, correct for systemic drift, is correct,
and which is used to set the system time.

In other words, my system clock is set from my hardware clock corrected for drift,
which is correct to about +/- 1/2 a second,
because i set the drift value to -1.099163 in /etc/adjtime, in all of my Puppy OS.

So, please do not set my hwclock without asking.

Post Reply

Return to “Bug Reports”