mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
* add support for the applemac encoding. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30064 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
674746034a
commit
bd4c74b3b7
@ -1,6 +1,9 @@
|
||||
LyX file-format changes
|
||||
-----------------------
|
||||
|
||||
2009-06-11 Jürgen Spitzmüller <spitz@lyx.org>
|
||||
* Format incremented to 362: support for the applemac encoding.
|
||||
|
||||
2009-05-25 Jürgen Spitzmüller <spitz@lyx.org>
|
||||
* Format incremented to 361: support for custom setting of
|
||||
bibliography (longest) label width.
|
||||
|
@ -61,6 +61,9 @@ End
|
||||
Encoding iso8859-16 latin10 "South-Eastern European (ISO 8859-16)" ISO-8859-16 fixed inputenc
|
||||
End
|
||||
|
||||
Encoding applemac applemac "Western European (Macintosh Roman)" Macintosh fixed inputenc
|
||||
End
|
||||
|
||||
Encoding cp437 cp437 "DOS (CP 437)" CP437 fixed inputenc
|
||||
End
|
||||
|
||||
|
@ -707,6 +707,16 @@ def revert_nomencl_cwidth(document):
|
||||
i = i + 1
|
||||
|
||||
|
||||
def revert_applemac(document):
|
||||
" Revert applemac encoding to auto "
|
||||
i = 0
|
||||
if document.encoding == "applemac":
|
||||
document.encoding = "auto"
|
||||
i = find_token(document.header, "\\encoding", 0)
|
||||
if i != -1:
|
||||
document.header[i] = "\\encoding auto"
|
||||
|
||||
|
||||
##
|
||||
# Conversion hub
|
||||
#
|
||||
@ -727,10 +737,12 @@ convert = [[346, []],
|
||||
[358, []],
|
||||
[359, [convert_nomencl_width]],
|
||||
[360, []],
|
||||
[361, []]
|
||||
[361, []],
|
||||
[362, []]
|
||||
]
|
||||
|
||||
revert = [[360, []],
|
||||
revert = [[361, [revert_applemac]],
|
||||
[360, []],
|
||||
[359, [revert_nomencl_cwidth]],
|
||||
[358, [revert_nomencl_width]],
|
||||
[357, [revert_custom_processors]],
|
||||
|
@ -126,7 +126,7 @@ namespace {
|
||||
|
||||
// Do not remove the comment below, so we get merge conflict in
|
||||
// independent branches. Instead add your own.
|
||||
int const LYX_FORMAT = 361; // jspitzm: bibliography custom width
|
||||
int const LYX_FORMAT = 362; // jspitzm: support applemac encoding
|
||||
|
||||
typedef map<string, bool> DepClean;
|
||||
typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;
|
||||
|
Loading…
Reference in New Issue
Block a user