Your message dated Mon, 28 Aug 2017 23:58:29 +0000 with message-id <[email protected]> and subject line Bug#840878: fixed in ruby-gettext 3.2.4-1 has caused the Debian Bug report #840878, regarding ruby-gettext: rxgettext --wrap breaks words! to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 840878: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=840878 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: ruby-gettext Version: 3.2.2-1 Severity: normal Tags: patch Hello, I noticed that rxgettext, when used with the --wrap option, wraps long message lines by breaking words. I think this is awkward and should be avoided. Wrapping of long message lines should be performed by searching the nearest whitespace before the page width boundary and breaking there. I prepared a patch to implement the desired behavior. It is attached (file wrap-without-breaking-words.diff.gz). My patch only changes the regular expression used to perform the line scanning. The new regexp consists of three alternatives: * the first alternative deals with chunks which reach the end of a line and whose length is less than or equal to the page width: these chunks will not be broken any further * the second alternative deals with the (rare) chunks which consist of a single word whose length is greater than or equal to the page width: these chunks will be considered as unbreakable (even though this means that the output will include a line longer than the page width, as a rare exception to the general wrapping rule) * the third alternative deals with chunks ending with a whitespace and whose length is less than or equal to the page width: these chunks will be as large as possible (regexp repetition matching is greedy by default) and will not be broken any further The regexp behavior is shown in the attached little test script (file test.rb.gz). Please apply my patch and/or forward it upstream. Thanks for your time! N.B.: I am not sure my patch is creative enough to be copyrighted by me; at any rate, I hereby release both my patch and the little test script under the same licensing terms as the po_entry.rb file (that is to say: Ruby or GPL-2 or LGPL-3+). -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (800, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages ruby-gettext depends on: ii ruby 1:2.3.0+4 ii ruby-locale 2.1.2-1 ii ruby-text 1.3.0-1 ruby-gettext recommends no packages. ruby-gettext suggests no packages. -- no debconf information
test.rb.gz
Description: application/gzip
wrap-without-breaking-words.diff.gz
Description: application/gzip
--- End Message ---
--- Begin Message ---Source: ruby-gettext Source-Version: 3.2.4-1 We believe that the bug you reported is fixed in the latest version of ruby-gettext, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Hleb Valoshka <[email protected]> (supplier of updated ruby-gettext package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Fri, 18 Aug 2017 16:53:33 +0300 Source: ruby-gettext Binary: ruby-gettext Architecture: source Version: 3.2.4-1 Distribution: unstable Urgency: medium Maintainer: Debian Ruby Extras Maintainers <[email protected]> Changed-By: Hleb Valoshka <[email protected]> Description: ruby-gettext - gettext for Ruby Closes: 840878 Changes: ruby-gettext (3.2.4-1) unstable; urgency=medium . * New upstream version * Add patch to wrap sentences without breaking words (Closes: #840878) * Bump standards version to 4.0.0 (no changes) Checksums-Sha1: a48c8212d2ea7010b432a9fd00052a22692d3f1c 1754 ruby-gettext_3.2.4-1.dsc 57a6bb5bd93f271ae8ce9c00652a9b07da99357a 302797 ruby-gettext_3.2.4.orig.tar.gz b1e630aa1db9f269c2c8bdd1df7a09592a9ca339 11432 ruby-gettext_3.2.4-1.debian.tar.xz ebc2b5946ebd7b06e89025e231956ac685c27ee4 6259 ruby-gettext_3.2.4-1_source.buildinfo Checksums-Sha256: 076ddd06ae38f196927961be3f0ac14ced026be890cb00b87d121cdb293856dd 1754 ruby-gettext_3.2.4-1.dsc f3f014f9ebeed24fbf700ab6c2102370fd3dac2486cbe2442515c9c4290d0027 302797 ruby-gettext_3.2.4.orig.tar.gz e54588423f7fd2e74cae23087984efc6c97aa131af1bd56ddf292675ff2808c1 11432 ruby-gettext_3.2.4-1.debian.tar.xz b59b74ea6af26137769163f00076fd4965bd8979afaabcda3b006d98da6e4bd9 6259 ruby-gettext_3.2.4-1_source.buildinfo Files: 5d70af40e95e309764101790487d9c48 1754 ruby optional ruby-gettext_3.2.4-1.dsc 5e182b9dec524a78d20f645f7ffeb600 302797 ruby optional ruby-gettext_3.2.4.orig.tar.gz d10a08d21c462c2e310e8376a7abf87e 11432 ruby optional ruby-gettext_3.2.4-1.debian.tar.xz d0176aac3ea0a97d47d882dd70940902 6259 ruby optional ruby-gettext_3.2.4-1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEnM1rMZ2/jkCrGr0aia+CtznNIXoFAlmko2sACgkQia+CtznN IXo0nwgAjDDrH/MT6kXYhc/KpEiMoUU0InyioO8FrWFYd8TV0WV0hDLuuDx+aDro ihdTqZCnOwVHy6vKK9ARbtBTkGIFDQrX6RYvweHjWUlhcIb/kEYXSyjhOFpIs4aR mpFy34c3UpVrqCP0BLS1PWrt0wl+21Sa7ZpgPUgVfgaeQViWH3UV/UfHK6zEItp+ 9GAhUWFu1Nt37lL7iY/0p3yX1lzlmU9EFp4HgN7raopd35Jh12kLGYmgtqQQDB0L FhMtLsW9MxVC9NmBpxXMrUJgRRXdIpwJzyHxJTY/Ag/zerPUiNXFPDi/dpEiATmi RidFlx6YHc1/ZM5OwXwYL3WCI49SzQ== =Lgqc -----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
