From 2ccba141dedac1d1b1fc19fffd59e1789c17cd6f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 1 Nov 2015 18:20:48 +0100 Subject: Update charset.h This reflects the latest version of the specification, and restores the underscore character. --- src/charset.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/charset.h b/src/charset.h index 7683985..82d81cf 100644 --- a/src/charset.h +++ b/src/charset.h @@ -15,7 +15,7 @@ along with this program. If not, see . charset.h - Define the EBU charsets for DLS encoding + Define the EBU charset according to ETSI TS 101 756v1.8.1 for DLS encoding Authors: Matthias P. Braendli @@ -44,12 +44,12 @@ #define CHARSET_TABLE_OFFSET 1 // NUL at index 0 cannot be represented #define CHARSET_TABLE_ENTRIES (256 - CHARSET_TABLE_OFFSET) const char* utf8_encoded_EBU_Latin[CHARSET_TABLE_ENTRIES] = { - "Ę", "Į", "Ų", "Ă", "Ė", "Ď", "Ș", "Ț", "Ċ", "\n","\v","Ġ", "\r","Ż", "Ń", -"ą", "ę", "į", "ų", "ă", "ė", "ď", "ș", "ț", "ċ", "Ň", "Ě", "ġ", "Ĺ", "ż", "\u0082", -" ", "!", "\"","#", "ĺ", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", + "Ę", "Į", "Ų", "Ă", "Ė", "Ď", "Ș", "Ț", "Ċ", "\n","\v","Ġ", "Ĺ", "Ż", "Ń", +"ą", "ę", "į", "ų", "ă", "ė", "ď", "ș", "ț", "ċ", "Ň", "Ě", "ġ", "ĺ", "ż", "\u0082", +" ", "!", "\"","#", "ł", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?", "@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", -"P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "Ů", "]", "Ł", "ł", +"P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "Ů", "]", "Ł", "_", "Ą", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "«", "ů", "»", "Ľ", "Ħ", "á", "à", "é", "è", "í", "ì", "ó", "ò", "ú", "ù", "Ñ", "Ç", "Ş", "ß", "¡", "Ÿ", @@ -77,7 +77,7 @@ class CharsetConverter } } - /* Convert a UTF-8 encoded text line into a EBU Latin 1 encoded byte stream + /* Convert a UTF-8 encoded text line into an EBU Latin encoded byte stream */ std::string convert(std::string line_utf8) { using namespace std; @@ -113,4 +113,3 @@ class CharsetConverter }; #endif - -- cgit v1.2.3