mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 13:24:05 +00:00
4452c06c3e
* Make sptr an alias of std::shared_ptr * Make old sptr's implicit conversion explict through std::make_shared
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
|
* 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", "ß" );
|
|
|
|
ins( "UE", "Ü" );
|
|
ins( "AE", "Ä" );
|
|
ins( "OE", "Ö" );
|
|
ins( "SS", "ß" );
|
|
|
|
ins( "Ue", "Ü" );
|
|
ins( "Ae", "Ä" );
|
|
ins( "Oe", "Ö" );
|
|
ins( "Ss", "ß" );
|
|
|
|
// ins( "ü", "ue" );
|
|
// ins( "ä", "ae" );
|
|
// ins( "ö", "oe" );
|
|
// ins( "ß", "ss" );
|
|
|
|
}
|
|
|
|
sptr< Dictionary::Class > makeDictionary()
|
|
{
|
|
static GermanTable t;
|
|
|
|
return std::make_shared<Transliteration::TransliterationDictionary>( "cf1b74acd98adea9b2bba16af38f1081",
|
|
QCoreApplication::translate( "GermanTranslit", "German Transliteration" ).toUtf8().data(),
|
|
QIcon( ":/flags/de.png" ), t );
|
|
}
|
|
|
|
|
|
}
|
|
|