Open ivanbalashov239 opened 9 years ago
Well, it's quite technicall question. First of all, why do you need it? If you need a feature, you can just request it.
bomi utilizes QML for user interface, so you may think it's scriptable. But, the API is mainly aimed for skin design, so what you can do is somewhat limited.
I was thinking about integration with anki, but has not yet decided how it should look like, ideally probably need to add all the words of the subtitle in Anki, verify the presence of base, etc. Question about scripting appeared after viewing solutions for vlc.
Because Qt can evaluate javascript(QML), if I support scripting functionality, it will be confined to javascript/QML only. However, there are tons of things to be done. The most difficult thing is to define public APIs. Even the skin API isn't fixed yet. But, it's defintely interesting idea.
When you saying 'scripting', what kind of functionality do you need? Evaluating a script by bomi would be easy. However, a script binding for bomi would be difficult, and I recommend writing a skin for such purpose. A descriptive pseudo code would be most helpful.
My case is clickable words in subtitles and call dictionary and etc.
Clickable words in subtitles 'by script'? I cannot even imagine what you are talking about. Do you want to make a 'click' by script?
no, i mean that when i will click word in subtitle, script will open this word in dictionary, or when i move mouse cursor to english language subtitle it will show native language subtitle, i just need interactive subtitles like here fore example(click to play video and then move cursor to subtitle and click the word) http://www.hamatata.com/
This is not about scripting. This is not possible fundamentally unless I replace current subtitlte renderer with totally differerent thing. I'll keep this open but maybe it will take a long time till I start to work on this.
Ok, i'll solve it in external script, thanks.
is it possible to make bomi sciptable like vlc?