Thread View: news.software.readers
82 messages
82 total messages
Page 2 of 2
Started by XS11E
Thu, 11 Jun 2009 15:33
Page 2 of 2 • 82 total messages
Re: New Xnews.
Author: Michael Moroney
Date: Sun, 21 Jun 2009 03:08
Date: Sun, 21 Jun 2009 03:08
43 lines
3123 bytes
3123 bytes
<boxcars@gmx.net> writes: >In <news:slrnh3oe5r.kn7.pjr@pjr.gotdns.org>, >Peter J Ross <pjr@example.invalid> wrote: >> Something needs to be fixed in a newsreader that, in this respect, is >> provably even more broken than X.EXE. >IMO, for news clients, lack of MIME support != broken >MIME's pretty commonly used in netnews, but you've got a tough job if >you want to make a case that it's some kinda news standard that must be >supported. The closest thing to the Usenet standard is Usefor-12, but it's not an RFC. (The latest actual RFC defining Usenet message format is RFC-1036 from way back in 1987). Anyway, Usefor-12 states: 2.3. MIME Conformance User agents MUST meet the definition of MIME conformance in [RFC2049] and MUST also support [RFC2231]. This level of MIME conformance provides support for internationalization and multimedia in message bodies ([RFC2045], [RFC2046], [RFC2231]), and support for internationalization of header fields ([RFC2047], [RFC2231]). Note that [Errata] currently exist for [RFC2046] and [RFC2231]. For the purposes of Section 5 of [RFC2047], all header fields defined in Section 3 of this standard are to be considered as "extension message header fields", permitting the use of [RFC2047] encodings within any <unstructured> header field, or within any <comment> or <phrase> permitted within any structured header field. User agents MAY accept and generate other MIME extension header fields, and in particular SHOULD accept Content-Disposition [RFC2183] and Content-Language [RFC3282]. If you don't accept Usefor-12 because it's not an RFC, you have to go back to RFC 1036, which is before MIME, and everything is 7 bit ASCII.
Re: [JR] Web pages, HTML & charsets
Author: »Q«
Date: Mon, 22 Jun 2009 08:09
Date: Mon, 22 Jun 2009 08:09
25 lines
2125 bytes
2125 bytes
In <news:12vlxg6x91o9z$.1ipmnga819en9.dlg@40tude.net>,
Rom <-@-.invalid> wrote:
> On Mon, 22 Jun 2009 03:29:45 +0000 (UTC), _@Jeff_Relf.Seattle.inValid
> wrote:
> > By the way, I upDated my copy of Firefox from 3.0.7 to 3.0.11 .
>
> Fx 3.0.11's default character encoding is still ISO-8859-1.
What appears in Fx's GUI as "Default Character Encoding" is really
more like "fallback character encoding" -- it's only used for
pages/servers which don't specify what charset should be used. So it
makes some sense to stick with older legacy encodings as "default"
since pages that are UTF-8 are more likely to have proper http
headers, and they won't need the fallback.
I'd guess different locales have different defaults, but the default
for en Firefoxen is ISO-8859-1, as you say.
--
»Q«
Kleeneness is next to Gödelness.
--
Author: _
Date: Mon, 22 Jun 2009 09:34
Date: Mon, 22 Jun 2009 09:34
109 lines
5679 bytes
5679 bytes
FireFox is my main browser; I use IE8 at times.
All of the 20 webPages I bookMarked use HTML, of course.
What makes you(Rom) think they wouldn't ?
I don't keep track of which newsReaders support HTML.
I've done very little to add webBrowsing to X.ZIP, too much work.
Same story when it comes to turning X.ZIP into a code-editor/IDE.
Sadly, my phone company(qWest) sends me HTML-only eMails.
X.ZIP converts it to regular text; links from A[hRef] show after </A>.
>From www.JeffRelf.F-M.FM/X.CPP The code looks like this:
#define feedMe \
if ( !Ch ) \
/* No more data on the line, get another line. */ \
if ( ++ PP >= EE \
|| ( P = B = *PP, B && MimeSep && EqN( B, *MimeSep, Sz_MimeSep ))) \
/* No more HTML, might go to the next MIME part. */ \
goto EoScan ;
Sh( L" %c◀――▶HTML", ChNew ); Ch = 0 ; LnP _hRef = 0 ;
▶BoTag&:
// Label “▶BoTag&” means: find Begining of a <Tag> or &Entity;.
LnP euText = 0 ; feedMe
While( !(
Ch == '&' || Ch == '<'
&& ( Ch2 == '!' || Ch2 == '?' || isalpha( Ch2 )
|| Ch2 == '/' && isalpha( P[2] ) ) ) )
// Scaning for a <Tag> or &Entity;.
if ( !euText && Ch > 32 )
// This is regular text, “euText”, to be printed.
euText = P ;
LnP BoTag& = P ;
if ( euText ) {
// Print the regular text, “euText”.
int More = BoTag& - euText ;
if ( strSz( * Ln.PP ) + More > 72 )
// Wrap at 72 columns.
Sh( L"" );
// If this line is long, it'll be wrapped elsewhere.
Extend_Ln( *Ln.PP, euText, More ); }
if ( !Ch )
// No <Tag> or “&Entity;” on this line, scan the next line.
goto ▶BoTag& ;
if ( Ch == '<' ) {
// “P” and “BoTag&” point to the <Tag>.
if ( EqiN( BoTag&, L"<Table", 6 ) || EqiN( BoTag&, L"<Br", 3 ) )
// Print a newLine.
Sh( L"" );
if ( _hRef && EqiN( BoTag&, L"</A", 3 ) )
// Print the A[hRef] link after </A>.
Sh( L" %s\n\n", _hRef ), _hRef = 0 ;
if ( Ch2 == '!' && P[2] == '-' )
LOOP{ // 4998a81c$3$18252$4c5ecfc7@fe1.usenet.com
// An HTML comment, skip to the “-->”.
While( ! ( Ch == '-' && Ch2 == '-' && P [ 2 ] == '>' ) );
if ( Ch ) {
// Found the end of the comment.
P += 3, Ch = *P ; goto ▶BoTag& ; }
// It's a multi-line comment.
feedMe }
LOOP{
While( !( Ch == '>' || Ch != '\\' && Ch2 == '"' ) );
if ( Ch == '>' ) {
// Found the end of the <Tag>, look for more stuff.
Ch = * ++ P ; goto ▶BoTag& ; }
if ( Ch2 == '"' ) {
// Skip the end of the quoted string.
P ++ ;
LnP hRef // Remember “ hRef="" ” links.
= Ch == '=' && P - B >= 5 && EqiN( P - 5, L"href=", 5 )
? P + 1 : 0 ;
While( Ch == '\\' || Ch2 != '"' );
if ( hRef )
// The quoted string is an hRef link, print it after </A>.
P[1] = 0, _hRef = hRef ;
if ( Ch )
// Skip past the end of the quoted string.
P += 2 ; }
// It's a multi-line <Tag>.
feedMe } }
P ++ ;
if ( Ch2 == '#' ) {
// This is a “�”-style entity.
Ch = RaisC ( ++ P ); wchar_t New_Ch = 0 ;
int Digit = Ch == 'O' ? 8 : Ch == 'X' ? 16 : isDigit( Ch ) ? 10 : 0;
if ( Digit )
// Get the glyph, hex or decimal.
New_Ch = AtoI_Base( rv == 10 ? P : ++ P, & P, rv );
if ( New_Ch && * P ++ == ';' ) {
// Print the glyph, find more stuff.
Extend_Ln( *Ln.PP, & New_Ch, 1 ); goto ▶BoTag& ; } }
else {
// This is a “&”-style entity.
LnP Rep [] = {
L"lt;", L"<", L"gt;", L">", L"nbsp;", L" ", L"trade;", L"™"
, L"amp;", L"&", L"quot;", L"\""
, L"apos;", L"'", L"Copy;", L"©" };
LnA ZZ = Rep - 1 ;
Loop( sizeof Rep / sizeof * Rep / 2 ) {
// Scan for a known &Entity;.
LnP S = * ++ ZZ, R = * ++ ZZ ; int Len = strSz( S );
if ( EqiN( P, S, Len ) ) {
// Print the glyph, find more stuff.
P += Len, Extend_Ln( *Ln.PP, R, 1 ); goto ▶BoTag& ; } } }
// False alarm, wasn't a known Entity, print as-is.
Extend_Ln( *Ln.PP, BoTag&, 1 ), P = BoTag& + 1 ; goto ▶BoTag& ; }
--
Author: _
Date: Mon, 22 Jun 2009 10:12
Date: Mon, 22 Jun 2009 10:12
8 lines
1544 bytes
1544 bytes
When X.ZIP downLoads a post or eMail, Windows-1252 is the default. unKnown charSets, borked charSets ( e.g. UTF-7 ), and subSet charSets ( e.g. ISO-8859-1 and US-ASCII ) are ignored; Windows-1252, the default, is used instead. It's very common for a newsReader to specify ISO-8859-1 when should've specified Windows-1252.
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: Whiskers
Date: Mon, 22 Jun 2009 12:28
Date: Mon, 22 Jun 2009 12:28
28 lines
3003 bytes
3003 bytes
On 2009-06-22, _@Jeff_Relf.Seattle.inValid <_@Jeff_Relf.Seattle.inValid> wrote: > When X.ZIP downLoads a post or eMail, Windows-1252 is the default. > > unKnown charSets, borked charSets ( e.g. UTF-7 ), > and subSet charSets ( e.g. ISO-8859-1 and US-ASCII ) are ignored; > Windows-1252, the default, is used instead. > > It's very common for a newsReader to specify ISO-8859-1 > when should've specified Windows-1252. 'Windows-1252' is a bodge peculiar to Microsoft products only, and doesn't fit into the ISO standards. It should be the default for nothing at all that gets onto the internet. It was invented to extend the character set available to MS Word etc, and is fine for that purpose - provided the documents are printed on paper; sharing document files in a proprietary word-processor format and encoding is not what 'Windows-1252' or word processors were designed for and it doesn't work well at all (sharing such things between people using compatible MS operating systems and applications does work, more or less, but the text looks very silly outside that limited context, with strange characters and broken formatting, unless the text is parsed through something that replaces the MS-only characters with something from ASCII or an appropriate ISO character set). -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [JR] Web pages, HTML & charsets
Author: Rom
Date: Mon, 22 Jun 2009 12:45
Date: Mon, 22 Jun 2009 12:45
24 lines
2125 bytes
2125 bytes
On Mon, 22 Jun 2009 09:34:52 +0000 (UTC), _@Jeff_Relf.Seattle.inValid wrote: > FireFox is my main browser; I use IE8 at times. > All of the 20 webPages I bookMarked use HTML, of course. > What makes you(Rom) think they wouldn't ? It's not unsurprising that web pages use HTML. It's not unsurprising that some percentage of web pages use UTF-8, but all those web pages aren't newsreaders. It's not unsurprising 99.85% of statistics are made up, or that anyone can produce them to support something. > I don't keep track of which newsReaders support HTML. Most of the 'popular' newsreaders support HTML, and yet your views on HTML for mail and news are very conservative and your current usage is self-restricted to plain text. Most of the 'popular' newsreaders support UTF-8, and you use these 'popular' newsreaders to support your myopic position in display for your posts or to convince yourself. None of the 'popular' newsreaders are as broken as yours. -- Rom
Re: [JR] Web pages, HTML & charsets
Author: Rom
Date: Mon, 22 Jun 2009 12:54
Date: Mon, 22 Jun 2009 12:54
30 lines
2420 bytes
2420 bytes
On Mon, 22 Jun 2009 03:09:15 -0500, »Q« wrote: > In <news:12vlxg6x91o9z$.1ipmnga819en9.dlg@40tude.net>, > Rom <-@-.invalid> wrote: > >> On Mon, 22 Jun 2009 03:29:45 +0000 (UTC), _@Jeff_Relf.Seattle.inValid >> wrote: > >>> By the way, I upDated my copy of Firefox from 3.0.7 to 3.0.11 . >> >> Fx 3.0.11's default character encoding is still ISO-8859-1. > > What appears in Fx's GUI as "Default Character Encoding" is really > more like "fallback character encoding" -- it's only used for > pages/servers which don't specify what charset should be used. So it > makes some sense to stick with older legacy encodings as "default" > since pages that are UTF-8 are more likely to have proper http > headers, and they won't need the fallback. Yes, it's similar to Dialog's default group charset and fallback for undeclared charsets. Charsets can be changed for group(s) as well as manually changing for messages. > I'd guess different locales have different defaults, but the default > for en Firefoxen is ISO-8859-1, as you say. I don't know for other locales but was assuming JR using en. -- Rom
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: »Q«
Date: Mon, 22 Jun 2009 22:50
Date: Mon, 22 Jun 2009 22:50
37 lines
2794 bytes
2794 bytes
In <news:slrnh3uu7q.c4p.catwheezel@ID-107770.user.individual.net>,
Whiskers <catwheezel@operamail.com> wrote:
> Organization: is an alien concept
>
> On 2009-06-22, _@Jeff_Relf.Seattle.inValid
> <_@Jeff_Relf.Seattle.inValid> wrote:
> > When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
> >
> > unKnown charSets, borked charSets ( e.g. UTF-7 ),
> > and subSet charSets ( e.g. ISO-8859-1 and US-ASCII ) are ignored;
> > Windows-1252, the default, is used instead.
> >
> > It's very common for a newsReader to specify ISO-8859-1
> > when should've specified Windows-1252.
>
> 'Windows-1252' is a bodge peculiar to Microsoft products only, and
> doesn't fit into the ISO standards.
HAving an ISO number isn't what matters when it comes to charsets for
MIMEd stuff. What matters is IANA, and Windows-1252 is fine.
<http://www.iana.org/assignments/charset-reg/windows-1252>
The people working on the HTML5 spec seem to agree with Relf that
ISO-8859-1 must (their word in the latest draft) be treated as
Windows-1252. AIUI, their reasoning is the same as Relf's, that
web servers/pages often specify ISO-8859-1 when they should have
specified Windows-1252.
<http://www.w3.org/TR/html5/infrastructure.html#character-encodings-0>
I'm not saying it's *good* that html and other MIMEish stuff has become
infested with MS' bad ideas, but it has.
--
»Q«
Kleeneness is next to Gödelness.
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: Whiskers
Date: Tue, 23 Jun 2009 12:34
Date: Tue, 23 Jun 2009 12:34
76 lines
5081 bytes
5081 bytes
On 2009-06-22, »Q« <boxcars@gmx.net> wrote: > In <news:slrnh3uu7q.c4p.catwheezel@ID-107770.user.individual.net>, > Whiskers <catwheezel@operamail.com> wrote: > >> Organization: is an alien concept >> >> On 2009-06-22, _@Jeff_Relf.Seattle.inValid >> <_@Jeff_Relf.Seattle.inValid> wrote: >> > When X.ZIP downLoads a post or eMail, Windows-1252 is the default. >> > >> > unKnown charSets, borked charSets ( e.g. UTF-7 ), >> > and subSet charSets ( e.g. ISO-8859-1 and US-ASCII ) are ignored; >> > Windows-1252, the default, is used instead. >> > >> > It's very common for a newsReader to specify ISO-8859-1 >> > when should've specified Windows-1252. >> >> 'Windows-1252' is a bodge peculiar to Microsoft products only, and >> doesn't fit into the ISO standards. > > HAving an ISO number isn't what matters when it comes to charsets for > MIMEd stuff. What matters is IANA, and Windows-1252 is fine. > <http://www.iana.org/assignments/charset-reg/windows-1252> IANA acknowledge that Windows-1252 exists; they make no value judgement. > The people working on the HTML5 spec seem to agree with Relf that > ISO-8859-1 must (their word in the latest draft) be treated as > Windows-1252. AIUI, their reasoning is the same as Relf's, that > web servers/pages often specify ISO-8859-1 when they should have > specified Windows-1252. > <http://www.w3.org/TR/html5/infrastructure.html#character-encodings-0> > > I'm not saying it's *good* that html and other MIMEish stuff has become > infested with MS' bad ideas, but it has. W3.org (who are talking about the World Wide Web, not about usenet or email) do not say that ISO-8859-1 must be treated as Windows-1252. What they say is .----- | When a user agent would otherwise use an encoding given in the first | column of the following table to either convert content to Unicode | characters or convert Unicode characters to bytes, it must instead use the | encoding given in the cell in the second column of the same row. When a | byte or sequence of bytes is treated differently due to this encoding | aliasing, it is said to have been misinterpreted for compatibility. '----- That seems to be a bodge to acknowledge that there are web pages which use Microsoft-only character encodings but have been mis-identified as using ISO standard character encodings. So they want web browsers that use UTF-8 for display purposes, to deliberately assume that some pages are mis-identified and to use whichever character set contains the greater number of 'printable' characters when converting the character sets for display. That's what the (mercifully small) table is about. They acknowledge that this is a horrible bodge: .----- | Note: The requirement to treat certain encodings as other encodings | according to the table above is a willful violation of the W3C Character | Model specification. '----- (Some web browsers allow the user to change the character encoding used for display, so those users still have the option to see correctly encoded pages as they should be). They do not say that a newsgroup article posted in ISO-8859-1 should be treated as though it had been encoded in Windows-1252 - and they certainly do not pretend that the Windows character set supplants the ISO one. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default. (was: When X.ZIP downLoads a post or eMail, Windows-1252...
Author: Ted S.
Date: Tue, 23 Jun 2009 14:20
Date: Tue, 23 Jun 2009 14:20
15 lines
2400 bytes
2400 bytes
On Tue, 23 Jun 2009 13:34:11 +0100, Whiskers wrote: >>> On 2009-06-22, _@Jeff_Relf.Seattle.inValid >>> <_@Jeff_Relf.Seattle.inValid> wrote: >>> > When X.ZIP downLoads a post or eMail, Windows-1252 is the default. And yet, Relf insists on putting a Unicode character in his post and subject line. (The glyphs that cause Dialog to use a font other than my default for showing the article list pane invariably cause Dialog to hiccough.) -- Ted S. fedya at hughes dot net Now blogging at http://justacineast.blogspot.com
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: »Q«
Date: Wed, 24 Jun 2009 02:00
Date: Wed, 24 Jun 2009 02:00
104 lines
6003 bytes
6003 bytes
In <news:slrnh41iu3.8ag.catwheezel@ID-107770.user.individual.net>, Whiskers <catwheezel@operamail.com> wrote: > On 2009-06-22, »Q« <boxcars@gmx.net> wrote: > > In <news:slrnh3uu7q.c4p.catwheezel@ID-107770.user.individual.net>, > > Whiskers <catwheezel@operamail.com> wrote: > > > >> Organization: is an alien concept > >> > >> On 2009-06-22, _@Jeff_Relf.Seattle.inValid > >> <_@Jeff_Relf.Seattle.inValid> wrote: > >> > When X.ZIP downLoads a post or eMail, Windows-1252 is the > >> > default. > >> > > >> > unKnown charSets, borked charSets ( e.g. UTF-7 ), > >> > and subSet charSets ( e.g. ISO-8859-1 and US-ASCII ) are ignored; > >> > Windows-1252, the default, is used instead. > >> > > >> > It's very common for a newsReader to specify ISO-8859-1 > >> > when should've specified Windows-1252. > >> > >> 'Windows-1252' is a bodge peculiar to Microsoft products only, and > >> doesn't fit into the ISO standards. > > > > HAving an ISO number isn't what matters when it comes to charsets > > for MIMEd stuff. What matters is IANA, and Windows-1252 is fine. > > <http://www.iana.org/assignments/charset-reg/windows-1252> > > IANA acknowledge that Windows-1252 exists; they make no value > judgement. > > > The people working on the HTML5 spec seem to agree with Relf that > > ISO-8859-1 must (their word in the latest draft) be treated as > > Windows-1252. AIUI, their reasoning is the same as Relf's, that > > web servers/pages often specify ISO-8859-1 when they should have > > specified Windows-1252. > > <http://www.w3.org/TR/html5/infrastructure.html#character-encodings-0> > > > > I'm not saying it's *good* that html and other MIMEish stuff has > > become infested with MS' bad ideas, but it has. > > W3.org (who are talking about the World Wide Web, not about usenet or > email) do not say that ISO-8859-1 must be treated as Windows-1252. > What they say is > > .----- > | When a user agent would otherwise use an encoding given in the > first | column of the following table to either convert content to > Unicode | characters or convert Unicode characters to bytes, it must > instead use the | encoding given in the cell in the second column of > the same row. When a | byte or sequence of bytes is treated > differently due to this encoding | aliasing, it is said to have been > misinterpreted for compatibility. '----- In any case that matters at all, that's treating ISO-8859-1 as Windows-1252. > That seems to be a bodge to acknowledge that there are web pages > which use Microsoft-only character encodings but have been > mis-identified as using ISO standard character encodings. Except that those are *not* "Microsoft-only" character encodings, that's correct. It takes care of the same problem that Relf's treatment of ISO-8859-1 as Windows-1252 in posts he receives; that was my point. > So they want web browsers that use UTF-8 for display purposes, to > deliberately assume that some pages are mis-identified and to use > whichever character set contains the greater number of 'printable' > characters when converting the character sets for display. Not UTF-8, but Unicode. > That's what the (mercifully small) table is about. They acknowledge that > this is a horrible bodge: > > .----- > | Note: The requirement to treat certain encodings as other encodings > | according to the table above is a willful violation of the W3C > Character | Model specification. > '----- > > (Some web browsers allow the user to change the character encoding > used for display, so those users still have the option to see > correctly encoded pages as they should be). It's a draft, and even if that part of it remains in the eventual HTML5 spec, it'll be a while before there are conformant browsers; AFAIK, there aren't any yet for HTML4. ;) > They do not say that a newsgroup article posted in ISO-8859-1 should > be treated as though it had been encoded in Windows-1252 Of course, they are two different kinds of media. But they have a common problem (Windows-1252 mislabeled as ISO-8859-1) and there's a common kludge/solution (treat ISO-8859-1 as Windows-1252). I'm not advocating doing that, but it's not surprising that it works ok for Relf. > - and they certainly do not pretend that the Windows character set > supplants the ISO one. There's no need for one to supplant the other; as far as MIME goes, they all have the same standing.
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: Whiskers
Date: Wed, 24 Jun 2009 11:34
Date: Wed, 24 Jun 2009 11:34
87 lines
5391 bytes
5391 bytes
On 2009-06-24, »Q« <boxcars@gmx.net> wrote: > In <news:slrnh41iu3.8ag.catwheezel@ID-107770.user.individual.net>, > Whiskers <catwheezel@operamail.com> wrote: >> On 2009-06-22, »Q« <boxcars@gmx.net> wrote: [...] >> .----- >> | When a user agent would otherwise use an encoding given in the first >> | column of the following table to either convert content to Unicode >> | characters or convert Unicode characters to bytes, it must instead use >> | the encoding given in the cell in the second column of the same row. >> | When a byte or sequence of bytes is treated differently due to this >> | encoding aliasing, it is said to have been misinterpreted for >> | compatibility. >> '----- > > In any case that matters at all, that's treating ISO-8859-1 as > Windows-1252. > >> That seems to be a bodge to acknowledge that there are web pages >> which use Microsoft-only character encodings but have been >> mis-identified as using ISO standard character encodings. > > Except that those are *not* "Microsoft-only" character encodings, > that's correct. It takes care of the same problem that Relf's > treatment of ISO-8859-1 as Windows-1252 in posts he receives; that was > my point. OK. But I've never been aware of much of a problem with wrongly-identified character encodings in newsgroups. I have fumed at not having the right characters available to me, though, when using systems that lacked UTF-8 support or a suitable 'font'. >> So they want web browsers that use UTF-8 for display purposes, to >> deliberately assume that some pages are mis-identified and to use >> whichever character set contains the greater number of 'printable' >> characters when converting the character sets for display. > > Not UTF-8, but Unicode. "UTF-8 is the way in which Unicode is used under Unix, Linux, and similar systems." <http://www.cl.cam.ac.uk/~mgk25/unicode.html> >> That's what the (mercifully small) table is about. They acknowledge that >> this is a horrible bodge: >> >> .----- >> | Note: The requirement to treat certain encodings as other encodings >> | according to the table above is a willful violation of the W3C >> | Character Model specification. >> '----- >> >> (Some web browsers allow the user to change the character encoding >> used for display, so those users still have the option to see >> correctly encoded pages as they should be). > > It's a draft, and even if that part of it remains in the eventual HTML5 > spec, it'll be a while before there are conformant browsers; AFAIK, > there aren't any yet for HTML4. ;) ... not to mention the conformity of web pages to any standard ... >> They do not say that a newsgroup article posted in ISO-8859-1 should >> be treated as though it had been encoded in Windows-1252 > > Of course, they are two different kinds of media. But they have a > common problem (Windows-1252 mislabeled as ISO-8859-1) and there's a > common kludge/solution (treat ISO-8859-1 as Windows-1252). I'm not > advocating doing that, but it's not surprising that it works ok for > Relf. Not a problem I've encountered much, if at all. >> - and they certainly do not pretend that the Windows character set >> supplants the ISO one. > > There's no need for one to supplant the other; as far as MIME goes, > they all have the same standing. Which in usenet, is technically none ;)) (Which is probably the root od the problem). -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: »Q«
Date: Wed, 24 Jun 2009 21:33
Date: Wed, 24 Jun 2009 21:33
12 lines
2047 bytes
2047 bytes
In <news:slrnh443pb.80m.catwheezel@ID-107770.user.individual.net>, Whiskers <catwheezel@operamail.com> wrote: > On 2009-06-24, »Q« <boxcars@gmx.net> wrote: >> as far as MIME goes, they all have the same standing. > > Which in usenet, is technically none ;)) (Which is probably the > root od the problem). No doubt! What we need is a cabal to run the show.
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: Whiskers
Date: Wed, 24 Jun 2009 22:14
Date: Wed, 24 Jun 2009 22:14
19 lines
2400 bytes
2400 bytes
On 2009-06-24, »Q« <boxcars@gmx.net> wrote: > In <news:slrnh443pb.80m.catwheezel@ID-107770.user.individual.net>, > Whiskers <catwheezel@operamail.com> wrote: > >> On 2009-06-24, »Q« <boxcars@gmx.net> wrote: > >>> as far as MIME goes, they all have the same standing. >> >> Which in usenet, is technically none ;)) (Which is probably the >> root od the problem). > > No doubt! What we need is a cabal to run the show. Only one? -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: Bert Hyman
Date: Wed, 24 Jun 2009 22:40
Date: Wed, 24 Jun 2009 22:40
19 lines
2181 bytes
2181 bytes
In news:20090624163353.500c956c@bellgrove.remarqs.net =?UTF-8?B?wrtRwqs=?= <boxcars@gmx.net> wrote: > In <news:slrnh443pb.80m.catwheezel@ID-107770.user.individual.net>, > Whiskers <catwheezel@operamail.com> wrote: > >> On 2009-06-24, »Q« <boxcars@gmx.net> wrote: > >>> as far as MIME goes, they all have the same standing. >> >> Which in usenet, is technically none ;)) (Which is probably the >> root od the problem). > > No doubt! What we need is a cabal to run the show. There Is No Cabal. -- Bert Hyman St. Paul, MN bert@iphouse.com
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: Eggs Zachtly
Date: Wed, 24 Jun 2009 23:40
Date: Wed, 24 Jun 2009 23:40
26 lines
2974 bytes
2974 bytes
Bert Hyman said: > In news:20090624163353.500c956c@bellgrove.remarqs.net > =?UTF-8?B?wrtRwqs=?= <boxcars@gmx.net> wrote: > >> In <news:slrnh443pb.80m.catwheezel@ID-107770.user.individual.net>, >> Whiskers <catwheezel@operamail.com> wrote: >> >>> On 2009-06-24, »Q« <boxcars@gmx.net> wrote: >> >>>> as far as MIME goes, they all have the same standing. >>> >>> Which in usenet, is technically none ;)) (Which is probably the >>> root od the problem). >> >> No doubt! What we need is a cabal to run the show. > > There Is No Cabal. All your cabal are belong to us. -- Eggs When the only tool you own is a hammer, every problem begins to look like a nail.
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: »Q«
Date: Thu, 25 Jun 2009 00:17
Date: Thu, 25 Jun 2009 00:17
28 lines
2611 bytes
2611 bytes
In <news:Xns9C34B39FC5A73VeebleFetzer@216.250.184.7>, Bert Hyman <bert@iphouse.com> wrote: > In news:20090624163353.500c956c@bellgrove.remarqs.net > =?UTF-8?B?wrtRwqs=?= <boxcars@gmx.net> wrote: > > > In <news:slrnh443pb.80m.catwheezel@ID-107770.user.individual.net>, > > Whiskers <catwheezel@operamail.com> wrote: > > > >> On 2009-06-24, »Q« <boxcars@gmx.net> wrote: > > > >>> as far as MIME goes, they all have the same standing. > >> > >> Which in usenet, is technically none ;)) (Which is probably the > >> root od the problem). > > > > No doubt! What we need is a cabal to run the show. > > There Is No Cabal. Exactly, and that's the problem! There *used* to be a cabal, and everything was peachy back then.[1] There seem to be more and more guys running Usenet servers from their basements -- maybe they'll form a cabal. [1] Wasn't it?
--
Author: _
Date: Fri, 26 Jun 2009 11:02
Date: Fri, 26 Jun 2009 11:02
586 lines
24877 bytes
24877 bytes
Life is just a party and, for me, X.ZIP is hella fun.
I promote homeSpun newsReaders, not X.ZIP per se, not UTF-8.
Honestly, I don't care if you prefer HTML over plainText,
or UTF-7 over UTF-8.
>From www.JeffRelf.F-M.FM/X.CPP here's how I handle events...
For example, on re·deActivation, settings are reLoaded and,
if the taskBar changed position ( a screen resolution change ? )
the window is reSized and glyphs are reCached.
X.ZIP employs 123 columns on a maximized window
no matter what the screen resolution might be.
For a 1280 wide screen, that's 10+ pixels per glyph.
Floating point numbers are used a lot.
ScreenShot of X.ZIP showing selected glyphs:
www.JeffRelf.F-M.FM/UTF-8.PNG
Listing code, like I do here, helps me improve it.
I've commented sections that recently interested me.
__stdcall WinMain( HINSTANCE PID, HINSTANCE, LPSTR, int ) {
insFont( L"DejaVuSansMono.TTF", L"DejaVu Sans Mono (TrueType)" );
ScrW = ScrRight = GetSystemMetrics( SM_CXSCREEN );
ScrH = ScrBot = GetSystemMetrics( SM_CYSCREEN );
ScrLeft = ScrTop = 0, TaskBar = FindWindow( L"Shell_TrayWnd", 0 );
BSaveAll_VS.vt = VT_BSTR ;
BSaveAll_VS.bstrVal = SysAllocString( L"File.SaveAll" );
CoInitialize( 0 );
rv = CoCreateInstance(
CLSID_CMultiLanguage
, 0, CLSCTX_ALL, IID_IMultiLanguage3, ( void * * ) & Outlook );
FndCS( _CharSet, 0 ) _8_Bit = _CharSet.uiInternetEncoding ;
QueryPerformanceFrequency( ( DubInt * ) & Secnd ), Secnd_Dub = Secnd ;
NewHeap; Int_Div = ( __int64 ( 1 ) << 32 ) * 1000 / Secnd ;
{ LnP CC = L"Aa0+/"; int X = -1 ;
Loop( strSz ( CC ) ) {
int L = J > 2 ? 1 : J == 2 ? 10 : 26 ; wchar_t C = CC [ J ] - 1 ;
Loop( L ) A_63 [ _63_A [ X ] = ++ C ] = ++ X ; } }
HICON Icon = LoadIcon( PID, L"X" ); RegW( WinProc )
Win = CreateWindowExW(
0, L"WinProc", L"", Vis | WS_POPUP, 0,0,0,0, 0, 0, PID, 0 );
DirectDrawCreate( 0, & _Direct_Draw, 0 );
_Direct_Draw->QueryInterface(
IID_IDirectDraw7, (VOID**) & DirectDraw );
if ( ! _Direct_Draw ) return ;
DirectDraw->SetCooperativeLevel( Win, DDSCL_NORMAL );
Z.ddsCaps.dwCaps= DDSCAPS_PRIMARYSURFACE;
DirectDraw->CreateSurface( & Z, & WinSur, 0 );
Z.dwFlags |= DDSD_HEIGHT | DDSD_WIDTH ;
GdiplusStartupInput Plus_;
GdiplusStartup( ( ulong * ) & rv, & Plus_, 0 );
WhiteInk = CreatePen( PS_SOLID, 2, RGB( 255, 255, 255 ) );
Black = CreateSolidBrush( 0 );
SetCursor( LoadCursor( 0, IDC_ARROW ) );
gEvent(0);
nxEvent:
// This is the main event loop.
Tb_Hit = 0, SetFocus( Win ); while( ! gEvent( Any ) );
if ( OnUp && ButUp ) { * ButDwnE = 0 ;
LoopXx ( Tb, Tb )
if ( Eq ( ButDwn, P->ButtNym ) ) {
// This toolBar item was hit:
Tb_Hit = P, * ButDwnE = 32 ; goto Hit ; }
* ButDwnE = 32 ; }
goto nxEvent ;
―――――――――――――――――――
if ( Eq ( Tb_Hit->Handler, L"GrDown" ) ) {
// Save all files in the code editor(Visual Studio)
// and downLoad the latest posts for
// the specified newsGroup(Tb_Hit->Newsgroup), e.g. Rdr.TXT
SaveAll_VS(); TopChatter;
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――
// The glyph-caching and event handling code...
CharSurT & CacheGlyph( GyP P, const ulong * Hue );
const int Lowest_Ascii = 32, Highest_Ascii = 126 ;
GyP _Gy( wchar_t Ch ) { GyP P ; int Greater_Ch = 0 ;
if ( Ch >= Lowest_Ascii && Ch <= Highest_Ascii )
return Gy.BB [ Ch - Lowest_Ascii ];
GyA
BB = Gy.BB + ( Highest_Ascii - Lowest_Ascii + 1 )
, EE = Gy.PP + 1, PP = BB ;
LOOP { PP = BB + ( EE - BB ) / 2 ;
if ( PP == Gy.PP + 1 ) { Greater_Ch = 0 ; break ; }
P = * PP ; Greater_Ch = Ch - P->Ch ;
if ( ! Greater_Ch ) return P ;
if ( Greater_Ch > 0 ) { if ( PP >= EE ) break ; BB = PP + 1 ; }
else { if ( PP <= BB ) break ; EE = PP - 1 ; } }
int _PP = PP - Gy.BB ; ✚✚( Gy );
EE = Gy.PP + 1, PP = Gy.BB + _PP ; int After = EE - PP - 1 ;
if ( Greater_Ch > 0 ) PP ++, -- After ;
if ( After > 0 ) memmove( PP + 1, PP, After * szPtr );
* PP = P = ( GyP ) Malloc ( sizeof * P ) ;
P->Ch = Ch, CacheGlyph( P, 0 ); return P ; }
#define Okay ( \
rv >= 0 || rv == DDERR_WASSTILLDRAWING || rv == DDERR_SURFACELOST )
LnP DXErr ;
int Chk( int rv ) { if ( Okay ) return rv ;
DXErr = LnP( DXGetErrorString8( rv ) ); return rv ; }
RECT WinRecL ;
void Fast_Paint ( _SurT SurFrom, RECT FromR, RECT ToR ) {
if( ! SurFrom ) return; int X = ToR.left, Y = ToR.top;
int * P = Lng ToR - 1, * V = Lng WinRecL;
Loop( 4 ) { int X= J & 1;
* P = Bound( * ++P, V[ X ? 1 : 0 ], V[ X ? 3 : 2 ]); }
P= Lng ToR; int W= P[2]-P[0], H= P[3]-P[1]; if( !W|| !H) return;
P= Lng FromR;
if(X< 0) P[0]= P[2]- W; else P[2]= P[0]+ W;
if(Y< 0) P[1]= P[3]- H; else P[3]= P[1]+ H;
Chk( DrawSur->BltFast(
ToR.left, ToR.top, SurFrom
, & FromR, SurFrom == ImgSur ? 0 : DDBLTFAST_SRCCOLORKEY ) ); }
int UseKey ;
NewSur( _SurT & Sur, int W, int H ) {
int K = UseKey ; UseKey = 1 ;
// “ UseKey == 1 ” after:
// “ UseKey = 0, NewSur( DrawSur, WinW, WinH ); ” !
Z.dwWidth = W , Z.dwHeight = H , Z.ddsCaps.dwCaps = DDSCAPS_VIDEOMEMORY ;
if ( 0 > DirectDraw->CreateSurface( & Z, & Sur, 0 ) )
Z.ddsCaps.dwCaps = DDSCAPS_TEXTURE
, DirectDraw->CreateSurface( & Z, & Sur, 0 );
if ( ! Sur ) exit( 1 ); static DDCOLORKEY BlackKey ;
if ( K ) Sur->SetColorKey( DDCKEY_SRCBLT, & BlackKey ); }
#define Try( F ) \
if ( F ) { \
SetPtr( DC, F ); \
GetGlyphIndices( \
DC, B, 1, pUShort( & Good ), GGI_MARK_NONEXISTING_GLYPHS ); \
if ( Good != -1 ) goto HaveGlyph ; }
int mxCacheW, mxCacheH, chH ; POINT XY ;
float CharW, CharH, CharW•3, chH•3, CharW•4 ;
int CacheW, iHueSel = pInt( & Hues.Sel_Color ) - pInt( & Hues );
HFONT fnDeath, DejaVu•3, caps, DejaVu•1
, Consolas, Courier, NSimSun, Mincho, Musical ;
const float •3 = 3, •4 = 4, •2·33 = 2.33
, x∕X = .8, •1x∕X = 1 - x∕X * 1.065 ;
int I_Cache, ColsDC ;
#define IncCache ( \
I_Cache = 0, NewSur( ✚✚( Ca ), \
mxCacheW + ColsDC * CacheW, mxCacheH ), aCache = * Ca.PP )
CharSurT & CacheGlyph( GyP P, const ulong * Hue ) {
if ( !Hue ) Hue = & Hues.NormColor ;
int iHue = Hue - ( ulong * ) & Hues ;
CharSurT * C = & P->CharSur [ iHue ];
if ( C->Cached ) return * C ;
// The “Death” glyph is a special case,
// as is the Bass Clef and the “smallCaps”.
int Ch = P->Ch, Death = Ch == L'☠', Zero = Ch == '0'
, capsCh = Ch >= 'a' && Ch <= 'z'
, Bass = Ch >= 0xDC00 && Ch <= 0xDFFF ;
static wchar_t B[ 2 ];
B[ Bass ] = P->Blank ? L'‽' : Zero ? L'°' : !capsCh ? Ch : Ch - 32 ;
if ( Bass ) * B = 0xD834 ;
HDC DC ;
Chk( aCache->GetDC( & DC ) ),
SetTextAlign( DC , TA_LEFT | TA_TOP | TA_UPDATECP );
short Good ;
if ( Death ) { Try( fnDeath ) }
if ( Bass && Musical ) { SetPtr( DC, Musical ); goto HaveGlyph ; }
if ( capsCh && caps ) { SetPtr( DC, caps ); goto HaveGlyph ; }
Try( DejaVu•1 ) Try( Consolas )
Try( Courier ) Try( NSimSun ) Try( Mincho )
Chk( aCache->ReleaseDC( DC ) ); P->Blank = 1 ; goto Known ;
HaveGlyph:
int X = I_Cache * CacheW ;
if ( !Zero && !capsCh ) MvTo( X, 0 ); else MvTo( X + •1x∕X * CharW, •1x∕X * chH );
SetBkColor( DC, iHue != iHueSel ? 0 : RGB( 77, 0, 77 ) );
SetTextColor( DC, * ( ( ulong * ) & Hues + iHue ) );
{ RECT CacheR = _R( X, 0, mxCacheW, mxCacheH );
ExtTextOut(
DC, 0, 0, ETO_CLIPPED | ETO_OPAQUE, & CacheR, B, 1 + Bass, 0 ); }
SIZE XY ; GetTextExtentPoint32( DC, B, 1 + Bass, &XY );
Chk( aCache->ReleaseDC( DC ) );
// The width of the funky-ass Bass Clef has to be hard-coded.
// This font has problems, etc.
P->ColsCh = Bass ? 2 : 1 + --XY.cx / CharW,
P->RowsCh = 1 + --XY.cy / CharH ;
P->Blank = !P->ColsCh ;
Known:
C->Cached = aCache, C->I = I_Cache ;
if ( ( I_Cache += P->ColsCh ) > ColsDC ) IncCache;
return * C ; }
int Col, Row ;
PrnChar ( GyP P, const ulong * Hue ) {
CharSurT & C = CacheGlyph( P, Hue );
// Don't exceed “ mxCacheW x mxCacheH ”
int WW = er( mxCacheW, CacheW * P->ColsCh )
, HH = er( mxCacheH, chH * P->RowsCh );
Fast_Paint(
C.Cached, _R( C.I * CacheW, 0, WW, HH )
, _R( Round( Col * CharW ), Row * chH, WW, HH ) );
Col += P->ColsCh ; }
long __stdcall WinProc ( HWND Wnd, uint _WM, uint C, long C2 ) {
// Do the default handling, then pass it on to gEvent().
DefWindowProc( Wnd, _WM, C, C2 ); PostMessage( Win, _WM, C, C2 );
return 1 ; }
int ToolBarLines = 1 ;
_VisLn( int L ) { VisLn = Bound ( L, 0, Scro_Max ); }
struct { int ii, i ; } sAnk, sB, sE ;
int C, C2 ;
ushort * P_C = ( ushort * ) & C, * P_C2 = ( ushort * ) & C2 ;
int Col_to_Index( int ii ) {
// From a click on the screen, locate the buffer.
if ( Ln.BB + ii > Ln.PP || !Ln.BB[ ii ] ) return 0 ;
LnP B = Ln.BB[ ii ], P = B, E = P + int( * P_C2 / CharW );
While( Ch && P < ( E += Is_Color ? 1 : 1 - _Gy( Ch )->ColsCh ) );
return P - B ; }
int szToClip ;
SzClip( LnP D ) {
// Tell me the size of the selected text;
// when there's a buffer, copy the selected text.
szToClip = 9 ; int Szing = ! D -- ; LnA PP = Ln.BB + sB.ii - 1 ;
int virEE = Ln.BB + sE.ii > Ln.PP ;
Loop( 1 + sE.ii - sB.ii - virEE ) {
int Last = J == LLL - 1 ; LnP oD = D, B = * ++ PP, P = B, E ;
if ( !B ) continue ; E = B + strSz( B );
if ( ! J ) P = B + sB.i ;
if ( !virEE && Last ) { E = B + sE.i ; if ( *E ) E ++ ; }
if ( Szing ) {
szToClip += E - B + 2 ;
if ( Last ) { szToClip *= szChr ; return ; } continue ; }
While( Ch && P < E )
if ( ! Is_Color ) * ++ D = Ch ;
if ( !virEE && Last ) {
D[ !( LLL > 1 && D - oD == 1 ) ] = 0 ; return ; }
* ++ D = 13, * ++ D = 10 ;
if ( virEE && Last ) * ++ D = 0 ; } }
gFont( HFONT &F, LnP N, int H ) {
FontFamily Nym( N ); if ( ! Nym.IsAvailable() ) return ;
DeleteObject( F ),
F = CreateFont( H, 0,0,0,0,0,0,0,0,0,0,0, FIXED_PITCH, N );
if ( !caps )
caps = CreateFont(
1 + x∕X * H, 0,0,0,0,0,0,0,0,0,0,0, FIXED_PITCH, N ); }
float WinW, WinH ;
int ColsWin, ScrRight, ScrBot, ScrLeft, ScrTop
, ScrW, ScrH, RowsWin, Lines_Per_Pg
, ImgW, ImgH, WinRight, WinBot, WinLeft, WinTop ;
RECT WinRecG, CursorRec ; HPEN WhiteInk; int Cur_Pix ;
HWND TaskBar ; RECT TB ; const int SzTB = sizeof TB ;
#define Trash( Buf ) ( \
! ( Buf ) ? 0 : ( ( Buf )->Release(), Buf = 0 ) )
HWND Wnd ; LnP ButDwn, ButDwnE, ButWas ;
int WM, WasInX, OnScroll, ButUp, OnUp, OnDwn, OnLD, OnMD, OnRD
, LD, MD, RD, OnLU, OnMU, OnRU ;
#define IncY ShowCursor( 1 )
#define DecY ShowCursor( 0 )
SetCur( int X ) {
int Y = DecY ;
if ( Y > X ) while ( DecY > X );
else if ( Y < X ) while ( IncY < X ); }
int Leaving, WasCtl ;
#define WantsOut ( \
WM == WM_APPCOMMAND && P_C2[ 1 ] == APPCOMMAND_CLOSE \
|| WM == WM_SYSKEYDOWN && C == VK_F4 \
|| WM == WM_KEYDOWN && ( ( Leaving = C == 27 || C == VK_F4
|| WasCtl && C == 'W' ), WasCtl = C == 17, Leaving ) )
const int Any = 1, Spun = 0; MSG Msg;
//#include "Debug.CPP"
int gEvent( int TheGirl ) {
static int OnStage = -1, MayReactivate, rv ;
if ( !chH ) goto reInit ;
Wnd = 0,
WM = C = C2 = OnScroll = OnUp = OnDwn = OnLD
= OnMD = OnRD = OnLU = OnMU = OnRU = 0 ;
GetCursorPos( & XY );
int MouseX = XY.x, MouseY = XY.y
, InX = MouseY >= WinTop && MouseY <= WinBot
&& MouseX >= WinLeft && MouseX <= WinRight ;
if ( PeekMessage( & Msg, 0,0,0, PM_REMOVE ) ) {
static float Y_Was ;
WM = Msg.message, C = Msg.wParam, C2 = Msg.lParam, Wnd = Msg.hwnd ;
// ShWM // “ShWM” shows selected messages.
if ( WM == WM_MOUSEWHEEL )
OnScroll = short( P_C [ 1 ] ) < 0 ? 1 : -1 ;
OnLD = WM == WM_LBUTTONDOWN,
OnMD = WM == WM_MBUTTONDOWN, OnRD = WM == WM_RBUTTONDOWN ;
OnDwn = OnLD || OnMD || OnRD ;
OnLU = WM == WM_LBUTTONUP,
OnMU = WM == WM_MBUTTONUP, OnRU = WM == WM_RBUTTONUP ;
if ( OnUp = OnLU || OnMU || OnRU ) {
if ( LD < 0 ) OnLU = LD = 0 ;
if ( MD < 0 ) OnMU = MD = 0 ; if ( RD < 0 ) OnRU = RD = 0 ; }
if ( OnLD ) LD = 1 ; if ( OnLU ) LD = 0;
if ( OnMD ) MD = 1 ; if ( OnMU ) MD = 0;
if ( OnRD ) RD = 1, Y_Was = P_C2 [ 1 ] - chH ;
if ( OnRU ) RD = 0;
int Row = P_C2 [ 1 ] / chH ;
if ( OnDwn || OnUp ) {
if ( Row || ! BarB ) goto No ; float Col = * P_C2 / CharW ;
LnP B = BarB, P, E = B + strSz( B )
, M = er( E, B + int( Col ) )
, L = ER( B, M - 1 ), R = er( E, B + int( Col + .5 ) );
if ( * L <= 32 && * M <= 32 && * R <= 32 ) goto No ;
PaintReq = 1 ;
P = 1 + ( * M > 32 ? M : * L > 32 ? L : R );
int Sav = * P ; * ( E = P ) = 0 ;
WhileBac( Ch > 32 ); * E = Sav ;
if ( Ch2 <= 32 ) {
No: ButDwn = ButDwnE = 0, ButUp = 0, PaintReq = 1 ; }
else {
if ( OnDwn ) ButDwn = ButWas = ++ P ;
else ButUp = ++ P == ButDwn ;
WhileBlack; if ( OnDwn ) ButDwnE = P ; } }
if ( ButUp && ( OnLD || OnLU ) ) { static int Cancel ;
if ( ! Row ) {
if ( OnLD ) Cancel = 1 ;
else if ( Cancel && OnLU )
// This cancels a download, it's semi-borked.
Due = Secs ; }
if ( OnLU ) Cancel = 0 ; }
if ( Row >= ToolBarLines && OnLD && VisLn != -1 ) {
PaintReq = 1 ; int ii = VisLn + Row - ToolBarLines ;
if ( Selctd = ii >= 0 && Ln.BB + ii <= Ln.PP + 1 )
sAnk.ii = ii, sAnk.i = Col_to_Index( ii ), sB = sE = sAnk ; }
if ( Row >= ToolBarLines
&& OnLU && Selctd && OpenClipboard( Win ) ) {
SzClip( 0 ), EmptyClipboard();
HGLOBAL Mem = GlobalAlloc( GMEM_MOVEABLE, szToClip );
SzClip( ( LnP ) GlobalLock( Mem ) ), GlobalUnlock ( Mem ),
SetClipboardData( CF_UNICODETEXT, Mem );
CloseClipboard(); }
int Scroll =
WM != WM_KEYDOWN
? OnScroll * ( ! RD ? 1 : Lines_Per_Pg )
: C == VK_PRIOR
? -Lines_Per_Pg
: C == VK_NEXT
? Lines_Per_Pg
: C == VK_UP ? -1 : C == VK_DOWN ? 1 : 0 ;
if ( Scroll ) PaintReq = 1, _VisLn( VisLn + Scroll );
if ( WM == WM_MOUSEMOVE ) {
PaintReq = 1 ; int ii = VisLn + Row - ToolBarLines ;
if ( LD && Selctd && ii >= 0 && Ln.BB + ii <= Ln.PP + 1 ) {
int i = Col_to_Index( ii );
if ( ii < sAnk.ii ) sE = sAnk, sB.ii = ii, sB.i = i ;
else if ( ii > sAnk.ii ) sB = sAnk, sE.ii = ii, sE.i = i;
else { sB.ii = sE.ii = ii ;
if ( i <= sAnk.i ) sB.i = i, sE.i = sAnk.i ;
else sB.i = sAnk.i, sE.i = i; } }
if ( RD ) { float Y = P_C2 [ 1 ] - chH, HH = WinH - chH ;
_VisLn(
Y < 3
? 0
: Y >= HH - 3
? Scro_Max
: Y_Was - Y >= 0
? Y / Y_Was * VisLn
: Scro_Max
- ( ( HH - Y ) / ( HH - Y_Was ) * ( Scro_Max - VisLn)));
Y_Was = Y ; } }
if ( WantsOut ) exit( 1 );
if ( MayReactivate && WM == WM_NCACTIVATE ) {
OnStage = C, PaintReq = 1 ;
ShowWindow( Win, OnStage ? SW_SHOW : SW_SHOWMINNOACTIVE );
if ( !OnStage ) { PaintReq = 0 ; goto Done; }
ShowWindow( Win, SW_RESTORE ); goto reInit ; }
MayReactivate = 1 ;
if ( WM == 0x0313 || WM == WM_ACTIVATEAPP && C && ! C2 )
// taskBar Entry was Right-clicked... minimize
PaintReq = 1, LD = MD = RD = OnStage = MayReactivate = 0,
ShowWindow( Win, SW_SHOWMINNOACTIVE );
if ( WM == WM_SYNCPAINT || WM == WM_PAINT )
PaintReq = 1, ValidateRect( Win, & WinRecL ); }
if ( PaintReq || WasInX && ! InX ) goto Paint ;
Done:
int GotIt = TheGirl <= Any && WM || TheGirl > Any && WM == TheGirl ;
if ( TheGirl == Any && ! OnUp && ButUp )
ButUp = 0, ButDwn = ButDwnE = 0, PaintReq = 1 ;
else if ( ! GotIt && TheGirl != Spun ) Sleep( 999 / 24 );
return GotIt ;
reInit: // re·deActivate !
// reSize the window and reCache glyphs, if need be.
gSettings(); // Check if X.ZIP's settings have changed.
RECT cTB ;
if ( GetWindowRect( TaskBar, & cTB ), !memcmp( & cTB, & TB, SzTB ) )
// The screen resolution hasn't changed and the taskBar
// hasn't changed size or location... keep the maximized window.
goto Paint ;
memmove( & TB, &cTB, SzTB );
WinLeft = ScrLeft, WinRight = ScrRight
, WinBot = ScrBot, WinTop = ScrTop ;
int Left, Top, TBW = TB.right - TB.left
, TBH = TB.bottom - TB.top, Tall = TBH > TBW ;
if ( Tall ) {
if ( Left = TB.right < ScrW / 2 ) WinLeft = TB.right - 1 ;
else WinRight = TB.left + 1 ; }
else if ( Top = TB.bottom < ScrH / 2 ) WinTop = TB.bottom - 1 ;
else WinBot = TB.top + 1 ;
WinW = WinRight - WinLeft, WinH = WinBot - WinTop ;
WinRecG = _R( WinLeft, WinTop, WinW, WinH ),
WinRecL = _R( 0, 0, WinW, WinH );
SetWindowPos( Win, HWND_TOP, WinLeft, WinTop, WinW, WinH, 0 );
#define _chH( W, H ) ( CacheW / ( float( W ) / H ) )
CharW = WinW / ( ColsWin = 123 ),
CacheW = CharW + 1, ColsDC = WinW / CacheW ;
CharH = _chH( 132, 256 ), chH = CharH ;
PaintReq = 1, DeleteObject( caps ), caps = 0 ;
gFont( DejaVu•1, L"DejaVu Sans Mono", chH );
if ( !caps ) gFont( Consolas, L"Consolas", _chH( 120, 256 ) );
if ( !caps ) gFont( Courier, L"Courier New", _chH( 120, 256 ) );
gFont( NSimSun, L"NSimSun", .9 * CharH );
gFont( Mincho, L"MS Mincho", .9 * CharH );
gFont( Musical, L"Musical Symbols", _chH( 1, 4 ) );
CharW•3 = CharW * •3, chH•3 = chH * •3, mxCacheW = •4 * CacheW, mxCacheH = •2·33 * chH ;
// Commented-out code... used in Games.CPP:
// gFont( DejaVu•3, L"DejaVu Sans Mono", chH•3 );
// The “Death” glyph is 4 chars wide, 2.33 tall.
gFont( fnDeath, L"MS Mincho", mxCacheH );
RowsWin = WinH / chH, Lines_Per_Pg = RowsWin - 1 - ToolBarLines ;
{ LoopXx( Gy, Gy ) free( P ), * PP = 0 ; } { LoopXx( Ca, Ca ) Trash( P ), * PP = 0 ; }
aCache = 0, free( Ca.BB ), Zero( Ca ), free( Gy.BB ), Zero( Gy ), Trash( DrawSur ), Trash( Cursor );
{ Loop( Highest_Ascii - Lowest_Ascii + 1 ) {
GyP P = ✚✚( Gy ) = ( GyP ) Malloc ( sizeof * P );
P->Ch = Lowest_Ascii + J, P->ColsCh = 1 ; } }
Cur_Pix = CacheW * 2, CursorRec = _R( 0, 0, Cur_Pix, Cur_Pix );
UseKey = 0, NewSur( DrawSur, WinW, WinH ), NewSur( Cursor, Cur_Pix, Cur_Pix ), IncCache ;
HDC DC ; Chk( Cursor->GetDC( & DC ) ); FillRect( DC, & CursorRec, Black );
{ Graphics Plus( DC );
Plus.SetSmoothingMode( SmoothingModeAntiAlias );
Pen Ink( Color( 255, 255, 255, 255 ), 2 );
// Draw the cursor, Anti-Aliased, Smoothed.
Plus.DrawLine( & Ink, 0, 0, Cur_Pix / 2, Cur_Pix );
Plus.DrawLine( & Ink, 0, 0, Cur_Pix, Cur_Pix / 2 ); }
Chk( Cursor->ReleaseDC( DC ) ); goto Done ;
Paint: if ( !OnStage ) goto Done ;
static double PaintAlarm ; if ( Secs < PaintAlarm ) goto Done ;
PaintAlarm = _Secs + 1 / 24.;
DrawSur->Blt( & WinRecL, 0,0, DDBLT_ROP, & ErBlack );
if ( BarB ) { LnP P = BarB ; int Ch, Ch2 ; Col = 0, Row = 0 ;
While ( Ch ) {
// Draw the taskbar, underline/highlight stuff.
PrnChar( _Gy( Ch > 32 ? '_' : 32 ), & Hues.NormColor ), Col -- ;
PrnChar( _Gy( Ch )
, P < ButDwn || P >= ButDwnE
? & Hues.BarColor : ButUp ? & Hues.NewColor : & Hues.Yellow );
} }
if ( Ln.BB && VisLn >= 0 ) { LnA PP = Ln.BB + VisLn - 1 ;
Loop( RowsWin ) { if ( ++ PP > Ln.PP ) break;
LnP B = * PP ; if ( ! B ) continue ;
Row = J + ToolBarLines , Col = 0 ; int NoNum = 0 ;
int ii = J + VisLn ; LnP hiB = LnP( -1 ), hiE = 0 ;
if ( Selctd && ii >= sB.ii && ii <= sE.ii )
// The entire line is to be highLighted, from 0 to 999.
hiB = B + ( ii == sB.ii ? sB.i : 0 ),
hiE = B + ( ii == sE.ii ? sE.i : 999 );
const ulong * Color = & Hues.NormColor ; LnP P = * PP - 1 ;
Next_Ch: wchar_t Ch = * ++ P ;
#define ChHue( Ch, On, Hue ) \
case Ch: NoNum = On, Color = & Hues.Hue ; goto Next_Ch ;
switch ( Ch ) { case 0: case 13: case 10: continue;
ChHue( ChNorm, 0, NormColor )
ChHue( ChNormNoNum, 1, NormColor ) ChHue( ChGrey, 1, Grey )
ChHue( ChNew, 1, NewColor ) ChHue( ChOdd, 1, OddColor )
ChHue( ChYell, 1, Yellow ) ChHue( ChRed, 1, Red )
case ChImg:
Fast_Paint(
ImgSur, _R( 0, 0, ImgW, ImgH )
, _R( 0, Row * chH, ImgW, ImgH ) );
goto Next_Ch ;
default: GyP _Ch = _Gy( Ch );
// Print a glyph, why not ?
PrnChar( _Ch,
P >= hiB && P <= hiE
? & Hues.Sel_Color
: Ch < 32 || _Ch->Blank
? & Hues.Grey
: NoNum
? Color
: isDigit( Ch )
? & Hues.NumColor
: _Ch->ColsCh == •2
? & Hues.OddColor
: Iden( Ch ) ? Color : & Hues.Grey );
goto Next_Ch ; } } }
if ( InX )
Fast_Paint(
Cursor, CursorRec
, _R( MouseX - WinLeft, MouseY - WinTop, Cur_Pix, Cur_Pix ) );
SetCur( - InX ), PaintReq = 0 ;
if ( GetForegroundWindow() != Win )
// Last-minute check ! don't draw if the focus has changed.
goto Done ;
WinSur->Blt( & WinRecG, DrawSur, 0, DDBLT_DDFX, & VSync );
if ( WasInX && ! InX ) SetCur( 0 ); WasInX = InX ; goto Done ; }
ShBot() {
VisLn = ER ( 0, Ln.PP - Ln.BB - Lines_Per_Pg ), PaintReq = 1 ; }
inline OnScreen() { if ( VisLn < 0 ) VisLn = 0 ;
if ( Ln.PP - Ln.BB - Lines_Per_Pg <= VisLn ) PaintReq = 1 ; }
int _Sh( LnP B ) { // “Sh()” is like printf().
LnP P = B, E ; int Ch, Ch2, Hgh2 = 0, Hgh = * B == ChNew ;
aLine: While ( ! CRLF ); E = P ; int Two = -1 ;
While ( CRLF ) if ( Ch == 10 ) Two ++ ;
*E = 0 ; int Len = 1 + E - B + Hgh2 ;
LnP D = ✚✚( Ln ) = MallocTmp ( Len * szChr );
*D = ChNew, wmemmove( D + Hgh2, B, Len - Hgh2 ), OnScreen();
if ( Two > 0 ) P -- ; if ( ! * P ) return -- Len ;
if ( Hgh && ! Hgh2 ) Hgh2 = 1; B = P ; goto aLine ; }
#define Printed ( \
Sz_Sh = Str_Stk ( B_Sh, MaxSh - 3, S, ( __LnP ) & S + szPtr ) )
#define Sh_Silent \
while ( Printed < 0 ) \
B_Sh = MallocTmp( ( MaxSh *= 2) * szChr ), B_Sh[ MaxSh - 3] = 0 ;
int MaxSh, Sz_Sh ; LnP B_Sh ;
int Sh ( LnP S, ... ) { Sh_Silent return _Sh( B_Sh ); }
Re: When X.ZIP downLoads a post or eMail, Windows-1252 is the default.
Author: Gene E. Bloch
Date: Fri, 26 Jun 2009 23:19
Date: Fri, 26 Jun 2009 23:19
36 lines
3132 bytes
3132 bytes
On Wed, 24 Jun 2009 19:17:12 -0500, »Q« wrote: > In <news:Xns9C34B39FC5A73VeebleFetzer@216.250.184.7>, > Bert Hyman <bert@iphouse.com> wrote: > >> In news:20090624163353.500c956c@bellgrove.remarqs.net >> =?UTF-8?B?wrtRwqs=?= <boxcars@gmx.net> wrote: >> >>> In <news:slrnh443pb.80m.catwheezel@ID-107770.user.individual.net>, >>> Whiskers <catwheezel@operamail.com> wrote: >>> >>>> On 2009-06-24, »Q« <boxcars@gmx.net> wrote: >>> >>>>> as far as MIME goes, they all have the same standing. >>>> >>>> Which in usenet, is technically none ;)) (Which is probably the >>>> root od the problem). >>> >>> No doubt! What we need is a cabal to run the show. >> >> There Is No Cabal. > > Exactly, and that's the problem! There *used* to be a cabal, and > everything was peachy back then.[1] > > There seem to be more and more guys running Usenet servers from their > basements -- maybe they'll form a cabal. > > > [1] Wasn't it? I've been doing OK with Comcast Cabal, but I'm not using their news server. Not since they shut it down. -- Gene E. Bloch letters0x40blochg0x2Ecom
Re: New Xnews.
Author: Peter J Ross
Date: Sun, 28 Jun 2009 15:18
Date: Sun, 28 Jun 2009 15:18
36 lines
2864 bytes
2864 bytes
In news.software.readers on Sat, 20 Jun 2009 17:39:24 -0500, »Q« <boxcars@gmx.net> wrote: > In <news:slrnh3oe5r.kn7.pjr@pjr.gotdns.org>, > Peter J Ross <pjr@example.invalid> wrote: > >> Something needs to be fixed in a newsreader that, in this respect, is >> provably even more broken than X.EXE. > > IMO, for news clients, lack of MIME support != broken > > MIME's pretty commonly used in netnews, but you've got a tough job if > you want to make a case that it's some kinda news standard that must be > supported. It's the broken quoting of other people's text that I object to in XNews. If I used software that inconvenienced other Usenet readers, I'd stop using it - or write a patch. There's no shortage of MIME-aware Usenet clients. >> Who wants to sign my petition to stop recommending XNews as a good >> news client? > > I don't recommend it, but it *is* a good news client. It's not so good for people who have to read posts it's garbled. Xnews *was* an incomparably excellent news client, but IMO Luu should either modernise it or deprecate it. -- PJR :-) slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/ extra slrn documentation: http://slrn-doc.sourceforge.net/ newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: New Xnews.
Author: XS11E
Date: Sun, 28 Jun 2009 15:49
Date: Sun, 28 Jun 2009 15:49
13 lines
2091 bytes
2091 bytes
Peter J Ross <pjr@example.invalid> wrote: > It's the broken quoting of other people's text that I object to in > XNews. If I used software that inconvenienced other Usenet > readers, I'd stop using it - or write a patch. You seem to be the only one inconvenienced. Did I quote the above correctly? Thought so. Give it up, Peter, Xnews is the best and I'm certainly not going to exchange it for an inferior newsreader.
Re: New Xnews.
Author: Peter J Ross
Date: Sun, 28 Jun 2009 18:53
Date: Sun, 28 Jun 2009 18:53
24 lines
2452 bytes
2452 bytes
In news.software.readers on Fri, 19 Jun 2009 21:52:46 -0700, sittingduck <duck@spamherelots.com> wrote: > Peter J Ross wrote: > >> I'm not one of "the rest of us". I'm just one of the people who >> expects a usable Usenet client to understand basic MIME headers. > > You are in a small minority. Most of us (xnews users) don't care. It's true that I'm one of the minority who care about making our posts easily readable by others. Luu could incorporate iconv as easily as he incorporated pcre. Until he does so, I'll continue to regard XNews as an unsatisfactory Usenet client. What it sends to the server isn't always a reliable representation of what the poster intended. -- PJR :-) slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/ extra slrn documentation: http://slrn-doc.sourceforge.net/ newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: New Xnews.
Author: Peter J Ross
Date: Sun, 28 Jun 2009 19:02
Date: Sun, 28 Jun 2009 19:02
35 lines
2738 bytes
2738 bytes
In news.software.readers on Sun, 28 Jun 2009 08:49:13 -0700, XS11E <xs11eNO@SPAMyahoo.com> wrote: > Peter J Ross <pjr@example.invalid> wrote: > >> It's the broken quoting of other people's text that I object to in >> XNews. If I used software that inconvenienced other Usenet >> readers, I'd stop using it - or write a patch. > > You seem to be the only one inconvenienced. No, I think I'm the only one who notices that the problems are caused by XNews, not by cluelessness on the poster's part. > Did I quote the above correctly? Thought so. I notice that you're using Mime-proxy as a workaround for XNews problems. > Give it up, Peter, Xnews is the best and I'm certainly not going to > exchange it for an inferior newsreader. I'll probably give it up soon, but it will be hard to keep silent when broken software is recommended to newbies. Dear newbies: Gravity 2.8.x and XPN 1.x are both likely to generate posts that everybody can read. -- PJR :-) slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/ extra slrn documentation: http://slrn-doc.sourceforge.net/ newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: New Xnews.
Author: XS11E
Date: Sun, 28 Jun 2009 22:18
Date: Sun, 28 Jun 2009 22:18
15 lines
2073 bytes
2073 bytes
Peter J Ross <pjr@example.invalid> wrote: > but it will be hard to keep silent when broken software is > recommended to newbies. It seems to be broken mostly in your opinion? > Dear newbies: Gravity 2.8.x and XPN 1.x are both likely to > generate posts that everybody can read. I've used both and didn't like either, I can't recommend either.
--
Author: _
Date: Mon, 29 Jun 2009 07:24
Date: Mon, 29 Jun 2009 07:24
42 lines
6059 bytes
6059 bytes
Can you quote this, monoSpaced ?
ScreenShot of my hand-rolled useNet client ( “X.ZIP” )
diplaying the following glyphs, monoSpaced:
JeffRelf.F-M.FM/UTF-8.PNG
!"#$%&'()*+,-./0123456789:;<=>? €‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞß
`abcdefghijklmnopqrstuvwxyz{|}~_ àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψω
АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя
‐‑‒–—―‖‗ ※‼‽‾‿⁀⁁⁂⁃⁄⁅⁆⁇⁈⁉⁑
⁰ⁱ⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓₔ
←↑→↓↔↕↖↗↘↙↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↭↮↯↰↱↲↳↴↵↶↷↸↹↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇎⇏⇐
⇑⇒⇓⇔⇕⇖⇗⇘⇙⇚⇛⇜⇝⇞⇟⇠⇡⇢⇣⇤⇥⇦⇧⇨⇩⇪
∅∆∇∈∉∊∋∌∍∎∏∐∑−∓∔∕∖∗∘∙√∛∜∝∞∟∠∡∢∣∤∥∦
∧∨∩∪∫∬∭∮∯∰∱∲∳∴∵∶∷∸∹∺∻∼∽∾
∿≀≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≒≓≔≕≖≗≘≙≚≛≜≝≞≟≠≡≢≣≤≥≦≧≨≩≪≫
─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀
╁╂╃╄╅╆╇╈╉╊╋╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿▀▁▂▃▄▅
▆▇█▉▊▋▌▍▎▏▐░▒▓▔▕▖▗▘▙▚▛▜▝▞▟■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯▰▱▲△▴▵▶▷▸▹►▻▼▽▾▿◀◁◂◃◄◅◆◇◈◉◊
○◌◍◎●◐◑◒◓◔◕◖◗◘◙◚◛◜◝◞◟◠◡◢◣◤◥◦◧◨◩◪◫◬◭◮◯◰◱◲◳◴◵◶◷◸◹◺◻◼◽◾◿
☀☁☂☃☄★☐☜☝☞☟☠☡ ☢☣☤☥☦☧☨☩☪☫☬☭☮ ☯☸☹☺☻☼☽☾☿♀♁♂♃♄♅ ♆♇♈♚♛♜♝♞♟♠♡♢♣♤♥♦♧
♨♩♪♫♬♭♮♯⚀⚁⚂⚃⚄⚅⚐⚑⚒⚓⚔⚕ ⚖⚗⚘⚙⚚⚛⚜⚠⚡✓✔✕✖✗✘✙✚ ✛✜✝✞✟✠✡✢✣✤✥✦✧
✩✪✫✬✭✮✯✰✱✲✳✴✵✶✷✸✹✺✻✼✽✾✿❀❁❂❃❄❅❆❇❈❉❊❋❍❏❐❑❒❖❘❙❚❛❜❝❞❡❢❣❤❥❦❧❨❩❪❫❬❭❮❯❰❱❲❳❴❵
────────────── Expenses ──────────────── │ FX
Salary Adver. Charge- │ │ Gain Net
& Ben. & Prom. Offs │ Total │ ( Loss ) Earnings
━━━━━━━━━ ━━━━━━━━ ━━━━━━━━ │ ━━━━━━━━ │ ━━━━━━━━━━━ ━━━━━━━━
────────────── Расходы ───────────────── │ Прибыль/
Зарплата, Реклама, Списания │ │ убыток от Чистый
надбавки продвиж. со счета │ Всего │ вал.переоц. доход
━━━━━━━━━ ━━━━━━━━ ━━━━━━━━ │ ━━━━━━━━ │ ━━━━━━━━━━━ ━━━━━━━━
╭────────────── 开支 ──────────────────── │
│ 工资 广告 │ │ 外汇折算 净
│ 和福利 和促销 核销 │ 总额 │ 盈/亏 收益
╰━━━━━━━━━ ━━━━━━━━ ━━━━━━━━━ │ ━━━━━━━━ │ ━━━━━━━━━━━ ━━━━━━━━
123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.
.........10........20........30........40........50........60........70........80........90........100.......110.......120.......130.......140.......150.......160
[JR] X.ZIP cannot quote (was: Can you quote this, monoSpaced ?)
Author: Rom
Date: Mon, 29 Jun 2009 09:57
Date: Mon, 29 Jun 2009 09:57
10 lines
1599 bytes
1599 bytes
On Mon, 29 Jun 2009 07:24:08 +0000 (UTC), _@Jeff_Relf.Seattle.inValid wrote: > Can you quote this, monoSpaced ? X.ZIP and you cannot quote, using conventional ">" or "> " quoting nor Re: and (was: ...) in Subject changes in followups. -- Rom
--
Author: _
Date: Mon, 29 Jun 2009 11:27
Date: Mon, 29 Jun 2009 11:27
72 lines
4342 bytes
4342 bytes
I quote the way it's done in books.
I create titles that reflect the content of each message.
I can do this because I know the heritage of each post, to wit:
[ Oldest ancestor first ]
sittingduck<duck@spamherelots.com
Peter•J•Ross news:slrnh3ofr4.kn7.pjr@pjr.gotdns.org
sittingduck<duck@spamherelots.com
Peter•J•Ross news:slrnh4ff0o.7va.pjr@pjr.gotdns.org
Jeff•Relf news:_@Jeff_Relf.Seattle.2009_Jun29.0.23am.CA
Rom<-@-.invalid news:1tenawf6ve0oh.fe4vxxhwx3y0.dlg@40tude.net
News.Software.Readers
40tude Individual.NET, NoGoogle Jun 29, 2009
[JR] X.ZIP cannot quote (was: Can you quote this, monoSpaced ?)
―――――――――――――――――――――――――――
Re: These monoSpaced glyphs ( which you couldn't quote ):
www.JeffRelf.F-M.FM/UTF-8.PNG
news:_@Jeff_Relf.Seattle.2009_Jun29.0.23am.CA
This code gives me Exactly the number of columns I want:
iCharW = ceil( CharW = WinW / ( ColsWin = 123 ) );
[ from www.JeffRelf.F-M.FM/X.CPP ]
Although WinW is a float,
it's the integer-width of the maximized window, in pixels.
CharW is the non-integer-width of an ASCII glyph.
iCharW is the “ceiling” of CharW.
A glyph that's wider than iCharW takes up multiple columns:
SIZE XY ; GetTextExtentPoint32( DC, B, 1 + Bass, &XY );
G.W = XY.cx, G.H = XY.cy ;
G.Cols = ceil( G.W / iCharW ), G.Rows = ceil( G.H / iCharH );
G.W = G.Cols * iCharW, G.H = G.Rows * iCharH ;
For the DejaVu Sans Mono font,
the width-hight-ratio of a very large ASCII caracter is:
189 x 366
As I Know this ratio, and I use floating point numbers everywhere,
I define every glyph as a multiple of the ratio, at a set scale.
When the taskBar changes ( e.g. when the screen resolution changes )
the scale changes ( at the reActivated-window event ).
CharH depends on CharW, it's the non-integer hight of an ASCII glyph:
iCharH = ceil( CharH = 366 * CharW / 189 ) ; // 21 / 11; 1.936
RowsWin = ceil( WinH / CharH ), Lines_Per_Pg = RowsWin - 1 - ToolBarLines ;
WinH is the integer-hight of the maximized window, in pixels.
RowsWin is the non-integer-rows in the window.
A font, including the SmallCaps font, is defined this way:
const float x∕X = .8 ; // Small-Caps uses a 20 percent smaller font.
―――――――――――――
▼X = ( ( 1 - x∕X ) * CharW ) / 2 ; // Small-Caps Left margin
▼Y = ceil( ( 1 - x∕X ) * CharH ); // Small-Caps Top Margin
gFont( DejaVu•1, L"DejaVu Sans Mono", CharH );
―――――――――――――
gFont( HFONT &F, LnP N, float H ) {
FontFamily Nym( N ); if ( ! Nym.IsAvailable() ) return ;
DeleteObject( F );
// The ceiling sets the maximum-hight of an ASCII character's cell.
F = CreateFont( ceil( H ), 0,0,0,0,0,0,0,0,0,0,0, FIXED_PITCH, N );
if ( !caps )
caps = CreateFont(
x∕X * H, 0,0,0,0,0,0,0,0,0,0,0, FIXED_PITCH, N ); }
Re: [JR] X.ZIP cannot quote (was: Can you quote this, monoSpaced ?)
Author: Ralph Fox
Date: Tue, 30 Jun 2009 12:23
Date: Tue, 30 Jun 2009 12:23
34 lines
2807 bytes
2807 bytes
On Mon, 29 Jun 2009 19:57:40 +1000, in message <1tenawf6ve0oh.fe4vxxhwx3y0.dlg@40tude.net> Rom <-@-.invalid> wrote: > On Mon, 29 Jun 2009 07:24:08 +0000 (UTC), _@Jeff_Relf.Seattle.inValid > wrote: > > > Can you quote this, monoSpaced ? > > X.ZIP and you cannot quote, using conventional ">" or "> " quoting nor > Re: and (was: ...) in Subject changes in followups. Nobody else would issue a challenge others to to quote, when that only highlights loud and clear that X.ZIP itself can't quote. JR must have a few roos loose in the top paddock. JR also did not included BIDI and complex scripts in its own samples, which suggests that X.ZIP can only handle a part of Unicode. What is always most revealing is not what it does, but what it fails to do. ╔═══════════════════════╗ ║ ཨོཾ་མ་ཎི་པ་དྨེ་ཧཱུྃ། ║ ╠═══════════════════════╣ ║ ॐ मणि पद्मे ह ║ ╠═══════════════════════╣ ║ ஓம் மணி பத்மே ஹூம ║ ╠═══════════════════════╣ ║ 옴 마니 반메 훔 ║ ╚═══════════════════════╝
--
Author: _
Date: Wed, 01 Jul 2009 19:59
Date: Wed, 01 Jul 2009 19:59
30 lines
3038 bytes
3038 bytes
Forget monoSpaced ligatures, Forté Agent has much worse problems. You(Ralph Fox) showed Rom somthing like this: ╔═════════════════════════════════════╗ ║ Microsoft Himalaya, Tibetan ║ ║ ཨོཾ་མ་ཎི་པ་དྨེ་ཧཱུྃ། Om mani padme hum ║ ╠═════════════════════════════════════╣ ║ Mangal, Devanagari, Sanskrit, Hindi ║ ║ ॐ मणि पद्मे ह ║ ╠═════════════════════════════════════╣ ║ Latha, Tamil, Indic ║ ║ ஓம் மணி பத்மே ஹூம ║ ╠═════════════════════════════════════╣ ║ Batang, Korean ║ ║ 옴 마니 반메 훔 ║ ╚═════════════════════════════════════╝ which, on “X.CPP”, enLarged and monoSpaced, looks like this: www.JeffRelf.F-M.FM/Bidi.PNG I spent many hours looking for a good/fast way to discover if a glyph is a ligature or not... I failed; in the end, I just hard coded the few that I needed: “ ் ி ் ே ூ ཱ ུ ྃ ྨ ེ ི ོ ཾ ि ् े ”. In my code editor(Visual Studio), only the Korean is (double-wide) monospaced, the rest is borked. As it stands now, I only care about Chinese, Russian, English and graphics characters ― all mixed together, monoSpaced; hence Unicode.
--
Author: _
Date: Thu, 02 Jul 2009 16:20
Date: Thu, 02 Jul 2009 16:20
363 lines
16394 bytes
16394 bytes
My grapheme-caching system makes any “script”(alphabet) monoSpaced.
screenShots:
www.JeffRelf.F-M.FM/Bidi.PNG
www.JeffRelf.F-M.FM/UTF-8.PNG
>From “ www.JeffRelf.F-M.FM/X.CPP ”:
if ( WM == WM_NCACTIVATE ) { OnStage = C, PaintReq = 1 ;
ShowWindow( Win, OnStage ? SW_SHOW : SW_SHOWMINNOACTIVE );
if ( !OnStage ) {
// The (maximized)window lost it's focus, minimize it.
PaintReq = 0 ; goto Done; }
ShowWindow( Win, SW_RESTORE ); goto reInit ; }
――――――――――――――
reInit:
// Window is being reActived, check if settings(in X.TXT) changed.
gSettings();
RECT cTB ;
if ( GetWindowRect( TaskBar, & cTB ), !memcmp( &cTB, &TB, SzTB ) )
// The size of the taskBar hasn't changed and
// the screen hasn't been reSized ― no need to reCache glyphs.
goto Paint ;
memmove( & TB, &cTB, SzTB );
WinLeft = ScrLeft, WinRight = ScrRight,
WinBot = ScrBot, WinTop = ScrTop ;
int Left, Top, TBW = TB.right - TB.left
, TBH = TB.bottom - TB.top
// Is the TaskBar tall or wide ?
, Tall = TBH > TBW ;
if ( Tall ) {
// The taskBar is on the left or right of our maximized window.
if ( Left = TB.right < ScrW / 2 ) WinLeft = TB.right - 1 ;
else WinRight = TB.left + 1 ; }
// The Taskbar is at the top or bottom of our maximized window.
else
if ( Top = TB.bottom < ScrH / 2 )
WinTop = TB.bottom - 1 ; else WinBot = TB.top + 1 ;
WinW = WinRight - WinLeft, WinH = WinBot - WinTop ;
WinRecG = _R( WinLeft, WinTop, WinW, WinH ),
WinRecL = _R( 0, 0, WinW, WinH );
SetWindowPos( Win, HWND_TOP, WinLeft, WinTop, WinW, WinH, 0 );
// The nonInteger hight of a monoSpaced ASCII glyph is a function of
// the screen width and now many columns I want.
iCharW = ceil( CharW = WinW / ( ColsWin = 123 ) );
// The nonInteger hight of an ASCII glyph is a function of its width
// and DejaVu's standard hight/width ratio: 366 / 189.
//
// All graphemes, including Indic ligatures, are integer multiples
// of CharW and CharH... i.e. all graphemes are monoSpaced.
iCharH = ceil( CharH = 366 * CharW / 189 ) ; // 21 / 11; 1.936
RowsWin = ceil( WinH / CharH ),
Lines_Per_Pg = RowsWin - 1 - ToolBarLines ;
// Set the margins for smallCaps chars.
▼X = ( ( 1 - x∕X ) * CharW ) / 2,
▼Y = ceil( ( 1 - x∕X ) * CharH ), wMultiCache = WinW ;
PaintReq = 1, DeleteObject( caps ), caps = 0 ;
gFont( DejaVu•1, L"DejaVu Sans Mono", CharH );
if ( !caps ) gFont( Consolas, L"Consolas", CharH );
if ( !caps ) gFont( Courier, L"Courier New", CharH );
gFont( Arial, L"Arial Unicode MS", CharH );
gFont( fnMusical, L"Musical Symbols", 2 * CharH );
CharW•3 = CharW * 3, CharH•3 = CharH * 3 ;
gFont( DejaVu•3, L"DejaVu Sans Mono", CharH•3 );
gFont( fnIcons, L"MS Mincho", 2.33 * CharH );
// gFont( fnChess, L"MS Mincho", 5 * CharH );
// Clear the dynamic array of graphemes
{ LoopXx( Gy, Gy ) free( P ), * PP = 0 ; }
// Clear the dynamic array of grapheme caches(DirectDraw surfaces).
{ LoopXx( Ca, Ca ) Trash( P ), * PP = 0 ; }
aCache = 0, free( Ca.BB ), Zero( Ca ), free( Gy.BB ),
Zero( Gy ), Trash( DrawSur ), Trash( Cursor );
{ Loop( Highest_Ascii - Lowest_Ascii + 1 ) {
// preAllocate an indexable-list of ASCII chars.
✚✚( Gy ) = ( GyP ) Malloc ( sizeof( GlyT ) ); } }
Cur_Pix = CharW * 2, CursorRec = _R( 0, 0, Cur_Pix, Cur_Pix );
UseKey = 0, NewSur( DrawSur, WinW, WinH ),
NewSur( Cursor, Cur_Pix, Cur_Pix ), ✚✚Cache ;
{ Graphics Plus( DC );
Plus.SetSmoothingMode( SmoothingModeAntiAlias );
Pen Ink( Color( 255, 255, 255, 255 ), 2 );
// Draw the cursor using smoothed lines.
Plus.DrawLine( & Ink, 0, 0, Cur_Pix / 2, Cur_Pix );
Plus.DrawLine( & Ink, 0, 0, Cur_Pix, Cur_Pix / 2 ); }
Chk( Cursor->ReleaseDC( DC ) ); goto Done ;
―――――――――――――――――
// Below is PrnChar().
// PrnChar() returns and/or prints/caches graphemes.
HFONT fnIcons, fnChess, DejaVu•3, caps, DejaVu•1
// Arial Unicode is my lower-quality, catch-all font.
, Consolas, Courier, Arial, fnMusical ;
float CharW, CharH, CharW•3, CharH•3 ;
inline int Round( float X ) { return floor( X + .5 ); }
const struct {
ulong
NormColor, NumColor, BarColor
, Sel_Color, Grey, NewColor
, OddColor, Yellow, Red ; } Hues = {
// This “struct” of colors doubles as a static array.
RGB( 144, 111, 111 ), RGB( 0, 144, 144 ), RGB( 155, 111, 0 )
, RGB( 99, 222, 99 ), RGB( 155, 155, 155 ), RGB( 133, 188, 133 )
, RGB( 177, 122, 0 ), RGB( 255, 255, 0 ), RGB( 255, 0, 0 )
};
const int Colors = sizeof Hues / sizeof ulong ;
#define Is_Color ( \
Ch == ChNorm || Ch == ChNormNoNum || Ch == ChNew \
|| Ch == ChOdd || Ch == ChYell || Ch == ChRed \
|| Ch == ChGrey || Ch == ChImg )
const wchar_t
ChNorm = 0xD801, ChNormNoNum = 0xD802, ChNew = 0xD803
, ChOdd = 0xD804, ChYell = 0xD805
, ChRed = 0xD806, ChGrey = 0xD807, ChImg = 0xD808 ;
struct CharSurT { int X ; _SurT Cache ; };
const int mxCH = 4 ;
struct GlyT { HFONT Font ;
int W, H, Blank, Rows, Cols, Known, szGraph ; wchar_t CH[ mxCH ];
CharSurT CharSur[ Colors ]; };
typedef GlyT * GyP ;
typedef GyP * GyA ; struct GyT { GyA BB, PP, EE ; };
typedef _SurT CaP ; typedef _SurT * CaA ;
struct CaT { CaA BB, PP, EE ; };
GyT Gy ; CaT Ca ;
GyP & ✚✚( GyT & Gy ) { return ✚✚< GyT, GyA, GyP> ( Gy, -1 ) ; }
CaP & ✚✚( CaT & Ca ) { return ✚✚< CaT, CaA, CaP> ( Ca, -1 ) ; }
#define Try( F ) \
if ( F ) { \
SetPtr( DC, F ), \
GetGlyphIndices( DC, CH, 1, Good, GGI_MARK_NONEXISTING_GLYPHS); \
if ( short( *Good ) != -1 ) { \
/* The font has the glyph */ \
G.Font = F ; goto conFont ; } }
wchar_t ChIconB = L'☀', ChIconE = L'✧' ;
float iCharW, iCharH ; int xCache, wMultiCache ; float ▼X, ▼Y ;
const int iHueSel = pInt( & Hues.Sel_Color ) - pInt( & Hues );
// ✚✚Cache() returns a large array of normal-hight glyphs,
// so fewer (limited)DirectDraw surfaces have to be used.
#define ✚✚Cache ( \
xCache = 0, \
NewSur( ✚✚( Ca ), wMultiCache, iCharH *1.1 ), aCache = * Ca.PP )
int Col, Row ; const int Lowest_Ascii = 32, Highest_Ascii = 126 ;
// Return and/or print/cache a grapheme,
// including complex, multi-glyph ligatures.
GlyT &PrnChar( LnP &CH, const ulong *Hue ) {
GyP P ; wchar_t Ch = *CH, Ch2 ;
int unEq = 0, surrogatePair = ( Ch & 0xD800 ) == 0xD800 ;
int szGraph = 1 + surrogatePair ;
if ( Ch >= Lowest_Ascii && Ch <= Highest_Ascii ) {
// ASCII chars are an index into a “static” array.
P = Gy.BB[ Ch - Lowest_Ascii ]; goto conP ; }
// I haven't found an acceptable way to discover
// which graphemes are complex, multi-glyph ligatures;
// so I just hard-coded some here, as a proof of concept.
static wchar_t Ligs[] = L"்ி்ேூཱུྃྨེིོཾि्े";
static LnP eLigs = Ligs + sizeof( Ligs ) / szChr ;
if ( !surrogatePair )
LOOP{ Ch2 = CH[ szGraph ];
if ( Ch2 <= Highest_Ascii )
// An ASCII char can't be a sub-ligature,
// no need to check.
break ;
LnP P = Ligs - 1 ;
while( ++ P < eLigs && Ch2 != *P );
if ( P < eLigs )
// A complex grapheme(ligature) might contain 4 glyphs.
// The size must be known, othewise
// the binary search(below) wouldn't work.
szGraph++ ; else break ; }
GyA BB = Gy.BB + ( Highest_Ascii - Lowest_Ascii + 1 )
, EE = Gy.PP + 1, PP = BB ;
LOOP { PP = BB + ( EE - BB ) / 2 ;
if ( PP == Gy.PP + 1 ) { unEq = 0 ; break ; }
P = * PP ; int unEq1 = szGraph - P->szGraph ;
unEq = unEq1 ? unEq1 : wmemcmp( CH, P->CH, P->szGraph );
if ( ! unEq )
// Binary Search found the grapeme's “struct”.
goto conP ;
if ( unEq > 0 ) {
if ( PP >= EE )
// The grapheme is not on record,
// insert it into the sorted/dynamic list.
break ;
BB = PP + 1 ; }
else { if ( PP <= BB ) break ; EE = PP - 1 ; } }
int _PP = PP - Gy.BB ; ✚✚( Gy );
EE = Gy.PP + 1, PP = Gy.BB + _PP ; int After = EE - PP - 1 ;
if ( unEq > 0 ) PP ++, -- After ;
if ( After > 0 )
// Make room to insert into the sorted list.
memmove( PP + 1, PP, After * szPtr );
* PP = P = ( GyP ) Malloc ( sizeof *P );
conP:
// Now, we have Grapheme “struct”.
GlyT &G = *P ;
if ( G.Blank || G.Known && !Hue )
// The details of the grapheme are known;
// no Hue was specified, so return(instead of drawing).
return G ;
int iHue = !Hue ? 0 : Hue - ( ulong * ) & Hues ;
CharSurT &C = G.CharSur[ iHue ];
if ( Hue && C.Cache )
// The grapheme's hue is cached, just print it.
goto conHue ;
int Icon = Ch >= ChIconB && Ch <= ChIconE, Zero = Ch == '0'
, capsCh = Ch >= 'a' && Ch <= 'z';
HDC DC ; ushort Good[ 3 ]; Chk( aCache->GetDC( & DC ) );
if ( G.Font ) { SetPtr( DC, G.Font ); goto conFont ; }
if ( surrogatePair && fnMusical ) {
// The Musical font is borked
// ( or surrogate pairs aren't supported), “Try()” doesn't work.
SetPtr( DC, G.Font = fnMusical ); goto conFont ; }
if ( Icon ) { Try( fnIcons ) Try( DejaVu•3 ) }
if ( capsCh && caps ) { // The smallCaps font, ASCII.
SetPtr( DC, G.Font = caps ); goto conFont ; }
Try( DejaVu•1 ) Try( Consolas ) Try( Courier ) Try( Arial )
G.Known = G.Blank = 1 ; Chk( aCache->ReleaseDC( DC ) );
// No font for this glyph, dump it.
return G ;
conFont:
// Now, we have a font.
if ( !G.Known ) {
// Get the (monoSpaced)dimensions of the grapheme.
SIZE xy ; wmemmove( G.CH, CH, G.szGraph = szGraph );
GetTextExtentPoint32( DC, CH, G.szGraph, &xy );
G.W = xy.cx * 1.1, G.H = xy.cy * 1.1 ;
if ( G.W && G.W < CharW ) G.W = CharW ;
G.Cols = surrogatePair
? 2 : Round( G.W / CharW ), G.Rows = Round( G.H / CharH );
// The monoSpacing isn't exact, allow some tollerance.
// G.W is the width of the grapheme's cache, G.H the hight.
G.W = G.Cols * CharW * 1.1, G.H = G.Rows * CharH * 1.1 ;
G.Known = 1, G.Blank = !G.Cols ;
if ( !Hue || G.Blank ) {
// Now, the details of the grapheme are known;
// no Hue was specified, so return(instead of drawing).
Chk( aCache->ReleaseDC( DC ) ); return G ; } }
if ( G.Cols > 1 )
Chk( aCache->ReleaseDC( DC ) ), C.X = 0,
// Allocate a DirectDraw surface to cache a tall grapheme.
NewSur( C.Cache, G.W, G.H ), Chk( C.Cache->GetDC( & DC ) );
else {
if ( xCache + G.W >= wMultiCache )
// Find room in the array of normal-hight graphemes.
Chk( aCache->ReleaseDC( DC ) ),
✚✚Cache, Chk( aCache->GetDC( & DC ) );
C.X = xCache, C.Cache = aCache, xCache += G.W ; }
SetPtr( DC, G.Font ),
SetBkColor( DC, iHue != iHueSel ? 0 : RGB( 77, 0, 77 ) ),
SetTextColor( DC, (( ulong *) &Hues)[ iHue ] );
{ int ▼ = Zero || capsCh ; RECT Fill = _R( C.X, 0, G.W, G.H );
ExtTextOut( DC, C.X + ▼ * ▼X, ▼ * ▼Y
, ETO_CLIPPED | ETO_OPAQUE, &Fill
, G.szGraph > 1 // make Zero a tiny circle.
? G.CH : ( Ch = Zero ? L'°' : !capsCh ? Ch : Ch - 32, &Ch ),
G.szGraph, 0 ); }
Chk( C.Cache->ReleaseDC( DC ) );
conHue:
// Now, the cache is known, paint it.
Fast_Paint( // Paint the grapheme onto the back-buffer.
C.Cache, _R( C.X, 0, G.W, G.H )
, _R( Round( Col * CharW ), Round( Row * CharH ), G.W, G.H ) );
Col += G.Cols ;
if ( G.szGraph > 1 )
// advance the pointer(string) more than usual.
CH += G.szGraph - 1 ; return *P ; }
struct { int ii, i ; } sAnk, sB, sE ;
int C, C2 ;
ushort * P_C = ( ushort * ) & C, * P_C2 = ( ushort * ) & C2 ;
// Returns the index to a string, from a click on the screeen.
int Col_to_Index( int ii ) { int Ch, Ch2 ;
if ( Ln.BB + ii > Ln.PP || !Ln.BB[ ii ] )
return 0 ;
LnP B = Ln.BB[ ii ], P = B, E = P + int( *P_C2 / CharW );
While( Ch ) {
// Traversing the line from left to right.
if ( Is_Color )
// A formatting character(for a hue) increases line length.
E ++ ;
else { GlyT &G = PrnChar( P, 0 );
if ( G.Cols > 1 )
// A double, tripple, or quadruple-width grapheme means
// the string has Fewer chars than originally thought.
E -= G.Cols - 1 ;
if ( G.szGraph > 1 ) { int Sk = G.szGraph - 1 ;
// A double, tripple, or quadruple-glyph ligature means
// the string has More chars than originally thought.
E += Sk ;
if ( P + Sk >= E )
// Return the start of the complex grapheme.
return P - B ; P += Sk ; } }
if ( P >= E ) break ; }
return P - B ; }
int szToClip ;
// Size the (multi-line)selected text.
// If “D” is nonZero, put the selected text into it.
SzClip( LnP D ) {
szToClip = 9 ; int Szing = ! D -- ; LnA PP = Ln.BB + sB.ii - 1 ;
int Ch, Ch2, virEE = Ln.BB + sE.ii > Ln.PP ;
// virEE is true when selecting past the end of
// the (dynamic)array of lines, to get the entire line(above it).
Loop( 1 + sE.ii - sB.ii - virEE ) {
int Last = J == LLL - 1 ; LnP oD = D, B = * ++ PP, P = B, E ;
if ( !B ) continue ; E = B + strSz( B );
if ( ! J ) P = B + sB.i ;
if ( !virEE && Last ) { E = B + sE.i ;
if ( *E ) { GlyT &G = PrnChar( E, 0 ); E += G.szGraph ; } }
if ( Szing ) {
szToClip += E - B + 2 ;
if ( Last ) {
szToClip *= szChr ; return ; } continue ; }
While( Ch && P < E ) if ( ! Is_Color ) * ++ D = Ch ;
if ( !virEE && Last ) {
// When selecting multiple lines,
// selecting just one column on the last line
// means you want the entire line(above it), not that column.
D[ !( LLL > 1 && D - oD == 1 ) ] = 0 ; return ; }
* ++ D = 13, * ++ D = 10 ; if ( virEE && Last ) * ++ D = 0 ; } }
const float x∕X = .8 ;
gFont( HFONT &F, LnP N, float H ) { FontFamily Nym( N );
if ( ! Nym.IsAvailable() )
// The font doesn't exist.
return ;
DeleteObject( F ),
F = CreateFont( ceil( H ), 0,0,0,0,0,0,0,0,0,0,0, FIXED_PITCH, N );
if ( !caps )
// The smallCaps font.
caps = CreateFont(
x∕X * H, 0,0,0,0,0,0,0,0,0,0,0, FIXED_PITCH, N ); }
Re: New Xnews.
Author: The REAL Joe Blow
Date: Fri, 04 Dec 2009 01:04
Date: Fri, 04 Dec 2009 01:04
41 lines
2476 bytes
2476 bytes
XS11E <xs11e@mailinator.com> wrote in news:Xns9C27572405CA3xs11emailinatorcom@127.0.0.1: > > If this was mentioned earlier here, I apologize, I somehow missed it! > > http://xnews.newsguy.com > >===================================================================== > 2009.05.01: > > + this is a test version to support 2^31 article numbers. Apparently, > the Dutch dump groups (ugh) have passed the threshold. I guess sooner > or later, the other groups will follow so I should do something about > it. > > (Please expect bugs galore. If this is not an issue for you, no need > to bother with this version.) >===================================================================== > > As I've posted here many times previously, Xnews is NOT abandoned, if > it need fixing, Luu Tran will fix it! > > I don't expect any bugs, I'm gonna give it a shot.... > > It doesn't work, at least not with Giganews and alt.binaries.tv that has 131,000,000 headers going back to August 2008; the new test-64 version still only grabs 50,000,000 headers back to May 2009 :-( Can Luu please take another try? This is a major pain! Many thanks The REAL Joe -- Cheers, The REAL Joe
Page 2 of 2 • 82 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads