Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Subtitles

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th May 2008, 03:35   #1  |  Link
awx
Registered User
 
Join Date: Oct 2005
Posts: 78
SubHub, a post-OCR correction tool for Srt files, 0.6.0 released

SubHub is a program for dealing with errors in Srt files. At its core, SubHub will read Srt subtitle files into RAM and allow you to run regex queries against the text. Then you can edit the lines to fix any errors you see and resave the file to disk.

The UI is geared for people who want to make corrections to a 100+ files at a time. If you only want to change one file then the UI might seem confusing.

SubHub can be installed and automatically updated directly from the SourceForge website.
Installer with auto-updater:
setup.exe

zip file releases:
http://sourceforge.net/project/showf...roup_id=225616

Screenshot:


This software is released under the GPL license. The source code is hosted at SourceForge under the name subhub.

SubHub is written in C# for .NET 4.0. It uses WPF for the GUI and LINQ for much of the searching. Unfortunately, it won't run under the current version of Mono.

Requirements:
.NET 4.0

WARNING:
THIS IS PRE-RELEASE SOFTWARE THAT MAY CONTAIN BUGS. MAKE BACKUPS OF YOUR DATA!


Version history:
Code:
Completed in version 0.6.0
 * Compiled against .Net 4.0

Completed in version 0.5.3:
 * Enabled ClickOnce installer and automatic updater at <http://subhub.sourceforge.net/clickonce/publish.htm>
 * Updated application icon with large Vista sizes.

Completed in version 0.5.2:
 * Added a non-free Yellow Submarine icon. This icon cannot be included in source files due to license.
 * Allow user to specify durations for "too long" and "too short" queries.

Completed in version 0.5.1:
 * Bug: DirTreeNode Icon does not update to reflect changes (files added, removed).
 * Html Export: use Css classes rather than inline styles for formatting
 * Quick searches are no longer case sensitive.
 * Dialog added for Revert item function so that user can choose to revert text or timecodes independently.

Completed in version 0.5.0:
 * Add AddedItems list to SubtitleClass
 * Add Insert Item above/below functions.
 * Add an "All Items" query to the Tree Browser.
 * Add Delete item function.
 * Allow user to open a file with an alternate encoding.
 * Bulk language change feature added.
 * Subtitle files can now be renamed.
 * Added a revert function for subitems
 * Made Open Files background thread multithreaded (1 thread per cpu core).
 * Item Editor now has native platform line endings, allowing better copy/paste.
 * Disable SubtitleEditor when nothing is selected.
 * save window size, position and state between launches.
 * Search Categories treeview now remembers which major branches were expanded
 * Default window size now netbook friendly
 * Add an About box.
 * Open File and Folder dialogs now remember the last directory opened.

Last edited by awx; 26th September 2010 at 17:40. Reason: version 0.6.0 released
awx is offline   Reply With Quote
Old 1st June 2008, 07:45   #2  |  Link
awx
Registered User
 
Join Date: Oct 2005
Posts: 78
The second release is now available.

Mostly bug fixes and some UI changes.
All queries and file saving are run on a background thread now.
Editing files on a network share should be much faster.
awx is offline   Reply With Quote
Old 1st June 2008, 15:09   #3  |  Link
GrofLuigi
Member of a Library
 
Join Date: Oct 2002
Posts: 463
Sounds nice, but .Net 35 is a showstopper for me.

My computers(s) are old and weak and not ready to take such a blow.

GL
GrofLuigi is offline   Reply With Quote
Old 1st June 2008, 16:13   #4  |  Link
awx
Registered User
 
Join Date: Oct 2005
Posts: 78
.Net 3.5 is probably the least of your worries. Wpf might make your system crawl.
awx is offline   Reply With Quote
Old 2nd June 2008, 21:00   #5  |  Link
awx
Registered User
 
Join Date: Oct 2005
Posts: 78
Version 0.3.0 adds support for running regex replacement patterns against the text.

Subtitle Text Queries with the lightening bolt icon have a replacement pattern that you can run. After you've selected a text query from the treeview, right-clicking on a file or an individual item will give you the menu item "Apply Regex Replacement Pattern...".

You can fix problems in hundreds of Srt files in a few seconds if you write some good Regex patterns. I've written several for L to I fixes that are useful for English subs.


Last edited by awx; 2nd June 2008 at 21:11.
awx is offline   Reply With Quote
Old 5th June 2008, 13:22   #6  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Regex-es are cute. But can it globally change/adjust time indices, too? Like, say, I want every subtitle entry to start one second later.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 5th June 2008, 16:08   #7  |  Link
awx
Registered User
 
