On 11/15/10 12:43, joost.t.h...@planet.nl wrote:

Hello Joost!

>  >>>> It might need some more testing, but seems ok for me.
>  >>>
>  >>> I gave it a try. Some points I found.
>  >> ...
>  >>
>  >> How's this go ?
>  >
>  > This looks good to me. Still, indent comments/variations has no function
>  > in column style, but I think this is sort of natural.
>  >
>  > Joost, does it work for you as well? Then I'll commit it.
>
> Well, as you guys were able to confirm what I saw, I do believe that you
> made some progress. Go ahead, I would say. This evening (work break now)
> I probably will enjoy the improvement and "close this thread."

I went over this hole stuff again and again, and there was one point I 
missed in the first examination.

Joost, first of all the examples you sent for non-column mode seem to 
work for me. I do not see a problem there.

Then I checked column mode. Some findings.

The PGN window and display is made up of a plain text field that is then 
sent to Scids "simple html" rendering engine. In a way this is a mixture 
of markup and plain text looking like this:

<m_2>         1.   e4</m>       <m_3>     e5</m>       <br><m_4>      2. 
   Nf3</m>      <m_5>      Nc6</m> 
<br><ip1><c_5>testcomment</c></ip1><br>

Now, to make things more complex some of the spacings are \t to get a 
nice lineup of the tags, others are spaces. As far as I understand it it 
is made up like

    <m_2>\t1. e4</m>

to get the indentation right. After the </m> however, Scid fills up the 
line with spaces to the assumed width of each column. Then it sets a 
<m_3> followed by the nextColumn-Tag which is a \t adds the SAN and </m> 
and again fills up with spaces to the assumed width of the column.

The assumed width of the column now is set to 12 (colWidth) in l.2304, 
Scid  counts how many chars are required to print the move substracts it 
and adds the rest as spaces in l.2404.

I admit I wonder how this can work at all if you use some proportional 
font. I guess this is built around using fixed fonts. As I always use a 
fixed width bitmap font (SGI Screen), I don't see problems here.

Now to Joosts problem if I get it correctly.

The text entry field that is used for the PGN display is set to word 
wrap. That is it will wrap text itself depending on what it feels fit to 
do. As you don't see the blanks added by Scid after each move you may 
well resize the window to to small a width and you get an empty line due 
to the word wrapping.

As far as I can see things get better if we use less spaces for filling, 
say 6 instead of 12.

cu
Alexander

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to