2009-05-11 23:37:18 +00:00
|
|
|
/* This file is (c) 2008-2009 Konstantin Isakov <ikm@users.berlios.de>
|
|
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
|
|
|
|
#include "german.hh"
|
|
|
|
#include "transliteration.hh"
|
|
|
|
#include <QCoreApplication>
|
|
|
|
|
|
|
|
namespace GermanTranslit {
|
|
|
|
|
|
|
|
class GermanTable: public Transliteration::Table
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
GermanTable();
|
|
|
|
};
|
|
|
|
|
|
|
|
GermanTable::GermanTable()
|
|
|
|
{
|
|
|
|
// Utf8
|
|
|
|
|
|
|
|
ins( "ue", "ü" );
|
|
|
|
ins( "ae", "ä" );
|
|
|
|
ins( "oe", "ö" );
|
|
|
|
ins( "ss", "ß" );
|
2009-05-12 18:59:00 +00:00
|
|
|
|
2009-05-12 19:14:54 +00:00
|
|
|
ins( "UE", "Ü" );
|
|
|
|
ins( "AE", "Ä" );
|
2009-05-12 19:16:31 +00:00
|
|
|
ins( "OE", "Ö" );
|
2009-05-12 19:14:54 +00:00
|
|
|
ins( "SS", "ß" );
|
|
|
|
|
|
|
|
// ins( "ü", "ue" );
|
|
|
|
// ins( "ä", "ae" );
|
|
|
|
// ins( "ö", "oe" );
|
|
|
|
// ins( "ß", "ss" );
|
2009-05-12 18:59:00 +00:00
|
|
|
|
2009-05-11 23:37:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sptr< Dictionary::Class > makeDictionary() throw( std::exception )
|
|
|
|
{
|
|
|
|
static GermanTable t;
|
|
|
|
|
|
|
|
return new Transliteration::TransliterationDictionary( "cf1b74acd98adea9b2bba16af38f1081",
|
|
|
|
QCoreApplication::translate( "GermanTranslit", "German Transliteration" ).toUtf8().data(), t );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|