diff --git a/i18n/manuskript.pro b/i18n/manuskript.pro index 5df948d..a814939 100644 --- a/i18n/manuskript.pro +++ b/i18n/manuskript.pro @@ -1,6 +1,5 @@ FORMS += ../manuskript/ui/revisions_ui.ui FORMS += ../manuskript/ui/mainWindow.ui -FORMS += ../manuskript/ui/compileDialog_ui.ui FORMS += ../manuskript/ui/search_ui.ui FORMS += ../manuskript/ui/tools/frequency_ui.ui FORMS += ../manuskript/ui/welcome_ui.ui @@ -38,7 +37,6 @@ SOURCES += ../manuskript/models/worldModel.py SOURCES += ../manuskript/settingsWindow.py SOURCES += ../manuskript/ui/cheatSheet.py SOURCES += ../manuskript/ui/collapsibleDockWidgets.py -SOURCES += ../manuskript/ui/compileDialog.py SOURCES += ../manuskript/ui/editors/fullScreenEditor.py SOURCES += ../manuskript/ui/editors/locker.py SOURCES += ../manuskript/ui/editors/mainEditor.py diff --git a/i18n/manuskript_es.qm b/i18n/manuskript_es.qm index 1207589..e09c6aa 100644 Binary files a/i18n/manuskript_es.qm and b/i18n/manuskript_es.qm differ diff --git a/i18n/manuskript_es.ts b/i18n/manuskript_es.ts index 3b8e608..2d0ce7c 100644 --- a/i18n/manuskript_es.ts +++ b/i18n/manuskript_es.ts @@ -1,6 +1,128 @@ - - + + + Export + + + Default exporter, provides basic formats used by other exporters. + + + + + Basic HTML output using python module 'markdown'. + + + + + python module 'markdown'. + + + + + <p>A superset of markdown.</p> + <p>Website: <a href="http://fletcherpenney.net/multimarkdown/">http://fletcherpenney.net/multimarkdown/</a></p> + + + + + + A little known format modestly used. You know, web sites for example. + + + + + <p>A universal document convertor. Can be used to convert markdown to a wide range of other + formats.</p> + <p>Website: <a href="http://www.pandoc.org">http://pandoc.org/</a></p> + + + + + + HTML + HTML + + + + Source + + + + + Just like plain text, excepts adds markdown titles. + Presupposes that texts are formatted in markdown. + + + + + Preview with highlighter. + + + + + Plain text + + + + + Simplest export to plain text. Allows you to use your own markup not understood + by manuskript, for example <a href='www.fountain.io'>Fountain</a>. + + + + + ExportersManager + + + Manage Exporters + + + + + Manuskript + + + + + Description + Descripción + + + + Offers export to + + + + + Status + Estado + + + + Status: + Estado: + + + + Version: + + + + + Path: + Ruta: + + + + ... + ... + + + + {HelpText} + + + FrequencyAnalyzer @@ -297,9 +419,8 @@ Fuente del conflicto - + Outline - Need to search a good word for this one @@ -443,7 +564,7 @@ E&stado... - + Tree Árbol @@ -453,7 +574,7 @@ &Simple - + Index cards Fichas @@ -503,176 +624,176 @@ El archivo {} no existe. Inténtelo de nuevo. - + Project {} saved. Proyecto {} guardado. - + Project {} loaded. Proyecto {} cargado. - + Project {} loaded with some errors: Proyecto {} cargado con algunos errores: - + * {} wasn't found in project file. * {} no se encontró en el archivo del proyecto. - + Project {} loaded with some errors. Proyecto {} cargado con algunos errores. - + (~{} pages) (~{} páginas) - + Words: {}{} Palabras: {}{} - + Book summary Resumen del libro - + Project tree Árbol del proyecto - + Metadata Metadata - + Story line Historia - + Enter infos about your book, and yourself. Introduzca información acerca de tu libro y sobre ti mismo. - + The basic situation, in the form of a 'What if...?' question. Ex: 'What if the most dangerous evil wizard could wasn't abled to kill a baby?' (Harry Potter) La situación básica en la forma de una pregunta tipo "¿Que pasaría sí...?'. Ej:"¿Que pasaría si el más peligroso hechicero malvado no pudiera ser capaz de matar un bebe?" (Harry Potter) - + Take time to think about a one sentence (~50 words) summary of your book. Then expand it to a paragraph, then to a page, then to a full summary. Tómate tu tiempo para pensar en resumen de una linea (apróximadamente 50 palabras) de tu libro. Después expándelo hasta un párrafo, después hasta una página, y por último hasta un resumen completo. - + Create your characters. Crea tus personajes. - + Develop plots. Desarrolla las tramas. - + Create the outline of your masterpiece. Crea el esquema de tu obra maestra. - + Write. Escribe. - + Debug infos. Sometimes useful. Depura la información. A veces es útil. - + Dictionary Diccionario - + Install PyEnchant to use spellcheck Instala PyEnchant para usar el chequeo ortográfico - + Nothing Ninguno - + POV - + Label Etiqueta - + Progress Progreso - + Compile Compilar - + Icon color Color del icono - + Text color Color del texto - + Background color Color del Fondo - + Icon Icono - + Text Texto - + Background Fondo - + Border Borde - + Corner Esquina @@ -1228,10 +1349,20 @@ SpellAction - + Spelling Suggestions Sugerencias de Ortografía + + + &Add to dictionary + + + + + &Remove from custom dictionary + + app @@ -1412,63 +1543,9 @@ Dock Widgets Toolbar - I must search the oficial translation for QT DockWidgets - - compileDialog - - - Dialog - Dialogo - - - - Compile as: - Compilar como: - - - - Folder: - Carpeta: - - - - ... - ... - - - - File name: - Nombre de archivo: - - - - Compile - Compilar - - - - Cancel - Cancelar - - - - Working... - Trabajando... - - - - Chose export folder - Elige carpeta para exportar - - - - Chose export target - Elige nombre para exportar - - completer @@ -1501,29 +1578,268 @@ exporter - - HTML - HTML + + Export + - - HTML Document (*.html) - Documento HTML (*.html) + + Export to: + - - Arborescence - + + Manage exporters + - - OpenDocument (LibreOffice) - + + Preview + - - OpenDocument (*.odt) - + + Settings + Preferencias + + + + exporterDialog + + + {} (not implemented yet) + + + + + exporterSettings + + + Form + + + + + Content + + + + + Decide here what will be included in the final export. + + + + + Type + + + + + Title + Título + + + + Text + Texto + + + + I need more granularity + + + + + Fi&lters + + + + + <html><head/><body><p>Filters what items will be included in the final export.<br/><span style=" color:#773333;">(Not fully implemented yet.)</span></p></body></html> + + + + + Ignore compile status (include all items) + + + + + Subitems of: + + + + + Labels + Etiquetas + + + + Status + Estado + + + + Separations + + + + + Between folders: + + + + + Empty line + + + + + Custom + + + + + Between texts: + + + + + Between folder and text: + + + + + Between text and folder: + + + + + Transformations + + + + + Typographic replacements: + + + + + Replace ... with … + + + + + Replace --- with — + + + + + Replace double quotes (") with: + + + + + Replace single quotes (') with: + + + + + Remove multiple spaces + + + + + Custom replacements: + + + + + Enabled + + + + + Replace + + + + + With + + + + + RegExp + + + + + If checked, uses regular expression for replacement. If unchecked, replaced as plain text. + + + + + Preview + + + + + Font + Fuente + + + + Font: + Fuente: + + + + Font size: + + + + + Folder + + + + + {}Level {} folder + + + + + {}Level {} text + + + + + exportersManager + + + Installed + + + + + Not found + + + + + {} not found. Install it, or set path manually. + + + + + <b>Status:</b> uninstalled. + + + + + <b>Requires:</b> + @@ -1689,6 +2005,14 @@ {} palabras + + markdownSettings + + + Markdown + + + metadataView @@ -1826,12 +2150,12 @@ outlineModel - + {} words / {} ({}) {} palabras / {} ({}) - + {} words {} palabras @@ -1914,7 +2238,6 @@ Resolution - without compilating I don't know if it means 'resolución' or 'propósito' Resolución @@ -2573,12 +2896,12 @@ - + Show Plots Ver Tramas - + Show Characters Ver Personajes @@ -2594,7 +2917,7 @@ textEditView - + Various Varios @@ -2708,27 +3031,27 @@ Vacía - + Novel Novela - + Novella Novela Corta - + Short Story Cuento - + Research paper Árticulo de investigación - + Demo projects Proyectos de ejemplo @@ -2763,133 +3086,132 @@ Crear - + Open project Abrir proyecto - + Manuskript project (*.msk);;All files (*) Proyecto de Manuskript (*.msk);;Todos los ficheros (*) - + Save project as... Guardar proyecto como... - + Manuskript project (*.msk) Proyecto de Manuskript (*.msk) - + Create New Project Crear un Proyecto Nuevo - + Empty fiction Ficción vacía - + Chapter Capítulo - + Scene Escena - + Trilogy Trilogía - + Book Libro - + Section Sección - + Empty non-fiction No-Ficción vacía - + words each. - I need to see the context - + of de - + Text Texto - + Something Algo - + <b>Total:</b> {} words (~ {} pages) <b>Total:</b> {} palabras (~ {} páginas) - + Fiction Ficción - + Non-fiction No-ficción - + Idea - + Note Nota - + Research Investigación - + TODO POR HACER - + First draft Primer borrador - + Second draft Segundo borrador - + Final diff --git a/i18n/manuskript_fr.qm b/i18n/manuskript_fr.qm index cd51be1..ec0d026 100644 Binary files a/i18n/manuskript_fr.qm and b/i18n/manuskript_fr.qm differ diff --git a/i18n/manuskript_fr.ts b/i18n/manuskript_fr.ts index 82bee14..5a10108 100644 --- a/i18n/manuskript_fr.ts +++ b/i18n/manuskript_fr.ts @@ -1,6 +1,129 @@ + + Export + + + Default exporter, provides basic formats used by other exporters. + + + + + Basic HTML output using python module 'markdown'. + + + + + python module 'markdown'. + + + + + <p>A superset of markdown.</p> + <p>Website: <a href="http://fletcherpenney.net/multimarkdown/">http://fletcherpenney.net/multimarkdown/</a></p> + + + + + + A little known format modestly used. You know, web sites for example. + + + + + <p>A universal document convertor. Can be used to convert markdown to a wide range of other + formats.</p> + <p>Website: <a href="http://www.pandoc.org">http://pandoc.org/</a></p> + + + + + + HTML + HTML + + + + Source + + + + + Just like plain text, excepts adds markdown titles. + Presupposes that texts are formatted in markdown. + + + + + Preview with highlighter. + + + + + Plain text + + + + + Simplest export to plain text. Allows you to use your own markup not understood + by manuskript, for example <a href='www.fountain.io'>Fountain</a>. + + + + + ExportersManager + + + Manage Exporters + + + + + Manuskript + + + + + Description + Description + + + + Offers export to + + + + + Status + Status + + + + Status: + Status: + + + + Version: + + + + + Path: + Chemin: + + + + ... + ... + + + + {HelpText} + + + FrequencyAnalyzer @@ -252,7 +375,7 @@ Étapes de résolution - + Outline Plan @@ -332,7 +455,7 @@ Et si...? - + Index cards Cartes @@ -342,12 +465,12 @@ F9 - + Tree Arbre - + Compile Compilation @@ -392,152 +515,152 @@ Le fichier {} n'existe pas. Essayez encore. - + Project {} saved. Le projet {} a été enregistré. - + Project {} loaded. Le projet {} a été chargé. - + Project {} loaded with some errors: Le projet {} a été chargé, avec des erreurs: - + * {} wasn't found in project file. * {} n'a pas été trouvé dans le fichier du projet. - + Project {} loaded with some errors. Le projet {} a été chargé avec des erreurs. - + (~{} pages) (~{} pages) - + Words: {}{} Mots: {}{} - + Book summary Résumé du livre - + Project tree Arborescence - + Metadata Métadonnées - + Enter infos about your book, and yourself. Entrez toutes les informations relatives au livre, ainsi qu'à vous. - + Create your characters. Créez ici vos personnage. - + Develop plots. Développez vos intrigues. - + Create the outline of your masterpiece. Créez le plan de votre chef-d'œuvre. - + Write. Écrivez. - + Debug infos. Sometimes useful. Des infos pour débugger des fois pendant qu'on code c'est utile. - + Dictionary Dictionnaire - + Install PyEnchant to use spellcheck Installez PyEnchant pour profiter du correcteur orthographique - + Nothing Rien - + POV POV - + Label Label - + Progress Progrès - + Icon color Couleur de l'icone - + Text color Couleur du texte - + Background color Couleur de l'arrière-plan - + Icon Icone - + Text Texte - + Background Arrière-plan - + Border Bordure - + Corner Coin @@ -657,18 +780,18 @@ &Analyseur de fréquence - + Story line - + The basic situation, in the form of a 'What if...?' question. Ex: 'What if the most dangerous evil wizard could wasn't abled to kill a baby?' (Harry Potter) La situation de base, sous la forme d'une question "Et si…?". Par exemple: "Et si le plus dangereux des sorciers maléfiques n'était pas capable de tuer un petit bébé?" (Harry Potter) - + Take time to think about a one sentence (~50 words) summary of your book. Then expand it to a paragraph, then to a page, then to a full summary. Prenez le temps de penser à une phrase (~50 mots) qui résume votre livre. Ensuite, développez-là en un paragraphe, puis une page, puis un résumé complet. @@ -1226,10 +1349,20 @@ des lignes: SpellAction - + Spelling Suggestions Suggestions + + + &Add to dictionary + &Ajouter au dictionnaire + + + + &Remove from custom dictionary + &Supprimer du dictionnaire perso + app @@ -1413,59 +1546,6 @@ des lignes: - - compileDialog - - - Dialog - Dialog - - - - Compile as: - Compiler comme: - - - - Folder: - Dossier: - - - - ... - ... - - - - File name: - Fichier: - - - - Compile - Compiler - - - - Cancel - Annuler - - - - Working... - En cours... - - - - Chose export folder - Choisir le dossier - - - - Chose export target - Choisir la cible - - completer @@ -1498,29 +1578,268 @@ des lignes: exporter - - HTML - HTML + + Export + Exporter - - HTML Document (*.html) - Document HTML (*.html) + + Export to: + Exporter vers: - - Arborescence - Arborescence + + Manage exporters + Gérer les exporteurs - - OpenDocument (LibreOffice) - OpenDocument (LibreOffice) + + Preview + Prévisualiser - - OpenDocument (*.odt) - OpenDocument (*.odt) + + Settings + Réglages + + + + exporterDialog + + + {} (not implemented yet) + {} (pas encore implémenté) + + + + exporterSettings + + + Form + Form + + + + Content + Contenu + + + + Decide here what will be included in the final export. + Choisissez ici ce qui sera inclu dans l'export. + + + + Type + Type + + + + Title + Titre + + + + Text + Texte + + + + I need more granularity + J'ai besoin de plus de finesse + + + + Fi&lters + Fi&ltres + + + + <html><head/><body><p>Filters what items will be included in the final export.<br/><span style=" color:#773333;">(Not fully implemented yet.)</span></p></body></html> + <html><head/><body><p>Filtrer les éléments qui seront inclus dans l'export.<br/><span style=" color:#773333;">(Pas encore pleinement implémenté.)</span></p></body></html> + + + + Ignore compile status (include all items) + Ignorer le statut de compilation (i.e. inclure tous les éléments) + + + + Subitems of: + Sous-éléments de: + + + + Labels + Labels + + + + Status + Status + + + + Separations + Séparations + + + + Between folders: + Entre les dossiers: + + + + Empty line + Ligne vide + + + + Custom + Personnalisé + + + + Between texts: + Entre les textes: + + + + Between folder and text: + Entre dossier et texte: + + + + Between text and folder: + Entre texte et dossier: + + + + Transformations + Transformations + + + + Typographic replacements: + Corrections typographiques: + + + + Replace ... with … + Remplacer ... avec … + + + + Replace --- with — + Remplacer --- avec — + + + + Replace double quotes (") with: + Remplacer les guillements doubles (") avec: + + + + Replace single quotes (') with: + Remplacer les guillements simples (') avec: + + + + Remove multiple spaces + Supprimer les espaces doubles + + + + Custom replacements: + Remplacements personnalisés + + + + Enabled + Activé + + + + Replace + Remplacer + + + + With + Par + + + + RegExp + RegExp + + + + If checked, uses regular expression for replacement. If unchecked, replaced as plain text. + Si la case est cochée, une expression régulière est utilisée pour le remplacement. Sinon, le remplacement est effectué en texte simple. + + + + Preview + Prévisualiser + + + + Font + Police + + + + Font: + Police: + + + + Font size: + Taille de la police: + + + + Folder + Dosser + + + + {}Level {} folder + {}Dossier de niveau {} + + + + {}Level {} text + {}Texte de niveau {} + + + + exportersManager + + + Installed + Installé + + + + Not found + Pas trouvé + + + + {} not found. Install it, or set path manually. + {} n'a pas été trouvé. Installé le, ou indiquez l'emplacement manuellement. + + + + <b>Status:</b> uninstalled. + <b>Status:</b> non-installé. + + + + <b>Requires:</b> + <b>Nécessite:</b> @@ -1686,6 +2005,14 @@ des lignes: F11 + + markdownSettings + + + Markdown + Markdown + + metadataView @@ -1858,12 +2185,12 @@ des lignes: Cible - + {} words / {} ({}) {} mots / {} ({}) - + {} words {} mots @@ -2569,12 +2896,12 @@ des lignes: - - + Show Plots Montrer les intrigues - + Show Characters Montrer les personnages @@ -2590,7 +2917,7 @@ des lignes: textEditView - + Various Différentes valeurs @@ -2704,27 +3031,27 @@ des lignes: Vide - + Novel Roman - + Novella Nouvelle - + Short Story Histoire courte - + Research paper Article académique - + Demo projects Projets de démonstration @@ -2759,132 +3086,132 @@ des lignes: Créer - + Open project Ouvrir le projet - + Manuskript project (*.msk) Projet Manuskript (*.msk) - + Save project as... Enregistrer le projer sous... - + Create New Project Créer un nouveau projet - + Chapter Chapitre - + Scene Scène - + Trilogy Trilogie - + Book Livre - + Section Section - + words each. mots chacun(e). - + of de - + Text Texte - + Something Quelque chose - + <b>Total:</b> {} words (~ {} pages) <b>Total:</b> {} mots (~ {} pages) - + Idea Idée - + Note Note - + Research Recherche - + TODO TODO - + First draft Premier brouillon - + Second draft Second brouillon - + Final Final - + Manuskript project (*.msk);;All files (*) Projet manuskript (*.msk);;Tous les fichiers (*) - + Empty fiction Fiction vide - + Empty non-fiction Non-fiction vide - + Fiction Fiction - + Non-fiction Non-fiction diff --git a/manuskript/exporter/manuskript/HTML.py b/manuskript/exporter/manuskript/HTML.py index 824b949..12824c7 100644 --- a/manuskript/exporter/manuskript/HTML.py +++ b/manuskript/exporter/manuskript/HTML.py @@ -13,9 +13,9 @@ except ImportError: MD = None class HTML(markdown): - name = qApp.tr("HTML") - description = qApp.tr("Basic HTML output using python module 'markdown'.") - InvalidBecause = qApp.tr("python module 'markdown'.") + name = "HTML" + description = qApp.translate("Export", "Basic HTML output using python module 'markdown'.") + InvalidBecause = qApp.translate("Export", "python module 'markdown'.") @classmethod def isValid(cls): @@ -47,8 +47,8 @@ class HTML(markdown): w1.setFrameShape(QFrame.NoFrame) w1.setReadOnly(True) w2 = QWebView() - t.addTab(w2, qApp.tr("HTML")) - t.addTab(w1, qApp.tr("Source")) + t.addTab(w2, qApp.translate("Export", "HTML")) + t.addTab(w1, qApp.translate("Export", "Source")) return t @classmethod diff --git a/manuskript/exporter/manuskript/__init__.py b/manuskript/exporter/manuskript/__init__.py index 5cec71e..4d7cc82 100644 --- a/manuskript/exporter/manuskript/__init__.py +++ b/manuskript/exporter/manuskript/__init__.py @@ -11,7 +11,7 @@ from manuskript.exporter.manuskript.plainText import plainText class manuskriptExporter(basicExporter): name = "Manuskript" - description = qApp.tr("Default exporter, provides basic formats used by other exporters.") + description = qApp.translate("Export", "Default exporter, provides basic formats used by other exporters.") exportTo = [ plainText, markdown, diff --git a/manuskript/exporter/manuskript/markdown.py b/manuskript/exporter/manuskript/markdown.py index a378d3a..d09277a 100644 --- a/manuskript/exporter/manuskript/markdown.py +++ b/manuskript/exporter/manuskript/markdown.py @@ -10,8 +10,8 @@ from manuskript.ui.exporters.manuskript.plainTextSettings import exporterSetting class markdown(plainText): - name = qApp.tr("Markdown") - description = qApp.tr("""Just like plain text, excepts adds markdown titles. + name = "Markdown" + description = qApp.translate("Export", """Just like plain text, excepts adds markdown titles. Presupposes that texts are formatted in markdown.""") @classmethod @@ -73,7 +73,7 @@ class markdownSettings(exporterSettings): w = self.toolBox.widget(self.toolBox.count() - 1) self.grpMarkdown = QGroupBox(self.tr("Markdown")) self.grpMarkdown.setLayout(QVBoxLayout()) - self.chkMarkdownHighlighter = QCheckBox(self.tr("Preview with highlighter.")) + self.chkMarkdownHighlighter = QCheckBox(qApp.translate("Export", "Preview with highlighter.")) self.grpMarkdown.layout().addWidget(self.chkMarkdownHighlighter) w.layout().insertWidget(w.layout().count() - 1, self.grpMarkdown) diff --git a/manuskript/exporter/manuskript/plainText.py b/manuskript/exporter/manuskript/plainText.py index e30609f..114be95 100644 --- a/manuskript/exporter/manuskript/plainText.py +++ b/manuskript/exporter/manuskript/plainText.py @@ -11,8 +11,8 @@ from manuskript.ui.exporters.manuskript.plainTextSettings import exporterSetting class plainText(basicFormat): - name = qApp.tr("Plain text") - description = qApp.tr("""Simplest export to plain text. Allows you to use your own markup not understood + name = qApp.translate("Export", "Plain text") + description = qApp.translate("Export", """Simplest export to plain text. Allows you to use your own markup not understood by manuskript, for example Fountain.""") implemented = True requires = { diff --git a/manuskript/exporter/mmd.py b/manuskript/exporter/mmd.py index cd9f6f1..6cdad74 100644 --- a/manuskript/exporter/mmd.py +++ b/manuskript/exporter/mmd.py @@ -8,7 +8,7 @@ from manuskript.exporter.basic import basicExporter, basicFormat class mmdExporter(basicExporter): name = "MultiMarkdown" - description = qApp.tr("""

