X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flyx2lyx%2Flyx_0_08.py;h=0186decbf2c08a872e0cc230d93a1c59152ea374;hb=9fd8a869616cad617d0db8b022119c35855ea39d;hp=7b39460ccb76f25ffde84143053d9a684c4939e4;hpb=088bcef87b57fdbd00490c4ef9c9c0066d2c6eb5;p=lyx.git diff --git a/lib/lyx2lyx/lyx_0_08.py b/lib/lyx2lyx/lyx_0_08.py index 7b39460ccb..0186decbf2 100644 --- a/lib/lyx2lyx/lyx_0_08.py +++ b/lib/lyx2lyx/lyx_0_08.py @@ -16,9 +16,16 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -""" Convert files generated by lyx 0.8""" +""" Convert files to the file format generated by lyx 0.8""" -convert = [[210, []]] +def add_inputencoding(document): + " Add the input encoding, latin1" + document.header.append('\\inputencoding latin1') + document.inputencoding = "latin1" + + +supported_versions = ["0.8.%d" % i for i in range(7)] + ["0.8"] +convert = [[210, [add_inputencoding]]] revert = []