aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-01 18:20:48 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-01 18:20:48 +0100
commit2ccba141dedac1d1b1fc19fffd59e1789c17cd6f (patch)
treeab071ec6afdb8dcb1bc66b04411a14203cf405db
parent04fc827d366d2566b31819e804c0be00019e8a36 (diff)
downloadODR-AudioEnc-2ccba141dedac1d1b1fc19fffd59e1789c17cd6f.tar.gz
ODR-AudioEnc-2ccba141dedac1d1b1fc19fffd59e1789c17cd6f.tar.bz2
ODR-AudioEnc-2ccba141dedac1d1b1fc19fffd59e1789c17cd6f.zip
Update charset.h
This reflects the latest version of the specification, and restores the underscore character.
-rw-r--r--src/charset.h13
1 files changed, 6 insertions, 7 deletions
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 <http://www.gnu.org/licenses/>.
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 <matthias@mpb.li>
@@ -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
-