Hi Pascal,
I also post this to the list as someone may have an answer about the
html entities.
On 25 mars 09, at 10:55, Pascal Georges wrote:
> 2009/3/25, F. Charly:
>> Hi there,
>>
>> I used Benoit's suggestion at
>> http://www.dynamicdrive.com/style/layouts/category/C11/
>
> Le résultat a l'air très bon, et si IE6 ne fonctionne pas, cela
> pourrait être ignoré.
cool
>> Have a look at the index.html, don't forget to add the correct
>> bitmaps
>> folder (contains bb.gif, bk.gif, ...), (I can't send this folder as
>> messages are limited to 40 KB on the list). Please check on
>> different
>> browsers and let me know how it works. It is fine on Mac, with latest
>> versions of Safari, Opera, FireFox and Camino. I am afraid of
>> different versions of Windows Internet Explorer (especially v6) that
>> don't do things like most of the others. The games navigation is not
>> working in this sample.
>>
>> If satisfied, I'll do a bit more of cleaning and fine tuning.
>>
>> Pascal please send me the modified htmlgenerator.tcl I sent to you
>> (with the new function if you did it) and I'll edit it accordingly.
>
> Voir le fichier joint et la procédure
> proc toHtml ...
> à la ligne 630.
>
> Autrement tout est dans le CVS, y compris les fichiers scid.css et
> scid.js, CVS qui peut être vu avec l'interface Web / CVS de
> sourceforge (si vous n'utilisez pas de client CVS "normal").
Could you please explain. Link? I don't know what it means.
CVS = chorionic villus sampling - according to my dictionary ;-)
>> There is an issue with & characters that should be translated to
>> &
>> in html. It would be also good to translate special characters such
>> as
>> in player names to their html entities (ie é = é). A special
>> function called htmlentities() in PHP does exactly that and I hope
>> that there is something similar in Tcl.
>
> Je ne connais rien de semblable mais TCL possède des fonctions de
> substitution très simples à utiliser. Avec un tableau de
> correspondance je pourrais créer une telle fonction.
Searching on the Web I found that there is something but I have no
idea how to use it in Tcl:
::html::html_entities string
This command replaces all special characters in the string with their
HTML entities and returns the modified text.
http://tcllib.sourceforge.net/doc/html.html
Could that work for us?
I did a short list of html entities as a reference on my website
http://cf29.com/design/entities_eng.php
more at
http://www.w3schools.com/tags/ref_entities.asp
The main concern is & that must be translated to & as this one may
create html errors, the others are more cosmetic but would be nice if
any special characters used in Player names, comments or wherever in
the pgn files. Imagine a game comments in French or even in Japanese
(I tried and it seems that Scid can't handle Japanese in the Comment
editor).
I'll send shortly the updated misc.tcl directly to you (40 KB limit on
the list)
Please try to save a few games and check if everything works fine
(game navigation, ...) and send me the generated files so I can check
if it is correct.
Cheers,
Charly
|