Windows > Third Party Plug-ins, Programs, and Skins
ZELDA v1.0 released (Expression Language editor)
wer:
I didn't think to do the tests you suggested on the other tabs. Interesting results.
Although I never changed any font settings for Zelda, when I went into that dialog, the default was set to Consolas 11 regular, if that is noteworthy. I tried changing the font settings, and that had no effect.
It happens in all the tabs, not just the playlist tab.
The leading colon is suppressed if it is followed by a space. If it is followed by almost any other character (including another colon), it is not suppressed and everything is fine. Colon followed by / and a space (an escaped space in MC parlance) is also suppressed. So
--- Code: ---:/ T
--- End code ---
displays
--- Code: ---T
--- End code ---
An arbitrary number can be suppressed, as long as they are at the start of line 1:
--- Code: ---: : : test ::: test ::: T
--- End code ---
displays as
--- Code: ---test ::: test ::: T
--- End code ---
A colon space that starts an additional line after a carriage return (line 2) is not suppressed. It only happens at the start of "line 1" in the input field.
It's interesting to watch, if you type colon space T
You see the colon appear, then the space is invisible of course, then you hit T and you see the colon disappear and the T shifts over to the left to the start of line where the colon was. Same effect for colon space / T
I'm running Zelda 1.2.5 from the zip, not the installer, on Window 7x64. No zooming, no scaling, normal EN/US, and of course it's a regular colon.
zybex:
Thanks, now I managed to reproduce it too.
The key is that it needs to be at the start of the string (line 1). When I do my tests I usually reuse the same Zelda panel so it's common to have other expressions above... I was testing your case on line 10 of my test tab #15 :)
Also, you're right, the default is Consolas 11, not 10.
This is a bug in MC - it's the "unlikely" case I outlined above.
@Matt,
Can you please check why this happens on the COM API but not on MC's UI:
file.GetFilledTemplate("test") = "test" (correct)
file.GetFilledTemplate(":test") = ":test" (correct)
file.GetFilledTemplate(": test") = "test" (wrong)
Thanks, and happy new year!
zybex:
This reminded me of another recent oddity I found and mentioned here - The string "()" will get suppressed from any expression or field output:
--- Code: ---file.GetFilledTemplate("test()") = "test" (wrong)
--- End code ---
Here I can understand the reasoning - the EL Engine thinks that we are referencing a Test() function which doesn't exist, so it just returns "test". However on the UI this does not happen so I think the API should also return "test()" for consistency.
Worst, this happens when simply outputting any field value which contains "()":
--- Code: ---save(/#test(), (), test2()#/, v_test)
[v_test]
--- End code ---
This outputs "test, , test2" when using the API, and "test(), (), test2()" when using an Expression column on MC.
wer:
See, this is perhaps why you should not want me to use your app... ;D
This thing I just reported, was literally my first time using Zelda. First time I ran the app.
Everything you just mentioned as "another recent oddity" I have never tried using the API. Presumably I'll stumble over those on my 2nd use.
Overall though I like it Zybex. Nice job. I'd like it better if you could drag to re-order tabs, and to re-order columns in the playlist view. I especially like what you did with insert function, and with the live wiki below the editing pane. That's nice. It would be good if the Insert Function dialog had grouping like the wiki to make it easier to find things (String Functions, List Functions, etc).
zybex:
Matt,
Looks like the GetFilledTemplate() is adding an extra Clean() to the expression. Doing this on MC UI exactly reproduces the behavior we're seeing on the API/Zelda.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version