24 Commits

Author SHA1 Message Date
e43a757d8c Rilascio v1.41_Win64 2020-04-21 16:56:02 +02:00
c7028163fb aggiornati spec per build 2020-04-21 16:28:27 +02:00
a6a2fde875 correzioni ad about per far vedere la versione 2020-04-21 16:25:59 +02:00
6332db4b1f Rilascio Versione 1.41 2020-04-21 16:16:35 +02:00
535bb9d4e9 dovrebbe essere pronta la versione con le traduzioni funzionanti 2020-04-21 16:14:30 +02:00
ce5495fce4 generati tutti i file di traduzione 2020-04-21 15:51:38 +02:00
9d3f5c831c ricostruite le traduzioni python 2020-04-21 15:49:02 +02:00
265d2ab3b4 ricompilate interfacce e risorse 2020-04-21 15:29:33 +02:00
f7b77db942 corretto errore per cui non importava tutte le traduzioni 2020-04-21 15:29:15 +02:00
ac168d1e10 ricostruite traduzioni 2020-04-13 20:15:56 +02:00
878f526fde qualquadra ancora non cosa, risolvibile 2020-04-13 20:15:43 +02:00
4351889aae integrazione con traduzione 2020-04-13 20:00:05 +02:00
38461fbe33 rilasciate traduzioni 2020-04-13 18:29:50 +02:00
f1b4fa0ab3 Sistemato pulsante avanzate titolo come da conversazione wa 2020-04-13 16:47:59 +02:00
b08b7912ef Modificato leggermente sezione "about" in italiano (da decidere insieme
se va bene)
2020-04-13 16:47:38 +02:00
314a5de4dd Sistemato traduzioni su indicazioni trabbo (gruppo wa) 2020-04-13 16:46:56 +02:00
1c7e3dd29b Rivisto traduzioni e sistemato qualche typo 2020-04-13 15:53:46 +02:00
3643778d53 generati fil qm delle prime traduzioni 2020-04-10 17:38:43 +02:00
fbeeba2685 Fatto prime traduzioni, ci sono alcuni punti da rivedere 2020-04-10 16:12:12 +02:00
d0196ff10c levata roba inutile 2020-04-10 12:22:42 +02:00
b35a471b75 aggiornati script anche per tradurre messaggi python 2020-04-10 12:19:34 +02:00
525b0b60ae script per traduzione interfacce + generati file traduzione 2020-04-10 12:00:46 +02:00
05fdd158c9 cambiato script compilazine risorse 2020-04-10 11:23:48 +02:00
4df965745b aggiunta cartella script 2020-04-10 11:13:52 +02:00
47 changed files with 10213 additions and 8290 deletions

View File

@@ -5,6 +5,5 @@ encoding//bananaSPLIT/UserInterface/compiledUI/avanzatetitolo.py=utf-8
encoding//bananaSPLIT/UserInterface/compiledUI/avanzatetitolo2.py=utf-8 encoding//bananaSPLIT/UserInterface/compiledUI/avanzatetitolo2.py=utf-8
encoding//bananaSPLIT/UserInterface/compiledUI/avanzatetitolo3.py=utf-8 encoding//bananaSPLIT/UserInterface/compiledUI/avanzatetitolo3.py=utf-8
encoding//bananaSPLIT/UserInterface/compiledUI/mainwindow.py=utf-8 encoding//bananaSPLIT/UserInterface/compiledUI/mainwindow.py=utf-8
encoding//bananaSPLIT/UserInterface/compiledUI/resources_rc.py=utf-8
encoding//bananaSPLIT/UserInterface/compiledUI/selezout.py=utf-8 encoding//bananaSPLIT/UserInterface/compiledUI/selezout.py=utf-8
encoding//bananaSPLIT/UserInterface/compiledUI/titolow.py=utf-8 encoding//bananaSPLIT/UserInterface/compiledUI/titolow.py=utf-8

View File

@@ -1,11 +1,13 @@
{ {
"version": "v1.3b", "version": "v1.41",
"paths": { "paths": {
"lastUsed": "defaults.json", "lastUsed": "defaults.json",
"configurationPath": "./conf/", "configurationPath": "./conf/",
"INworkPath": "C://", "INworkPath": "C://",
"OUTworkPath": "C://", "OUTworkPath": "C://",
"fileList": [] "fileList": [
"bdlog.txt"
]
}, },
"docStruct": { "docStruct": {
"fileVersNew": false, "fileVersNew": false,
@@ -36,6 +38,7 @@
} }
}, },
"settings": { "settings": {
"uiLang": "en",
"winW": 800, "winW": 800,
"winH": 700, "winH": 700,
"encoding": "windows-1252", "encoding": "windows-1252",

67
WinBuild/conf/linux.json Normal file
View File

@@ -0,0 +1,67 @@
{
"version": "v1.3",
"paths": {
"lastUsed": "linux.json",
"configurationPath": "./conf/",
"INworkPath": "/home/",
"OUTworkPath": "/home/",
"fileList": []
},
"docStruct": {
"fileVersNew": false,
"language": "English",
"languageIdx": 1,
"docSep": "\\s*Copyright [(0-9)]+",
"beginOfDocument": "\\s*Body",
"endOfDocument": "\\s*End of Document",
"dateFormat": "{month} {day:d}, {year:d}{}",
"outPrefix": "",
"outSuffix": "",
"outExt": ".txt",
"outDateType": "jpn",
"outNameFormat": "",
"outDate": true,
"outTitle": true,
"outNumber": true,
"numberPos": 1,
"datePos": 2,
"titlePos": 3,
"maxTitleLen": 16,
"outNameSep": "-",
"customSep": "=",
"dateFormats": {
"jpn": "{year:04d}{month:02d}{day:02d}",
"it": "{day:02d}{month:02d}{year:04d}",
"usa": "{month:02d}{year:04d}{day:02d}"
}
},
"settings": {
"winW": 800,
"winH": 700,
"encoding": "windows-1252",
"monthPosition": 0,
"getNewsPaperName": true,
"nameNotFoundStr": "ND",
"includeTitle": true,
"removeDuplicates": true,
"showSkipped": false,
"showRemovedDuplicates": false,
"loadTXT": true,
"loadDOCX": false,
"removeOldFiles": true,
"saveSeparateFiles": true,
"saveBodyFile": true,
"saveBodyNumber": true,
"delLF": false,
"delWordBreak": true,
"delChars": [
"'",
"@",
"#",
"$",
"%",
"^",
"&"
]
}
}

View File

@@ -1,33 +1,33 @@
# -*- mode: python ; coding: utf-8 -*- # -*- mode: python ; coding: utf-8 -*-
block_cipher = None block_cipher = None
a = Analysis(['guimain.py'], a = Analysis(['guimain.py'],
pathex=['./libbananasplit', './UserInterface/CompiledUI', 'D:\\Emanuele\\Documenti\\workspace\\bananaSPLIT\\bananaSPLIT'], pathex=['./libbananasplit', './UserInterface/compiledUI', 'D:\\Emanuele\\Documenti\\workspace\\bananaSPLIT\\bananaSPLIT'],
binaries=[], binaries=[],
datas=[('C:\\Users\\Emanuele Trabattoni\\AppData\\Roaming\\Python\\Python37\\site-packages\\text_unidecode\\data.bin', '.\\text_unidecode')], datas=[('C:\\Users\\Emanuele Trabattoni\\AppData\\Roaming\\Python\\Python37\\site-packages\\text_unidecode\\data.bin', '.\\text_unidecode')],
hiddenimports=[], hiddenimports=[],
hookspath=[], hookspath=[],
runtime_hooks=[], runtime_hooks=[],
excludes=[], excludes=[],
win_no_prefer_redirects=False, win_no_prefer_redirects=False,
win_private_assemblies=False, win_private_assemblies=False,
cipher=block_cipher, cipher=block_cipher,
noarchive=False) noarchive=False)
pyz = PYZ(a.pure, a.zipped_data, pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher) cipher=block_cipher)
exe = EXE(pyz, exe = EXE(pyz,
a.scripts, a.scripts,
a.binaries, a.binaries,
a.zipfiles, a.zipfiles,
a.datas, a.datas,
[], [],
name='bananaSPLIT.exe', name='SPEx.exe',
debug=False, debug=False,
bootloader_ignore_signals=False, bootloader_ignore_signals=False,
strip=False, strip=False,
upx=True, upx=True,
upx_exclude=[], upx_exclude=[],
runtime_tmpdir=None, runtime_tmpdir=None,
console=True , icon='bananasplit.ico') console=False , icon='logo.ico')

View File

@@ -41,7 +41,7 @@
<property name="modal"> <property name="modal">
<bool>true</bool> <bool>true</bool>
</property> </property>
<widget class="QLabel" name="label"> <widget class="QLabel" name="lbl_ico">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
@@ -69,7 +69,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="lbl_info">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>150</x> <x>150</x>
@@ -82,15 +82,15 @@
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:20pt; font-weight:600;&quot;&gt;About SPEx&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Versione {ver}&lt;/span&gt;&lt;/p&gt; &lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:20pt; font-weight:600;&quot;&gt;About SPEx&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;Versione {ver}&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:7pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;SPEx (Split Parse &amp;amp; Extract) e' un tool, utile ai linguisti che devono costruire un corpus, che ha come funzione principale dividere e ripulire da elementi non necessari raccolte di &amp;quot;articoli&amp;quot; scaricati da database online quali &lt;/span&gt;&lt;span style=&quot; font-size:12pt; font-style:italic;&quot;&gt;LexisNexis&lt;/span&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;SPEx (Split Parse &amp;amp; Extract) e' un tool utile per gli specialisti di linguistica dei corpora che intendono rifinire il loro corpus, eliminando tutti gli elementi non &lt;/span&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;necessari e dividendo in file singoli le raccolte di&lt;/span&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt; &amp;quot;articoli&amp;quot; scaricate da database online quali &lt;/span&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt; font-style:italic;&quot;&gt;Lexis Uni&lt;/span&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Pui tranquillamente suggerire SPEx ad un tuo collega, ci fa molto piacere! Ricordati solo di mandarci (o farci mandare) una mail con scopo e impressioni di utilizzo: questo ci aiuta a tenere traccia di quanti ricercatori stanno usando SPEx e pensare a sviluppi futuri di questo tool. &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;Puoi tranquillamente suggerire SPEx ad un tuo collega: ci fa molto piacere! Ricordati solo di mandarci una mail con scopo e impressioni di utilizzo: questo ci aiuta a tenere traccia di quanti ricercatori stanno usando SPEx e pensare a sviluppi futuri di questo tool. &lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:7pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;SPEx non e' soggetto ad alcun tipo di licenza e viene distribuito senza alcuna garanzia.&lt;br /&gt;Essendo un progetto &amp;quot;del tempo libero&amp;quot;, bug e proposte di espansione verranno sicuramente presi in considerazione ma non possiamo dirvi nulla riguardo alle tempistiche.&lt;/span&gt;&lt;/p&gt; &lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:10pt;&quot;&gt;SPEx non e' soggetto ad alcun tipo di licenza e viene distribuito senza alcuna garanzia.&lt;br /&gt;Essendo un progetto &amp;quot;del tempo libero&amp;quot;, bug e proposte di espansione verranno sicuramente presi in considerazione, anche se le tempistiche potrebbero variare.&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Contatti:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;12parsec.software@gmail.com&lt;/span&gt;&lt;/p&gt; &lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;Contatti:&lt;/span&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:7pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:10pt;&quot;&gt;12parsec.software@gmail.com&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Download:&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;Download:&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:7pt; text-decoration: underline; color:#0000ff;&quot;&gt;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="textFormat"> <property name="textFormat">
<enum>Qt::RichText</enum> <enum>Qt::RichText</enum>

View File

@@ -25,23 +25,23 @@ class Ui_about(object):
icon.addPixmap(QtGui.QPixmap(":/ico/icons/icons8-info-80.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon.addPixmap(QtGui.QPixmap(":/ico/icons/icons8-info-80.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
about.setWindowIcon(icon) about.setWindowIcon(icon)
about.setModal(True) about.setModal(True)
self.label = QtWidgets.QLabel(about) self.lbl_ico = QtWidgets.QLabel(about)
self.label.setGeometry(QtCore.QRect(10, 10, 128, 128)) self.lbl_ico.setGeometry(QtCore.QRect(10, 10, 128, 128))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.lbl_ico.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy) self.lbl_ico.setSizePolicy(sizePolicy)
self.label.setFrameShape(QtWidgets.QFrame.NoFrame) self.lbl_ico.setFrameShape(QtWidgets.QFrame.NoFrame)
self.label.setText("") self.lbl_ico.setText("")
self.label.setPixmap(QtGui.QPixmap(":/ico/icons/logo.png")) self.lbl_ico.setPixmap(QtGui.QPixmap(":/ico/icons/logo.png"))
self.label.setScaledContents(True) self.lbl_ico.setScaledContents(True)
self.label.setObjectName("label") self.lbl_ico.setObjectName("lbl_ico")
self.label_2 = QtWidgets.QLabel(about) self.lbl_info = QtWidgets.QLabel(about)
self.label_2.setGeometry(QtCore.QRect(150, 10, 601, 621)) self.lbl_info.setGeometry(QtCore.QRect(150, 10, 601, 621))
self.label_2.setTextFormat(QtCore.Qt.RichText) self.lbl_info.setTextFormat(QtCore.Qt.RichText)
self.label_2.setWordWrap(True) self.lbl_info.setWordWrap(True)
self.label_2.setObjectName("label_2") self.lbl_info.setObjectName("lbl_info")
self.retranslateUi(about) self.retranslateUi(about)
QtCore.QMetaObject.connectSlotsByName(about) QtCore.QMetaObject.connectSlotsByName(about)
@@ -49,18 +49,18 @@ class Ui_about(object):
def retranslateUi(self, about): def retranslateUi(self, about):
_translate = QtCore.QCoreApplication.translate _translate = QtCore.QCoreApplication.translate
about.setWindowTitle(_translate("about", "About SPEx")) about.setWindowTitle(_translate("about", "About SPEx"))
self.label_2.setText(_translate("about", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" self.lbl_info.setText(_translate("about", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n" "p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:7pt; font-weight:400; font-style:normal;\">\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:20pt; font-weight:600;\">About SPEx<br /></span><span style=\" font-size:12pt;\">Versione {ver}</span></p>\n" "<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:20pt; font-weight:600;\">About SPEx<br /></span><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:12pt;\">Versione {ver}</span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:7pt;\"><br /></span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt;\">SPEx (Split Parse &amp; Extract) e\' un tool, utile ai linguisti che devono costruire un corpus, che ha come funzione principale dividere e ripulire da elementi non necessari raccolte di &quot;articoli&quot; scaricati da database online quali </span><span style=\" font-size:12pt; font-style:italic;\">LexisNexis</span><span style=\" font-size:12pt;\">.</span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:12pt;\">SPEx (Split Parse &amp; Extract) e\' un tool utile per gli specialisti di linguistica dei corpora che intendono rifinire il loro corpus, eliminando tutti gli elementi non </span><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:12pt;\">necessari e dividendo in file singoli le raccolte di</span><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:12pt;\"> &quot;articoli&quot; scaricate da database online quali </span><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:12pt; font-style:italic;\">Lexis Uni</span><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:12pt;\">.</span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt;\">Pui tranquillamente suggerire SPEx ad un tuo collega, ci fa molto piacere! Ricordati solo di mandarci (o farci mandare) una mail con scopo e impressioni di utilizzo: questo ci aiuta a tenere traccia di quanti ricercatori stanno usando SPEx e pensare a sviluppi futuri di questo tool. </span></p>\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:12pt;\">Puoi tranquillamente suggerire SPEx ad un tuo collega: ci fa molto piacere! Ricordati solo di mandarci una mail con scopo e impressioni di utilizzo: questo ci aiuta a tenere traccia di quanti ricercatori stanno usando SPEx e pensare a sviluppi futuri di questo tool. </span></p>\n"
"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n" "<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:7pt;\"><br /></span></p>\n"
"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:10pt;\">SPEx non e\' soggetto ad alcun tipo di licenza e viene distribuito senza alcuna garanzia.<br />Essendo un progetto &quot;del tempo libero&quot;, bug e proposte di espansione verranno sicuramente presi in considerazione ma non possiamo dirvi nulla riguardo alle tempistiche.</span></p>\n" "<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">SPEx non e\' soggetto ad alcun tipo di licenza e viene distribuito senza alcuna garanzia.<br />Essendo un progetto &quot;del tempo libero&quot;, bug e proposte di espansione verranno sicuramente presi in considerazione, anche se le tempistiche potrebbero variare.</span></p>\n"
"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt;\">Contatti:</span><br /><span style=\" font-size:10pt;\">12parsec.software@gmail.com</span></p>\n" "<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:12pt;\">Contatti:</span><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:7pt;\"><br /></span><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">12parsec.software@gmail.com</span></p>\n"
"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt;\">Download:<br /></span><a href=\"https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8\"><span style=\" text-decoration: underline; color:#0000ff;\">https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8</span></a></p></body></html>")) "<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:12pt;\">Download:<br /></span><a href=\"https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:7pt; text-decoration: underline; color:#0000ff;\">https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8</span></a></p></body></html>"))
import resources_rc import resources_rc

