commit 131f1b6a9c23f93de1dc8643af4435f6597389a2
Author: Kornel Benko <[email protected]>
Date:   Sun Jun 9 15:17:23 2019 +0200

    Handle some extra characters used in names for encodings
    
    Without this some encoding-names would not be translated.
    The extra used chars are '[', ']' and '/'
    like in lib/encodings:55
            Encoding utf8x utf8x "utf8 (extended) [ucs] (utf8x)" UTF-8 variable 
inputenc
---
 po/lyx_pot.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/po/lyx_pot.py b/po/lyx_pot.py
index 71bd4c7..96c5b83 100755
--- a/po/lyx_pot.py
+++ b/po/lyx_pot.py
@@ -604,7 +604,7 @@ def encodings_l10n(input_files, output, base):
     output = io.open(output, 'w', encoding='utf_8', newline='\n')
     # assuming only one encodings file
     #                 Encoding utf8      utf8    "Unicode (utf8)" UTF-8    
variable inputenc
-    reg = re.compile('Encoding [\w-]+\s+[\w-]+\s+"([\w 
\-\(\)^"]*)"\s+["\w-]+\s+(fixed|variable|variableunsafe)\s+\w+.*')
+    reg = re.compile('Encoding [\w-]+\s+[\w-]+\s+"([\w 
\-\(\)\[\]\/^"]*)"\s+["\w-]+\s+(fixed|variable|variableunsafe)\s+\w+.*')
     input = io.open(input_files[0], encoding='utf_8')
     for lineno, line in enumerate(input.readlines()):
         if not line.startswith('Encoding'):

Reply via email to