Join Date: Oct 2005
Posts: 78
Quote:
Originally Posted by asarian View Post
Regex-es are cute. But can it globally change/adjust time indices, too? Like, say, I want every subtitle entry to start one second later.
It's on the ToDo list, in the first post in this thread:
Quote:
* Write some basic item Timing adjustment functions.
It shouldn't take more than a hour or two to add that feature. Most of the time will be setting up the dialog box. I'll see about getting it into the next version.

But SubHub will always be more of an Post-OCR correction tool and less of a dedicated subtitle editor.

I need a Unicode-enabled subtitle editor that can do 2 or more subs side-by-side. Currently I use GnomeSubtitles in Linux for this. In the very long term, I have been thinking about adding a new window or another exe to SubHub that could do this.

Last edited by awx; 5th June 2008 at 16:15.
awx is offline   Reply With Quote
Old 16th June 2008, 01:27   #8  |  Link
awx
Registered User
 
Join Date: Oct 2005
Posts: 78
Version 0.4.0 released

Version 0.4.0 is now up for download. Changes include:
  • Cleaned up UI.
  • New quick search feature.
  • Item Text diff viewer.
  • Speed improvements for menu/context menu drawing.

Unfortunately, the item timing adjustments won't be included until the next version, in a couple of weeks.

Hopefully the revised UI (picture in 1st post) doesn't bother anyone.

The item text diff viewer:

A white background means no change was made, red is deleted text and blue is added text. Please ignore the odd spacing between the sections- that's the best I could come up with.

There's a noticeable bug that is easy to work around. If all of the menus and toolbar buttons become grayed out, just click somewhere in the treeview and they should appear normal again. I'll try to get a fix for this in the next version.

Last edited by awx; 1st June 2009 at 05:27. Reason: old screenshot removed
awx is offline   Reply With Quote
Old 26th April 2009, 22:27   #9  |  Link
awx
Registered User
 
Join Date: Oct 2005
Posts: 78
Version 0.5.0 of SubHub has been released. This is mostly a collection of small enhancements and bugfixes.

Some notable enhancements include:
  • You can now specify the ANSI code page to be used when opening a file.
  • There is an option to enable multithreaded file opening (1 thread per CPU core). This gives a significant speedup when opening large numbers of subtitles.

As always, the new version can be downloaded from SubHub's page on sourceforge:
https://sourceforge.net/project/show...roup_id=225616

Last edited by awx; 27th April 2009 at 00:42.
awx is offline   Reply With Quote
Old 1st June 2009, 04:28   #10  |  Link
awx
Registered User
 
Join Date: Oct 2005
Posts: 78
version 0.5.3 released

This is another small release.

A ClickOnce installer is now available directly from the SourceForge site.

Install the latest version of SubHub by visiting this page:
http://subhub.sourceforge.net/clickonce/publish.htm

ClickOnce requires Firefox or IE for the initial installation. The automatic updater will check for updates whenever you launch the app and ask if you want the latest version to be installed.
awx is offline   Reply With Quote
Old 1st June 2009, 23:01   #11  |  Link
krosswindz
Registered User
 
Join Date: Feb 2006
Location: kernel space
Posts: 245
Sweet, regex-es are perfect to fix most of my corrections with srt. It would be great to include a spell check utility. Probably interface it with GNU aspell may be.
krosswindz is offline   Reply With Quote
Old 26th September 2010, 17:42   #12  |  Link
awx
Registered User
 
Join Date: Oct 2005
Posts: 78
v0.6.0 released.

No changes except this version is compiled against .Net 4.0. This will give better on-screen font rendering and the new Windows 7 file dialogs.

The clickonce installer is now available as an .exe file.
setup.exe
awx is offline   Reply With Quote
Old 10th March 2012, 07:19   #13  |  Link
jofafrazze
Registered User
 
Join Date: Nov 2011
Posts: 2
Thanks for this great tool awx! Sure beats doing all the regex-es by hand in Notepad++ which is my current approach. I'll be back with comments when I've used it more.
jofafrazze is offline   Reply With Quote
Old 10th March 2012, 07:40   #14  |  Link
Chetwood
Registered User
 
Chetwood's Avatar
 
Join Date: Nov 2001
Posts: 1,104
Missed this tool before, gonna check it out. Thanks.
__________________

MultiMakeMKV: MakeMKV batch processing (Win)
MultiShrink
: DVD Shrink batch processing
Offizieller Übersetzer von DVD Shrink deutsch
Chetwood is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:33.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.