Hello,
I have one non-public wiki project with lot of smileys. Very big icon container was splitted for 20x20 icons, and thousand of smileys icons were put in /lib/images/smileys/local/
I've made smileys.local.conf, with something like:
:r1c1: local/r1c1.png
:r1c2: local/r1c2.png
...
Next, I've purged the cache. Now, my editor toolbar smiley button expands to giant vertical block with all of the smileys.
It's great success, but is not usable, completely. :-D
My next target was a smileys icon folding ability. But it is not realized yet.
I want propose to make this ability in the plugin or in the editor toolbar.
So, let's discuss the new extended smileys.conf syntax.
1-st alternative
Here we got giant list like:
:r1c1: local/r1c1.png # Red cat
:r1c2: local/r1c2.png # Black cat
:r1c3: local/r1c3.png # Tabby cat
:r1c4: local/r1c4.png # White cat
...
:r2c1: local/r2c1.png # Tucan
:r2c2: local/r2c2.png # Eagle
:r2c3: local/r2c3.png # Bullfinch
:r2c4: local/r2c4.png # Raven
...
Move all cats images in to the cats/ directory, and all birdies images to birds/ directory.
Make smileys.cats.conf and smileys.birds.conf like:
#folder cat/folder.png
:r1c1: cat/r1c1.png # Red cat
:r1c2: cat/r1c2.png # Black cat
:r1c3: cat/r1c3.png # Tabby cat
:r1c4: cat/r1c4.png # White cat
Pics are arranged in to cats and birds folding groups, make visible (unfolded) on mouse over.
If so, "#folder filename.png" syntax may be extended with next:
#folder cat/folder.png Cats
#folder:ru cat/folder.png Котики
#folder:de cat/folder.png Katzen
2-nd alternative
Extending smileys.conf syntax with optional string, which contain icon folder position:
#folder local/cats.png Cats
:r1c1: local/r1c1.png # Cats/Red cat
:r1c2: local/r1c2.png # Cats/Black cat
:r1c3: local/r1c3.png # Cats/Tabby cat
:r1c4: local/r1c4.png # Cats/White cat
...
#folder local/birds.png Birds
:r2c1: local/r2c1.png # Birds/Tucan
:r2c2: local/r2c2.png # Birds/Eagle
:r2c3: local/r2c3.png # Birds/Bullfinch
:r2c4: local/r2c4.png # Birds/Raven
...
This extended syntax allow to set multiple aliases for each smiley picture:
:tucan: local/r2c1.png # Birds/Tucan
:eagle: local/r2c2.png # Birds/Eagle
:raven: local/r2c4.png # Birds/Raven
:r2c1: local/r2c1.png # Birds/Tucan
:r2c2: local/r2c2.png # Birds/Eagle
:r2c3: local/r2c3.png # Birds/Bullfinch
:r2c4: local/r2c4.png # Birds/Raven
It'll display just 4 birds, but not 7. Same smiley pictures will introduced by only one.
Of course, no folding for pictures with out "#".
Hope, this idea is not bad. :-)