Re: GetLineMetrics() code

2003-07-08 Thread Bill Janssen
> > Why would there be a CRLF in html if there's a / tag instead? > > For human readability. But I had assumed, I guess wrongly, that all such > things get stripped out by the distiller. Or because you're in a region. Bill ___ plucker-dev mailing l

Re: GetLineMetrics() code

2003-07-08 Thread Alexander R. Pruss
On Tue, 8 Jul 2003, Michael Nordstrom wrote: > On Tue, Jul 08, 2003, Alexander R. Pruss wrote: > > I am also a bit puzzled as to why the special handling for > > two-byte characters? (Why not three- or four-byte ones?) > > Because that's what Matto implemented... If you want to see something > el

Re: GetLineMetrics() code

2003-07-08 Thread Michael Nordstrom
On Tue, Jul 08, 2003, Alexander R. Pruss wrote: > I am also a bit puzzled as to why the special handling for > two-byte characters? (Why not three- or four-byte ones?) Because that's what Matto implemented... If you want to see something else then you know the drill ;-) /Mike __

Re: GetLineMetrics() code

2003-07-08 Thread Adam McDaniel
On Tue, Jul 08, 2003 at 11:44:59AM -0400, Alexander R. Pruss wrote: > That still leaves one question. Does the OS encode CRLF into a WChar as > 0x0D0A or as 0x0A0D? (These endian things are confusing.) Or as > something else? I would highly doubt that. I would suspect that a CRLF would be repre

Re: GetLineMetrics() code

2003-07-08 Thread Alexander R. Pruss
On Tue, 8 Jul 2003, Michael Nordstrom wrote: > On Tue, Jul 08, 2003, Alexander R. Pruss wrote: > > 1. This looks to me like it's checking for all two-byte length characters, > > not just CRLF. This surely isn't correct behavior, because it will allow > > line-breaking at any two-byte length charac

Re: GetLineMetrics() code

2003-07-08 Thread Michael Nordstrom
On Tue, Jul 08, 2003, Alexander R. Pruss wrote: > 1. This looks to me like it's checking for all two-byte length characters, > not just CRLF. This surely isn't correct behavior, because it will allow > line-breaking at any two-byte length character. Well, I think you are making a mistake in your

Re: GetLineMetrics() code

2003-07-08 Thread Alexander R. Pruss
On Tue, 8 Jul 2003, Adam McDaniel wrote: > > 2. Thus, how do we check that the character is indeed CRLF? What is the > > two-byte encoding of CRLF? > > In this other program which I'm working on, here is what I do (not > saying it anymore right, but one possibility) > > static const Char CRLF[]

Re: GetLineMetrics() code

2003-07-08 Thread Alexander R. Pruss
On Tue, 8 Jul 2003, Adam McDaniel wrote: > > 3. And why should there be a CRLF in the record given that we have > > function 0x38 instead? > > Why would there be a CRLF in html if there's a / tag instead? For human readability. But I had assumed, I guess wrongly, that all such things get stripp

Re: GetLineMetrics() code

2003-07-08 Thread Adam McDaniel
On Tue, Jul 08, 2003 at 11:04:27AM -0400, Alexander R. Pruss wrote: > 1. This looks to me like it's checking for all two-byte length characters, > not just CRLF. This surely isn't correct behavior, because it will allow > line-breaking at any two-byte length character. I think you're right... >

GetLineMetrics() code

2003-07-08 Thread Alexander R. Pruss
Here's a puzzle about paragraph.c/GetLineMetrics(). The puzzling code reads: /* CRLF can be inserted anywhere if it is multibyte char */ if ( TxtGlueCharSize( nextToken ) == 2 ) { lastSpacePixels = linePixels; lastSpace = tokenCount;