r21869 by gpittman - Added option for German with inverted guillemets to Autoquote and Autoquote2 scripts

scribus-commit scribus-commit at lists.scribus.net
Thu Apr 6 00:09:08 UTC 2017


Author: gpittman
Date: Thu Apr  6 00:09:08 2017
New Revision: 21869

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21869
Log:
Added option for German with inverted guillemets to Autoquote and Autoquote2 scripts

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py
    trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21869&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py	Thu Apr  6 00:09:08 2017
@@ -19,7 +19,7 @@
 
 if scribus.haveDoc() > 0:
     c = 0
-    lang = scribus.valueDialog("Choose by language or country", 'Language: af, be, ch, cs, de, en, es, et, fi, fr,\n hu, is, lt, mk, nl, pl, ru, se, sk, sl, sq and uk\n are current choices','en')
+    lang = scribus.valueDialog("Choose by language or country", 'Language: af, be, ch, cs, de, de-g, en, es, et, fi, fr,\n hu, is, lt, mk, nl, pl, ru, se, sk, sl, sq and uk\n are current choices','en')
     if (lang == 'en'):
         lead_double = u"\u201c"
         follow_double = u"\u201d"
@@ -28,6 +28,11 @@
     elif (lang == 'de'):
         lead_double = u"\u201e"
         follow_double = u"\u201c"
+        lead_single = u"\u2019"
+        follow_single = u"\u201a"
+    elif (lang == 'de-g'):      # German with inverted guillemets for double quotes
+        lead_double = u"\u00bb"
+        follow_double = u"\u00ab"
         lead_single = u"\u2019"
         follow_single = u"\u201a"
     elif (lang == 'fr'):      

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21869&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py	Thu Apr  6 00:09:08 2017
@@ -23,6 +23,8 @@
 + take into account already existing doublequotes for the correct choice open / close of next dquote
 + warning if some open/close inconsistency is detected
 for example in « texte " suite »
+5 apr 2017 :
++ added new language choice of de-g: German with inverted guillemets for double quotes
 
 LIMITS
 - it only acts on the currently selected frame
@@ -60,7 +62,7 @@
     scribus.messageBox('Error - (fr) Erreur', 'You need a Document open\n(fr) Ouvrez un document avant de lancer le script', scribus.ICON_WARNING, scribus.BUTTON_OK)
     sys.exit(2)
 
-lang = scribus.valueDialog("Language", 'Choose language or country\n(fr) Choisissez la langue du texte ou le pays :\naf, be, ch, cs, de, en, es, et, fi, fr,\n hu, is, lt, mk, nl, pl, ru, se, sk, sl, sq and uk', 'fr')
+lang = scribus.valueDialog("Language", 'Choose language or country\n(fr) Choisissez la langue du texte ou le pays :\naf, be, ch, cs, de, de-g, en, es, et, fi, fr,\n hu, is, lt, mk, nl, pl, ru, se, sk, sl, sq and uk', 'fr')
 if (lang == 'en'):
     ouvrant_double = u"\u201c" #lead_double
     fermant_double = u"\u201d" #follow_double
@@ -69,6 +71,11 @@
 elif (lang == 'de'):
     ouvrant_double = u"\u201e"
     fermant_double = u"\u201c"
+    lead_single = u"\u2019"
+    follow_single = u"\u201a"
+elif (lang == 'de-g'):          # German with inverted guillemets for double quote
+    ouvrant_double = u"\u00bb"
+    fermant_double = u"\u00ab"
     lead_single = u"\u2019"
     follow_single = u"\u201a"
 elif (lang == 'fr'):




More information about the scribus-commit mailing list