mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
Support for Swiss German (old spelling)
This commit is contained in:
parent
5c431b9335
commit
0c3b88e3cb
@ -491,17 +491,18 @@ Language german-ch
|
|||||||
LangCode de_CH
|
LangCode de_CH
|
||||||
End
|
End
|
||||||
|
|
||||||
# This is now supported, but requires a file format change
|
# In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
|
||||||
# Language german-ch-old
|
# Polyglossia does not yet support Swiss German. We use german for now.
|
||||||
# GuiName "German (Switzerland, old spelling)"
|
Language german-ch-old
|
||||||
# BabelName swissgerman
|
GuiName "German (Switzerland, old spelling)"
|
||||||
# PolyglossiaName german
|
BabelName swissgerman
|
||||||
# PolyglossiaOpts "spelling=old,babelshorthands=true"
|
PolyglossiaName german
|
||||||
## PolyglossiaOpts "variant=swiss,spelling=old,babelshorthands=true"
|
PolyglossiaOpts "spelling=old,babelshorthands=true"
|
||||||
# QuoteStyle danish
|
# PolyglossiaOpts "variant=swiss,spelling=old,babelshorthands=true"
|
||||||
# Encoding iso8859-15
|
QuoteStyle danish
|
||||||
# LangCode de_CH
|
Encoding iso8859-15
|
||||||
# End
|
LangCode de_CH
|
||||||
|
End
|
||||||
|
|
||||||
Language greek
|
Language greek
|
||||||
GuiName "Greek"
|
GuiName "Greek"
|
||||||
|
@ -85,7 +85,7 @@ format_relation = [("0_06", [200], minor_versions("0.6" , 4)),
|
|||||||
("1_6", range(277,346), minor_versions("1.6" , 10)),
|
("1_6", range(277,346), minor_versions("1.6" , 10)),
|
||||||
("2_0", range(346,414), minor_versions("2.0", 8)),
|
("2_0", range(346,414), minor_versions("2.0", 8)),
|
||||||
("2_1", range(414,475), minor_versions("2.1", 0)),
|
("2_1", range(414,475), minor_versions("2.1", 0)),
|
||||||
("2_2", range(475,477), minor_versions("2.2", 0))
|
("2_2", range(475,478), minor_versions("2.2", 0))
|
||||||
]
|
]
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
|
@ -275,6 +275,23 @@ def revert_smash(document):
|
|||||||
j = k
|
j = k
|
||||||
|
|
||||||
|
|
||||||
|
def revert_swissgerman(document):
|
||||||
|
" Set language german-ch-old to german "
|
||||||
|
i = 0
|
||||||
|
if document.language == "german-ch-old":
|
||||||
|
document.language = "german"
|
||||||
|
i = find_token(document.header, "\\language", 0)
|
||||||
|
if i != -1:
|
||||||
|
document.header[i] = "\\language german"
|
||||||
|
j = 0
|
||||||
|
while True:
|
||||||
|
j = find_token(document.body, "\\lang german-ch-old", j)
|
||||||
|
if j == -1:
|
||||||
|
return
|
||||||
|
document.body[j] = document.body[j].replace("\\lang german-ch-old", "\\lang german")
|
||||||
|
j = j + 1
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Conversion hub
|
# Conversion hub
|
||||||
#
|
#
|
||||||
@ -286,9 +303,11 @@ convert = [
|
|||||||
# did not load amsmath automatically for these commands, and do not
|
# did not load amsmath automatically for these commands, and do not
|
||||||
# want to hardcode amsmath off.
|
# want to hardcode amsmath off.
|
||||||
[476, []],
|
[476, []],
|
||||||
|
[477, []],
|
||||||
]
|
]
|
||||||
|
|
||||||
revert = [
|
revert = [
|
||||||
|
[476, [revert_swissgerman]],
|
||||||
[475, [revert_smash]],
|
[475, [revert_smash]],
|
||||||
[474, [revert_separator]]
|
[474, [revert_separator]]
|
||||||
]
|
]
|
||||||
|
@ -30,8 +30,8 @@ extern char const * const lyx_version_info;
|
|||||||
|
|
||||||
// Do not remove the comment below, so we get merge conflict in
|
// Do not remove the comment below, so we get merge conflict in
|
||||||
// independent branches. Instead add your own.
|
// independent branches. Instead add your own.
|
||||||
#define LYX_FORMAT_LYX 476 // gb: \smash[t], \smash[b] and \notag
|
#define LYX_FORMAT_LYX 477 // spitz: support for swissgerman
|
||||||
#define LYX_FORMAT_TEX2LYX 476
|
#define LYX_FORMAT_TEX2LYX 477
|
||||||
|
|
||||||
#if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
|
#if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
Loading…
Reference in New Issue
Block a user