where can I find the descriptions for sayregexp, saynewline, saynextnumber and unspace, which I found in several Web Sources scripts?
i mailed with Florian, and now it's in the todo list. I am useing this commands and i hope i can help you.
sayregexp = Say Regex Line: <artist><join>this text</join></artist> Example: sayregexp "(?<=<join>)[^<]+(?=</join>)" ", " "</artist>" Result: this text saynextnumber = Say next number. I don't use this command before (i use regex) but i think this command makes: Line: Year: 2008 blahblah Example: FindInLine "Year:" SayNextNumber Result: 2008 (i think, but you can do the same one with a regex;)) saynewline = Add a line Break to the Output Example: outputto "comment" <- your comment output say "Hello" saynewline say "World" Result in the comment tag: Hello World (with a line break) unspace... I think you know what is a space.;)
Thanks, TerzOpperator, for your detailed explanations
Especially I appreciate the example for every command.
I'm using the PSPad editor for *.src files. I built a context file and a syntax file that support autocompletion and user defined highlighters. Not a big deal but convenient.
Yes, now, after a short glance at wikipedia. But joking apart, I still don't know what unspace is. The positions inside the Web Sources scripts don't give me a hint to its meaning.
Are there any more commands that are not described in the help file?
Very nice. I have written my own syntax highlighter too. I am useing Coda (OS X)
But i don't need a Autocomplete for anytag, but it's cool.
Yes, i think..... And i know one... unspace lol
unspace = You are on earth i think... g Like google earth....
Try it with useing killtag And show it in the debug.
sayuntilml is a new command in the dev version.
say until multiple lines.
And it's documentated in the help from mp3tag dev help.
I think there are more than one. And i need a lot of new commands (i will post when i release the new discogs api script). I hope i can speak with the dev team.
Give the dev team a chance to finish their todo's.
I used the scripts artistdirect.src and discogs.src.discogs.src has the unspace command. I started it with
debug "on" "c:\\\\debug_discogs_A.html" "10" debug "on" "c:\\\\debug_discogsB.html"
But I can't get a debug output. Deleting both unspace commands gave no visible effect in the album info nor in the extracted tags.artistdirect.src has no unspace command. The debug lines are uncommented. It produces both expected debug files. But I don't see any effect on placing the unspace at different points in the script.
Following your advice I consulted Google. It is not obvious or common what this command does. In Google codesearch I found some source codes in several programming languages that use a function with this name to delete all whitespaces in a string, others delete only the spaces.
If this is its purpose, where is it applied?
If not, what does it do?
Well, I've played with the WebSources some years ago, and at least I've given up fighting with the rather freaky and obscure WebSources programming language.
As I understand the 'unspace' function it does something like trimming the last value in buffer, that means removing all surrounding white spaces.
I tend to dislike the WebSource vehicle more and more, particularly because other methods will work more effective. Take a look at applications like Album Art Downloader, how smooth and effective it does the job!
If someone could build a simple Mp3tag related framework that works directly with the xml/html document objects via COM driven Internet Explorer or via FireFox-Addon, this will be the right way of automation the data mining process.
There exists also a good tool from iOpus for the masses:
You are right, at least the leading ones. Meanwhile I've got it, too, it had been my mistake.
Thank you for the interesting links! I tried Album Art Downloader, it works like a charm and I'll keep in on my computer for searching covers! Its script language is of course much more sophisticated than Web Source's one.
Even so I don't rap the Web Sources language. I think it grew with its tasks and does its specific job - picking needful informations out of websites and compose them for tags. The big advantage is that it's a part of Mp3Tag. It'd appreciate the documentation to be more detailed and (!) complete .