aribb24 icon indicating copy to clipboard operation
aribb24 copied to clipboard

Decoding ARIB STD-B24 to Latin

Open vitorfam opened this issue 6 years ago • 5 comments

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.

vitorfam avatar May 30 '18 20:05 vitorfam

afaik there's no G4 graphic set in B24

fcartegnie avatar May 31 '18 12:05 fcartegnie

Those graphics are part of the B24 specification or only a definition in the code?

vitorfam avatar May 31 '18 13:05 vitorfam

What's the part of the/your spec mentioning Latin N ?

fcartegnie avatar May 31 '18 13:05 fcartegnie

The Latin tables are used to decode arib to portuguese subtitles. I want to add Brazilian portuguese support to this code. The Brazilian Digital TV system is based on the Japanese ones.

vitorfam avatar Jun 01 '18 18:06 vitorfam

I just made a pull request with an implementation proposal in #16.

andrelcm avatar Oct 18 '20 06:10 andrelcm