It is currently Wed Apr 30, 2025 2:16 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2
Author Message
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #21 Posted: Wed Feb 02, 2011 3:29 pm 
Site Admin
User avatar

Posts: 1125
Location: Allegan, MI, USA
Liked others: 18
Was liked: 121
Rank: KGS 9k
Universal go server handle: Jordus
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...

Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #22 Posted: Wed Feb 02, 2011 3:30 pm 
Tengen
User avatar

Posts: 4511
Location: Chatteris, UK
Liked others: 1589
Was liked: 656
Rank: Nebulous
GD Posts: 918
KGS: topazg
I don't know, it isn't my issue, but I know it was a complaint above and it's still the case.

Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #23 Posted: Wed Feb 02, 2011 4:41 pm 
Honinbo

Posts: 9552
Liked others: 1602
Was liked: 1712
KGS: Kirby
Tygem: 커비라고해
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.

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #24 Posted: Thu Feb 03, 2011 1:40 am 
Gosei
User avatar

Posts: 2011
Location: Groningen, NL
Liked others: 202
Was liked: 1087
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
The original issue is described in post #4 and is as Kirby explains: The text should not be inside the image at all:

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 :b8: @ :w2: (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:

Click Here To Show Diagram Code
[go]$$B :b7: @ :b1:, :w8: @ :b3:
$$ +------------------
$$ | 6 3 4 . . . . . .
$$ | 2 1 O . . . . . .
$$ | . O X X . . . . .
$$ | 5 O O X X . . . .
$$ | 9 X X O . . . . .
$$ | . . . O . . . . .
$$ | . . O . . . . . .
$$ | . . . . . . . . .
$$ | . . . . . . . . .[/go]


(This is a very common usage of captions)

Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #25 Posted: Tue Feb 08, 2011 8:56 am 
Honinbo

Posts: 9552
Liked others: 1602
Was liked: 1712
KGS: Kirby
Tygem: 커비라고해
I guess I finally have some time to fix this. I'll keep my status posted here as I work.

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #26 Posted: Tue Feb 08, 2011 9:56 am 
Honinbo

Posts: 9552
Liked others: 1602
Was liked: 1712
KGS: Kirby
Tygem: 커비라고해
So I've modified the diagrams to use the captions as regular text. I'm still thinking about the scenario where formatting (eg. :b1:) is used within the caption.

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #27 Posted: Tue Feb 08, 2011 10:29 am 
Honinbo

Posts: 9552
Liked others: 1602
Was liked: 1712
KGS: Kirby
Tygem: 커비라고해
Okay, there you go:

Click Here To Show Diagram Code
[go]$$B :b7: @ :b1:, :w8: @ :b3:
$$ +------------------
$$ | 6 3 4 . . . . . .
$$ | 2 1 O . . . . . .
$$ | . O X X . . . . .
$$ | 5 O O X X . . . .
$$ | 9 X X O . . . . .
$$ | . . . O . . . . .
$$ | . . O . . . . . .
$$ | . . . . . . . . .
$$ | . . . . . . . . .[/go]


Click Here To Show Diagram Code
[go]$$B I like :batman:
$$ +------------------
$$ | 6 3 4 . . . . . .
$$ | 2 1 O . . . . . .
$$ | . O X X . . . . .
$$ | 5 O O X X . . . .
$$ | 9 X X O . . . . .
$$ | . . . O . . . . .
$$ | . . O . . . . . .
$$ | . . . . . . . . .
$$ | . . . . . . . . .[/go]


Click Here To Show Diagram Code
[go]$$B i like italic
$$ +------------------
$$ | 6 3 4 . . . . . .
$$ | 2 1 O . . . . . .
$$ | . O X X . . . . .
$$ | 5 O O X X . . . .
$$ | 9 X X O . . . . .
$$ | . . . O . . . . .
$$ | . . O . . . . . .
$$ | . . . . . . . . .
$$ | . . . . . . . . .[/go]


Click Here To Show Diagram Code
[go]$$B and underlines
$$ +------------------
$$ | 6 3 4 . . . . . .
$$ | 2 1 O . . . . . .
$$ | . O X X . . . . .
$$ | 5 O O X X . . . .
$$ | 9 X X O . . . . .
$$ | . . . O . . . . .
$$ | . . O . . . . . .
$$ | . . . . . . . . .
$$ | . . . . . . . . .[/go]


Click Here To Show Diagram Code
[go]$$B and weird characters: #@($*&!$)(*&!$#@
$$ +------------------
$$ | 6 3 4 . . . . . .
$$ | 2 1 O . . . . . .
$$ | . O X X . . . . .
$$ | 5 O O X X . . . .
$$ | 9 X X O . . . . .
$$ | . . . O . . . . .
$$ | . . O . . . . . .
$$ | . . . . . . . . .
$$ | . . . . . . . . .[/go]


Click Here To Show Diagram Code
[go]$$B and bold stuff
$$ +------------------
$$ | 6 3 4 . . . . . .
$$ | 2 1 O . . . . . .
$$ | . O X X . . . . .
$$ | 5 O O X X . . . .
$$ | 9 X X O . . . . .
$$ | . . . O . . . . .
$$ | . . O . . . . . .
$$ | . . . . . . . . .
$$ | . . . . . . . . .[/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.

_________________
be immersed


This post by Kirby was liked by 3 people: Dusk Eagle, HermanHiddema, Li Kao
Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #28 Posted: Tue Feb 08, 2011 10:54 am 
Gosei
User avatar

Posts: 2011
Location: Groningen, NL
Liked others: 202
Was liked: 1087
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
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! :D

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!


This post by HermanHiddema was liked by: Kirby
Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #29 Posted: Tue Feb 08, 2011 11:36 am 
Lives in sente
User avatar

Posts: 924
Location: Pittsburgh
Liked others: 45
Was liked: 103
Rank: lazy
KGS: redundant/silchas
Tygem: redundant
Wbaduk: redundant
DGS: redundant
OGS: redundant
This update really messes with the formatting of the malkovich games. For example, look at big brother 3.

Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #30 Posted: Tue Feb 08, 2011 11:37 am 
Honinbo

Posts: 9552
Liked others: 1602
Was liked: 1712
KGS: Kirby
Tygem: 커비라고해
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

Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #31 Posted: Tue Feb 08, 2011 11:37 am 
Honinbo

Posts: 9552
Liked others: 1602
Was liked: 1712
KGS: Kirby
Tygem: 커비라고해
Redundant wrote:
This update really messes with the formatting of the malkovich games. For example, look at big brother 3.


I think you might have caught things when I was experimenting with Herman's suggestion. I removed the float left that was requested. Does it look alright now (minus the fact that the box is too wide)? I may do some more experimenting in the near future.

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #32 Posted: Tue Feb 08, 2011 11:56 am 
Lives in sente
User avatar

Posts: 924
Location: Pittsburgh
Liked others: 45
Was liked: 103
Rank: lazy
KGS: redundant/silchas
Tygem: redundant
Wbaduk: redundant
DGS: redundant
OGS: redundant
Kirby wrote:
Redundant wrote:
This update really messes with the formatting of the malkovich games. For example, look at big brother 3.


I think you might have caught things when I was experimenting with Herman's suggestion. I removed the float left that was requested. Does it look alright now (minus the fact that the box is too wide)? I may do some more experimenting in the near future.


It's fixed.


This post by Redundant was liked by: Kirby
Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #33 Posted: Tue Feb 08, 2011 11:57 am 
Honinbo

Posts: 9552
Liked others: 1602
Was liked: 1712
KGS: Kirby
Tygem: 커비라고해
HermanHiddema wrote:
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! :D

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!


I have tried doing all of the things that you mentioned, but setting the box to left float seems to hurt the layout when there are multiple diagrams in a single post. For now, I am using align-block, with an added modification so that it shows up in IE.

The box seems to wrap around the image and caption, now, but as you can see, the text is not to the right of the image this way, as you desire.

If you have any suggestions regarding the left float situation, please feel free to let me know. Until I solve that issue, I'll take the other suggestions you had (box around image and text, and not bolding the text).

_________________
be immersed


This post by Kirby was liked by 3 people: daniel_the_smith, HermanHiddema, topazg
Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #34 Posted: Tue Feb 08, 2011 12:00 pm 
Gosei
User avatar

Posts: 2116
Location: Silicon Valley
Liked others: 152
Was liked: 330
Rank: 2d AGA
GD Posts: 1193
KGS: lavalamp
Tygem: imapenguin
IGS: lavalamp
OGS: daniel_the_smith
They look great! Thanks!

_________________
That which can be destroyed by the truth should be.
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com


This post by daniel_the_smith was liked by: Kirby
Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #35 Posted: Tue Feb 08, 2011 9:51 pm 
Judan
User avatar

Posts: 5546
Location: Banbeck Vale
Liked others: 1104
Was liked: 1457
Rank: 1D AGA
GD Posts: 1512
Kaya handle: Test
Thank you, Kirby! :bow: :bow: :bow: :bow:

_________________
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207


This post by Joaz Banbeck was liked by: Kirby
Top
 Profile  
 
Offline
 Post subject: Re: Diagram Captions Should Be Fixed
Post #36 Posted: Wed Feb 09, 2011 3:42 pm 
Gosei
User avatar

Posts: 2011
Location: Groningen, NL
Liked others: 202
Was liked: 1087
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
Kirby wrote:
HermanHiddema wrote:
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! :D

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!


I have tried doing all of the things that you mentioned, but setting the box to left float seems to hurt the layout when there are multiple diagrams in a single post. For now, I am using align-block, with an added modification so that it shows up in IE.

The box seems to wrap around the image and caption, now, but as you can see, the text is not to the right of the image this way, as you desire.

If you have any suggestions regarding the left float situation, please feel free to let me know. Until I solve that issue, I'll take the other suggestions you had (box around image and text, and not bolding the text).


Thanks again, this looks great!

Some suggestions on fixing the float issue:

just before the div with the diagram, put <div style="clear:both"></div>. That should make sure that diagrams do not end up next to each other, and that text that comes after a diagram can end up next to it, but never before it.

I would then also suggest putting the "Show diagram code" text inside the diagram div, so it doesn't end up next to it. I'll try playing around locally with the css later this week, to see what I can come up with.

I think it would also be a good idea to add a little padding (say 5px) to the diagram box.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group