zapping-vbi / zvbi

Vertical Blanking Interval (VBI) utilities
Other
5 stars 4 forks source link

Fix mixed normal/italic closed captions in 0.2.33 #18

Open ileanadumitrescu95 opened 1 year ago

ileanadumitrescu95 commented 1 year ago

SourceForge patch 14 written by faginbagin on 2012-12-08

Fixes the handling of Preamble Address Codes, Tab Offsets and Mid-Row Codes to match the behavior described in "Code of Federal Regulations (annual edition). Title 47: Telecommunication. Subpart B: Unintentional Radiators. Saturday, October 1, 2011, Section 15.119", which can be found here: http://www.gpo.gov/fdsys/pkg/CFR-2011-title47-vol1/pdf/CFR-2011-title47-vol1-sec15-119.pdf According to this document, Preamble Address Codes and Tab Offsets are non-destructive, and Mid-Row Codes are "spacing attributes which appear in the display just as if a standard space (20h) had been received" Without this patch, Preamble Address Codes and Tab Offsets overwrite the characters between the current position and destination, and Mid-row codes do not insert a displayable space and do not move the cursor forward one position. These problems are most noticeable with closed captions that mix normal and italic text on a single line.

This patch also includes fixes required to compile 0.2.33 on debian/ubuntu distributions. See Debian bug report #602880 here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602880

zvbi-italic.patch.txt