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

Feature Request: Only output the identified language with -id and -b #209

Closed
Nottt opened this issue Jan 17, 2018 · 2 comments
Closed

Feature Request: Only output the identified language with -id and -b #209

Nottt opened this issue Jan 17, 2018 · 2 comments

Comments

@Nottt
Copy link

Nottt commented Jan 17, 2018

Right now I do this :

root@z:~# ./trans -b --id --input /home/x/Desktop/sample.vtt 
Malti
Name                  Maltese
Family                Afro-Asiatic
Writing system        Latin
Code                  mt
ISO 639-3             mlt
SIL                   http://www-01.sil.org/iso639-3/documentation.asp?id=mlt
Glottolog             http://glottolog.org/resource/languoid/id/malt1254
Wikipedia             http://en.wikipedia.org/wiki/Maltese_language

[...]

Português
Name                  Portuguese
Family                Indo-European
Writing system        Latin
Code                  pt
ISO 639-3             por
SIL                   http://www-01.sil.org/iso639-3/documentation.asp?id=por
Glottolog             http://glottolog.org/resource/languoid/id/port1283
Wikipedia             http://en.wikipedia.org/wiki/Portuguese_language

I suppose this is the guesses it does, until it reaches a final decision on the last output right? But that's way too much information, and not friendly with scripts.

Maybe I'm missing something? I looked at the --help section, tried all kind of combinations of commands to suppress this output, and it seems to be breaking grep too:

screenshot from 2018-01-17 22-15-39

It would be nice if we had a option to suppress even more output so we can get right to what we need in a non-interactive way, like ISO codes, name, etc.

Thanks ❤

@soimort
Copy link
Owner

soimort commented Jan 19, 2018

Good idea.

Tip: If your grep (or whatever text filter you use) doesn't handle ANSI color codes well, you may use trans -no-ansi to disable them.

@soimort soimort closed this as completed in 7a0efcd Feb 4, 2018
@Nottt
Copy link
Author

Nottt commented Feb 7, 2018

Hey I see you closed this, but I'm still getting the same output? Is it a different combination I have to use?

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

No branches or pull requests

2 participants