Re: [pmwiki-users] Galleria

2011-06-10 Thread DaveG



On 6/10/2011 11:18 PM, DaveG wrote:

The example will not work in PmWiki without some tweaking, but it
shouldn't be
hard.

Thanks, that seems like a workable solution, although I've not yet been
able to find a selector that can get text after the BR.

I have the selector:
$(img).parent('div').contents().filter(function(){ return this.nodeType 
== 3 }).text()


Unfortunately I can't yet get it to work in the context:
$('#demo').galleria({
dataConfig: function(img) {
return {
description: 
$(img).parent('div').contents().filter(function(){ return this.nodeType 
== 3 }).text()

}
}
});

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Galleria

2011-06-10 Thread DaveG



On 6/10/2011 8:52 PM, Petko Yotov wrote:

Agreed, but is there no reason why the two *have* to be the same.


They don't "have" to, but when we convert from simplified wiki-markup to HTML,
what PmWiki does is simple, quick and probably most convenient for most people
in most cases.



Is there a way to provide different text for the ALT and TITLE?


Not with the default PmWiki installation.

Looking at your demo page, the easiest fix for the double caption may be to
just disable one of the attributes, by adding such a line to config.php:

   $ImgTagFmt = ""; # no alt

Another approach based on that idea might be something like:

$ImgTagFmt="";

However, the caption isn't passed into the image handler function. Which 
is reasonable given it's not part of the image tag.




Looking at the Galleria documentation, I see that it is possible to get the
description from a text element after the image, eg. from the "| caption" part
generated by PmWiki. The method is shown here:

   http://galleria.aino.se/docs/1.2/references/data/#using-html-with-dataconfig

The example will not work in PmWiki without some tweaking, but it shouldn't be
hard.
Thanks, that seems like a workable solution, although I've not yet been 
able to find a selector that can get text after the BR.



Options for a more rigorous solution might be:
1] Since the caption is not currently part of the image it makes sense 
the caption is not passed as a parameter into the image parsing 
function. Is there a possibility to change this?


2] Or, allow for a separate definition of ALT and TITLE within markup. 
Possibly separate the title from alt with another pipe delimiter.


3] Allow for some form of styling to be put around image and table captions.

Option [3] is probably the more generally usable, with the creation of 
some form of $CationFmt variable. If this seems a reasonable approach, 
I'll add a PITS entry.



 ~ ~ Dave

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Galleria

2011-06-10 Thread Petko Yotov
On Saturday 11 June 2011 02:09:47, DaveG wrote :
> On 6/10/2011 4:18 PM, Petko Yotov wrote:
> > Browsers should display the alt text when the image cannot be displayed,
> > and the title text in a tooltip box/bubble when the mouse cursor is
> > positioned over the image. (In the past, Internet Explorer used the alt
> > text for both, but this behavior is not standard.)
> 
> Agreed, but is there no reason why the two *have* to be the same. 

They don't "have" to, but when we convert from simplified wiki-markup to HTML, 
what PmWiki does is simple, quick and probably most convenient for most people 
in most cases.


> Is there a way to provide different text for the ALT and TITLE?

Not with the default PmWiki installation.

Looking at your demo page, the easiest fix for the double caption may be to 
just disable one of the attributes, by adding such a line to config.php:

  $ImgTagFmt = ""; # no alt


Looking at the Galleria documentation, I see that it is possible to get the 
description from a text element after the image, eg. from the "| caption" part 
generated by PmWiki. The method is shown here:

  http://galleria.aino.se/docs/1.2/references/data/#using-html-with-dataconfig

The example will not work in PmWiki without some tweaking, but it shouldn't be 
hard.

Petko

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Galleria

2011-06-10 Thread DaveG



On 6/10/2011 4:18 PM, Petko Yotov wrote:

PmWiki adds the string in quotes in both alt= and title= attributes of the
image tag. You can see the HTML source code of the page.

Agreed, as I also noted.



Browsers should display the alt text when the image cannot be displayed, and
the title text in a tooltip box/bubble when the mouse cursor is positioned
over the image. (In the past, Internet Explorer used the alt text for both,
but this behavior is not standard.)
Agreed, but is there no reason why the two *have* to be the same. Is 
there a way to provide different text for the ALT and TITLE?


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Galleria

2011-06-10 Thread Petko Yotov
On Friday 10 June 2011 20:23:12, DaveG wrote :
> According to http://www.pmwiki.org/wiki/PmWiki/Images, alt text is
> identified by double quotes immediately following the image url; a
> caption can follow separated by a vertical bar (|).

The text after the vertical bar is a caption, it appears in the wiki page, and 
can contain styles, colors, links, etc.

> However, in a quick test (ref Test/Images-Draft), I think the docs are a
> little misleading, as further down it's noted that the pipe is to
> identify a Caption more than affecting the TITLE attribute.
> 
> So, end result is I'm not sure how to identify a TITLE attribute for an
> image tag.

PmWiki adds the string in quotes in both alt= and title= attributes of the 
image tag. You can see the HTML source code of the page.

Browsers should display the alt text when the image cannot be displayed, and 
the title text in a tooltip box/bubble when the mouse cursor is positioned 
over the image. (In the past, Internet Explorer used the alt text for both, 
but this behavior is not standard.)


Petko

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Galleria

2011-06-10 Thread DaveG

