ruediger / VobSub2SRT

Converts VobSub subtitles (.idx/.srt format) into .srt subtitles.
GNU General Public License v3.0
294 stars 66 forks source link

Blacklist doesn't seem to work #7

Closed nightowl77 closed 10 years ago

nightowl77 commented 12 years ago

Hi Guys

I'm not 100% sure if I'm passing the paramater in the right format, but it would seem that the blacklist doesn't work quite right.

I tried

vobsub2srt --blacklist \| filename

and

vobsub2srt --blacklist "|" filename

With both options words like |'|| or wou|d still shows in the SRT file

As a quick fix, can I change line 137 of vobsub2srt.c++ from

  tess_base_api.SetVariable("tessedit_char_blacklist", blacklist.c_str());

to

  tess_base_api.SetVariable("tessedit_char_blacklist", "|");

and remove the if statement around it? (Sorry, I have zero C++ experience).

Thank you

Werner

ruediger commented 12 years ago

It seems that tesseract (2.04) ignores the blacklist. It could be related to this problem http://markmail.org/message/enge55rmng2zehf5

Which version of tesseract are you using?

ruediger commented 10 years ago

No reply for two years: closed.