mat issueshttps://0xacab.org/mat/mat/-/issues2018-02-14T23:07:06Zhttps://0xacab.org/mat/mat/-/issues/11067Strip meta-data of images etc. in PDFs2018-02-14T23:07:06ZGhost UserStrip meta-data of images etc. in PDFsmeta-data of images in PDFs should be stripped.
Enclosed please find an example you can use for testing.
*(from redmine: created on 2016-02-06)*meta-data of images in PDFs should be stripped.
Enclosed please find an example you can use for testing.
*(from redmine: created on 2016-02-06)*0.7jvoisinjvoisinhttps://0xacab.org/mat/mat/-/issues/11064Undocumented Requirement "intltool-update"2018-02-14T23:07:06ZGhost UserUndocumented Requirement "intltool-update"Installing MAT fails due to undocumented requirement "intltool-update" missing:
$ pip install mat-0.6/
Processing ./mat-0.6
Installing collected packages: MAT
Running setup.py install for MAT ... error
Complete output from c...Installing MAT fails due to undocumented requirement "intltool-update" missing:
$ pip install mat-0.6/
Processing ./mat-0.6
Installing collected packages: MAT
Running setup.py install for MAT ... error
Complete output from command /tmp/foo/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-3x6p1e-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YLfcGG-record/install-record.txt --single-version-externally-managed --compile --install-headers /tmp/foo/include/site/python2.7/MAT:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/libmat
copying libmat/__init__.py -> build/lib/libmat
copying libmat/archive.py -> build/lib/libmat
copying libmat/exceptions.py -> build/lib/libmat
copying libmat/exiftool.py -> build/lib/libmat
copying libmat/mat.py -> build/lib/libmat
copying libmat/misc.py -> build/lib/libmat
copying libmat/mutagenstripper.py -> build/lib/libmat
copying libmat/office.py -> build/lib/libmat
copying libmat/parser.py -> build/lib/libmat
copying libmat/strippers.py -> build/lib/libmat
creating build/lib/libmat/bencode
copying libmat/bencode/__init__.py -> build/lib/libmat/bencode
copying libmat/bencode/bencode.py -> build/lib/libmat/bencode
running build_scripts
creating build/scripts-2.7
copying and adjusting mat -> build/scripts-2.7
copying and adjusting mat-gui -> build/scripts-2.7
changing mode of build/scripts-2.7/mat from 644 to 755
changing mode of build/scripts-2.7/mat-gui from 644 to 755
running build_i18n
intltool-update -p -g MAT
unable to execute 'intltool-update': No such file or directory
error: command 'intltool-update' failed with exit status 1
----------------------------------------
Command "/tmp/foo/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-3x6p1e-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YLfcGG-record/install-record.txt --single-version-externally-managed --compile --install-headers /tmp/foo/include/site/python2.7/MAT" failed with error code 1 in /tmp/pip-3x6p1e-build
intltool in not to be found at PyPi - the one tool I found is not even a Python utility.
*(from redmine: created on 2016-02-06)*MAT_0.6.2https://0xacab.org/mat/mat/-/issues/11063Undocumented Requirement "DistUtilsExtra"2018-02-14T23:07:06ZGhost UserUndocumented Requirement "DistUtilsExtra"Installing MAT via pip fails due to undocumented requirement "DistUtilsExtra" missing:
$ pip install mat-0.6/
Processing ./mat-0.6
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
...Installing MAT via pip fails due to undocumented requirement "DistUtilsExtra" missing:
$ pip install mat-0.6/
Processing ./mat-0.6
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-fGZr4g-build/setup.py", line 6, in <module>
from DistUtilsExtra.command import *
ImportError: No module named DistUtilsExtra.command
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-fGZr4g-build
The requirement DistUtilsExtra is not documented. Additionally PyPI does not contain such a package.
*(from redmine: created on 2016-02-06)*MAT_0.6.2https://0xacab.org/mat/mat/-/issues/10979GUI whitelist functionality for unsupported archive contents breaks when arch...2018-02-14T23:07:06ZGhost UserGUI whitelist functionality for unsupported archive contents breaks when archives contain directoriesWhen cleaning archives with unsupported file types inside and the archive file names contain directories, I noticed whatever choice I make in the popup asking which files to keep does not influence the result. Instead the only factor see...When cleaning archives with unsupported file types inside and the archive file names contain directories, I noticed whatever choice I make in the popup asking which files to keep does not influence the result. Instead the only factor seems to be the 'Add unsupported file to archives' option in the preferences dialog. If that is checked then I always get all unsupported files in the archive, if it is unchecked I get none of them.
The reason is that the user-picked whitelist only contains the basenames of the files, which are compared against the full pathnames in the archive. These are not guaranteed to match.
Steps to reproduce (in mat's source directory):
<pre>
tar -czvf foo.tar.gz test/*py
</pre>
Check 'Add unsupported file to archive' in preferences (or not)
Load the file into MAT, click 'Clean'. Pick some of the files displayed in the dialog, click Clean again.
Inspect the resulting cleaned archive, which is either empty or contains all of the .py files, depending on the preference setting.
Tested with MAT 0.6.1 on Debian testing.
*(from redmine: created on 2016-01-20)*https://0xacab.org/mat/mat/-/issues/10973Cleaned archives lose compression2018-02-14T23:07:06ZGhost UserCleaned archives lose compressionWhen trying to clean a gzipped or bzipped tarball, the compression is lost in the cleaned version but the file name is not updated to reflect that:
<pre>
$ tar czvf 1.tar.gz test/dirty\ é.p*
test/dirty é.pdf
test/dirty é.png
$ fil...When trying to clean a gzipped or bzipped tarball, the compression is lost in the cleaned version but the file name is not updated to reflect that:
<pre>
$ tar czvf 1.tar.gz test/dirty\ é.p*
test/dirty é.pdf
test/dirty é.png
$ file 1.tar.gz
1.tar.gz: gzip compressed data, last modified: Mon Jan 18 22:12:30 2016, from Unix
$ mat 1.tar.gz
[*] Cleaning 1.tar.gz
[+] 1.tar.gz cleaned!
$ file 1.tar.gz
1.tar.gz: POSIX tar archive (GNU)
$ tar xzvf 1.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
</pre>
*(from redmine: created on 2016-01-19)*https://0xacab.org/mat/mat/-/issues/8199"Clean" is impossible to translate correctly in some languages2017-06-25T22:31:37ZGhost User"Clean" is impossible to translate correctly in some languagesThis word is used both as an adjective (a file was cleaned or is clean already) and as a verb to express the desired action. In some languages, such as French, those two cases don't translate the same. Is there any way to tell gettext th...This word is used both as an adjective (a file was cleaned or is clean already) and as a verb to express the desired action. In some languages, such as French, those two cases don't translate the same. Is there any way to tell gettext that those occurrences are not the same word wrt. translation?
*(from redmine: created on 2014-11-03)*https://0xacab.org/mat/mat/-/issues/6684Test suite fails unless run in a UTF-8 locale2017-06-25T22:31:37ZintrigeriTest suite fails unless run in a UTF-8 localePerhaps this pre-requisite could be checked, and the test suite could abort with a nice error message (with exit code !=0, still)?
*(from redmine: created on 2014-02-16)*Perhaps this pre-requisite could be checked, and the test suite could abort with a nice error message (with exit code !=0, still)?
*(from redmine: created on 2014-02-16)*jvoisinjvoisinhttps://0xacab.org/mat/mat/-/issues/6626Fails to clean password-protected PDF file2017-06-25T22:31:37ZGhost UserFails to clean password-protected PDF fileWhen cleaning a pdf file which is "protected" by a password, the following traceback is issued :
<pre>
Command Line Error: Incorrect password
Traceback (most recent call last):
File "./mat", line 150, in <module>
main()
...When cleaning a pdf file which is "protected" by a password, the following traceback is issued :
<pre>
Command Line Error: Incorrect password
Traceback (most recent call last):
File "./mat", line 150, in <module>
main()
File "./mat", line 143, in main
add2archive=args.add2archive, low_pdf_quality=args.low_pdf_quality)
File "/home/fr33tux/mat/MAT/mat.py", line 186, in create_class_file
return stripper_class(filename, parser, mime, backup, is_writable, **kwargs)
File "/home/fr33tux/mat/MAT/office.py", line 122, in __init__
self.document = Poppler.Document.new_from_file(uri, self.password)
File "/usr/lib/python2.7/dist-packages/gi/types.py", line 76, in constructor
return info.invoke(cls, *args, **kwargs)
</pre>
*(from redmine: created on 2014-01-28)*https://0xacab.org/mat/mat/-/issues/6606The test suite leaves files behind2017-06-25T22:31:37ZjvoisinThe test suite leaves files behindAfter being ran, the testsuite doesn't clean every files it used, filling the /tmp directory.
*(from redmine: created on 2014-01-18)*After being ran, the testsuite doesn't clean every files it used, filling the /tmp directory.
*(from redmine: created on 2014-01-18)*https://0xacab.org/mat/mat/-/issues/6510Make .desktop file translatable2017-06-25T22:31:37ZintrigeriMake .desktop file translatableThe .desktop file should be translatable.
Likely using DistUtilsExtra.auto.
E.g. see https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/indicator-weather/trusty/files.
*(from redmine: created on 2013-12-17)*The .desktop file should be translatable.
Likely using DistUtilsExtra.auto.
E.g. see https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/indicator-weather/trusty/files.
*(from redmine: created on 2013-12-17)*jvoisinjvoisinhttps://0xacab.org/mat/mat/-/issues/11521poppler optional dependency is required even for mat --help2017-06-25T22:31:37Zintrigeripoppler optional dependency is required even for mat --helpHi,
on Debian sid, mat 0.6.1-2, poppler not installed:
```
$ mat --help
Traceback (most recent call last):
File "/usr/bin/mat", line 10, in <module>
from libmat import mat
File "/usr/lib/python2.7/dist-packages/libmat/...Hi,
on Debian sid, mat 0.6.1-2, poppler not installed:
```
$ mat --help
Traceback (most recent call last):
File "/usr/bin/mat", line 10, in <module>
from libmat import mat
File "/usr/lib/python2.7/dist-packages/libmat/mat.py", line 22, in <module>
import strippers # this is loaded here because we need LOGGING_LEVEL
File "/usr/lib/python2.7/dist-packages/libmat/strippers.py", line 29, in <module>
gi.require_version('Poppler', '0.18')
File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 102, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Poppler not available
```
gir-poppler is documented as an optional dependency. I think it should either be made optional for real, or be promoted to a hard dependency.
MAT_0.6.2jvoisinjvoisinhttps://0xacab.org/mat/mat/-/issues/11523Spelling mistakes in german translation2017-06-25T22:31:37ZKarl MayerSpelling mistakes in german translationHello,
first, thanks a lot for this program!!!
Second, I found some spelling mistakes in the german translation (At this point I would excuse for my English and additionally assert that my German is much better ;-) ):
1) In the ...Hello,
first, thanks a lot for this program!!!
Second, I found some spelling mistakes in the german translation (At this point I would excuse for my English and additionally assert that my German is much better ;-) ):
1) In the menu "Bearbeiten" the word "Clean" is not translated. "Clean" means in this context in German "Bereinigen" (Compare picture2)
2) In the toolbar is an icon named "Bereinigt". This is grammatically wrong conjugated and should also renamed with "Bereinigen". ("Bereinigen" means that it will be done after pressing the button, "Bereingt" means that it is already done which it is definitely not before pressing the button) Here additionally the icon is wrong and the "Clean-icon" should appear. (Compare picture1)
3) In the status area a "contaminated file" is listed as "Behaftet". This is not directly wrong but in this context the word "Verunreinigt" would be much better, because it matches with "Bereinigen". (For completeness: In the status are the word "Bereinigt" is correctly conjugated and should not be changed.) (Compare picture3)
Best regards
Kalle
![Picture1](/uploads/0a4ae3df2382a7cb348e3880b9ea0f84/Picture1.png)
![Picture2](/uploads/4ed8ff5e13562f251e627e3e1cc12773/Picture2.png)
![Picture3](/uploads/6898f51091e54919bb9272a42c9dab8d/Picture3.png)