From e6ca4274ecac3c58c79d85b05bd612513ff5f659 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Mon, 1 Aug 2016 10:44:44 -0700 Subject: [PATCH] Undo part of the clever capitalization stuff. Doesn't work well for TV stations that are all caps except for hard of hearing notes. --- src/lib_ccx/ccx_encoders_helpers.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib_ccx/ccx_encoders_helpers.c b/src/lib_ccx/ccx_encoders_helpers.c index fe2c6393..9c1cd2d8 100644 --- a/src/lib_ccx/ccx_encoders_helpers.c +++ b/src/lib_ccx/ccx_encoders_helpers.c @@ -122,8 +122,11 @@ int is_all_caps(struct encoder_ctx *context, int line_num, struct eia608_screen int clever_capitalize(struct encoder_ctx *context, int line_num, struct eia608_screen *data) { - // First find out if we actually need to do it, don't mess with lines that come OK - int doit = is_all_caps(context, line_num, data); + // CFS: Tried doing to clever (see below) but some channels do all uppercase except for + // notes for deaf people (such as "(narrator)" which messes things up. + // First find out if we actually need to do it, don't mess with lines that come OK + //int doit = is_all_caps(context, line_num, data); + int doit = 1; for (int i = 0; i < CCX_DECODER_608_SCREEN_WIDTH; i++) {