forked from goldendict/goldendict
-
Notifications
You must be signed in to change notification settings - Fork 1
/
german.cc
54 lines (39 loc) · 1.06 KB
/
german.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* This file is (c) 2008-2012 Konstantin Isakov <[email protected]>
* 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() throw( std::exception )
{
static GermanTable t;
return new Transliteration::TransliterationDictionary( "cf1b74acd98adea9b2bba16af38f1081",
QCoreApplication::translate( "GermanTranslit", "German Transliteration" ).toUtf8().data(),
QIcon( ":/flags/de.png" ), t );
}
}