bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] html export in gnubg


From: Joern Thyssen
Subject: Re: [Bug-gnubg] html export in gnubg
Date: Mon, 14 Oct 2002 14:35:11 +0000
User-agent: Mutt/1.4i

On Mon, Oct 14, 2002 at 03:10:35PM +0200, Øystein O Johansen wrote
> 
> > Gnubg mixes up the colours of the players in doubling
> > situations, saying "blue doubles to 2" when white doubles
> > and vice versa (in BBS export). The problem occurs both in
> > fibs2html and BBS export.
> 
> Jørn, didn't you fix this yesterday? 

I'm not sure :-)

> Magnar, do you use todays build?

If you can reproduce the bug, please mail an example to me (sgf +html)!


> > , the html export file still displays strange signs
> > instead of the letters.
> 
> Here's a dirty trick:
> Open the .html file in a text editor, emacs or vim or
> whatever text editor you're using. Find the line:
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
> (it's close to the top of the file), and change it to:
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> 
> Scandinavian characters now works in my web-browser (which I won't
> name here.)
> 
> So, developers, what do we do with this? Make the charset an option
> in the html export dialog?

It's the same problems as with the SGF files.

I'm not sure whether we should

(a) convert the input text to ISO-8859-1 and store it internally as
ISO-8859-1

or

(b) store the text internally as UTF-8 and convert to ISO-8859-1 before
saving SGF, text and html.

Of course, we may generate the html as UTF-8 by setting the appropriate
Content-Type, but I prefer that the html is in ISO-8859-1 as this is the
default Content-Type and all browsers should understand it.


> > Finally, is there a chance that the nice new graphics will
> > be made available somewhere for html export? I like the new
> > flat pieces, but the current export graphics contain the old,
> > transparent balls... :-)
> 
> On a Linux system you can generate your own html images by
> running the script in the html-images directory.

Yes, but running the script is not trivial. The window must be exactly
the size specified in the script.

> Jørn? This is your call!

I've plans to add code so you can generate your own html images, but it
may be while before I start.

Jørn

-- 
Joern Thyssen, PhD
Vendsysselgade 3, 3., DK-9000 Aalborg, Denmark
+45 9813 2791 (private) / +45 2818 0183 (mobile) / +45 9633 7036 (work)
Note: new mobile number!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]