Re: code pages I think

new topic     » goto parent     » topic index » view thread      » older message » newer message

This is a multi-part message in MIME format.

------=_NextPart_000_00E4_01C0E010.9C616120
	charset="Windows-1252"

Igor,

Unfortunately, it seems there is something along the way that's =
interfering with the coding. Even if it's done with the best intentions, =
I find a little disquieting. Please see below.

----- Original Message -----=20
From: "Igor Kachan" <kinz at peterlink.ru>
To: "EUforum" <EUforum at topica.com>
Sent: Friday, May 18, 2001 5:19 PM
Subject: Re: code pages I think


> --35--From: Gerardo
> Date: Fri, 18 May 2001 00:25:21 -0300
> X-Mailer: Mozilla 4.74 [en] (Win98; U)
> X-Accept-Language: en,pdf
> Content-Type: text/plain; charset=3Dus-ascii
> Content-Transfer-Encoding: 7bit
> ****
> Igor,This message is coded CP866 (Netscape Messenger).
> Gerardo
> [charset=3Dus-ascii is not CP866, so, Gerardo
> force Mozilla, but Mozilla sends different code page]
>=20
>=20
> --36--From: Gerardo
> Date: Fri, 18 May 2001 00:27:49 -0300
> X-Mailer: Mozilla 4.74 [en] (Win98; U)
> X-Accept-Language: en,pdf
> Content-Type: text/plain; charset=3Dkoi8-r
> Content-Transfer-Encoding: 7bit
> ****
> Igor,This message is coded Cyrillic (ISO-8859-5),
> via Netscape.
> Gerardo
> [charset=3Dkoi8-r is not ISO-8859-5, so, Gerardo
> forces Mozilla, but Mozilla sends different code page]
>=20
>=20
> --39--From: Gerardo
> Date: Fri, 18 May 2001 00:28:35 -0300
> X-Mailer: Mozilla 4.74 [en] (Win98; U)
> X-Accept-Language: en,pdf
> Content-Type: text/plain; charset=3Dkoi8-r
> Content-Transfer-Encoding: 7bit
> ****
> Igor, This message is coded Cyrillic (Windows-1251),
> via Netscape.
> Gerardo
> [charset=3Dkoi8-r is not ISO-8859-5, so, Gerardo
> forces Mozilla, but Mozilla sends different code page]
>=20
> As a result:
>=20
(...)

> 4. Gerardo forces his computer to send
> messages with the different Cyrillik
> hard charsets, but his Mozilla makes
> a rebellion on the Gerardo's ship
> sometimes.
> But this Mozilla may be just a regular
> guy and these disparities are the
> Topica's or my Russian Internet
> provider's fault. I don't know, sorry.
>=20
> Hey, Gerardo, check these mistaken=20
> messages from Topica on your computer
> please.
>=20
>=20
> Regards,
> Igor Kachan
> kinz at peterlink.ru
>=20

Yet I did send them all in various Cyrillic codings. And I got some of =
them back from the EuList in the same codings (the ones I sent via =
Outlook Express), or changed into us-ascii (via Netscape). Still, they =
all look like perfectly good Western, ISO-1, Latin-1, or whatever you =
prefer.

I guess there's a combination of factors at work here: mail daemons, =
mail clients, and who knows what else. Still, there's something we can =
do at little or no expense: play with fonts.

This message you're reading is formatted in OE5 as 'West European =
(Windows)'. And I'm introducing a slight change. All previous messages =
went out as unformatted (plain) text, and this one I'm sending as html, =
which lets me change fonts. I'm now writing Arial. Now, let's write =
'Euphoria':

.. using Asher (a Hebrew font): Euphoria
.. using Alexander (Greek): Euphoria
.. using Mikhael: Euphoria
... you get the idea.

OE5 will not let me use Arial Cyr, even when I change the code page to a =
Cyrillic one. Other apps will let me, but when I copy Arial Cyr text =
(viewed as Cyrillic), and paste it here, it shows the Latin accented =
uppercase vowels (as Kat saw), whatever OE codepage I set. Curiouser and =
curiouser.

In fact, OE5 offers me just a basic selection of my installed fonts. =
Various font utilities show a lot more (the standard Win98 fonts folder =
looks as poor as OE5), and SiSoft Sandra says I have tons of alternate =
versions, such as Arial Arabic (which appears nowhere else). Apparently =
Windows decides that, since I'm boooting ANSI 1252, I don't need =
everything. Typical.

