LyX file-format changes
-----------------------
+2008-04-16 Uwe Stöhr <uwestoehr@web.de>
+ * Format incremented to 327: support for Mexican Spanish.
+
2008-04-11 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* Format incremented to 326: support for pdflatex via external inset.
slovak slovak "Slovak" false iso8859-2 sk_SK ""
slovene slovene "Slovene" false iso8859-2 sl_SI ""
spanish spanish "Spanish" false iso8859-15 es_ES "\deactivatetilden\renewcommand\shorthandsspanish{}"
+spanish-mexico spanish "Spanish (Mexico)" false iso8859-15 es_MX "\renewcommand\shorthandsspanish{}"
swedish swedish "Swedish" false iso8859-15 sv_SE ""
thai thai "Thai" false tis620-0 th_TH "\usepackage{thswitch}"
turkish turkish "Turkish" false iso8859-9 tr_TR ""
("1_3", [221], minor_versions("1.3" , 7)),
("1_4", range(222,246), minor_versions("1.4" , 5)),
("1_5", range(246,277), minor_versions("1.5" , 2)),
- ("1_6", range(277,327), minor_versions("1.6" , 0))]
+ ("1_6", range(277,328), minor_versions("1.6" , 0))] # Uwe: support for Spanish(Mexico)
def formats_list():
i = i + 1
+def revert_mexican(document):
+ "Set language Spanish(Mexico) to Spanish"
+ i = 0
+ if document.language == "spanish-mexico":
+ document.language = "spanish"
+ i = find_token(document.header, "\\language", 0)
+ if i != -1:
+ document.header[i] = "\\language spanish"
+ j = 0
+ while True:
+ j = find_token(document.body, "\\lang spanish-mexico", j)
+ if j == -1:
+ return
+ document.body[j] = document.body[j].replace("\\lang spanish-mexico", "\\lang spanish")
+ j = j + 1
+
+
##
# Conversion hub
#
[323, [convert_pagebreaks]],
[324, [convert_linebreaks]],
[325, [convert_japanese_plain]],
- [326, []]
+ [326, []],
+ [327, []]
]
-revert = [[325, [revert_pdfpages]],
+revert = [[326, [revert_mexican]],
+ [325, [revert_pdfpages]],
[324, []],
[323, [revert_linebreaks]],
[322, [revert_pagebreaks]],
namespace {
-int const LYX_FORMAT = 326;
+int const LYX_FORMAT = 327; // Uwe: support for Spanish(Mexico)
typedef map<string, bool> DepClean;
typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;