View File

@@ -242,7 +242,7 @@ class Ui_mainwin(object):
self.actionOpzioni = QtWidgets.QAction(mainwin) self.actionOpzioni = QtWidgets.QAction(mainwin)
self.actionOpzioni.setObjectName("actionOpzioni") self.actionOpzioni.setObjectName("actionOpzioni")
self.actionLingua = QtWidgets.QAction(mainwin) self.actionLingua = QtWidgets.QAction(mainwin)
self.actionLingua.setEnabled(False) self.actionLingua.setEnabled(True)
icon6 = QtGui.QIcon() icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/ico/icons/icons8-globe-earth-80.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon6.addPixmap(QtGui.QPixmap(":/ico/icons/icons8-globe-earth-80.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionLingua.setIcon(icon6) self.actionLingua.setIcon(icon6)
@@ -278,7 +278,7 @@ class Ui_mainwin(object):
def retranslateUi(self, mainwin): def retranslateUi(self, mainwin):
_translate = QtCore.QCoreApplication.translate _translate = QtCore.QCoreApplication.translate
mainwin.setWindowTitle(_translate("mainwin", "bananaSPLIT")) mainwin.setWindowTitle(_translate("mainwin", "12parsec - SPEx"))
self.label_4.setText(_translate("mainwin", "Finestra dei messaggi")) self.label_4.setText(_translate("mainwin", "Finestra dei messaggi"))
self.label_3.setText(_translate("mainwin", "Preset corrente: ")) self.label_3.setText(_translate("mainwin", "Preset corrente: "))
self.lbl_preset.setText(_translate("mainwin", "...")) self.lbl_preset.setText(_translate("mainwin", "..."))

File diff suppressed because it is too large Load Diff

View File

@@ -318,7 +318,7 @@ class Ui_titolo(object):
_translate = QtCore.QCoreApplication.translate _translate = QtCore.QCoreApplication.translate
titolo.setWindowTitle(_translate("titolo", "Nomi file di Uscita")) titolo.setWindowTitle(_translate("titolo", "Nomi file di Uscita"))
self.lbl_ncarat.setText(_translate("titolo", "Numero di caratteri")) self.lbl_ncarat.setText(_translate("titolo", "Numero di caratteri"))
self.btn_avanzate.setText(_translate("titolo", "Avanzate Titolo")) self.btn_avanzate.setText(_translate("titolo", "Opzioni Avanzate (Titolo)"))
self.btn_indietro.setText(_translate("titolo", "Indietro")) self.btn_indietro.setText(_translate("titolo", "Indietro"))
self.btn_avanti.setText(_translate("titolo", "Avanti")) self.btn_avanti.setText(_translate("titolo", "Avanti"))
self.rad_datajpn.setText(_translate("titolo", "YYYY MM DD, es. 2000 12 31 (jpn)")) self.rad_datajpn.setText(_translate("titolo", "YYYY MM DD, es. 2000 12 31 (jpn)"))

View File

@@ -29,7 +29,7 @@
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>bananaSPLIT</string> <string>12parsec - SPEx</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="resources/resources.qrc"> <iconset resource="resources/resources.qrc">
@@ -485,7 +485,7 @@ p, li { white-space: pre-wrap; }
</action> </action>
<action name="actionLingua"> <action name="actionLingua">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="resources/resources.qrc"> <iconset resource="resources/resources.qrc">

View File

@@ -18,6 +18,14 @@
<file>icons/logo4.png</file> <file>icons/logo4.png</file>
</qresource> </qresource>
<qresource prefix="tr"> <qresource prefix="tr">
<file>translations/about_en.qm</file>
<file>translations/advopt_en.qm</file>
<file>translations/avanzatetitolo3_en.qm</file>
<file>translations/guimain_en.qm</file>
<file>translations/libconfload_en.qm</file>
<file>translations/libsplit_en.qm</file>
<file>translations/mainwindow_en.qm</file> <file>translations/mainwindow_en.qm</file>
<file>translations/selezout_en.qm</file>
<file>translations/titolow_en.qm</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>about</name>
<message>
<location filename="../../about.ui" line="35"/>
<source>About SPEx</source>
<translation>About SPEx</translation>
</message>
<message>
<location filename="../../about.ui" line="82"/>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:20pt; font-weight:600;&quot;&gt;About SPEx&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Versione {ver}&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;SPEx (Split Parse &amp;amp; Extract) e&apos; un tool utile per gli specialisti di linguistica dei corpora che intendono rifinire il loro corpus, eliminando tutti gli elementi non &lt;/span&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;necessari e dividendo in file singoli le raccolte di&lt;/span&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt; &amp;quot;articoli&amp;quot; scaricate da database online quali &lt;/span&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt; font-style:italic;&quot;&gt;Lexis Uni&lt;/span&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Puoi tranquillamente suggerire SPEx ad un tuo collega: ci fa molto piacere! Ricordati solo di mandarci una mail con scopo e impressioni di utilizzo: questo ci aiuta a tenere traccia di quanti ricercatori stanno usando SPEx e pensare a sviluppi futuri di questo tool. &lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:10pt;&quot;&gt;SPEx non e&apos; soggetto ad alcun tipo di licenza e viene distribuito senza alcuna garanzia.&lt;br /&gt;Essendo un progetto &amp;quot;del tempo libero&amp;quot;, bug e proposte di espansione verranno sicuramente presi in considerazione, anche se le tempistiche potrebbero variare.&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Contatti:&lt;/span&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:10pt;&quot;&gt;12parsec.software@gmail.com&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Download:&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7pt; text-decoration: underline; color:#0000ff;&quot;&gt;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:20pt; font-weight:600;&quot;&gt;About SPEx&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Versione {ver}&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;SPEx (Split Parse &amp;amp; Extract) e&apos; un tool, utile ai linguisti che devono costruire un corpus, che ha come funzione principale dividere e ripulire da elementi non necessari raccolte di &amp;quot;articoli&amp;quot; scaricati da database online quali &lt;/span&gt;&lt;span style=&quot; font-size:12pt; font-style:italic;&quot;&gt;LexisNexis&lt;/span&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Pui tranquillamente suggerire SPEx ad un tuo collega, ci fa molto piacere! Ricordati solo di mandarci (o farci mandare) una mail con scopo e impressioni di utilizzo: questo ci aiuta a tenere traccia di quanti ricercatori stanno usando SPEx e pensare a sviluppi futuri di questo tool. &lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;SPEx non e&apos; soggetto ad alcun tipo di licenza e viene distribuito senza alcuna garanzia.&lt;br /&gt;Essendo un progetto &amp;quot;del tempo libero&amp;quot;, bug e proposte di espansione verranno sicuramente presi in considerazione ma non possiamo dirvi nulla riguardo alle tempistiche.&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Contatti:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;12parsec.software@gmail.com&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Download:&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="vanished">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:7pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:20pt; font-weight:600;&quot;&gt;About SPEx&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Versione {ver}&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;SPEx (Split Parse &amp;amp; Extract) is a useful tool for corpus linguists who wish to refine their corpora, by eliminating unnecessary elements and divide in single files the sets of &amp;quot;articles&amp;quot; downloaded from online databases such as &lt;/span&gt;&lt;span style=&quot; font-size:12pt; font-style:italic;&quot;&gt;Nexis Uni&lt;/span&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;We would be immensely grateful if you could suggest SPEx to your colleagues! Just remember to send us an email telling us what you think of the program, as this will help us to trace how many researchers are using SPEx and think of possible future developments of this tool. &lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt; You don&apos;t need any type of licence to use SPEx. This software is provided &quot;as is&quot;, without any warranty.&lt;br /&gt;Being a &amp;quot;spare time&amp;quot; project, bugs and expansion proposals will certainly be taken into consideration, although time frames may vary.&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Contacts:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;12parsec.software@gmail.com&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt;&quot;&gt;Download:&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>editconf</name>
<message>
<location filename="../../advopt.ui" line="26"/>
<source>Opzioni Avanzate</source>
<translation>Advanced Options</translation>
</message>
<message>
<location filename="../../advopt.ui" line="41"/>
<source>ATTENZIONE!! Quello che scrivi qui potrebbe rompere tutto!</source>
<translation>WARNING!! What you write here may break everything!</translation>
</message>
<message>
<location filename="../../advopt.ui" line="65"/>
<source>Da grandi poteri derivano grandi responsabilita&apos;</source>
<translation>With great power comes great responsibility</translation>
</message>
<message>
<location filename="../../advopt.ui" line="99"/>
<source>Cancel</source>
<translation>Cancel</translation>
</message>
<message>
<location filename="../../advopt.ui" line="106"/>
<source>OK</source>
<translation>OK</translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>advtitolo3</name>
<message>
<location filename="../../avanzatetitolo3.ui" line="23"/>
<source>Avanzate Titolo</source>
<translation>Title - Advanced Options</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="47"/>
<source>(Terzo Elemento)</source>
<translation>(Third Element)</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="54"/>
<location filename="../../avanzatetitolo3.ui" line="107"/>
<location filename="../../avanzatetitolo3.ui" line="179"/>
<source>Numero</source>
<translation>Number</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="61"/>
<location filename="../../avanzatetitolo3.ui" line="114"/>
<location filename="../../avanzatetitolo3.ui" line="189"/>
<source>Data</source>
<translation>Date</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="68"/>
<location filename="../../avanzatetitolo3.ui" line="124"/>
<location filename="../../avanzatetitolo3.ui" line="196"/>
<source>Titolo</source>
<translation>Title</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="100"/>
<source>Secondo Elemento</source>
<translation>Second Element</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="138"/>
<source>Seleziona l&apos;ordine degli elementi nel nomi file</source>
<translation>Select the order of the elements in the file name</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="145"/>
<source>Prefisso Titolo</source>
<translation>Title Prefix</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="172"/>
<source>Primo elemento</source>
<translation>First Element</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="217"/>
<source>Modifica ordine elementi nome file</source>
<translation>Modify the order of the elements in the file name</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="226"/>
<source>Annulla</source>
<translation>Cancel</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="233"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
<location filename="../../avanzatetitolo3.ui" line="242"/>
<source>Suffisso Titolo</source>
<translation>Title suffix</translation>
</message>
</context>
</TS>

View File

@@ -1,52 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en" sourcelanguage="it_IT">
<context>
<name>@default</name>
<message>
<location filename="../../../guimain.py" line="41"/>
<source>Impostazioni Titolo</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../guimain.py" line="42"/>
<source>Selezione Output</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../guimain.py" line="87"/>
<source>MainWindow: Configurazione non accettata</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../guimain.py" line="107"/>
<source>Prossima Tab</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../guimain.py" line="112"/>
<source>Tab Precedente</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../guimain.py" line="116"/>
<source>Apri Carica Preset</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../guimain.py" line="117"/>
<source>Carica Preset</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../guimain.py" line="126"/>
<source>Riempio tutte le tab</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../guimain.py" line="131"/>
<source>Apri Salva Preset</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,196 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="2.0" language="en" sourcelanguage="it_IT">
<context>
<name>bananaAdvOpt</name>
<message>
<location filename="../../../guimain.py" line="531"/>
<source>AdvancedOptions: Configurazione non accettata</source>
<translation>Advanced Options: Configuration not accepted</translation>
</message>
<message>
<location filename="../../../guimain.py" line="537"/>
<source>Avanzate Globali</source>
<translation>Global Advanced Options</translation>
</message>
<message>
<location filename="../../../guimain.py" line="545"/>
<source>Parametri inseriti validi, configurazione accettata</source>
<translation>Valid input parameters, configuration accepted</translation>
</message>
</context>
<context>
<name>bananaMain</name>
<message>
<location filename="../../../guimain.py" line="47"/>
<source>Impostazioni Titolo</source>
<translation>Title Options</translation>
</message>
<message>
<location filename="../../../guimain.py" line="48"/>
<source>Selezione Output</source>
<translation>Select Output</translation>
</message>
<message>
<location filename="../../../guimain.py" line="93"/>
<source>MainWindow: Configurazione non accettata</source>
<translation>MainWindow: Configuration not accepted</translation>
</message>
<message>
<location filename="../../../guimain.py" line="113"/>
<source>Prossima Tab</source>
<translation>Next Tab</translation>
</message>
<message>
<location filename="../../../guimain.py" line="118"/>
<source>Tab Precedente</source>
<translation>Former Tab</translation>
</message>
<message>
<location filename="../../../guimain.py" line="122"/>
<source>Apri Carica Preset</source>
<translation>Open Load Preset</translation>
</message>
<message>
<location filename="../../../guimain.py" line="123"/>
<source>Carica Preset</source>
<translation>Load Preset</translation>
</message>
<message>
<location filename="../../../guimain.py" line="132"/>
<source>Riempio tutte le tab</source>
<translation>Fill all Tabs</translation>
</message>
<message>
<location filename="../../../guimain.py" line="137"/>
<source>Apri Salva Preset</source>
<translation>Open Save Preset</translation>
</message>
<message>
<location filename="../../../guimain.py" line="157"/>
<source>Apri Opzioni Avanzate</source>
<translation>Open Advanced Options</translation>
</message>
<message>
<location filename="../../../guimain.py" line="164"/>
<source>Apri Opzioni Lingua</source>
<translation>Open Language Options</translation>
</message>
<message>
<location filename="../../../guimain.py" line="173"/>
<source>Apri Finestra About</source>
<translation>Open About Window</translation>
</message>
<message>
<location filename="../../../guimain.py" line="177"/>
<source>Seleziona Cartella Sorgente</source>
<translation>Select Input Folder</translation>
</message>
<message>
<location filename="../../../guimain.py" line="181"/>
<source>Selezionata Cartella Sorgente: {}</source>
<translation>SelInput Folder Selected: {}</translation>
</message>
<message>
<location filename="../../../guimain.py" line="186"/>
<source>Seleziona Cartella Destinazione</source>
<translation>Select Output Folder</translation>
</message>
<message>
<location filename="../../../guimain.py" line="190"/>
<source>Selezionata Cartella Destinazione: {}</source>
<translation>Output Folder Selected: {}</translation>
</message>
<message>
<location filename="../../../guimain.py" line="198"/>
<source>Apro in directory: {}</source>
<translation>Opening in directory:{}</translation>
</message>
<message>
<location filename="../../../guimain.py" line="166"/>
<source>Lingua</source>
<translation>Language</translation>
</message>
<message>
<location filename="../../../guimain.py" line="166"/>
<source>Disponibili</source>
<translation>Available</translation>
</message>
</context>
<context>
<name>bananaSelezOut</name>
<message>
<location filename="../../../guimain.py" line="443"/>
<source>SelezUscita: Configurazione non accettata</source>
<translation>SelectOutput: Configuration not accepted</translation>
</message>
<message>
<location filename="../../../guimain.py" line="447"/>
<source>Applico Impostazioni File Uscita</source>
<translation>Applying Output File Options</translation>
</message>
<message>
<location filename="../../../guimain.py" line="487"/>
<source>Sto SPLITTANDO, attendi..</source>
<translation>SPLITTING, please wait..</translation>
</message>
<message>
<location filename="../../../guimain.py" line="488"/>
<source>Sto Splittando..</source>
<translation>Splitting..</translation>
</message>
<message>
<location filename="../../../guimain.py" line="507"/>
<source>FINITO!</source>
<translation>DONE!</translation>
</message>
</context>
<context>
<name>bananaTitolo</name>
<message>
<location filename="../../../guimain.py" line="253"/>
<source>Titolo: Configurazione non accettata</source>
<translation>Title: Configuration not accepted</translation>
</message>
<message>
<location filename="../../../guimain.py" line="256"/>
<source>Mostro la finestra avanzate titolo</source>
<translation>Show advanced options window</translation>
</message>
<message>
<location filename="../../../guimain.py" line="261"/>
<source>Applico impostazioni Titolo</source>
<translation>Applying Title options</translation>
</message>
</context>
<context>
<name>bananaTitoloAvanzate</name>
<message>
<location filename="../../../guimain.py" line="318"/>
<source>AvanzateTitolo: Configurazione non accettata</source>
<translation>Title Advanced Options: Configuration not accepted</translation>
</message>
<message>
<location filename="../../../guimain.py" line="372"/>
<source>Avanzate Titolo Accettate</source>
<translation>Title Advanced Options Accepted</translation>
</message>
<message>
<location filename="../../../guimain.py" line="378"/>
<source>Avanzate Titolo Rifiutate</source>
<translation>Title Advanced Options Rejected</translation>
</message>
</context>
<context>
<name>init</name>
<message>
<location filename="../../../guimain.py" line="45"/>
<source>Impostazioni Titolo</source>
<translation type="obsolete">Title Settings</translation>
</message>
<message>
<location filename="../../../guimain.py" line="46"/>
<source>Selezione Output</source>
<translation type="obsolete">Output Selection</translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="2.0" language="en_US" sourcelanguage="it_IT">
<context>
<name>bananaCONF</name>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="24"/>
<source>Cerco le configurazioni in: [{}]</source>
<translation>Searching configurations in [{}]</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="26"/>
<source>Non mi e&apos; stata fornita una directory per i file di configurazione</source>
<translation>Directory for configuration files not provided</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="32"/>
<source>Carico i file di configurazione</source>
<translation>Loading configuration files</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="41"/>
<source>Caricato correttamente: {}</source>
<translation>Correactly loaded: {}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="44"/>
<source>Impossibile leggere la configurazione:{}
<byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/>Controlla il file a riga: {} e colonna:{}</source>
<translation>Cannot read configuration: {}
<byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/>Check files for rows: {} and colums: {}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="47"/>
<source>Impossibile aprire il file: {}</source>
<translation>Cannot opaen file: {}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="49"/>
<source>Eccezione inaspettata: {}</source>
<translation>Unexpected exception: {}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="51"/>
<source>Non ho trovato alcun file di configurazione!</source>
<translation>No configuration file could be found!</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="68"/>
<source>Salvo la configurazione: {}</source>
<translation>Saving configuation: {}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="74"/>
<source>Impossibile salvare il file: {} - [{}]</source>
<translation>Cannot save file: {} - [{}]</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="76"/>
<source>Errore imprevisto nella scrittura del file: {}</source>
<translation>Unexpected error while writing file</translation>
</message>
<message>
<location filename="../../../libbananasplit/libconfload.py" line="101"/>
<source>Parametro di configurazione non valido! [{}]</source>
<translation>Configuration parameter not valid! [{}]</translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,161 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="2.0" language="en_US" sourcelanguage="it_IT">
<context>
<name>bananaSPLITTER</name>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="43"/>
<source>Nuovo SPLITTER su file: {}</source>
<translation>New SPLITTER on file: {}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="54"/>
<source>Controllo se ci sono dei duplicati..</source>
<translation>Checking for duplicates..</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="60"/>
<source>Salto il controllo dei duplicati..</source>
<translation>Skipping check for duplicates..</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="69"/>
<source>Non posso sovrascrivere i vecchi file, eliminali manualmente!</source>
<translation>Cannot overwrite old files, delete them manually!</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="77"/>
<source>L&apos;elaborazione del file ha richiesto {:4.2f} sec</source>
<translation>File elaboration took {:4.2f} sec</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="80"/>
<source>Il file [{}] contiene caratteri non compatibili con la codifica scelta! [{}]</source>
<translation>The [{}] file contains characters not compatible with the chosen codification! [{}]</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="92"/>
<source>Carico il contenuto..</source>
<translation>Loading content..</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="97"/>
<source>Impossibile aprire il file: {}! [{}]</source>
<translation>Cannto open file: {}! [{}]</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="105"/>
<source>Elimino righe vuote e caratteri inutili..</source>
<translation>Deleting all blank lines and useless characters..</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="117"/>
<source>Errore inaspettato durante l&apos;eliminazione delle righe vuote!</source>
<translation>Unexpected error while deleting blank lines!</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="228"/>
<source>Individuo il contenuto..</source>
<translation>Identifying content..</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="278"/>
<source>Ho trovato una riga ambigua.. potrebbe essere una data ma non so: [{}]</source>
<translation>Ambiguous line found..could be a date but not sure: [{}]</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="273"/>
<source>E&apos; successo qualcosa mentre stavo cercando il nome della pubblicazione,<byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/>controlla i file di uscita! [{}]</source>
<translation>Soemthing happen while seraching for the publication name, <byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/>chek output files! [{}]</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="292"/>
<source>Errore inaspettato, contatta il tuo sviluppatore di fiducia!</source>
<translation>Unexpected error, please contact your trusted developer!</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="190"/>
<source>Ho individuato una separatore valido prima che si chiusesse l&apos;articolo precedente, controlla i tuoi file in uscita!
<byte value="x9"/><byte value="x9"/><byte value="x9"/>L&apos;errore dovrebbe essere intorno all&apos;articolo {} ma non sono sicuro!
<byte value="x9"/><byte value="x9"/><byte value="x9"/>[{}]</source>
<translation>Valid separator found before the previous article ended, check output files!
<byte value="x9"/><byte value="x9"/><byte value="x9"/>The error should be around article {} but I&apos;m not sure!
<byte value="x9"/><byte value="x9"/><byte value="x9"/>[{}]</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="327"/>
<source>Stato Interno Sconosciuto</source>
<translation>Internal Status Not Recognized</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="331"/>
<source>Nel file ho trovato {0} articoli..</source>
<translation>Found {0} articles int he file..</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="333"/>
<source>Attentione, LexisNexis ne ha saltati {} !!!</source>
<translation>Warning, LexisNexis skipped {} !!!</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="252"/>
<source>Il conto dei documenti non torna! LexisNexis ne ha saltato qualcuno!
Precedente:{0}-Attuale:{1}</source>
<translation>Something doesn&apos;t add up! LexisNexis skipped some articles!
Previous: {0}-Current:{1}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="310"/>
<source>Ho individuato una separatore valido prima che si chiusesse l&apos;articolo precedente, controlla i tuoi file in uscita!
<byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/>L&apos;errore dovrebbe essere intorno all&apos;articolo {} ma non sono sicuro!
<byte value="x9"/><byte value="x9"/>[{}]</source>
<translation>Found a valid separator before the previous article ended, check output files!
<byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/><byte value="x9"/>The error should be around article {} but I&apos;m not sure!
<byte value="x9"/><byte value="x9"/>[{}]</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="350"/>
<source>Duplicato: {}</source>
<translation>Duplicate: {}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="354"/>
<source>Ho rimosso {} duplicati di {} articoli..</source>
<translation>Removed {} duplicates of {} articles..</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="360"/>
<source>Salvo gli articoli in file separati...</source>
<translation>Saving articles in separate files...</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="390"/>
<source>Persorso: {0}</source>
<translation>Path: {}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="400"/>
<source>Qualcosa e&apos; andato storto, non riesco a scrivere il file: {}</source>
<translation>Something went wrong, cannot write file: {}</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="385"/>
<source>Ho salvato meno file rispetto a quelli trovati!</source>
<translation>Saved fewer files than found!</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="389"/>
<source>Salvo gli articoli in un singolo file vicino agli originali...</source>
<translation>Saving article in a single file near the originals...</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="28"/>
<source>Sto operando sul file: {}..</source>
<translation>Working on file: {}..</translation>
</message>
<message>
<location filename="../../../libbananasplit/libsplit.py" line="37"/>
<source>Non e&apos; stato fornito il nome di alcun file da splittare!</source>
<translation>The name of the file to split was not provided!</translation>
</message>
</context>
</TS>

View File

@@ -1,130 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_150" sourcelanguage="it_IT">
<context>
<name>mainwin</name>
<message>
<location filename="mainwindow.ui" line="32"/>
<source>bananaSPLIT</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="58"/>
<source>Finestra dei messaggi</source>
<translation>Message Box</translation>
</message>
<message>
<location filename="mainwindow.ui" line="93"/>
<source>Preset corrente: </source>
<translation>Current Preset:</translation>
</message>
<message>
<location filename="mainwindow.ui" line="106"/>
<location filename="mainwindow.ui" line="265"/>
<location filename="mainwindow.ui" line="272"/>
<source>...</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="149"/>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:6.6pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="170"/>
<source>Selezione Input</source>
<translation>Input Select</translation>
</message>
<message>
<location filename="mainwindow.ui" line="187"/>
<location filename="mainwindow.ui" line="213"/>
<source>-&gt; </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="242"/>
<source>Cartella sorgente</source>
<translation>Source Folder</translation>
</message>
<message>
<location filename="mainwindow.ui" line="254"/>
<source>Cartella destinazione</source>
<translation>Destination Folder</translation>
</message>
<message>
<location filename="mainwindow.ui" line="308"/>
<source>File disponibili per la conversione</source>
<translation>Avalable Files</translation>
</message>
<message>
<location filename="mainwindow.ui" line="342"/>
<source>Versione dei File</source>
<translation>File Version</translation>
</message>
<message>
<location filename="mainwindow.ui" line="355"/>
<source>Nuova</source>
<translation>New</translation>
</message>
<message>
<location filename="mainwindow.ui" line="371"/>
<source>Vecchia</source>
<translation>Old</translation>
</message>
<message>
<location filename="mainwindow.ui" line="398"/>
<source>Avanti</source>
<translation>Next</translation>
</message>
<message>
<location filename="mainwindow.ui" line="437"/>
<source>File</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="444"/>
<location filename="mainwindow.ui" line="483"/>
<source>Opzioni</source>
<translation>Options</translation>
</message>
<message>
<location filename="mainwindow.ui" line="451"/>
<source>Help</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="466"/>
<source>Carica Preset</source>
<translation>Load Preset</translation>
</message>
<message>
<location filename="mainwindow.ui" line="478"/>
<source>Salva Preset</source>
<translation>Save Preset</translation>
</message>
<message>
<location filename="mainwindow.ui" line="495"/>
<source>Lingua Interfaccia</source>
<translation>Interface Language</translation>
</message>
<message>
<location filename="mainwindow.ui" line="504"/>
<source>Avanzate</source>
<translation>Advenced</translation>
</message>
<message>
<location filename="mainwindow.ui" line="516"/>
<source>Manuale</source>
<translation>User Manual</translation>
</message>
<message>
<location filename="mainwindow.ui" line="525"/>
<source>About SPEx</source>
<translation></translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>mainwin</name>
<message>
<location filename="../../mainwindow.ui" line="32"/>
<source>bananaSPLIT</source>
<translation>bananaSPLIT</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="58"/>
<source>Finestra dei messaggi</source>
<translation>Communications window</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="93"/>
<source>Preset corrente: </source>
<translation>Current preset: </translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="106"/>
<location filename="../../mainwindow.ui" line="265"/>
<location filename="../../mainwindow.ui" line="272"/>
<source>...</source>
<translation>...</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="149"/>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:6.6pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:7pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="170"/>
<source>Selezione Input</source>
<translation>Select Input</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="187"/>
<location filename="../../mainwindow.ui" line="213"/>
<source>-&gt; </source>
<translation>-&gt; </translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="242"/>
<source>Cartella sorgente</source>
<translation>Input Folder</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="254"/>
<source>Cartella destinazione</source>
<translation>Output Folder</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="308"/>
<source>File disponibili per la conversione</source>
<translation>Files available for conversion</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="342"/>
<source>Versione dei File</source>
<translation>File Version</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="355"/>
<source>Nuova</source>
<translation>New (since 2019)</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="371"/>
<source>Vecchia</source>
<translation>Old</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="398"/>
<source>Avanti</source>
<translation>OK</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="437"/>
<source>File</source>
<translation>File</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="444"/>
<location filename="../../mainwindow.ui" line="483"/>
<source>Opzioni</source>
<translation>Options</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="451"/>
<source>Help</source>
<translation>Help</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="466"/>
<source>Carica Preset</source>
<translation>Load Preset</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="478"/>
<source>Salva Preset</source>
<translation>Save Preset</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="495"/>
<source>Lingua Interfaccia</source>
<translation>Interface Language</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="504"/>
<source>Avanzate</source>
<translation>Advanced Options</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="516"/>
<source>Manuale</source>
<translation>Manual</translation>
</message>
<message>
<location filename="../../mainwindow.ui" line="525"/>
<source>About SPEx</source>
<translation>About SPEx</translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>selezout</name>
<message>
<location filename="../../selezout.ui" line="14"/>
<source>Seleziona Linuga e Output</source>
<translation>Select Language and Output</translation>
</message>
<message>
<location filename="../../selezout.ui" line="31"/>
<source>Seleziona la lingua degli articoli</source>
<translation>Select article language</translation>
</message>
<message>
<location filename="../../selezout.ui" line="92"/>
<source>Seleziona il tipo di file da salvare</source>
<translation>Select file type</translation>
</message>
<message>
<location filename="../../selezout.ui" line="116"/>
<source>Bodyfile + File singoli</source>
<translation>Bodyfile + Single files</translation>
</message>
<message>
<location filename="../../selezout.ui" line="131"/>
<source>Bodyfile</source>
<translation>Bodyfile</translation>
</message>
<message>
<location filename="../../selezout.ui" line="143"/>
<source>File singoli</source>
<translation>Single files</translation>
</message>
<message>
<location filename="../../selezout.ui" line="163"/>
<source>Altre Opzioni </source>
<translation>Other Options </translation>
</message>
<message>
<location filename="../../selezout.ui" line="190"/>
<source>Tenta rimozione duplicati</source>
<translation>Attempt duplicates removal</translation>
</message>
<message>
<location filename="../../selezout.ui" line="202"/>
<source>Includi titolo all&apos;interno del file</source>
<translation>Include title inside file</translation>
</message>
<message>
<location filename="../../selezout.ui" line="214"/>
<source>Rimuovi interruzioni parola (a capo)</source>
<translatorcomment>Non so se è giusto</translatorcomment>
<translation>Delete line breaks</translation>
</message>
<message>
<location filename="../../selezout.ui" line="226"/>
<source>Svuota cartella di destinazione</source>
<translation>Empty output folder</translation>
</message>
<message>
<location filename="../../selezout.ui" line="240"/>
<source>Caratteri speciali da rimuovere </source>
<translation>Special characters to remove </translation>
</message>
<message>
<location filename="../../selezout.ui" line="306"/>
<source>Indietro</source>
<translation>Back</translation>
</message>
<message>
<location filename="../../selezout.ui" line="362"/>
<source>SPLITTA!</source>
<translation>SPLIT!</translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name>titolo</name>
<message>
<location filename="../../titolow.ui" line="14"/>
<source>Nomi file di Uscita</source>
<translation>Output file name</translation>
</message>
<message>
<location filename="../../titolow.ui" line="36"/>
<source>Numero di caratteri</source>
<translation>Character number</translation>
</message>
<message>
<source>Avanzate Titolo</source>
<translation type="vanished">Advanced Options (Title)</translation>
</message>
<message>
<location filename="../../titolow.ui" line="113"/>
<source>Opzioni Avanzate (Titolo)</source>
<translation>Advanced Options (Title)</translation>
</message>
<message>
<location filename="../../titolow.ui" line="156"/>
<source>Indietro</source>
<translation>Back</translation>
</message>
<message>
<location filename="../../titolow.ui" line="187"/>
<source>Avanti</source>
<translation>Next</translation>
</message>
<message>
<location filename="../../titolow.ui" line="221"/>
<source>YYYY MM DD, es. 2000 12 31 (jpn)</source>
<translation>YYYY MM DD, eg. 2000 12 31 (Jpn)</translation>
</message>
<message>
<location filename="../../titolow.ui" line="242"/>
<source>DD MM YYYY, es. 31 12 2000 (ita)</source>
<translation>DD MM YYYY, eg. 31 12 2000 (Ita)</translation>
</message>
<message>
<location filename="../../titolow.ui" line="260"/>
<source>MM DD YYYY, es. 12 31 2000 (us)</source>
<translation>MM DD YYYY, eg. 12 31 2000 (US)</translation>
</message>
<message>
<location filename="../../titolow.ui" line="286"/>
<source>Impostazioni nome file in uscita</source>
<translation>Filename options</translation>
</message>
<message>
<location filename="../../titolow.ui" line="304"/>
<source>Data</source>
<translation>Date</translation>
</message>
<message>
<location filename="../../titolow.ui" line="335"/>
<source>Titolo articolo</source>
<translation>Article title</translation>
</message>
<message>
<location filename="../../titolow.ui" line="355"/>
<source>Spazio</source>
<translation>Space</translation>
</message>
<message>
<location filename="../../titolow.ui" line="376"/>
<source>,</source>
<translation>,</translation>
</message>
<message>
<location filename="../../titolow.ui" line="397"/>
<source>+</source>
<translation>+</translation>
</message>
<message>
<location filename="../../titolow.ui" line="418"/>
<source>-</source>
<translation>-</translation>
</message>
<message>
<location filename="../../titolow.ui" line="439"/>
<source>_</source>
<translation>_</translation>
</message>
<message>
<location filename="../../titolow.ui" line="462"/>
<source>Altro:</source>
<translation>Other:</translation>
</message>
<message>
<location filename="../../titolow.ui" line="518"/>
<source>Separatore</source>
<translation>Separator</translation>
</message>
<message>
<location filename="../../titolow.ui" line="543"/>
<source>Numero documento</source>
<translation>Document number</translation>
</message>
</context>
</TS>

View File

@@ -110,7 +110,7 @@
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>Avanzate Titolo</string> <string>Opzioni Avanzate (Titolo)</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="resources/resources.qrc"> <iconset resource="resources/resources.qrc">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -1,11 +1,13 @@
{ {
"version": "v1.4", "version": "v1.41",
"paths": { "paths": {
"lastUsed": "defaults.json", "lastUsed": "defaults.json",
"configurationPath": "./conf/", "configurationPath": "./conf/",
"INworkPath": "C://", "INworkPath": "C://",
"OUTworkPath": "C://", "OUTworkPath": "C://",
"fileList": [] "fileList": [
"bdlog.txt"
]
}, },
"docStruct": { "docStruct": {
"fileVersNew": false, "fileVersNew": false,
@@ -36,7 +38,7 @@
} }
}, },
"settings": { "settings": {
"uiLang": "it", "uiLang": "en",
"winW": 800, "winW": 800,
"winH": 700, "winH": 700,
"encoding": "windows-1252", "encoding": "windows-1252",

View File

@@ -3,6 +3,8 @@ Created on 2 nov 2019
@author: Emanuele Trabattoni @author: Emanuele Trabattoni
TODO LIST TODO LIST
1. rendere threaded lo splitter.. tentativo colore 100..
''' '''
import sys, copy, json import sys, copy, json
import PyQt5.QtWidgets import PyQt5.QtWidgets
@@ -20,7 +22,10 @@ from libconfload import bananaCONF
from libsplit import bananaSPLITTER from libsplit import bananaSPLITTER
from PyQt5.QtCore import QDir, QSize, QTranslator, pyqtSlot, pyqtSignal from PyQt5.QtCore import QDir, QSize, QTranslator, pyqtSlot, pyqtSignal
from PyQt5.QtWidgets import QMessageBox, QSizePolicy from PyQt5.QtWidgets import QMessageBox, QSizePolicy, QInputDialog
#modo brutto per mettere la lista delle lingue in un posto solo
langlist = ['it','en']
class bananaMain(PyQt5.QtWidgets.QMainWindow): class bananaMain(PyQt5.QtWidgets.QMainWindow):
def __init__(self, logger=None, confloader=None): def __init__(self, logger=None, confloader=None):
@@ -38,8 +43,8 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
#popola le tab con le finestre giuste #popola le tab con le finestre giuste
self.ui.wgt_main.addTab(self.titolo, tr("Impostazioni Titolo")) self.ui.wgt_main.addTab(self.titolo, self.tr("Impostazioni Titolo"))
self.ui.wgt_main.addTab(self.selezout, tr("Selezione Output")) self.ui.wgt_main.addTab(self.selezout, self.tr("Selezione Output"))
# connetti bottoni avanti # connetti bottoni avanti
self.ui.btn_avanti.clicked.connect(self.nextTab) self.ui.btn_avanti.clicked.connect(self.nextTab)
@@ -84,7 +89,7 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
self.ui.rad_fileOld.setChecked(not self.conf.getParam('docStruct', 'fileVersNew')) self.ui.rad_fileOld.setChecked(not self.conf.getParam('docStruct', 'fileVersNew'))
self.fillFileList() self.fillFileList()
except: except:
self.log.critical(tr("MainWindow: Configurazione non accettata")) self.log.critical(self.tr("MainWindow: Configurazione non accettata"))
def fillAllInterfaces(self): def fillAllInterfaces(self):
self.fillInterface() self.fillInterface()
@@ -104,31 +109,31 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
def nextTab(self): def nextTab(self):
self.ui.wgt_main.setCurrentIndex(self.ui.wgt_main.currentIndex()+1) self.ui.wgt_main.setCurrentIndex(self.ui.wgt_main.currentIndex()+1)
self.logger.debug(tr("Prossima Tab")) self.logger.debug(self.tr("Prossima Tab"))
pass pass
def prevTab(self): def prevTab(self):
self.ui.wgt_main.setCurrentIndex(self.ui.wgt_main.currentIndex()-1) self.ui.wgt_main.setCurrentIndex(self.ui.wgt_main.currentIndex()-1)
self.logger.debug(tr("Tab Precedente")) self.logger.debug(self.tr("Tab Precedente"))
pass pass
def openLoadPreset(self): def openLoadPreset(self):
self.logger.debug(tr("Apri Carica Preset")) self.logger.debug(self.tr("Apri Carica Preset"))
lf = PyQt5.QtWidgets.QFileDialog(self,tr("Carica Preset"),self.conf.getParam('paths', 'configurationPath')) lf = PyQt5.QtWidgets.QFileDialog(self,self.tr("Carica Preset"),self.conf.getParam('paths', 'configurationPath'))
lf.setAcceptMode(PyQt5.QtWidgets.QFileDialog.AcceptOpen) lf.setAcceptMode(PyQt5.QtWidgets.QFileDialog.AcceptOpen)
lf.setFileMode(PyQt5.QtWidgets.QFileDialog.ExistingFile) lf.setFileMode(PyQt5.QtWidgets.QFileDialog.ExistingFile)
lf.setNameFilter("bananaCONF (*.json)") lf.setNameFilter("bananaCONF (*.json)")
if lf.exec(): if lf.exec():
cf = str(lf.selectedFiles()[0].split('/')[-1]) cf = str(lf.selectedFiles()[0].split('/')[-1])
self.logger.info(tr(f"Apro la configurazione: {cf}")) self.logger.info(self.tr(f"Apro la configurazione: {cf}"))
self.conf.open() self.conf.open()
self.conf.use(cf) self.conf.use(cf)
self.logger.debug(tr("Riempio tutte le tab")) self.logger.debug(self.tr("Riempio tutte le tab"))
self.fillAllInterfaces() self.fillAllInterfaces()
pass pass
def openSavePreset(self): def openSavePreset(self):
self.logger.debug(tr("Apri Salva Preset")) self.logger.debug(self.tr("Apri Salva Preset"))
self.applicaTutto() self.applicaTutto()
sf = PyQt5.QtWidgets.QFileDialog(self,"Salva Preset",self.conf.getParam('paths', 'configurationPath')) sf = PyQt5.QtWidgets.QFileDialog(self,"Salva Preset",self.conf.getParam('paths', 'configurationPath'))
sf.setAcceptMode(PyQt5.QtWidgets.QFileDialog.AcceptSave) sf.setAcceptMode(PyQt5.QtWidgets.QFileDialog.AcceptSave)
@@ -143,47 +148,53 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
self.conf.save(fName="defaults.json") self.conf.save(fName="defaults.json")
self.conf.use(prev) self.conf.use(prev)
## ##
self.logger.debug(tr(f"Scrivo la configurazione: {rv}")) self.logger.debug(self.tr(f"Scrivo la configurazione: {rv}"))
self.conf.save(fName=rv) self.conf.save(fName=rv)
pass pass
def openAdvOpt(self): def openAdvOpt(self):
self.logger.debug(tr("Apri Opzioni Avanzate")) self.logger.debug(self.tr("Apri Opzioni Avanzate"))
self.advopt.fillInterface() self.advopt.fillInterface()
self.advopt.show() self.advopt.show()
pass pass
def openLanguage(self): def openLanguage(self):
self.logger.debug(tr("Apri Opzioni Lingua")) global langlist
pass self.logger.debug(self.tr("Apri Opzioni Lingua"))
flag = False
lang,flag = QInputDialog.getItem(self, self.tr("Lingua"), self.tr("Disponibili"), langlist, 0, False)
if flag:
self.conf.setParam(('settings','uiLang'),lang)
else:
pass
def openAbout(self): def openAbout(self):
self.logger.debug(tr("Apri Finestra About")) self.logger.debug(self.tr("Apri Finestra About"))
self.spxabt=spexAbout() self.spxabt=spexAbout(confloader=self.conf)
def selezSorg(self): def selezSorg(self):
rv = PyQt5.QtWidgets.QFileDialog.getExistingDirectory(self,tr("Seleziona Cartella Sorgente"),self.conf.getParam('paths','INworkPath')) rv = PyQt5.QtWidgets.QFileDialog.getExistingDirectory(self,self.tr("Seleziona Cartella Sorgente"),self.conf.getParam('paths','INworkPath'))
if rv is not "": if rv is not "":
self.conf.setParam(keys=('paths','INworkPath',), val=rv+"/") self.conf.setParam(keys=('paths','INworkPath',), val=rv+"/")
self.ui.lbl_sorg.setText(rv) self.ui.lbl_sorg.setText(rv)
self.logger.info(tr("Selezionata Cartella Sorgente: {}").format(rv+"/")) self.logger.info(self.tr("Selezionata Cartella Sorgente: {}").format(rv+"/"))
self.fillFileList() self.fillFileList()
pass pass
def selezDest(self): def selezDest(self):
rv = PyQt5.QtWidgets.QFileDialog.getExistingDirectory(self,tr("Seleziona Cartella Destinazione"),self.conf.getParam('paths','OUTworkPath')) rv = PyQt5.QtWidgets.QFileDialog.getExistingDirectory(self,self.tr("Seleziona Cartella Destinazione"),self.conf.getParam('paths','OUTworkPath'))
if rv is not "": if rv is not "":
self.conf.setParam(keys=('paths','OUTworkPath',), val=rv+"/") self.conf.setParam(keys=('paths','OUTworkPath',), val=rv+"/")
self.ui.lbl_dest.setText(rv) self.ui.lbl_dest.setText(rv)
self.logger.info(tr("Selezionata Cartella Destinazione: {}").format(rv+"/")) self.logger.info(self.tr("Selezionata Cartella Destinazione: {}").format(rv+"/"))
pass pass
def selezVers(self): def selezVers(self):
self.conf.setParam(('docStruct','fileVersNew'), self.ui.rad_fileNew.isChecked()) self.conf.setParam(('docStruct','fileVersNew'), self.ui.rad_fileNew.isChecked())
self.logger.debug(tr(f"Selezionata Versione File")) self.logger.debug(self.tr(f"Selezionata Versione File"))
def openFileDialog(self, name, path): def openFileDialog(self, name, path):
self.log.debug(tr("Apro in directory: {}").format(path)) self.log.debug(self.tr("Apro in directory: {}").format(path))
return return
def applicaTutto(self): def applicaTutto(self):
@@ -238,15 +249,15 @@ class bananaTitolo(PyQt5.QtWidgets.QWidget):
#finestra avanzate #finestra avanzate
self.advtitolo.fillInterface() self.advtitolo.fillInterface()
except: except:
self.log.critical(tr("Titolo: Configurazione non accettata")) self.log.critical(self.tr("Titolo: Configurazione non accettata"))
def spawnAvanzate(self): def spawnAvanzate(self):
self.log.debug(tr("Mostro la finestra avanzate titolo")) self.log.debug(self.tr("Mostro la finestra avanzate titolo"))
self.advtitolo.show() self.advtitolo.show()
pass pass
def applica(self): def applica(self):
self.log.info(tr("Applico impostazioni Titolo")) self.log.info(self.tr("Applico impostazioni Titolo"))
self.conf.setParam(('docStruct','outDate'),self.titoloui.chk_data.isChecked()) self.conf.setParam(('docStruct','outDate'),self.titoloui.chk_data.isChecked())
self.conf.setParam(('docStruct','outNumber'),self.titoloui.chk_docnum.isChecked()) self.conf.setParam(('docStruct','outNumber'),self.titoloui.chk_docnum.isChecked())
self.conf.setParam(('docStruct','outTitle'),self.titoloui.chk_titolo.isChecked()) self.conf.setParam(('docStruct','outTitle'),self.titoloui.chk_titolo.isChecked())
@@ -303,7 +314,7 @@ class bananaTitoloAvanzate(PyQt5.QtWidgets.QWidget):
self.titoloavui.txt_prefisso.setText(self.conf.getParam('docStruct','outPrefix')) self.titoloavui.txt_prefisso.setText(self.conf.getParam('docStruct','outPrefix'))
self.titoloavui.txt_suffisso.setText(self.conf.getParam('docStruct','outSuffix')) self.titoloavui.txt_suffisso.setText(self.conf.getParam('docStruct','outSuffix'))
except: except:
self.log.critical(tr("AvanzateTitolo: Configurazione non accettata")) self.log.critical(self.tr("AvanzateTitolo: Configurazione non accettata"))
def gestisciBottoni(self): def gestisciBottoni(self):
#PRIMO #PRIMO
@@ -357,13 +368,13 @@ class bananaTitoloAvanzate(PyQt5.QtWidgets.QWidget):
pass pass
def returnOk(self): def returnOk(self):
self.log.info(tr("Avanzate Titolo Accettate")) self.log.info(self.tr("Avanzate Titolo Accettate"))
self.applica() self.applica()
self.hide() self.hide()
pass pass
def returnKo(self): def returnKo(self):
self.log.info(tr("Avanzate Titolo Rifiutate")) self.log.info(self.tr("Avanzate Titolo Rifiutate"))
self.hide() self.hide()
pass pass
@@ -428,11 +439,11 @@ class bananaSelezOut(PyQt5.QtWidgets.QWidget):
self.selezoutui.lin_specialChars.setText(''.join(self.conf.getParam('settings', 'delChars'))) self.selezoutui.lin_specialChars.setText(''.join(self.conf.getParam('settings', 'delChars')))
pass pass
except: except:
self.log.critical(tr("SelezUscita: Configurazione non accettata")) self.log.critical(self.tr("SelezUscita: Configurazione non accettata"))
pass pass
def applica(self): def applica(self):
self.log.info(tr("Applico Impostazioni File Uscita")) self.log.info(self.tr("Applico Impostazioni File Uscita"))
self.conf.setParam(('docStruct', 'language'), self.selezoutui.cmb_lingua.currentText()) self.conf.setParam(('docStruct', 'language'), self.selezoutui.cmb_lingua.currentText())
self.conf.setParam(('docStruct', 'languageIdx'), self.selezoutui.cmb_lingua.currentIndex()) self.conf.setParam(('docStruct', 'languageIdx'), self.selezoutui.cmb_lingua.currentIndex())
self.conf.setParam(('settings', 'saveBodyFile'), self.selezoutui.rad_mainbody.isChecked() self.conf.setParam(('settings', 'saveBodyFile'), self.selezoutui.rad_mainbody.isChecked()
@@ -472,8 +483,8 @@ class bananaSelezOut(PyQt5.QtWidgets.QWidget):
splconf['docStruct']['outNameFormat'] = splconf['docStruct']['outNameSep'].join(nametemp)+splconf['docStruct']['outExt'] splconf['docStruct']['outNameFormat'] = splconf['docStruct']['outNameSep'].join(nametemp)+splconf['docStruct']['outExt']
#costruisco messageBox #costruisco messageBox
msgb = QMessageBox(parent=self, icon=QMessageBox.Warning, text=tr("Sto SPLITTANDO, attendi..")) msgb = QMessageBox(parent=self, icon=QMessageBox.Warning, text=self.tr("Sto SPLITTANDO, attendi.."))
msgb.setWindowTitle(tr("Sto Splittando..")) msgb.setWindowTitle(self.tr("Sto Splittando.."))
msgb.show() msgb.show()
@pyqtSlot() @pyqtSlot()
@@ -490,9 +501,9 @@ class bananaSelezOut(PyQt5.QtWidgets.QWidget):
tDict[f].run() tDict[f].run()
#QThreadPool.globalInstance().start(tDict[f]) #QThreadPool.globalInstance().start(tDict[f])
except Exception as e: except Exception as e:
self.log.error(tr(f"Impossibile avviare lo splitter: {e}")) self.log.error(self.tr(f"Impossibile avviare lo splitter: {e}"))
msgb.setText(tr("FINITO!")) msgb.setText(self.tr("FINITO!"))
pass pass
class bananaAdvOpt(PyQt5.QtWidgets.QWidget): class bananaAdvOpt(PyQt5.QtWidgets.QWidget):
@@ -516,28 +527,28 @@ class bananaAdvOpt(PyQt5.QtWidgets.QWidget):
try: try:
self.advoptui.txt_confFile.setPlainText(json.dumps(self.conf.dump(),indent=2)) self.advoptui.txt_confFile.setPlainText(json.dumps(self.conf.dump(),indent=2))
except: except:
self.log.critical(tr("AdvancedOptions: Configurazione non accettata")) self.log.critical(self.tr("AdvancedOptions: Configurazione non accettata"))
pass pass
def accetta(self): def accetta(self):
self.errmsg = QMessageBox() self.errmsg = QMessageBox()
self.errmsg.setModal(True) self.errmsg.setModal(True)
self.errmsg.setWindowTitle(tr("Avanzate Globali")) self.errmsg.setWindowTitle(self.tr("Avanzate Globali"))
icon = PyQt5.QtGui.QIcon() icon = PyQt5.QtGui.QIcon()
icon.addPixmap(PyQt5.QtGui.QPixmap(":/icons/icons8-smartphone-ram-100.png"), PyQt5.QtGui.QIcon.Normal, PyQt5.QtGui.QIcon.Off) icon.addPixmap(PyQt5.QtGui.QPixmap(":/icons/icons8-smartphone-ram-100.png"), PyQt5.QtGui.QIcon.Normal, PyQt5.QtGui.QIcon.Off)
self.errmsg.setWindowIcon(icon) self.errmsg.setWindowIcon(icon)
try: try:
self.conf.loads(self.advoptui.txt_confFile.toPlainText()) self.conf.loads(self.advoptui.txt_confFile.toPlainText())
self.log.info(tr("Parametri inseriti validi, configurazione accettata")) self.log.info(self.tr("Parametri inseriti validi, configurazione accettata"))
self.errmsg.setIcon(QMessageBox.Information) self.errmsg.setIcon(QMessageBox.Information)
self.errmsg.setText(tr("Parametri inseriti validi, configurazione accettata")) self.errmsg.setText(self.tr("Parametri inseriti validi, configurazione accettata"))
self.errmsg.show() self.errmsg.show()
self.update.emit() self.update.emit()
self.hide() self.hide()
except Exception as e: except Exception as e:
self.log.error(tr(f"Errore nei parametri! {e}")) self.log.error(self.tr(f"Errore nei parametri! {e}"))
self.errmsg.setIcon(QMessageBox.Critical) self.errmsg.setIcon(QMessageBox.Critical)
self.errmsg.setText(tr(f"Errore nei parametri!\n{e}")) self.errmsg.setText(self.tr(f"Errore nei parametri!\n{e}"))
self.errmsg.show() self.errmsg.show()
pass pass
@@ -556,6 +567,7 @@ class spexAbout(PyQt5.QtWidgets.QDialog):
PyQt5.QtWidgets.QDialog.__init__(self) PyQt5.QtWidgets.QDialog.__init__(self)
self.abt = Ui_about() self.abt = Ui_about()
self.abt.setupUi(self) self.abt.setupUi(self)
self.abt.lbl_info.setText(self.abt.lbl_info.text().replace('{ver}',confloader.getParam('version')))
self.show() self.show()
pass pass
############################################################# #############################################################
@@ -576,13 +588,26 @@ if __name__ == '__main__':
conf.use(conf.getParam('paths', 'lastUsed')) conf.use(conf.getParam('paths', 'lastUsed'))
iflan = conf.getParam('settings','uiLang') iflan = conf.getParam('settings','uiLang')
if iflan != 'it': trlist = [f":/tr/translations/guimain_{iflan}.qm",
t = QTranslator() f":/tr/translations/libconfload_{iflan}.qm",
t.load(f":/tr/translations/mainwindow_{iflan}.qm") f":/tr/translations/libsplit_{iflan}.qm",
app.installTranslator(t) f":/tr/translations/mainwindow_{iflan}.qm",
f":/tr/translations/avanzatetitolo3_{iflan}.qm",
f":/tr/translations/titolow_{iflan}.qm",
f":/tr/translations/selezout_{iflan}.qm",
f":/tr/translations/about_{iflan}.qm"]
qtrlist=[]
if iflan != 'it':
LOGGER.debug("Carico Traduzioni: ")
for tr in trlist:
qtr = QTranslator()
print(qtr.load(tr),f" {tr}")
app.installTranslator(qtr)
qtrlist.append(qtr)
except Exception as e: except Exception as e:
print(e) print(f"Errore main: {e}")
sys.exit() sys.exit()
window = bananaMain(logger=LOGGER, confloader=conf) window = bananaMain(logger=LOGGER, confloader=conf)

View File

@@ -4,27 +4,32 @@ Created on 2 nov 2019
@author: Emanuele Trabattoni @author: Emanuele Trabattoni
''' '''
import json,os,glob,copy import json,os,glob,copy
from PyQt5.QtCore import QObject
class bananaCONF(object): class bananaCONF(QObject):
''' '''
Carica e Salva file di configurazione per bananaSPLITTER Carica e Salva file di configurazione per bananaSPLITTER
''' '''
def __init__(self, workdir=None, logger=None): def __init__(self, workdir=None, logger=None):
self.log = logger try:
self.fileList = None QObject.__init__(self)
self.workdir = None self.log = logger
self.inUse = None self.fileList = None
self.settingsList = dict() self.workdir = None
if workdir is not None: self.inUse = None
self.workdir = workdir self.settingsList = dict()
os.chdir(workdir) if workdir is not None:
self.log.debug(tr("Cerco le configurazioni in: [{}]").format(os.getcwd())) self.workdir = workdir
else: os.chdir(workdir)
self.log.error(tr("Non mi e' stata fornita una directory per i file di configurazione")) self.log.debug(self.tr("Cerco le configurazioni in: [{}]").format(os.getcwd()))
pass else:
self.log.error(self.tr("Non mi e' stata fornita una directory per i file di configurazione"))
pass
except Exception as e:
print(f"libConfload Exception: {e}")
def open(self): def open(self):
self.log.info(tr("Carico i file di configurazione")) self.log.info(self.tr("Carico i file di configurazione"))
self.fileList = glob.glob(r"*.json") self.fileList = glob.glob(r"*.json")
if len(self.fileList) > 0: if len(self.fileList) > 0:
for f in self.fileList: for f in self.fileList:
@@ -33,17 +38,17 @@ class bananaCONF(object):
tf = json.load(fp) tf = json.load(fp)
fName = f.split("\\")[-1] fName = f.split("\\")[-1]
self.settingsList[fName] = copy.deepcopy(tf) self.settingsList[fName] = copy.deepcopy(tf)
self.log.info(tr("Caricato correttamente: {}").format(fName)) self.log.info(self.tr("Caricato correttamente: {}").format(fName))
fp.close() fp.close()
except json.JSONDecodeError as e: except json.JSONDecodeError as e:
self.log.error(tr("Impossibile leggere la configurazione:{}\n \ self.log.error(self.tr("Impossibile leggere la configurazione:{}\n \
Controlla il file a riga: {} e colonna:{}").format(e.doc, e.lineno, e.colno)) Controlla il file a riga: {} e colonna:{}").format(e.doc, e.lineno, e.colno))
except IOError as ee: except IOError as ee:
self.log.error(tr("Impossibile aprire il file: {}").format(ee)) self.log.error(self.tr("Impossibile aprire il file: {}").format(ee))
except Exception as eee: except Exception as eee:
self.log.critical(tr("Eccezione inaspettata: {}").format(eee)) self.log.critical(self.tr("Eccezione inaspettata: {}").format(eee))
else: else:
self.log.error(tr("Non ho trovato alcun file di configurazione!")) self.log.error(self.tr("Non ho trovato alcun file di configurazione!"))
pass pass
def reload(self): def reload(self):
@@ -60,15 +65,15 @@ class bananaCONF(object):
def save(self, fName=None): def save(self, fName=None):
if fName is None: if fName is None:
fName=self.inUse fName=self.inUse
self.log.info(tr("Salvo la configurazione: {}").format(fName)) self.log.info(self.tr("Salvo la configurazione: {}").format(fName))
try: try:
f=open(fName, 'w') f=open(fName, 'w')
json.dump(self.settingsList[self.inUse], f, indent='\t') json.dump(self.settingsList[self.inUse], f, indent='\t')
f.close() f.close()
except IOError as e: except IOError as e:
self.log.error(tr("Impossibile salvare il file: {} - [{}]").format(fName,e)) self.log.error(self.tr("Impossibile salvare il file: {} - [{}]").format(fName,e))
except Exception as ei: except Exception as ei:
self.log.error(tr("Errore imprevisto nella scrittura del file: {}").format(ei)) self.log.error(self.tr("Errore imprevisto nella scrittura del file: {}").format(ei))
pass pass
def getFiles(self): def getFiles(self):
@@ -81,7 +86,7 @@ class bananaCONF(object):
rv = rv[k] rv = rv[k]
return rv return rv
except ValueError as ve: except ValueError as ve:
self.log.error(tr("Parametro di configurazione non valido! [{}]").format(ve)) self.log.error(self.tr("Parametro di configurazione non valido! [{}]").format(ve))
return False return False
pass pass
@@ -93,7 +98,7 @@ class bananaCONF(object):
sv[keys[-1]] = val sv[keys[-1]] = val
return True return True
except ValueError as ve: except ValueError as ve:
self.log.error(tr("Parametro di configurazione non valido! [{}]").format(ve)) self.log.error(self.tr("Parametro di configurazione non valido! [{}]").format(ve))
return False return False
pass pass

View File

@@ -52,6 +52,8 @@ class fancyLogger(QObject):
self.LOGGER.addHandler(cl) self.LOGGER.addHandler(cl)
except IOError as e: except IOError as e:
print("Impossibile caricare la configurazione del logger: [{}]".format(e)) print("Impossibile caricare la configurazione del logger: [{}]".format(e))
except Exception as ee:
print(f"libFancylogger error: {e}")
pass pass
def debug(self, msg="Undefined Debug"): def debug(self, msg="Undefined Debug"):

View File

@@ -14,31 +14,34 @@ class bananaSPLITTER(QObject):
sendStatus = pyqtSignal(str) sendStatus = pyqtSignal(str)
def __init__(self, fileParams=None, logger=None): def __init__(self, fileParams=None, logger=None):
QObject.__init__(self) try:
self.fileParams = fileParams QObject.__init__(self)
self.log = logger self.fileParams = fileParams
self.rawFile = None self.log = logger
self.status = "first" self.rawFile = None
self.contentList = list() self.status = "first"
self.bodyCounter=0 self.contentList = list()
self.duplicateNumber=0 self.bodyCounter=0
#self.log.debug(f"Configurazione: \n {json.dumps(fileParams, indent=2)}") self.duplicateNumber=0
if fileParams is not None: #self.log.debug(f"Configurazione: \n {json.dumps(fileParams, indent=2)}")
self.log.debug(tr("Sto operando sul file: {}..").format(self.fileParams['name'])) if fileParams is not None:
self.paths = self.fileParams['paths'] self.log.debug(self.tr("Sto operando sul file: {}..").format(self.fileParams['name']))
self.docStruct = self.fileParams['docStruct'] self.paths = self.fileParams['paths']
self.settings = self.fileParams['settings'] self.docStruct = self.fileParams['docStruct']
self.fileName = self.fileParams['name'] self.settings = self.fileParams['settings']
self.outPath = self.paths['OUTworkPath']+slugify(self.fileName)+'/' self.fileName = self.fileParams['name']
self.beginTime = time.time() self.outPath = self.paths['OUTworkPath']+slugify(self.fileName)+'/'
pass self.beginTime = time.time()
else: pass
self.log.critical(tr("Non e' stato fornito il nome di alcun file da splittare!")) else:
self.log.critical(self.tr("Non e' stato fornito il nome di alcun file da splittare!"))
except Exception as e:
print(f"libSplit error: {e}")
pass pass
def run(self): def run(self):
self.log.info(tr("Nuovo SPLITTER su file: {}").format(self.fileName)) self.log.info(self.tr("Nuovo SPLITTER su file: {}").format(self.fileName))
self.sendStatus.emit(tr(f"Inizio {self.fileName}")) self.sendStatus.emit(self.tr(f"Inizio {self.fileName}"))
try: try:
self.openFile() self.openFile()
self.remEmptyLines() self.remEmptyLines()
@@ -48,13 +51,13 @@ class bananaSPLITTER(QObject):
self.splitFile() self.splitFile()
if self.settings['removeDuplicates']: if self.settings['removeDuplicates']:
self.log.info(tr("Controllo se ci sono dei duplicati..")) self.log.info(self.tr("Controllo se ci sono dei duplicati.."))
self.removeDuplicates() self.removeDuplicates()
else: else:
for idx, ff in enumerate(self.contentList): for idx, ff in enumerate(self.contentList):
ff['duplicate']=False ff['duplicate']=False
self.contentList[idx]=ff self.contentList[idx]=ff
self.log.warn(tr("Salto il controllo dei duplicati..")) self.log.warn(self.tr("Salto il controllo dei duplicati.."))
# se il parse e la rimozione dei duplicati e' andata bene # se il parse e la rimozione dei duplicati e' andata bene
# preparo e inizio il salvataggio # preparo e inizio il salvataggio
if os.path.exists(self.outPath): if os.path.exists(self.outPath):
@@ -63,7 +66,7 @@ class bananaSPLITTER(QObject):
for f in os.listdir(self.outPath): for f in os.listdir(self.outPath):
os.remove(self.outPath+f) os.remove(self.outPath+f)
else: else:
raise FileExistsError(tr("Non posso sovrascrivere i vecchi file, eliminali manualmente!")) raise FileExistsError(self.tr("Non posso sovrascrivere i vecchi file, eliminali manualmente!"))
else: else:
os.mkdir(self.outPath) os.mkdir(self.outPath)
#os.chdir(self.outPath) #os.chdir(self.outPath)
@@ -71,10 +74,10 @@ class bananaSPLITTER(QObject):
self.saveSeparate() self.saveSeparate()
if self.settings['saveBodyFile']: if self.settings['saveBodyFile']:
self.saveBody() self.saveBody()
self.log.info(tr("L'elaborazione del file ha richiesto {:4.2f} sec").format(time.time()-self.beginTime)) self.log.info(self.tr("L'elaborazione del file ha richiesto {:4.2f} sec").format(time.time()-self.beginTime))
except UnicodeDecodeError as ee: except UnicodeDecodeError as ee:
self.log.critical(tr("Il file [{}] contiene caratteri non compatibili con la codifica scelta! [{}]") self.log.critical(self.tr("Il file [{}] contiene caratteri non compatibili con la codifica scelta! [{}]")
.format(self.fileParams['name'],ee)) .format(self.fileParams['name'],ee))
except FileExistsError as fe: except FileExistsError as fe:
self.log.critical(fe) self.log.critical(fe)
@@ -86,12 +89,12 @@ class bananaSPLITTER(QObject):
def openFile(self): def openFile(self):
try: try:
#os.chdir(self.paths["INworkPath"]) #os.chdir(self.paths["INworkPath"])
self.log.info(tr("Carico il contenuto..")) self.log.info(self.tr("Carico il contenuto.."))
fp = open(self.paths["INworkPath"]+'/'+self.fileParams['name'], mode='r', encoding=self.settings['encoding']) fp = open(self.paths["INworkPath"]+'/'+self.fileParams['name'], mode='r', encoding=self.settings['encoding'])
self.rawFile = fp.readlines() self.rawFile = fp.readlines()
fp.close() fp.close()
except IOError as e: except IOError as e:
self.log.critical(tr("Impossibile aprire il file: {}! [{}]").format(self.fileName,e)) self.log.critical(self.tr("Impossibile aprire il file: {}! [{}]").format(self.fileName,e))
raise BaseException("OpenFile") raise BaseException("OpenFile")
os.rmdir(self.outPath) os.rmdir(self.outPath)
except Exception as ee: except Exception as ee:
@@ -99,7 +102,7 @@ class bananaSPLITTER(QObject):
pass pass
def remEmptyLines(self): def remEmptyLines(self):
self.log.info(tr("Elimino righe vuote e caratteri inutili..")) self.log.info(self.tr("Elimino righe vuote e caratteri inutili.."))
tempContent = [] tempContent = []
try: try:
for ll in self.rawFile: for ll in self.rawFile:
@@ -111,12 +114,12 @@ class bananaSPLITTER(QObject):
self.rawFile.append('\n') #linea vuota finale per essere sicuri di parsare bene self.rawFile.append('\n') #linea vuota finale per essere sicuri di parsare bene
return True return True
except: except:
self.log.error(tr("Errore inaspettato durante l'eliminazione delle righe vuote!")) self.log.error(self.tr("Errore inaspettato durante l'eliminazione delle righe vuote!"))
raise BaseException("DelLines") raise BaseException("DelLines")
del tempContent del tempContent
def newSplitFile(self): #porting del codice dal programma originale def newSplitFile(self): #porting del codice dal programma originale
self.log.info(tr("Individuo il contenuto..")) self.log.info(self.tr("Individuo il contenuto.."))
self.bodyCounter=0 self.bodyCounter=0
self.duplicateNumber=0 self.duplicateNumber=0
docNumber = 0 docNumber = 0
@@ -142,7 +145,7 @@ class bananaSPLITTER(QObject):
docDate['month']=self.docStruct['language']['dateWords'].index(docDate['month'])+1 docDate['month']=self.docStruct['language']['dateWords'].index(docDate['month'])+1
# dopo la data inizia il titolo, ma prima si cerca il nome del giornale # dopo la data inizia il titolo, ma prima si cerca il nome del giornale
except: except:
self.log.warn(tr("Ho trovato una riga ambigua.. potrebbe essere una data ma non so: [{}]"). format(l.strip('\r\n'))) self.log.warn(self.tr("Ho trovato una riga ambigua.. potrebbe essere una data ma non so: [{}]"). format(l.strip('\r\n')))
pass pass
elif lineWords[0].upper() in self.docStruct['language']['headWords']: elif lineWords[0].upper() in self.docStruct['language']['headWords']:
#cambio stato e inizializzo un nuovo documento da riempire #cambio stato e inizializzo un nuovo documento da riempire
@@ -166,13 +169,13 @@ class bananaSPLITTER(QObject):
else: else:
newsPaperName = self.settings['nameNotFoundStr'] newsPaperName = self.settings['nameNotFoundStr']
except: except:
self.log.warn(tr("E' successo qualcosa mentre stavo cercando il nome della pubblicazione,\ self.log.warn(self.tr("E' successo qualcosa mentre stavo cercando il nome della pubblicazione,\
controlla i file di uscita! [{}]").format(l.strip())) controlla i file di uscita! [{}]").format(l.strip()))
else: else:
newsPaperName = self.settings['nameNotFoundStr'] newsPaperName = self.settings['nameNotFoundStr']
newsName = False newsName = False
except IndexError: except IndexError:
self.log.error(tr("Errore inaspettato, contatta il tuo sviluppatore di fiducia!")) self.log.error(self.tr("Errore inaspettato, contatta il tuo sviluppatore di fiducia!"))
pass pass
elif self.status == 'head': elif self.status == 'head':
tempContent = list() tempContent = list()
@@ -184,7 +187,7 @@ class bananaSPLITTER(QObject):
#self.status = 'body' #self.status = 'body'
elif self.status == 'body': elif self.status == 'body':
if re.match(self.docStruct['endOfDocument'],l) is not None: #controlla se ci sono articoli che non hanno le parole chiave finali if re.match(self.docStruct['endOfDocument'],l) is not None: #controlla se ci sono articoli che non hanno le parole chiave finali
self.log.warn(tr("Ho individuato una separatore valido prima che si chiusesse l'articolo precedente, controlla i tuoi file in uscita!\n\ self.log.warn(self.tr("Ho individuato una separatore valido prima che si chiusesse l'articolo precedente, controlla i tuoi file in uscita!\n\
L'errore dovrebbe essere intorno all'articolo {} ma non sono sicuro! \n\t\t\t[{}]").format(docNumber, l.strip())) L'errore dovrebbe essere intorno all'articolo {} ma non sono sicuro! \n\t\t\t[{}]").format(docNumber, l.strip()))
self.status = 'tail' self.status = 'tail'
anomaly = True anomaly = True
@@ -211,18 +214,18 @@ class bananaSPLITTER(QObject):
self.bodyCounter +=1 self.bodyCounter +=1
pass pass
else: else:
self.log.critical(tr("Stato Interno Sconosciuto")) self.log.critical(self.tr("Stato Interno Sconosciuto"))
prevLine=l #salva sempre e comunque il contenuto della linea precedente prevLine=l #salva sempre e comunque il contenuto della linea precedente
pass pass
#ricerca terminata, espongo i risultati #ricerca terminata, espongo i risultati
self.log.info(tr("Nel file ho trovato {0} articoli..").format(self.bodyCounter)) self.log.info(self.tr("Nel file ho trovato {0} articoli..").format(self.bodyCounter))
if docSkipped > 0: if docSkipped > 0:
self.log.warn(tr("Attentione, LexisNexis ne ha saltati {} !!!").format(docSkipped)) self.log.warn(self.tr("Attentione, LexisNexis ne ha saltati {} !!!").format(docSkipped))
pass pass
pass pass
def splitFile(self): #porting del codice dal programma originale def splitFile(self): #porting del codice dal programma originale
self.log.info(tr("Individuo il contenuto..")) self.log.info(self.tr("Individuo il contenuto.."))
self.bodyCounter=0 self.bodyCounter=0
self.duplicateNumber=0 self.duplicateNumber=0
docNumber = 0 docNumber = 0
@@ -246,7 +249,7 @@ class bananaSPLITTER(QObject):
pass pass
else: else:
if self.settings["showSkipped"]: if self.settings["showSkipped"]:
self.log.warn(tr("Il conto dei documenti non torna! LexisNexis ne ha saltato qualcuno!\n Precedente:{0}-Attuale:{1}").format(docNumber,nn["current"])) self.log.warn(self.tr("Il conto dei documenti non torna! LexisNexis ne ha saltato qualcuno!\n Precedente:{0}-Attuale:{1}").format(docNumber,nn["current"]))
docSkipped+=1 docSkipped+=1
docNumber = nn["current"] docNumber = nn["current"]
except: except:
@@ -267,12 +270,12 @@ class bananaSPLITTER(QObject):
else: else:
newsPaperName = self.settings['nameNotFoundStr'] newsPaperName = self.settings['nameNotFoundStr']
except: except:
self.log.warn(tr("E' successo qualcosa mentre stavo cercando il nome della pubblicazione,\ self.log.warn(self.tr("E' successo qualcosa mentre stavo cercando il nome della pubblicazione,\
controlla i file di uscita! [{}]").format(prevLine.strip())) controlla i file di uscita! [{}]").format(prevLine.strip()))
else: else:
newsPaperName = self.settings['nameNotFoundStr'] newsPaperName = self.settings['nameNotFoundStr']
except: except:
self.log.warn(tr("Ho trovato una riga ambigua.. potrebbe essere una data ma non so: [{}]").format(l.strip('\r\n'))) self.log.warn(self.tr("Ho trovato una riga ambigua.. potrebbe essere una data ma non so: [{}]").format(l.strip('\r\n')))
pass pass
elif lineWords[0] in self.docStruct['language']['headWords']: elif lineWords[0] in self.docStruct['language']['headWords']:
#cambio stato e inizializzo un nuovo documento da riempire #cambio stato e inizializzo un nuovo documento da riempire
@@ -286,7 +289,7 @@ class bananaSPLITTER(QObject):
if titleBegin: if titleBegin:
title += l.strip().capitalize() title += l.strip().capitalize()
except IndexError: except IndexError:
self.log.error(tr("Errore inaspettato, contatta il tuo sviluppatore di fiducia!")) self.log.error(self.tr("Errore inaspettato, contatta il tuo sviluppatore di fiducia!"))
pass pass
elif self.status == 'head': elif self.status == 'head':
tempContent = list() tempContent = list()
@@ -304,7 +307,7 @@ class bananaSPLITTER(QObject):
self.status = 'tail' self.status = 'tail'
anomaly = False anomaly = False
if docSep.match(l) is not None: #controlla se ci sono articoli che non hanno le parole chiave finali if docSep.match(l) is not None: #controlla se ci sono articoli che non hanno le parole chiave finali
self.log.warn(tr("Ho individuato una separatore valido prima che si chiusesse l'articolo precedente, controlla i tuoi file in uscita!\n\ self.log.warn(self.tr("Ho individuato una separatore valido prima che si chiusesse l'articolo precedente, controlla i tuoi file in uscita!\n\
L'errore dovrebbe essere intorno all'articolo {} ma non sono sicuro! \n\t\t[{}]").format(docNumber, l.strip())) L'errore dovrebbe essere intorno all'articolo {} ma non sono sicuro! \n\t\t[{}]").format(docNumber, l.strip()))
self.status = 'tail' self.status = 'tail'
anomaly = True anomaly = True
@@ -321,13 +324,13 @@ class bananaSPLITTER(QObject):
self.bodyCounter +=1 self.bodyCounter +=1
pass pass
else: else:
self.log.critical(tr("Stato Interno Sconosciuto")) self.log.critical(self.tr("Stato Interno Sconosciuto"))
prevLine=l #salva sempre e comunque il contenuto della linea precedente prevLine=l #salva sempre e comunque il contenuto della linea precedente
pass pass
#ricerca terminata, espongo i risultati #ricerca terminata, espongo i risultati
self.log.info(tr("Nel file ho trovato {0} articoli..").format(self.bodyCounter)) self.log.info(self.tr("Nel file ho trovato {0} articoli..").format(self.bodyCounter))
if docSkipped > 0: if docSkipped > 0:
self.log.warn(tr("Attentione, LexisNexis ne ha saltati {} !!!").format(docSkipped)) self.log.warn(self.tr("Attentione, LexisNexis ne ha saltati {} !!!").format(docSkipped))
pass pass
pass pass
@@ -344,18 +347,18 @@ class bananaSPLITTER(QObject):
if ff['title'] not in duplicateList: if ff['title'] not in duplicateList:
duplicateList.append(ff['title']) duplicateList.append(ff['title'])
if self.settings['showRemovedDuplicates']: if self.settings['showRemovedDuplicates']:
self.log.info(tr("Duplicato: {}").format(ff['title'].strip())) self.log.info(self.tr("Duplicato: {}").format(ff['title'].strip()))
ff['duplicate'] = True ff['duplicate'] = True
self.contentList[idx]=ff self.contentList[idx]=ff
self.duplicateNumber+=1 self.duplicateNumber+=1
self.log.info(tr("Ho rimosso {} duplicati di {} articoli..").format(self.duplicateNumber, len(duplicateList))) self.log.info(self.tr("Ho rimosso {} duplicati di {} articoli..").format(self.duplicateNumber, len(duplicateList)))
pass pass
def saveSeparate(self): def saveSeparate(self):
outFileCounter = 0 outFileCounter = 0
self.paths['OUTworkPath']=self.paths['OUTworkPath']+slugify(self.fileName) self.paths['OUTworkPath']=self.paths['OUTworkPath']+slugify(self.fileName)
self.log.info(tr("Salvo gli articoli in file separati...")) self.log.info(self.tr("Salvo gli articoli in file separati..."))
self.log.debug(tr("Persorso: {0}").format(self.outPath)) self.log.debug(self.tr("Persorso: {0}").format(self.outPath))
for ff in self.contentList: for ff in self.contentList:
try: try:
if ff['duplicate'] == False: if ff['duplicate'] == False:
@@ -371,20 +374,20 @@ class bananaSPLITTER(QObject):
out.close() out.close()
outFileCounter+=1 outFileCounter+=1
except IOError as e: except IOError as e:
self.log.error(tr("Qualcosa e\' andato storto, non riesco a scrivere il file: {}").format(e)) self.log.error(self.tr("Qualcosa e\' andato storto, non riesco a scrivere il file: {}").format(e))
continue continue
except KeyError as ke: except KeyError as ke:
self.log.error(tr(f"Chiave {ke} non trovata per:{outFileCounter} {ff['title']} ")) self.log.error(self.tr(f"Chiave {ke} non trovata per:{outFileCounter} {ff['title']} "))
except Exception as ee: except Exception as ee:
traceback.print_exc() traceback.print_exc()
self.log.error(tr(f"Errore generale nel salvataggio: {ee}")) self.log.error(self.tr(f"Errore generale nel salvataggio: {ee}"))
if outFileCounter < self.bodyCounter: if outFileCounter < self.bodyCounter:
self.log.error(tr("Ho salvato meno file rispetto a quelli trovati!")) self.log.error(self.tr("Ho salvato meno file rispetto a quelli trovati!"))
pass pass
def saveBody(self): def saveBody(self):
self.log.info(tr('Salvo gli articoli in un singolo file vicino agli originali...')) self.log.info(self.tr('Salvo gli articoli in un singolo file vicino agli originali...'))
self.log.debug(tr('Persorso: {0}').format(self.outPath)) self.log.debug(self.tr('Persorso: {0}').format(self.outPath))
#os.chdir(self.outPath) #os.chdir(self.outPath)
try: try:
fName=slugify(self.fileName) fName=slugify(self.fileName)
@@ -394,9 +397,9 @@ class bananaSPLITTER(QObject):
out.write(fileContent.encode(self.settings['encoding'])) out.write(fileContent.encode(self.settings['encoding']))
out.close() out.close()
except IOError as e: except IOError as e:
self.log.error(tr("Qualcosa e\' andato storto, non riesco a scrivere il file: {}").format(e)) self.log.error(self.tr("Qualcosa e\' andato storto, non riesco a scrivere il file: {}").format(e))
except Exception as ee: except Exception as ee:
self.log.error(tr(f"Errore generale nel salvataggio: {ee}")) self.log.error(self.tr(f"Errore generale nel salvataggio: {ee}"))
pass pass

BIN
bananaSPLIT/logo.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -5,20 +5,29 @@ Created on 24 nov 2019
''' '''
import os, glob, subprocess import os, glob, subprocess
if __name__ == '__main__': def updateInterfaces():
print(os.getcwd())
uifiles = glob.glob("*.ui") uifiles = glob.glob("*.ui")
for f in uifiles: for f in uifiles:
command = r"pyuic5.exe "+f command = r"pyuic5.exe "+f
print(command) print(command)
rv = subprocess.run(command, capture_output=True) rv = subprocess.run(command, capture_output=True)
fp = open(r".\compiledUI\\"+f.replace("ui","py"), 'w') fp = open(r".\\CompiledUI\\"+f.replace("ui","py"), 'w')
fp.write(str(rv.stdout, encoding='utf-8').replace('\r', '')) fp.write(str(rv.stdout, encoding='utf-8').replace('\r', ''))
fp.close() fp.close()
command = r'pyrcc5.exe '+'resources/resources.qrc'
def updateResources():
command = r'pyrcc5.exe '+'.\\resources\\resources.qrc'
print (command) print (command)
rv = subprocess.run(command, capture_output=True) rv = subprocess.run(command, capture_output=True)
fp = open(r".\compiledUI\\resources_rc.py", 'w') fp = open(r".\\compiledUI\\resources_rc.py", 'w')
fp.write(str(rv.stdout, encoding='utf-8').replace('\r', '')) fp.write(str(rv.stdout, encoding='utf-8').replace('\r', ''))
fp.close() fp.close()
if __name__ == '__main__':
os.chdir("..\\UserInterface")
print(os.getcwd())
updateInterfaces()
updateResources()
pass pass

View File

@@ -0,0 +1,18 @@
'''
Created on 10 apr 2020
@author: Emanuele Trabattoni
'''
import os,glob
import subprocess
from bananaSPLIT.scripts.compileUI import updateResources
if __name__ == '__main__':
tsfiles = glob.glob("..\\UserInterface\\resources\\translations\\*.ts")
for ts in tsfiles:
tso = "..\\UserInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ts)[1]))[0]+".qm"
subprocess.run(f'lrelease.exe {ts} -qm {tso}')
os.chdir("..\\UserInterface")
#print(os.getcwd())
#updateResources()
pass

View File

@@ -0,0 +1,20 @@
'''
Created on 10 apr 2020
@author: Emanuele Trabattoni
'''
import os,glob
import subprocess
langs = ["en"]
if __name__ == '__main__':
uifiles = glob.glob("..\\*\\*.ui", recursive=True)
pyfiles = ['..\\guimain.py','..\\libbananasplit\\libsplit.py','..\\libbananasplit\\libconfload.py']
for l in langs:
for ui in uifiles:
uio = "..\\UserInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ui)[1]))[0]+f"_{l}.ts"
subprocess.run(f'lupdate.exe {ui} -ts {uio}')
for py in pyfiles:
pyo = "..\\UserInterface\\resources\\translations\\"+os.path.splitext((os.path.split(py)[1]))[0]+f"_{l}.ts"
print(subprocess.run(f'pylupdate5.exe {py} -ts {pyo}'))
pass