[Beta] Script to display a subtitle's word definition in OSD
Posted: 26 Jan 2010 14:59
*************************************
edit :
new version (october 2010) : can read *.ling dictionary files.
download : http://download.tuxfamily.org/polyglott ... uction.lua
*************************************
version 0.1.5
(Thanks to test and give some remarks...
Many thanks to Ale5000, his script was very helpful for me...)
You must put the file in the folder:
- Linux: ~/.local/share/vlc/lua/extensions/
- Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
- Windows (current user): %APPDATA%\VLC\lua\extensions\
you have to configure the script for your use; open it and replace parameters strings by yours (as indicated in the script): path of your dict dictionary, etc.
the subtitle file has to be a SUBRIP subtitle ( *.srt) , and have the same name as the movie file, except the extension (.srt), and has to be in the same directory as the movie.
The dictionary has to be a dict+idx file or a *.ling file), and you can find one here or (if french is one of the 2 languages) : here.
After he should appear in the "view" menu.
When you see a word on the current subtitle :
make a pause
use submenus (or right and left arrows on the keyboard) to display (OSD) the definition which interests you.
That's all !
This script was tested on GNU/linux ubuntu10.04 / vlc 1.1.2 .
************************************
Hello,
I try to learn a foreign language watching movies with foreign subtitles (*.srt). However, i would like to have the possibility to quickly (with a remote):
1/make a pause
2/select a word in the current subtitle
3/display its definition (using a dictionary software as stardict).
Do you think it would be realistic with lua ? My first problem is to get the elapsed time in order to determine the current subtitle: how could i do ? I did not see it in http://www.videolan.org/developers/vlc/ ... README.txt
Thanks !
edit :
new version (october 2010) : can read *.ling dictionary files.
download : http://download.tuxfamily.org/polyglott ... uction.lua
*************************************
version 0.1.5
(Thanks to test and give some remarks...
Many thanks to Ale5000, his script was very helpful for me...)
You must put the file in the folder:
- Linux: ~/.local/share/vlc/lua/extensions/
- Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
- Windows (current user): %APPDATA%\VLC\lua\extensions\
you have to configure the script for your use; open it and replace parameters strings by yours (as indicated in the script): path of your dict dictionary, etc.
the subtitle file has to be a SUBRIP subtitle ( *.srt) , and have the same name as the movie file, except the extension (.srt), and has to be in the same directory as the movie.
The dictionary has to be a dict+idx file or a *.ling file), and you can find one here or (if french is one of the 2 languages) : here.
After he should appear in the "view" menu.
When you see a word on the current subtitle :
make a pause
use submenus (or right and left arrows on the keyboard) to display (OSD) the definition which interests you.
That's all !
This script was tested on GNU/linux ubuntu10.04 / vlc 1.1.2 .
************************************
Hello,
I try to learn a foreign language watching movies with foreign subtitles (*.srt). However, i would like to have the possibility to quickly (with a remote):
1/make a pause
2/select a word in the current subtitle
3/display its definition (using a dictionary software as stardict).
Do you think it would be realistic with lua ? My first problem is to get the elapsed time in order to determine the current subtitle: how could i do ? I did not see it in http://www.videolan.org/developers/vlc/ ... README.txt
Thanks !