Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding ARIB STD-B24 to Latin #8

Open
vitorfam opened this issue May 30, 2018 · 5 comments
Open

Decoding ARIB STD-B24 to Latin #8

vitorfam opened this issue May 30, 2018 · 5 comments

Comments

@vitorfam
Copy link

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.

@fcartegnie
Copy link
Contributor

afaik there's no G4 graphic set in B24

@vitorfam
Copy link
Author

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

@fcartegnie
Copy link
Contributor

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

@vitorfam
Copy link
Author

vitorfam commented Jun 1, 2018

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.

@andrelcm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants