Diagram Captions Should Be Fixed
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
- HermanHiddema
- Gosei
- Posts: 2011
- Joined: Tue Apr 20, 2010 10:08 am
- Rank: Dutch 4D
- GD Posts: 645
- Universal go server handle: herminator
- Location: Groningen, NL
- Has thanked: 202 times
- Been thanked: 1086 times
Re: Diagram Captions Should Be Fixed
Its been six months
This is really annoying me every time I post something with diagrams.
Also, its broken because of the bbcode/html parsing anyway (See John Fairbairn's post about Boundary Plays for an example).
Can we please please get this fixed?
This is really annoying me every time I post something with diagrams.
Also, its broken because of the bbcode/html parsing anyway (See John Fairbairn's post about Boundary Plays for an example).
Can we please please get this fixed?
- HermanHiddema
- Gosei
- Posts: 2011
- Joined: Tue Apr 20, 2010 10:08 am
- Rank: Dutch 4D
- GD Posts: 645
- Universal go server handle: herminator
- Location: Groningen, NL
- Has thanked: 202 times
- Been thanked: 1086 times
Re: Diagram Captions Should Be Fixed
Please! This cannot be hard.
The sltxt2png script does not normally put text into the image like this, so this really can't be much more than just putting back the original sltxt2png and putting the header text in the body of the post...
The sltxt2png script does not normally put text into the image like this, so this really can't be much more than just putting back the original sltxt2png and putting the header text in the body of the post...
- Jordus
- Site Admin
- Posts: 1125
- Joined: Fri Dec 04, 2009 6:06 pm
- Rank: KGS 9k
- GD Posts: 0
- Universal go server handle: Jordus
- Location: Allegan, MI, USA
- Has thanked: 16 times
- Been thanked: 116 times
- Contact:
Re: Diagram Captions Should Be Fixed
So I fixed that particular example you gave in john fairburns thread of boundary plays.
I am guessing the issue we are having with the diagrams is that certain characters are not parsed correctly causing the title to enter the image? In the post you gave as an example it was parentheses. Is this the issue?
I am guessing the issue we are having with the diagrams is that certain characters are not parsed correctly causing the title to enter the image? In the post you gave as an example it was parentheses. Is this the issue?
I'm thinking...
- topazg
- Tengen
- Posts: 4511
- Joined: Wed Apr 21, 2010 3:08 am
- Rank: Nebulous
- GD Posts: 918
- KGS: topazg
- Location: Chatteris, UK
- Has thanked: 1579 times
- Been thanked: 650 times
- Contact:
- Jordus
- Site Admin
- Posts: 1125
- Joined: Fri Dec 04, 2009 6:06 pm
- Rank: KGS 9k
- GD Posts: 0
- Universal go server handle: Jordus
- Location: Allegan, MI, USA
- Has thanked: 16 times
- Been thanked: 116 times
- Contact:
Re: Diagram Captions Should Be Fixed
topazg wrote:Some characters are parsing badly
so the parsing of these characters is the issue? that is what I am trying to determine so I can possibly look into it.
I'm thinking...
- topazg
- Tengen
- Posts: 4511
- Joined: Wed Apr 21, 2010 3:08 am
- Rank: Nebulous
- GD Posts: 918
- KGS: topazg
- Location: Chatteris, UK
- Has thanked: 1579 times
- Been thanked: 650 times
- Contact:
Re: Diagram Captions Should Be Fixed
I don't know, it isn't my issue, but I know it was a complaint above and it's still the case.
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Diagram Captions Should Be Fixed
Hey Jordus,
I don't have time to fix this right now, but I know what the issue is. I modified the included php file for the diagrams to display the caption text as part of the image. This was easy to do at the time since we just construct the image from the url.
I also made word wrapping code which isn't completely bug-free. It's all in the php file, though, so if you want to take a look at the issue, it's within the php where the image is constructed for a diagram.
Probably a better solution would be to parse out the image caption and put it as text below the generated image, instead of constructing the characters as part of the image in the php file.
I don't have time to fix this right now, but I know what the issue is. I modified the included php file for the diagrams to display the caption text as part of the image. This was easy to do at the time since we just construct the image from the url.
I also made word wrapping code which isn't completely bug-free. It's all in the php file, though, so if you want to take a look at the issue, it's within the php where the image is constructed for a diagram.
Probably a better solution would be to parse out the image caption and put it as text below the generated image, instead of constructing the characters as part of the image in the php file.
be immersed
- HermanHiddema
- Gosei
- Posts: 2011
- Joined: Tue Apr 20, 2010 10:08 am
- Rank: Dutch 4D
- GD Posts: 645
- Universal go server handle: herminator
- Location: Groningen, NL
- Has thanked: 202 times
- Been thanked: 1086 times
Re: Diagram Captions Should Be Fixed
The original issue is described in post #4 and is as Kirby explains: The text should not be inside the image at all:
An additional reason to fix this quickly is because the current implementation is also broken, e.g:
(This is a very common usage of captions)
HermanHiddema wrote:I really dislike having the caption text be part of the image.
- It's bad style from a web standards perspective, because it ignores user settings for fonts, so you're breaking accessibility.
- It doesn't get indexed by search engines, nor by the forum search function, so it makes it harder to find things.
- You can't format it with the forum tools, so no italic, bold, or things like
@
(very useful in captions)
It would be much better, IMO, to put a div tag around the image, set to slightly more than the width of the image for text wrapping purposes, and have the text inside that div, under the image, as normal text.
An additional reason to fix this quickly is because the current implementation is also broken, e.g:
(This is a very common usage of captions)
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Diagram Captions Should Be Fixed
I guess I finally have some time to fix this. I'll keep my status posted here as I work.
be immersed
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Diagram Captions Should Be Fixed
So I've modified the diagrams to use the captions as regular text. I'm still thinking about the scenario where formatting (eg.
) is used within the caption.
) is used within the caption.be immersed
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Diagram Captions Should Be Fixed
Okay, there you go:
I made the text bold by default, because it doesn't seem to look that nice otherwise. Let me know if you want this updated, or anything else.
I made the text bold by default, because it doesn't seem to look that nice otherwise. Let me know if you want this updated, or anything else.
be immersed
- HermanHiddema
- Gosei
- Posts: 2011
- Joined: Tue Apr 20, 2010 10:08 am
- Rank: Dutch 4D
- GD Posts: 645
- Universal go server handle: herminator
- Location: Groningen, NL
- Has thanked: 202 times
- Been thanked: 1086 times
Re: Diagram Captions Should Be Fixed
Kirby wrote:Okay, there you go:
I made the text bold by default, because it doesn't seem to look that nice otherwise. Let me know if you want this updated, or anything else.
Wonderful, thanks!
Personally, I would prefer if diagrams were put inside a box, with the caption inside it and a (faint) line around it. Not bold by default would then allow the use of bold for emphasis.
If that box would also float to the left, allowing the text to flow around it, that would be great. The current implementation results in a lot of white space next to diagrams, and thus makes posts longer than they need to be, IMO.
Anyway, this is already a huge improvement!
- Redundant
- Lives in sente
- Posts: 924
- Joined: Thu Apr 22, 2010 3:00 pm
- Rank: lazy
- GD Posts: 0
- KGS: redundant/silchas
- Tygem: redundant
- Wbaduk: redundant
- DGS: redundant
- OGS: redundant
- Location: Pittsburgh
- Has thanked: 45 times
- Been thanked: 103 times
Re: Diagram Captions Should Be Fixed
This update really messes with the formatting of the malkovich games. For example, look at big brother 3.
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Diagram Captions Should Be Fixed
Setting the surrounding div to have left float seems to mess up the layout, particularly with the stuff that's below a diagram. I will mess with the formatting and see if I can adjust it to get the behavior that you suggest.
be immersed
@
(very useful in captions)
@
@ 