http://www.pmwiki.org/wiki/PmWiki/Images

On 6/10/2011 11:41 AM, Peter Gragert wrote:

Oh, the dubbel text is a behavior missing 'alt="the italic line"'
That means, how doe I add a HTML  alt to an Attach:pic.jpt"Title"  alt =

According to http://www.pmwiki.org/wiki/PmWiki/Images, alt text is 
identified by double quotes immediately following the image url; a 
caption can follow separated by a vertical bar (|).


However, in a quick test (ref Test/Images-Draft), I think the docs are a 
little misleading, as further down it's noted that the pipe is to 
identify a Caption more than affecting the TITLE attribute.


So, end result is I'm not sure how to identify a TITLE attribute for an 
image tag.


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Galleria

2011-06-10 Thread DaveG



On 6/10/2011 11:34 AM, Peter Gragert wrote:

Thanks Dave,
Discovered the small (white) I (letter i) at the left top of an image ...
THAT has to be activated!
But the text occurs twice, fat white, and grey italic ???
A little bit of work?
That's actually correct behavior for the way Galleria works, and is 
because the markup:

* Attach:P5123230.jpg"This is image 1 -- very nice"

Adds the text to both the alt and title tags, which galleria uses for 
different purposes.



___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Galleria

2011-06-10 Thread Peter Gragert
Oh, the dubbel text is a behavior missing 'alt="the italic line"'
That means, how doe I add a HTML  alt to an Attach:pic.jpt"Title"  alt =

Peter

-Oorspronkelijk bericht-
Van: DaveG [mailto:pmw...@solidgone.com] 
Verzonden: vrijdag 10 juni 2011 15:48
Aan: Peter Gragert
CC: pmwiki-users@pmichaud.com
Onderwerp: Re: [pmwiki-users] Galleria



On 6/10/2011 5:48 AM, Peter Gragert wrote:
> Hallo,
>
> Galleria is indeed nicely adjusted.
>
> Two remarks :
>
> 1.Images with Captions does not show the captions?
Check that be CSS coloring style on text/links is not the same color as 
the background and thus hiding the text.

Also make sure you set the config appropriately: 
http://galleria.aino.se/docs/1.2/options/dataConfig/


> 2.How to start autoplay again, after a click on a thumbnail? (I mean not
> 'reload', which starts again but at image 1)
I may be wrong, but I'm not sure this capability exists yet. I see 
pauseOnInteraction defaults to true, but don't see an oppoosite action. 
You'd probably have to add a custom control to resume play. I'll look at 
it over the weekend, to make sure I'm not missing anything.


-
Geen virus gevonden in dit bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 10.0.1382 / Virusdatabase: 1513/3691 - datum van uitgifte: 06/09/11


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Galleria

2011-06-10 Thread Peter Gragert
Thanks Dave,
Discovered the small (white) I (letter i) at the left top of an image ...
THAT has to be activated!
But the text occurs twice, fat white, and grey italic ??? 
A little bit of work?
Greetings
   Peter

-Oorspronkelijk bericht-
Van: DaveG [mailto:pmw...@solidgone.com] 
Verzonden: vrijdag 10 juni 2011 15:48
Aan: Peter Gragert
CC: pmwiki-users@pmichaud.com
Onderwerp: Re: [pmwiki-users] Galleria



On 6/10/2011 5:48 AM, Peter Gragert wrote:
> Hallo,
>
> Galleria is indeed nicely adjusted.
>
> Two remarks :
>
> 1.Images with Captions does not show the captions?
Check that be CSS coloring style on text/links is not the same color as 
the background and thus hiding the text.

Also make sure you set the config appropriately: 
http://galleria.aino.se/docs/1.2/options/dataConfig/


> 2.How to start autoplay again, after a click on a thumbnail? (I mean not
> 'reload', which starts again but at image 1)
I may be wrong, but I'm not sure this capability exists yet. I see 
pauseOnInteraction defaults to true, but don't see an oppoosite action. 
You'd probably have to add a custom control to resume play. I'll look at 
it over the weekend, to make sure I'm not missing anything.


-
Geen virus gevonden in dit bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 10.0.1382 / Virusdatabase: 1513/3691 - datum van uitgifte: 06/09/11


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Galleria

2011-06-10 Thread DaveG



On 6/10/2011 5:48 AM, Peter Gragert wrote:

Hallo,

Galleria is indeed nicely adjusted.

Two remarks :

1.Images with Captions does not show the captions?
Check that be CSS coloring style on text/links is not the same color as 
the background and thus hiding the text.


Also make sure you set the config appropriately: 
http://galleria.aino.se/docs/1.2/options/dataConfig/




2.How to start autoplay again, after a click on a thumbnail? (I mean not
‘reload’, which starts again but at image 1)
I may be wrong, but I'm not sure this capability exists yet. I see 
pauseOnInteraction defaults to true, but don't see an oppoosite action. 
You'd probably have to add a custom control to resume play. I'll look at 
it over the weekend, to make sure I'm not missing anything.


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Galleria

2011-06-10 Thread Peter Gragert
Hallo,

Galleria is indeed nicely adjusted.

 

Two remarks :

1.Images with Captions does not show the captions?

2.   How to start autoplay again, after a click on a thumbnail? (I mean
not 'reload', which starts again but at image 1)

Greetings

  Peter

 

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users