I'm trying to implement Latin character decodification. Would it be possible if I add the Latin tables to convtable.h file static const unsigned int decoder_latin_table[] = { ... } , create a new decoder_handler at decoder.c?
void arib_initialize_decoder(arib_decoder_t *decoder)
{
arib_finalize_decoder(decoder);
decoder->buf = NULL;
decoder->count = 0;
decoder->ubuf = NULL;
decoder->ucount = 0;
decoder->handle_gl = &decoder->handle_g0;
decoder->handle_gl_single = NULL;
decoder->handle_gr = &decoder->handle_g2;
decoder->handle_g0 = decoder_handle_kanji;
decoder->handle_g1 = decoder_handle_alnum;
decoder->handle_g2 = decoder_handle_hiragana;
decoder->handle_g3 = decoder_handle_katakana;
//New code
decoder->handle_g4 = decoder_handle_latin;
decoder->kanji_ku = -1;
What I want is to open closed caption subtitles in pt-BR.
I'm trying to implement Latin character decodification. Would it be possible if I add the Latin tables to convtable.h file
static const unsigned int decoder_latin_table[] = { ... }, create a new decoder_handler at decoder.c?What I want is to open closed caption subtitles in pt-BR.