Bug#733110: wordnet: Please migrate to Ruby 2.0/1.9

David Suárez david.sephirot at gmail.com
Tue Jan 28 20:05:34 UTC 2014


Hi again,

El Martes, 28 de enero de 2014 19:39:56 David Suárez escribió:
> The code it's trying to convert an hexadecimal string to an integer.
> 
> line 296      -> @w_cnt = [data[3]].pack('H2')[0]
> changes to -> @w_cnt = data[3].hex
> 
> Please, check if the generated files are the same :)

Complete patch attached (sorry I didn't have access to any machine until now).

I diff the output of the two versions and they are some minor changes in the 
word ordering (first upper then lowercase), eg:

> +Zealot
> +	[m1][p]noun[/p][/m]
> +	[m2] [trn]a member of an ancient Jewish sect in Judea in the first century 
> who fought to the death against the Romans and who killed or persecuted Jews 
> who collaborated with the Romans[/trn][/m]
> +	[m3][com][c darkgray]•[/c] [p]Hypernyms[/p]: <<Jew>>, <<Hebrew>>, 
<<Israelite>>[/com][/m]
>  zealot
>  	[m1][p]noun[/p][/m]
>  	[m2] [trn]a fervent and even militant proponent of something[/trn][/m]
> @@ -1276876,10 +1276880,6 @@
>  	[m3][com][c dodgerblue]•[/c] [p]Derivationally related forms[/p]: 
<<partisanship>> [c darkgray](for: <<partisan>>)[/c][/com][/m]
>  	[m3][com][c darkgray]•[/c] [p]Hypernyms[/p]: <<advocate>>, <<advocator>>, 
<<proponent>>, <<exponent>>[/com][/m]
>  	[m3][com][c darkgray]•[/c] [p]Hyponyms[/p]: <<bigot>>, <<dogmatist>>, 
<<doctrinaire>>[/com][/m]
> -Zealot
> -	[m1][p]noun[/p][/m]
> -	[m2] [trn]a member of an ancient Jewish sect in Judea in the first century 
who fought to the death against the Romans and who killed or persecuted Jews 
who collaborated with the Romans[/trn][/m]
> -	[m3][com][c darkgray]•[/c] [p]Hypernyms[/p]: <<Jew>>, <<Hebrew>>, 
<<Israelite>>[/com][/m]
>  zealotry

This is caused by the sort at line 697:

> $CARDS.values.sort.each { |card|

I dunno this can be simply ignored.

David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-hex-translation.patch
Type: text/x-patch
Size: 1260 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20140128/b3d64231/attachment.bin>


More information about the debian-science-maintainers mailing list