GNOME Bugzilla – Bug 651006
Automatic language detection
Last modified: 2018-09-21 16:10:59 UTC
It would be interesting to have Gnome Subtitles automatically detect text language, both for subtitle text and translation. That way the respective options in the Tools menu could be automatically set. LibEnchant (used for spell-check) doesn't seem to support this. There are also online services available (example: http://stackoverflow.com/questions/1192768/return-the-language-of-a-given-string/1192802#1192802), but a local approach seems better. The following library might do the trick: http://ntextcat.codeplex.com/ (NTextCat) Other references: http://code.google.com/p/language-detection/ (Java) http://textcat.sourceforge.net/ (Java)
Note: this could also be used on file open, to automatically detect which files are text or translation.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-subtitles/issues/67.