Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package translate-shell for openSUSE:Factory 
checked in at 2023-03-21 17:40:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/translate-shell (Old)
 and      /work/SRC/openSUSE:Factory/.translate-shell.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "translate-shell"

Tue Mar 21 17:40:37 2023 rev:17 rq:1072981 version:0.9.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/translate-shell/translate-shell.changes  
2022-10-12 18:25:36.629802228 +0200
+++ 
/work/SRC/openSUSE:Factory/.translate-shell.new.31432/translate-shell.changes   
    2023-03-21 17:40:38.361575236 +0100
@@ -1,0 +2,8 @@
+Sun Mar 12 20:08:25 UTC 2023 - Alexei Sorokin <[email protected]>
+
+- Update to version 0.9.7.1:
+  * Bing Translator: fixed engine support.
+  * Apertium Translator: (partly) fixed engine support.
+  * REPL: supported setting sl and tl by :set.
+
+-------------------------------------------------------------------

Old:
----
  translate-shell-0.9.7.tar.gz

New:
----
  translate-shell-0.9.7.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ translate-shell.spec ++++++
--- /var/tmp/diff_new_pack.KasPQ0/_old  2023-03-21 17:40:38.805577359 +0100
+++ /var/tmp/diff_new_pack.KasPQ0/_new  2023-03-21 17:40:38.809577379 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package translate-shell
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           translate-shell
-Version:        0.9.7
+Version:        0.9.7.1
 Release:        0
 Summary:        Command line translator using various online services as 
backends
 License:        Unlicense
@@ -47,12 +47,12 @@
 %setup -q
 
 %build
-make %{?_smp_mflags} V=1
+%make_build
 
 %install
 %make_install PREFIX=%{_prefix}
 chmod -x %{buildroot}%{_mandir}/man1/trans.1
-sed -i 's,/usr/bin/env bash,/bin/bash,' %{buildroot}%{_bindir}/trans
+sed -i 's|%{_bindir}/env bash|/bin/bash|' %{buildroot}%{_bindir}/trans
 
 %files
 %license LICENSE

++++++ translate-shell-0.9.7.tar.gz -> translate-shell-0.9.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/CONTRIBUTING.md 
new/translate-shell-0.9.7.1/CONTRIBUTING.md
--- old/translate-shell-0.9.7/CONTRIBUTING.md   2022-08-19 17:17:54.000000000 
+0200
+++ new/translate-shell-0.9.7.1/CONTRIBUTING.md 2023-02-08 15:40:36.000000000 
+0100
@@ -12,7 +12,7 @@
 
 ### Waiving Copyrights
 
