Archivovaná správa #205 diskusnej skupiny lswitcher-dev@2rosenthals.com

Od: "Lewis" <lswitcher-dev@2rosenthals.com> Celá hlavička
Nedekódovaná správa
Hlavička: Re: [lswitcher-dev] lSwitcher-2-93-0-RC_6.wpi
Dátum: Sat, 14 Aug 2021 23:04:38 -0400
Komu: lSwitcher Developers Mailing List <lswitcher-dev@2rosenthals.com>

Hi...

On 08/14/21 04:04 pm, Gregg Young wrote:
On Sat, 14 Aug 2021 20:59:39 +0100 Alfredo Fernández Díaz wrote:
Hi Gregg,

On 2021/08/14 18:57, Gregg Young wrote:

<snip>
It also changes the codepage to 1208. Hopefully this will fix the bad
characters on
install to a Russian system Alfred reported on the AN testers site.
If you mean change the codepage in the WarpIN script, I tried that on
my own and it breaks even more things so please hold off it for now --
I didn't get round to following up on the testers list yet, sorry about
that.
I already did this in RC_6 and now see the problem. The problem you originally had was since the codepage was not set in the lSwitcher wis it defaulted to the system page which in your case was 866.

The problem with using code page 1208 is it needs a unicode aware font. WanSans isn't. RC 6a should work on a Russian system. Thanks


Changing the codepage isn't enough. The content needs to be converted to UTF-8 (it was still CP850). I extracted the script and ran it through iconv:

iconv -f 850 -t UTF-8 lSwitcher-2-93-0-RC_6.wis > lSwitcher-2-93-0-RC_6a.wis

This gave me a UTF-8 script, which properly renders Ulrich's name and which then matches what's in the WarpIN db (no error report of missing XWP).

WarpSans is perfectly capable of rendering " ö", BTW.

Remember the way this UTF-8 conversion works:

WarpIN reads a UTF-8 script and converts to the system codepage. Using UTF-8 allows us to include language strings which would otherwise be from multiple codepages (and would thus not render properly). The tougher ones are DBCS, however, but they're not impossible (see TIMESET for examples).

Strings which appear in REXX and used to dynamically swap into the script output are also entered in UTF-8. the resulting strings (UTF-8) are then likewise converted to system codepage when variables are expanded in the script.

UTF-8 WIS, attached.
Pripojený súbor:  lSwitcher-2-93-0-RC_6a.wis (7701 bytov)

Prihlásiť: Napĺňať, Súhrn, Index.
Odhlásiť
Mail na ListMastera