Wybierz język
RSS
Donation

WMZ: Z087754155981 (USD)
WME: E110509803261 (EUR)

WebMoney

Balabolka Narzędzie konsolowe do tłumaczenia online

The command line application allows to use online translation services. You can also translate subtitles into another language (keeping time marks inside text). The utility can be used for testing purposes.

Online services with translation technologies:

  • Alibaba
  • Baidu
  • Caiyun
  • Google
  • Iciba
  • iTranslate
  • LibreTranslate
  • Lingea
  • Lingvanex
  • Microsoft
  • Naver
  • Prompt
  • Sogou
  • Systran
  • Tilde
  • Yandex
  • Youdao
Aplikacja konsolowa do korzystania z usług tłumaczeniowych online

Pobrać oprogramowanie narzędziowe BALTRAN


Rozmiar pliku: MB
 
Wersja: Lista zmian
 
Licenzja: Freeware
 
System operacyjny:




Wiersz poleceń

The utility handles various command line parameters to be able to translate text and save it as a new file. The command line options use the syntax "baltran [options ...]", all parameters must be separated by a space. Options can appear in any order on the command line so long as they are paired with their related parameters. All parameters are not case sensitive. Use the "baltran -?" command line to get help on the command line syntax and parameters.


-n nazwa_usługi
Sets the name of the online translation service ("alibaba" or "a", "baidu" or "b", "caiyun" or "c", "google" or "g", "iciba" or "ic", "itranslate" or "it", "libre" or "lb", "lingea" or "lg", "lingvanex" or "ln", "microsoft" or "m", "naver" or "n", "prompt" or "p", "sogou" or "so", "systran" or "sy", "tilde" or "t", "yandex" or "ya", "youdao" or "yo"). The command line may contain few options -n.
-all
Selects all translation services.
-e nazwa_usługi
Excludes the translation service from usage.
-s język_nazwa
Sets the source language name. The name is a combination of an ISO 639 two-letter lowercase culture code associated with a language and an ISO 3166 two-letter uppercase subculture code associated with a country or region. For example: fr-FR. The short variant of the language name also can be used (for example, "fr"), but this alternative should be used with caution. The value "auto" is used to detect the language of input text (likewise, the utility will automatically detect the language if the option is not specified).
-d język_nazwa
Sets the target language name. For example: en-US. The short variant of the language name also can be used (for example, "en").
-m
Pokazać listę języków obsługiwanych przez usługę online.
-f nazwa_pliku
Otworzyć plik tekstowy. Wiersz poleceń może zawierać kilka parametrów -f.
-fl nazwa_pliku
Sets the name of the text file with the list of input files (one file name per line). The command line may contain few options -fl.
-w nazwa_pliku
Sets the name of the output text file. If more than one service was used for translation, the new text file will contain all translation variants.
-c
Użyć tekstu ze schowka.
-t tekst
Użyć tekstu z wiersza poleceń. Wiersz poleceń może zawierać kilka parametrów -t.
-i
Użyć tekstu z standarowego strumienia wejścia (STDIN).
-o
Zapisać przetłumaczony tekst do standarowego strumienia wyjścia (STDOUT). Jeśli parametr jest ustawiony, parametr -w jest ignorowany.
-a liczba
Alternates between original and translated text. You can use one of the modes by specifying its number:
  • 1: original paragraph + translated paragraph;
  • 2: translated paragraph + original paragraph;
  • 3: original sentence + translated sentence;
  • 4: translated sentence + original sentence.
-r
Adds to the translation the definition of the word from the reference book (if the service provides such option). Usually this option is implemented when translating separate words.
-u
Adds to the translation the information about the detected language (if the source language identifier is not specified on the command line).
--input-enc kodowanie lub -ie kodowanie
Sets the input text encoding ("ansi", "utf8" or "unicode"). If the option is not specified, the utility will detect the text encoding.
--output-enc kodowanie lub -oe kodowanie
Sets the encoding for the saved text file with translation ("ansi", "utf8" or "unicode"). The default encoding is "utf8".
-ln liczba
Selects a line from the text file by using of a line number. The line numbering starts at "1". The interval of numbers can be used for selecting of more than one line (for example, "26-34"). The command line may contain few options -ln.
-sub
Input text will be processed as subtitles. The utility supports the SRT format only. The option may be useful, when the options -i or -c are specified.
-host nazwa_hosta
Sets the hostname of the proxy server.
-port liczba
Sets the port number of the proxy server.
-dp
Wyświetl informacje o postępach w oknie konsoli.
-cfg nazwa_pliku
Sets the name of the configuration file with the command line options (a text file where each line contains one option). If the option is not specified, the file baltran.cfg in the same folder as the utility will be used.
-h
Prints the list of available command line options.


Przykłady komend

Utwórz plik tekstowy LANGUAGE.TXT zawierający listę wszystkich języków obsługiwanych przez usługę tłumaczenia Google:

baltran -n Google -m > language.txt



Przetłumacz tekst z pliku BOOK.TXT na język niemiecki i zapisz jako NEW.TXT:

baltran -f "d:\Text\book.txt" -w "d:\Text\new.txt" -n Yandex -s auto -d de-DE



Przetłumacz napisy z języka francuskiego na hiszpański:

baltran -f "d:\Subs\movie_fr.srt" -w "d:\Subs\movie_es.srt" -n Google -s fr-FR -d es-ES



Przetłumacz plik tekstowy z języka koreańskiego na japoński, korzystając ze wszystkich dostępnych usług (z wyjątkiem PROMPT):

baltran -f "d:\Text\book.txt" -w "d:\Text\new.txt" -all -e Prompt -s ko -d ja



Przetłumacz słowo z języka angielskiego na chiński i dodaj informacje referencyjne:

baltran -t "house" -w "d:\Text\word.txt" -n Microsoft -s en-US -d zh-CN -r




Plik konfiguracyjny

Parametry można zachować jak plik konfiguracyjny "baltran.cfg" w tym samym folderze co aplikacja konsolowa.

Przykład zawartości pliku:

-f d:\Text\book.txt
-w d:\Text\book_translated.txt
-n Google
-n Microsoft
-s de-DE
-d en-US

Program może kombinować parametry z pliku konfiguracyjnego i wiersza poleceń.




Licenzja

Możesz swobodnie korzystać z oprogramowania i rozpowszechniać je w celach niekomercyjnych. W przypadku wykorzystania lub rozpowszechniania w celach komercyjnych konieczne jest uzyskanie zgody właściciela praw autorskich.