Module: SubtitleIt
- Defined in:
- lib/subtitle_it/bin.rb,
lib/subtitle_it.rb,
lib/subtitle_it/fixes.rb,
lib/subtitle_it/movie.rb,
lib/subtitle_it/subdown.rb,
lib/subtitle_it/subline.rb,
lib/subtitle_it/subtime.rb,
lib/subtitle_it/version.rb,
lib/subtitle_it/substyle.rb,
lib/subtitle_it/subtitle.rb,
lib/subtitle_it/generator.rb,
lib/subtitle_it/languages.rb
Overview
Defined Under Namespace
Classes: Bin, Movie, Subdown, Subdownloader, Subline, Substyle, Subtime, Subtitle, Subwork
Constant Summary collapse
- VERSION =
'2.2.0'.freeze
- MOVIE_EXTS =
%w(3g2 3gp 3gp2 3gpp 60d ajp asf asx avchd avi bik bix box cam dat divx dmf dv dvr-ms evo flc fli flic flv flx gvi gvp h264 m1v m2p m2ts m2v m4e m4v mjp mjpeg mjpg mkv moov mov movhd movie movx mp4 mpe mpeg mpg mpv mpv2 mxf nsv nut ogg ogm omf ps qt ram rm rmvb swf ts vfw vid video viv vivo vob vro wm wmv wmx wrap wvx wx x264 xvid).freeze
- SUB_EXTS =
%w(srt sub smi txt ssa ass mpl xml yml rsb).freeze
- LANGS =
opensubtitle uses a 3 chars like Por => Portuguese Cze => Czech .…
LANGUAGE / HUMAN NAME / OPENSUBTITLE CODE
Need to rewrite “Portuguese” => [:pt, :por, :whatever]
{ aa: 'Afar', ab: 'Abkhazian', af: 'Afrikaans', ak: 'Akan', ay: 'Assyrian', sq: 'Albanian', am: 'Amharic', ar: 'Arabic', br: %w(Brazilian por), hy: 'Armenian', bs: 'Bosnian', bg: 'Bulgarian', ca: 'Catalan', cs: 'Czech', da: 'Danish', nl: 'Dutch', en: %w(English eng), et: 'Estonian', fr: %w(French fra), de: 'German', gl: 'Galician', el: 'Greek', he: 'Hebrew', hi: 'Hindi', hr: 'Croatian', hu: 'Hungarian', is: 'Icelandic', id: 'Indonesian', it: 'Italian', ja: 'Japanese', kk: 'Kazakh', ko: 'Korean', lv: 'Latvian', lt: 'Lithuanian', lb: 'Luxembourgish', mk: 'Macedonian', ms: 'Malay', no: 'Norwegian', pl: 'Polish', pt: 'Portuguese', ru: 'Russian', sr: 'Serbian', es: 'Spanish', sk: 'Slovak', sl: 'Slovenian', sv: 'Swedish', th: 'Thai', tr: 'Turkish', uk: 'Ukrainian', vi: 'Vietnamese', ro: 'Romanian', zh: 'Chinese' }