-This is a public domain software, which means the author(s) do not retain any 
copyright interest in this repository. You ("the contributor") will be asked to 
**[sign the Contributor License 
Agreement](https://www.clahub.com/agreements/soimort/translate-shell)** before 
your contribution can be considered.
+This is a public domain software, which means the author(s) do not retain any 
copyright interest in this repository. By submitting a pull request, you (as a 
contributor) must agree that your code is also put into the public domain, as 
this software is.
 
 ### Following the Coding Style
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/README.md 
new/translate-shell-0.9.7.1/README.md
--- old/translate-shell-0.9.7/README.md 2022-08-19 17:17:54.000000000 +0200
+++ new/translate-shell-0.9.7.1/README.md       2023-02-08 15:40:36.000000000 
+0100
@@ -66,6 +66,7 @@
       * gawk comes with all GNU/Linux distributions.
       * On FreeBSD, gawk is available in the ports.
       * On macOS, gawk is available in MacPorts and Homebrew.
+    * Please note that gawk 5.2.0 has a [known 
bug](https://github.com/soimort/translate-shell/issues/463) -- update to gawk 
5.2.1 instead.
 * **[GNU Bash](http://www.gnu.org/software/bash/)** or 
**[Zsh](http://www.zsh.org/)**
     * You may use Translate Shell from any Unix shell of your choice (bash, 
zsh, ksh, tcsh, fish, etc.); however, the wrapper script requires either 
**bash** or **zsh** installed.
 
@@ -130,7 +131,7 @@
 
 Add the following line to your `.zshrc`:
 
-    antigen bundle soimort/translate-shell
+    antigen bundle soimort/translate-shell@develop
 
 ### Option #3. From Git
 
@@ -317,7 +318,7 @@
 
 ### Language Details
 
-Use the `-list` (`-L`) option to view details of one or more languages:
+Use the `-linguist` (`-L`) option to view details of one or more languages:
 
     $ trans -L fr
     $ trans -L de+en
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/README.template.md 
new/translate-shell-0.9.7.1/README.template.md
--- old/translate-shell-0.9.7/README.template.md        2022-08-19 
17:17:54.000000000 +0200
+++ new/translate-shell-0.9.7.1/README.template.md      2023-02-08 
15:40:36.000000000 +0100
@@ -66,6 +66,7 @@
       * gawk comes with all GNU/Linux distributions.
       * On FreeBSD, gawk is available in the ports.
       * On macOS, gawk is available in MacPorts and Homebrew.
+    * Please note that gawk 5.2.0 has a [known 
bug](https://github.com/soimort/translate-shell/issues/463) -- update to gawk 
5.2.1 instead.
 * **[GNU Bash](http://www.gnu.org/software/bash/)** or 
**[Zsh](http://www.zsh.org/)**
     * You may use Translate Shell from any Unix shell of your choice (bash, 
zsh, ksh, tcsh, fish, etc.); however, the wrapper script requires either 
**bash** or **zsh** installed.
 
@@ -130,7 +131,7 @@
 
 Add the following line to your `.zshrc`:
 
-    antigen bundle soimort/translate-shell
+    antigen bundle soimort/translate-shell@develop
 
 ### Option #3. From Git
 
@@ -317,7 +318,7 @@
 
 ### Language Details
 
-Use the `-list` (`-L`) option to view details of one or more languages:
+Use the `-linguist` (`-L`) option to view details of one or more languages:
 
     $ trans -L fr
     $ trans -L de+en
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/build.awk 
new/translate-shell-0.9.7.1/build.awk
--- old/translate-shell-0.9.7/build.awk 2022-08-19 17:17:54.000000000 +0200
+++ new/translate-shell-0.9.7.1/build.awk       2023-02-08 15:40:36.000000000 
+0100
@@ -117,12 +117,12 @@
 
         split(getISO(code), group, "-")
         iso = group[1]
-        split(getName(code), group, " ")
-        language = length(group) == 1 ? group[1] "_language" :
-            group[2] ~ /^\(.*\)$/ ? group[1] "_language" : join(group, "_")
+        #split(getName(code), group, " ")
+        #language = length(group) == 1 ? group[1] "_language" :
+        #    group[2] ~ /^\(.*\)$/ ? group[1] "_language" : join(group, "_")
         print sprintf("| **`%s`** <br/> [`%s`](%s) | **[%s](%s)** <br/> **%s** 
| %s | `%s` | %s | %s |",
                       getCode(code), iso, 
"http://www.ethnologue.com/language/"; iso,
-                      getName(code), "http://en.wikipedia.org/wiki/"; language, 
getEndonym(code),
+                      getName(code), "http://en.wikipedia.org/wiki/ISO_639:"; 
iso, getEndonym(code),
                       getFamily(code), getScript(code),
                       isRTL(code) ? "✓" : NULLSTR,
                       hasDictionary(code) ? "✓" : NULLSTR) > WikiLanguages
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/include/LanguageData.awk 
new/translate-shell-0.9.7.1/include/LanguageData.awk
--- old/translate-shell-0.9.7/include/LanguageData.awk  2022-08-19 
17:17:54.000000000 +0200
+++ new/translate-shell-0.9.7.1/include/LanguageData.awk        2023-02-08 
15:40:36.000000000 +0100
@@ -2452,7 +2452,7 @@
     #Locale["ts"]["synonyms"]
     #Locale["ts"]["examples"]
     #Locale["ts"]["see-also"]
-    Locale["ts"]["family"]             = "Atlantic–Congo"
+    Locale["ts"]["family"]             = "Atlantic-Congo"
     Locale["ts"]["branch"]             = "Bantu"
     Locale["ts"]["iso"]                = "tso"
     Locale["ts"]["glotto"]             = "tson1249"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/include/REPL.awk 
new/translate-shell-0.9.7.1/include/REPL.awk
--- old/translate-shell-0.9.7/include/REPL.awk  2022-08-19 17:17:54.000000000 
+0200
+++ new/translate-shell-0.9.7.1/include/REPL.awk        2023-02-08 
15:40:36.000000000 +0100
@@ -68,7 +68,7 @@
     # %s : source languages, separated by "+"
     # 's' is the format-control character for string
 
-    # %S : source languages (English names), seperated by "+"
+    # %S : source languages (English names), separated by "+"
     if (p ~ /%S/) {
         temp = getName(Option["sls"][1])
         for (i = 2; i <= length(Option["sls"]); i++)
@@ -143,7 +143,17 @@
     } else if (command ~ /^:set$/) {
         name = words[2]
         value = words[3]
-        Option[name] = value
+        # :set sl and :set tl should work as intended
+        # TODO: support multiple language codes
+        if (name == "sl") {
+            delete Option["sls"]
+            Option["sls"][1] = value
+        } else if (name == "tl") {
+            delete Option["tl"]
+            Option["tl"][1] = value
+        } else {
+            Option[name] = value
+        }
     } else if (command ~ /^:show$/) {
         name = words[2]
         print prettify("welcome-submessage", toString(Option[name], 1, 0, 1))
@@ -155,6 +165,8 @@
         value = words[2]
         Option["engine"] = value
         initHttpService()
+    } else if (command ~ /^:reset$/) {
+        # TODO: reset source and target languages, etc.
     } else {
         match(command, 
/^[{(\[]?((@?[[:alpha:]][[:alpha:]][[:alpha:]]?(-[[:alpha:]][[:alpha:]][[:alpha:]]?[[:alpha:]]?)?\+)*(@?[[:alpha:]][[:alpha:]][[:alpha:]]?(-[[:alpha:]][[:alpha:]][[:alpha:]]?[[:alpha:]]?)?)?)?(:|=)((@?[[:alpha:]][[:alpha:]][[:alpha:]]?(-[[:alpha:]][[:alpha:]][[:alpha:]]?[[:alpha:]]?)?\+)*(@?[[:alpha:]][[:alpha:]][[:alpha:]]?(-[[:alpha:]][[:alpha:]][[:alpha:]]?[[:alpha:]]?)?)?)[})\]]?$/,
 group)
         if (RSTART) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/include/Translate.awk 
new/translate-shell-0.9.7.1/include/Translate.awk
--- old/translate-shell-0.9.7/include/Translate.awk     2022-08-19 
17:17:54.000000000 +0200
+++ new/translate-shell-0.9.7.1/include/Translate.awk   2023-02-08 
15:40:36.000000000 +0100
@@ -119,10 +119,12 @@
     if (HttpAuthUser && HttpAuthPass)
         # TODO: digest auth
         header = header "Proxy-Authorization: Basic " HttpAuthCredentials 
"\r\n"
+    l(header) # log request header
 
     content = NULLSTR; isBody = 0
     while (1) {
-        print header |& HttpService
+        # separate header and body correctly with CRLF, per RFC 2616
+        print (header "\r\n") |& HttpService
         while ((HttpService |& getline) > 0) {
             if (isBody)
                 content = content ? content "\n" $0 : $0
@@ -189,6 +191,7 @@
     if (HttpAuthUser && HttpAuthPass)
         # TODO: digest auth
         header = header "Proxy-Authorization: Basic " HttpAuthCredentials 
"\r\n"
+    l(header) # log request header
 
     content = NULLSTR; isBody = 0
     while (1) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/include/Translators/Auto.awk 
new/translate-shell-0.9.7.1/include/Translators/Auto.awk
--- old/translate-shell-0.9.7/include/Translators/Auto.awk      2022-08-19 
17:17:54.000000000 +0200
+++ new/translate-shell-0.9.7.1/include/Translators/Auto.awk    2023-02-08 
15:40:36.000000000 +0100
@@ -8,12 +8,18 @@
 
 function autoTTSUrl(text, tl) {
     # TODO: support Bing
+    Option["engine"] = "google"
+    initHttpService()
     return googleTTSUrl(text, tl)
+    # TODO: reset engine to auto
 }
 
 function autoWebTranslateUrl(uri, sl, tl, hl) {
     # TODO: support Bing
+    Option["engine"] = "google"
+    initHttpService()
     return googleWebTranslateUrl(uri, sl, tl, hl)
+    # TODO: reset engine to auto
 }
 
 function autoTranslate(text, sl, tl, hl,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/translate-shell-0.9.7/include/Translators/BingTranslator.awk 
new/translate-shell-0.9.7.1/include/Translators/BingTranslator.awk
--- old/translate-shell-0.9.7/include/Translators/BingTranslator.awk    
2022-08-19 17:17:54.000000000 +0200
+++ new/translate-shell-0.9.7.1/include/Translators/BingTranslator.awk  
2023-02-08 15:40:36.000000000 +0100
@@ -66,7 +66,7 @@
         exit 1
     }
 
-    match(content, /params_RichTranslateHelper = ([^;]+);/, group)
+    match(content, /params_AbusePreventionHelper = ([^;]+);/, group)
     if (group[1]) {
         tokenize(tokens, group[1])
         parseJson(ast, tokens)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/man/trans.1 
new/translate-shell-0.9.7.1/man/trans.1
--- old/translate-shell-0.9.7/man/trans.1       2022-08-19 17:17:54.000000000 
+0200
+++ new/translate-shell-0.9.7.1/man/trans.1     2023-02-08 15:40:36.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" Automatically generated by Pandoc 2.5
 .\"
-.TH "TRANS" "1" "2022\-08\-19" "0.9.7" ""
+.TH "TRANS" "1" "2023\-02\-08" "0.9.7.1" ""
 .hy
 .SH NAME
 .PP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/man/trans.1.md 
new/translate-shell-0.9.7.1/man/trans.1.md
--- old/translate-shell-0.9.7/man/trans.1.md    2022-08-19 17:17:54.000000000 
+0200
+++ new/translate-shell-0.9.7.1/man/trans.1.md  2023-02-08 15:40:36.000000000 
+0100
@@ -1,6 +1,6 @@
-% TRANS(1) 0.9.7
+% TRANS(1) 0.9.7.1
 % Mort Yao <[email protected]>
-% 2022-08-19
+% 2023-02-08
 
 # NAME
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/translate-shell-0.9.7/metainfo.awk 
new/translate-shell-0.9.7.1/metainfo.awk
--- old/translate-shell-0.9.7/metainfo.awk      2022-08-19 17:17:54.000000000 
+0200
+++ new/translate-shell-0.9.7.1/metainfo.awk    2023-02-08 15:40:36.000000000 
+0100
@@ -1,8 +1,8 @@
 BEGIN {
     Name        = "Translate Shell"
     Description = "Command-line translator using Google Translate, Bing 
Translator, Yandex.Translate, etc."
-    Version     = "0.9.7"
-    ReleaseDate = "2022-08-19"
+    Version     = "0.9.7.1"
+    ReleaseDate = "2023-02-08"
     Command     = "trans"
     EntryPoint  = "translate.awk"
     EntryScript = "translate"

Reply via email to