A superset of markdown.

+ description = qApp.translate("Export", """

A superset of markdown.

Website: http://fletcherpenney.net/multimarkdown/

""") exportTo = [ diff --git a/manuskript/exporter/pandoc.py b/manuskript/exporter/pandoc.py index 9a4d6ee..603f4ec 100644 --- a/manuskript/exporter/pandoc.py +++ b/manuskript/exporter/pandoc.py @@ -6,7 +6,7 @@ from manuskript.exporter.basic import basicExporter, basicFormat class HTMLFormat(basicFormat): name = "HTML" - description = qApp.tr("A little known format modestly used. You know, web sites for example.") + description = qApp.translate("Export", "A little known format modestly used. You know, web sites for example.") implemented = False requires = { "Settings": True, @@ -17,7 +17,7 @@ class HTMLFormat(basicFormat): class pandocExporter(basicExporter): name = "Pandoc" - description = qApp.tr("""

A universal document convertor. Can be used to convert markdown to a wide range of other + description = qApp.translate("Export", """

A universal document convertor. Can be used to convert markdown to a wide range of other formats.

Website: http://pandoc.org/

""") diff --git a/manuskript/ui/exporters/manuskript/plainTextSettings_ui.py b/manuskript/ui/exporters/manuskript/plainTextSettings_ui.py index eb9930c..77598ba 100644 --- a/manuskript/ui/exporters/manuskript/plainTextSettings_ui.py +++ b/manuskript/ui/exporters/manuskript/plainTextSettings_ui.py @@ -161,6 +161,7 @@ class Ui_exporterSettings(object): self.horizontalLayout.addWidget(self.cmbSepFF) self.txtSepFF = QtWidgets.QLineEdit(self.separations) self.txtSepFF.setEnabled(False) + self.txtSepFF.setText("\\n") self.txtSepFF.setObjectName("txtSepFF") self.horizontalLayout.addWidget(self.txtSepFF) self.verticalLayout_8.addLayout(self.horizontalLayout) @@ -210,6 +211,7 @@ class Ui_exporterSettings(object): self.horizontalLayout_2.addWidget(self.cmbSepTT) self.txtSepTT = QtWidgets.QLineEdit(self.separations) self.txtSepTT.setEnabled(False) + self.txtSepTT.setText("\\n") self.txtSepTT.setObjectName("txtSepTT") self.horizontalLayout_2.addWidget(self.txtSepTT) self.verticalLayout_8.addLayout(self.horizontalLayout_2) @@ -259,6 +261,7 @@ class Ui_exporterSettings(object): self.horizontalLayout_3.addWidget(self.cmbSepFT) self.txtSepFT = QtWidgets.QLineEdit(self.separations) self.txtSepFT.setEnabled(False) + self.txtSepFT.setText("\\n") self.txtSepFT.setObjectName("txtSepFT") self.horizontalLayout_3.addWidget(self.txtSepFT) self.verticalLayout_8.addLayout(self.horizontalLayout_3) @@ -308,6 +311,7 @@ class Ui_exporterSettings(object): self.horizontalLayout_4.addWidget(self.cmbSepTF) self.txtSepTF = QtWidgets.QLineEdit(self.separations) self.txtSepTF.setEnabled(False) + self.txtSepTF.setText("\\n") self.txtSepTF.setObjectName("txtSepTF") self.horizontalLayout_4.addWidget(self.txtSepTF) self.verticalLayout_8.addLayout(self.horizontalLayout_4) @@ -353,11 +357,13 @@ class Ui_exporterSettings(object): self.txtTransDoubleQuotesA.setMinimumSize(QtCore.QSize(40, 0)) self.txtTransDoubleQuotesA.setMaximumSize(QtCore.QSize(40, 16777215)) self.txtTransDoubleQuotesA.setStyleSheet("border-radius: 6px;") + self.txtTransDoubleQuotesA.setText("") self.txtTransDoubleQuotesA.setFrame(False) self.txtTransDoubleQuotesA.setAlignment(QtCore.Qt.AlignCenter) self.txtTransDoubleQuotesA.setObjectName("txtTransDoubleQuotesA") self.horizontalLayout_5.addWidget(self.txtTransDoubleQuotesA) self.lblTransDoubleQuotes = QtWidgets.QLabel(self.grpTransTypo) + self.lblTransDoubleQuotes.setText("…") self.lblTransDoubleQuotes.setObjectName("lblTransDoubleQuotes") self.horizontalLayout_5.addWidget(self.lblTransDoubleQuotes) self.txtTransDoubleQuotesB = QtWidgets.QLineEdit(self.grpTransTypo) @@ -369,6 +375,7 @@ class Ui_exporterSettings(object): self.txtTransDoubleQuotesB.setMinimumSize(QtCore.QSize(40, 0)) self.txtTransDoubleQuotesB.setMaximumSize(QtCore.QSize(40, 16777215)) self.txtTransDoubleQuotesB.setStyleSheet("border-radius: 6px;") + self.txtTransDoubleQuotesB.setText("") self.txtTransDoubleQuotesB.setFrame(False) self.txtTransDoubleQuotesB.setAlignment(QtCore.Qt.AlignCenter) self.txtTransDoubleQuotesB.setObjectName("txtTransDoubleQuotesB") @@ -395,11 +402,13 @@ class Ui_exporterSettings(object): self.txtTransSingleQuoteA.setMinimumSize(QtCore.QSize(40, 0)) self.txtTransSingleQuoteA.setMaximumSize(QtCore.QSize(40, 16777215)) self.txtTransSingleQuoteA.setStyleSheet("border-radius: 6px;") + self.txtTransSingleQuoteA.setText("") self.txtTransSingleQuoteA.setFrame(False) self.txtTransSingleQuoteA.setAlignment(QtCore.Qt.AlignCenter) self.txtTransSingleQuoteA.setObjectName("txtTransSingleQuoteA") self.horizontalLayout_6.addWidget(self.txtTransSingleQuoteA) self.lblTransSingleQuote = QtWidgets.QLabel(self.grpTransTypo) + self.lblTransSingleQuote.setText("…") self.lblTransSingleQuote.setObjectName("lblTransSingleQuote") self.horizontalLayout_6.addWidget(self.lblTransSingleQuote) self.txtTransSingleQuoteB = QtWidgets.QLineEdit(self.grpTransTypo) @@ -411,6 +420,7 @@ class Ui_exporterSettings(object): self.txtTransSingleQuoteB.setMinimumSize(QtCore.QSize(40, 0)) self.txtTransSingleQuoteB.setMaximumSize(QtCore.QSize(40, 16777215)) self.txtTransSingleQuoteB.setStyleSheet("border-radius: 6px;") + self.txtTransSingleQuoteB.setText("") self.txtTransSingleQuoteB.setFrame(False) self.txtTransSingleQuoteB.setAlignment(QtCore.Qt.AlignCenter) self.txtTransSingleQuoteB.setObjectName("txtTransSingleQuoteB") @@ -471,6 +481,7 @@ class Ui_exporterSettings(object): self.verticalLayout_6.addItem(spacerItem10) self.toolBox.addItem(self.transformations, "") self.preview = QtWidgets.QWidget() + self.preview.setGeometry(QtCore.QRect(0, 0, 511, 522)) self.preview.setStyleSheet("QGroupBox{font-weight:bold;}") self.preview.setObjectName("preview") self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.preview) @@ -498,7 +509,7 @@ class Ui_exporterSettings(object): self.verticalLayout_2.addWidget(self.toolBox) self.retranslateUi(exporterSettings) - self.toolBox.setCurrentIndex(3) + self.toolBox.setCurrentIndex(2) self.toolBox.layout().setSpacing(0) QtCore.QMetaObject.connectSlotsByName(exporterSettings) @@ -523,27 +534,21 @@ class Ui_exporterSettings(object): self.label_3.setText(_translate("exporterSettings", "Between folders:")) self.cmbSepFF.setItemText(0, _translate("exporterSettings", "Empty line")) self.cmbSepFF.setItemText(1, _translate("exporterSettings", "Custom")) - self.txtSepFF.setText(_translate("exporterSettings", "\\n")) self.label_4.setText(_translate("exporterSettings", "Between texts:")) self.cmbSepTT.setItemText(0, _translate("exporterSettings", "Empty line")) self.cmbSepTT.setItemText(1, _translate("exporterSettings", "Custom")) - self.txtSepTT.setText(_translate("exporterSettings", "\\n")) self.label_6.setText(_translate("exporterSettings", "Between folder and text:")) self.cmbSepFT.setItemText(0, _translate("exporterSettings", "Empty line")) self.cmbSepFT.setItemText(1, _translate("exporterSettings", "Custom")) - self.txtSepFT.setText(_translate("exporterSettings", "\\n")) self.label_5.setText(_translate("exporterSettings", "Between text and folder:")) self.cmbSepTF.setItemText(0, _translate("exporterSettings", "Empty line")) self.cmbSepTF.setItemText(1, _translate("exporterSettings", "Custom")) - self.txtSepTF.setText(_translate("exporterSettings", "\\n")) self.toolBox.setItemText(self.toolBox.indexOf(self.separations), _translate("exporterSettings", "Separations")) self.grpTransTypo.setTitle(_translate("exporterSettings", "Typographic replacements:")) self.chkTransEllipse.setText(_translate("exporterSettings", "Replace ... with …")) self.chkTransDash.setText(_translate("exporterSettings", "Replace --- with —")) self.chkTransDoubleQuotes.setText(_translate("exporterSettings", "Replace double quotes (\") with:")) - self.lblTransDoubleQuotes.setText(_translate("exporterSettings", "…")) self.chkTransSingleQuote.setText(_translate("exporterSettings", "Replace single quotes (\') with:")) - self.lblTransSingleQuote.setText(_translate("exporterSettings", "…")) self.chkTransSpaces.setText(_translate("exporterSettings", "Remove multiple spaces")) self.grpTransCustom.setTitle(_translate("exporterSettings", "Custom replacements:")) item = self.tblReplacements.horizontalHeaderItem(0) diff --git a/manuskript/ui/exporters/manuskript/plainTextSettings_ui.ui b/manuskript/ui/exporters/manuskript/plainTextSettings_ui.ui index 4cdd80d..8064947 100644 --- a/manuskript/ui/exporters/manuskript/plainTextSettings_ui.ui +++ b/manuskript/ui/exporters/manuskript/plainTextSettings_ui.ui @@ -43,7 +43,7 @@ QToolBox::tab:selected, QToolBox::tab:hover{ } - 3 + 2 0 @@ -362,7 +362,7 @@ QToolBox::tab:selected, QToolBox::tab:hover{ false - \n + \n @@ -490,7 +490,7 @@ QToolBox::tab:selected, QToolBox::tab:hover{ false - \n + \n @@ -618,7 +618,7 @@ QToolBox::tab:selected, QToolBox::tab:hover{ false - \n + \n @@ -746,7 +746,7 @@ QToolBox::tab:selected, QToolBox::tab:hover{ false - \n + \n @@ -857,6 +857,9 @@ QToolBox::tab:selected, QToolBox::tab:hover{ border-radius: 6px; + + + false @@ -868,7 +871,7 @@ QToolBox::tab:selected, QToolBox::tab:hover{ - + @@ -895,6 +898,9 @@ QToolBox::tab:selected, QToolBox::tab:hover{ border-radius: 6px; + + + false @@ -960,6 +966,9 @@ QToolBox::tab:selected, QToolBox::tab:hover{ border-radius: 6px; + + + false @@ -971,7 +980,7 @@ QToolBox::tab:selected, QToolBox::tab:hover{ - + @@ -998,6 +1007,9 @@ QToolBox::tab:selected, QToolBox::tab:hover{ border-radius: 6px; + + + false @@ -1145,6 +1157,14 @@ QToolBox::tab:selected, QToolBox::tab:hover{ + + + 0 + 0 + 511 + 522 + + QGroupBox{font-weight:bold;}