The last days I reviewed the Wiki pages for special languages. This way I found out that there were many improvements in babel. There is no need to load special packages anymore for many languages. In the past we of course had to support these packages but now they make problems. For Lithuanian we once added the encoding

l7xenc a.k.a. iso 8859-13

This encoding is not supported by inputenc. inputenc uses latin4 as encoding for Baltic languages and this works well together with babel-lithuanian, babel-latvian etc.

the l7xenc encoding was a special one provided by the package littex ( a special package for Lithuanian):
http://www.vtex.lt/tex/littex/index.html
This package is not only unnecessary since TeXLive 2014 but also no longer under development for 8 years now.
Therefore we could and should remove the encoding l7xenc from our list.
The attached makes this.

OK?

regards Uwe

p.s. If a user would insist to use littex he already knows a lot of LaTeX and can easily turn off the encoding in LyX and add an appropriate preamble line.
 development/FORMAT     |  4 ++++
 lib/encodings          |  4 ----
 lib/lyx2lyx/lyx_2_3.py | 12 +++++++++++-
 src/version.h          |  4 ++--
 4 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/development/FORMAT b/development/FORMAT
index d098516..04fea01 100644
--- a/development/FORMAT
+++ b/development/FORMAT
@@ -11,6 +11,10 @@ adjustments are made to tex2lyx and bugs are fixed in 
lyx2lyx.
 
 -----------------------
 
+2016-11-02 Uwe Stöhr <uwesto...@web.de>
+       * Format incremented to 516: remove the iso8859-13 encoding:
+         \inputencoding iso8859-13
+
 2016-10-28 Uwe Stöhr <uwesto...@web.de>
        * Format incremented to 515: support for Urdu and Syriac:
          \lang urdu
diff --git a/lib/encodings b/lib/encodings
index 75ae8f3..50cadbf 100644
--- a/lib/encodings
+++ b/lib/encodings
@@ -69,10 +69,6 @@ End
 Encoding iso8859-9 latin5 "Turkish (ISO 8859-9)" ISO-8859-9 fixed inputenc
 End
 
-# Not standard, see http://www.vtex.lt/tex/littex/index.html
-Encoding iso8859-13 l7xenc "Baltic (ISO 8859-13)" ISO-8859-13 fixed inputenc
-End
-
 Encoding iso8859-15 latin9 "Western European (ISO 8859-15)" ISO-8859-15 fixed 
inputenc
 End
 
diff --git a/lib/lyx2lyx/lyx_2_3.py b/lib/lyx2lyx/lyx_2_3.py
index 65b5188..b25df75 100644
--- a/lib/lyx2lyx/lyx_2_3.py
+++ b/lib/lyx2lyx/lyx_2_3.py
@@ -483,6 +483,14 @@ def revert_syriac(document):
                                 "\\end_layout", ""]
 
 
+def convert_ISO885913(document):
+    "Set the encoding to latin4"
+
+    i = find_token(document.header, "\\inputencoding iso8859-13", 0)
+    if i != -1:
+       document.header[i] = "\\inputencoding iso8859-4"
+
+
 ##
 # Conversion hub
 #
@@ -495,10 +503,12 @@ convert = [
            [512, [convert_beamer_article_styles]],
            [513, []],
            [514, []],
-           [515, []]
+           [515, []],
+           [516, [convert_ISO885913]]
           ]
 
 revert =  [
+           [515, []],
            [514, [revert_urdu, revert_syriac]],
            [513, [revert_amharic, revert_asturian, revert_kannada, 
revert_khmer]],
            [512, [revert_bosnian, revert_friulan, revert_macedonian, 
revert_piedmontese, revert_romansh]],
diff --git a/src/version.h b/src/version.h
index 46c2ebc..2be4187 100644
--- a/src/version.h
+++ b/src/version.h
@@ -32,8 +32,8 @@ extern char const * const lyx_version_info;
 
 // Do not remove the comment below, so we get merge conflict in
 // independent branches. Instead add your own.
-#define LYX_FORMAT_LYX 515 // uwestoehr: support for Urdu and Syriac
-#define LYX_FORMAT_TEX2LYX 515
+#define LYX_FORMAT_LYX 516 // uwestoehr: remove ISO8859-13
+#define LYX_FORMAT_TEX2LYX 516
 
 #if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
 #ifndef _MSC_VER

Reply via email to