[LyX/master] fix Finnish shorthands

Juergen Spitzmueller spitz at lyx.org
Wed Feb 18 13:11:43 UTC 2026


commit cb6d1ad1588b731e661de6eac345f65f16013828
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Wed Feb 18 14:08:37 2026 +0100

    fix Finnish shorthands
---
 lib/languages          | 16 +++++++++++++++-
 lib/lyx2lyx/lyx_2_6.py |  3 +++
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/lib/languages b/lib/languages
index 572ff88e6c..8d45523159 100644
--- a/lib/languages
+++ b/lib/languages
@@ -985,8 +985,22 @@ Language finnish
 	FontEncoding	 T1|OT1
 	DateFormats      "d. MMMM yyyy|d. MMM yyyy|d.M.yyyy"
 	LangCode         fi_FI
+	SpecialChar breakabledash
+	    Type	specialchar
+	    MenuString	"Hyphen with Additional Hyphenation Point|w"
+	    Tooltip     "Breakable hyphen that keeps predefined hyphenation possibilities"
+	    LyXOutput	0x2010
+	    LatexOutput	\"-
+	    IsLetter	1
+	    PlaintextOutput -
+	    XHTMLOutput	-
+	    CanBreakAfter   1
+	    Font
+	      Color		textlabel1
+	    EndFont
+	End
 	SpecialChar nobreakdash
-	    LaTeXOutput  \"-
+	    LaTeXOutput  \"=
 	    NeedProtect	 0
 	End
 	SpecialChar allowbreak
diff --git a/lib/lyx2lyx/lyx_2_6.py b/lib/lyx2lyx/lyx_2_6.py
index 44795453ed..c34e7d14b1 100644
--- a/lib/lyx2lyx/lyx_2_6.py
+++ b/lib/lyx2lyx/lyx_2_6.py
@@ -716,6 +716,9 @@ def revert_hyphen_shorthands(document):
             line = document.body[l]
             tokenend = len("\\lang ")
             lang = line[tokenend:].strip()
+        if lang == "finnish":
+            cmd = put_cmd_in_ert("\"-")
+            document.body[i + 1 : i + 1] = cmd
         if lang in langs_breakabledash:
             cmd = put_cmd_in_ert("\"=")
             document.body[i + 1 : i + 1] = cmd


More information about the lyx-cvs mailing list