From 04c368b5eddd095dfd14780df58a1460eaccff88 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 14 Nov 2005 17:15:58 +0000 Subject: [PATCH] Improved handling on special characters in names --- applications/osgversion/osgversion.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/applications/osgversion/osgversion.cpp b/applications/osgversion/osgversion.cpp index 18b62ebb8..fcf737e15 100644 --- a/applications/osgversion/osgversion.cpp +++ b/applications/osgversion/osgversion.cpp @@ -68,11 +68,13 @@ bool validName(const std::string& first) std::string typoCorrection(const std::string& name) { #if 0 - if (name=="") return "Tarantilils"; if (name=="") return ""; if (name=="") return ""; if (name=="") return ""; #endif + if (name=="Sjolie") return "Sjölie"; + if (name=="Jose") return "José"; + if (name=="Tarantilils") return "Tarantilis"; if (name=="Heirtlein") return "Hertlein"; if (name=="Fredric") return "Frederic"; if (name=="Geof") return "Geoff"; @@ -101,7 +103,7 @@ std::string typoCorrection(const std::string& name) if (name=="Johhansen") return "Johansen"; if (name=="Johnansen") return "Johansen"; if (name=="Jolley") return "Jolly"; - if (name=="J") return "Jose"; + if (name=="J") return "José"; if (name=="Keuhne") return "Kuehne"; if (name=="Kheune") return "Kuehne"; if (name=="Lashari") return "Lashkari";