However, this is not an intrinsic Windows fault, but just sloppy, =
careless user interfacing. Actually, the very standard Windows Font =
dialog box could include, along with the fontface combo, fontsize, and =
all the rest, an 'alphabet' listbox, where you could choose between =
Western, Arabic, Greek, Cyrillic, and any charset your installed fonts =
may offer. Arial itself has all of those, and everybody has Arial. But =
even MS Word doesn't include it. The only place I found it (and got it =
to work fine), was in my beloved NoteTab.

So, on to the Windows API. The Windows 3.1 API has the structures =
TEXTMETRIC, LOGFONT and NEWTEXTMETRIC, which include CharSet fields =
(strings * 1); also several defined constants.

Same with the Win32 API, with some changes, a lot of new constants, a =
new CHARSETINFO structure, and several structures which include =
LOGFONTs, like ICONMETRICS, CHOOSEFONT and MINIMIZEDMETRICS.

All of these can be easily invoked in your API calls: GetFontData, =
GetFontLanguageInfo, CreateFont, CreateFontIndirect, EnumFontFamiliesEx, =
GetTextCharset, GetTextCharsetInfo, TranslateCharsetInfo, =
ImmGetCompositionFont, ImmSetCompositionFont, ChooseFont, EnumFonts, and =
maybe others I missed or came up later.

Whew!
Hope it helps.

Gerardo

If anyone is interested and can't get them, I can send them both: two =
text files inside a 175 KB zipfile.



------=_NextPart_000_00E4_01C0E010.9C616120
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Igor,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Unfortunately, it seems there is =
something along=20
the way that's interfering with the coding. Even if it's done with the =
best=20
intentions, I find a little disquieting. Please see below.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DArial size=3D2>From: "Igor Kachan" &lt;</FONT><A=20
href=3D"mailto:kinz at peterlink.ru"><FONT face=3DArial=20
size=3D2>kinz at peterlink.ru</FONT></A><FONT face=3DArial =
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To: "EUforum" &lt;</FONT><A=20
href=3D"mailto:EUforum at topica.com"><FONT face=3DArial=20
size=3D2>EUforum at topica.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sent: Friday, May 18, 2001 5:19 =
PM</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Subject: Re: code pages I =
think</FONT></DIV></DIV>
<DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; --35--From: Gerardo<BR>&gt; Date: =
Fri, 18 May=20
2001 00:25:21 -0300<BR>&gt; X-Mailer: Mozilla 4.74 [en] (Win98; =
U)<BR>&gt;=20
X-Accept-Language: en,pdf<BR>&gt; Content-Type: text/plain;=20
charset=3Dus-ascii<BR>&gt; Content-Transfer-Encoding: 7bit<BR>&gt; =
****<BR>&gt;=20
Igor,This message is coded CP866 (Netscape Messenger).<BR>&gt; =
Gerardo<BR>&gt;=20
[charset=3Dus-ascii is not CP866, so, Gerardo<BR>&gt; force Mozilla, but =
Mozilla=20
sends different code page]<BR>&gt; <BR>&gt; <BR>&gt; --36--From: =
Gerardo<BR>&gt;=20
Date: Fri, 18 May 2001 00:27:49 -0300<BR>&gt; X-Mailer: Mozilla 4.74 =
[en]=20
(Win98; U)<BR>&gt; X-Accept-Language: en,pdf<BR>&gt; Content-Type: =
text/plain;=20
charset=3Dkoi8-r<BR>&gt; Content-Transfer-Encoding: 7bit<BR>&gt; =
****<BR>&gt;=20
Igor,This message is coded Cyrillic (ISO-8859-5),<BR>&gt; via =
Netscape.<BR>&gt;=20
Gerardo<BR>&gt; [charset=3Dkoi8-r is not ISO-8859-5, so, Gerardo<BR>&gt; =
forces=20
Mozilla, but Mozilla sends different code page]<BR>&gt; <BR>&gt; =
<BR>&gt;=20
--39--From: Gerardo<BR>&gt; Date: Fri, 18 May 2001 00:28:35 =
-0300<BR>&gt;=20
X-Mailer: Mozilla 4.74 [en] (Win98; U)<BR>&gt; X-Accept-Language: =
en,pdf<BR>&gt;=20
Content-Type: text/plain; charset=3Dkoi8-r<BR>&gt; =
Content-Transfer-Encoding:=20

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu