-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgerman.js
740 lines (645 loc) · 31.9 KB
/
german.js
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
// German dictionary bookmarklet
// V 1.0 - 2016-08-11
// V 1.1 - 2017-01-09: new minimize function, enlarge input field option
// V 1.2 - 2017-01-10: minor adjustments for highlighted text, prevent multiple load of script
// V 1.3 - 2017-11-10: new Wörterbuchnetz & Wörterbuch-Portal
// V 1.4 - 2019-10-10: Dictionary address updates
// V 1.5 - 2019-10-11: New corpora and dictionaries, virtual keyboard automatically turned to German
// V 1.6 - 2021-01-01: Removed canoo, GernWeb. Added grammis, ZweiDat
// V 1.7 - 2021-10-14: Moved bigger.css into german.js
// V 1.8 - 2022-01-04: Stylesheet and JS functionality improvements
// Read more: https://pod-o-mart.github.io/keyboardBookmarklets
// Author: Martin Podolak
// This work is licensed under the GNU General Public License v3.0
var version = "V 1.8 - 2022-01-04";
var kblang = { lang : "Deutsch" };
if(!document.getElementById("ordbogform"))
{
sc = document.getElementsByTagName("script");
for(idx = 0; idx < sc.length; idx++)
{
s = sc.item(idx);
if(s.src && s.src.match(/german\.js$/))
{
var ordbogurl =s.src;
ordbogurl = ordbogurl.replace("german.js", "");
}
}
function loadjscssfile(filename, filetype){
if (filetype=="js"){
var fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript")
fileref.setAttribute("src", filename)
}
else if (filetype=="css"){
var fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet")
fileref.setAttribute("type", "text/css")
fileref.setAttribute("href", filename)
}
if (typeof fileref!="undefined")
document.getElementsByTagName("head")[0].appendChild(fileref)
}
loadjscssfile(ordbogurl+"style.css", "css")
win1251 = { 1040: "%C0", 1041: "%C1", 1042: "%C2", 1043: "%C3", 1044: "%C4", 1045: "%C5", 1046: "%C6", 1047: "%C7", 1048: "%C8", 1049: "%C9", 1050: "%CA", 1051: "%CB", 1052: "%CC", 1053: "%CD", 1054: "%CE", 1055: "%CF", 1056: "%D0", 1057: "%D1", 1058: "%D2", 1059: "%D3", 1060: "%D4", 1061: "%D5", 1062: "%D6", 1063: "%D7", 1064: "%D8", 1065: "%D9", 1066: "%DA", 1067: "%DB", 1068: "%DC", 1069: "%DD", 1070: "%DE", 1071: "%DF", 1072: "%E0", 1073: "%E1", 1074: "%E2", 1075: "%E3", 1076: "%E4", 1077: "%E5", 1078: "%E6", 1079: "%E7", 1080: "%E8", 1081: "%E9", 1082: "%EA", 1083: "%EB", 1084: "%EC", 1085: "%ED", 1086: "%EE", 1087: "%EF", 1088: "%F0", 1089: "%F1", 1090: "%F2", 1091: "%F3", 1092: "%F4", 1093: "%F5", 1094: "%F6", 1095: "%F7", 1096: "%F8", 1097: "%F9", 1098: "%FA", 1099: "%FB", 1100: "%FC", 1101: "%FD", 1102: "%FE", 1103: "%FF", 32: " ", 65: "A", 66: "B", 67: "C", 68: "D", 69: "E", 70: "F", 71: "G", 72: "H", 73: "I", 74: "J", 75: "K", 76: "L", 77: "M", 78: "N", 79: "O", 80: "P", 81: "Q", 82: "R", 83: "S", 84: "T", 85: "U", 86: "V", 87: "W", 88: "X", 89: "Y", 90: "Z", 97: "a", 98: "b", 99: "c", 100: "d", 101: "e", 102: "f", 103: "g", 104: "h", 105: "i", 106: "j", 107: "k", 108: "l", 109: "m", 110: "n", 111: "o", 112: "p", 113: "q", 114: "r", 115: "s", 116: "t", 117: "u", 118: "v", 119: "w", 120: "x", 121: "y", 122: "z", '':'' }
// function for pages with charset UTF-8
function suche (id){
var konvertiert = document.ordbogform.texto.value;
konvertiert = konvertiert.replace("/", "-");
konvertiert = konvertiert.replace(/^\s+|\s+$/g, '');
konvertiert = encodeURI(konvertiert);
window.open(id+ konvertiert,'_blank');
}
// function for pages with charset windows-1251 or ISO-8859-5
function suche3(id) {
var texto;
var ordbogform;
var o_text = document.ordbogform.texto.value;
var i;
var out="";
var debug="";
var oldchar;
var newchar;
for (i=0; i<o_text.length; i++) {
oldchar = o_text.charCodeAt(i);
newchar = win1251[oldchar];
if (newchar==undefined) {
newchar = oldchar
}
out=out+String(newchar)
}
out = out.replace(/^\s+|\s+$/g, '');
window.open(id+ out,'_blank');
}
// function for pages with charset windows-1252 or ISO-8859-1
function suche4 (id){
var konvertiert4 = document.ordbogform.texto.value;
konvertiert4 = konvertiert4.replace(/^\s+|\s+$/g, '');
konvertiert4 = konvertiert4.replace("/", "-");
konvertiert4 = escape(konvertiert4);
window.open(id+ konvertiert4,'_blank');
}
var ordbogform = document.createElement('form');
ordbogform.id ="ordbogform";
ordbogform.name="ordbogform";
ordbogform.method="post";
ordbogform.setAttribute("onsubmit", "return false");
ordbogform.onsubmit="return false";
var inddata = document.createElement('textarea');
inddata.setAttribute("class", "keyboardInput");
inddata.setAttribute("rows", "1");
inddata.setAttribute("cols", "15");
inddata.value =t;
inddata.setAttribute("onclick", "this.parentNode.submit();");
inddata.setAttribute("onkeypress", "inputenter(event)");
inddata.setAttribute("oninput", "inputwrap()");
inddata.setAttribute("onmousedown", "inputwrap()");
var f = t.toString();
if (f.indexOf('\n') >= 0) {
inddata.setAttribute("style", "height:140px !important;width:30% !important;");
texto.setAttribute("style", "height:140px !important;width:80% !important;");
button1.setAttribute("style", "display:none !important;");
}
inddata.id="texto";
s=document.createElement('script');s.id='r6109_vkbsgp';s.type='text/javascript';s.src=ordbogurl+'keyboard.js?,true,false';document.body.appendChild(s);void(null);
inddata.setAttribute("class", "keyboardInput");
inddata.value =t;
inddata.id="texto";
function inputenter(event) {
if (event.keyCode == 13) {
inddata.setAttribute("style", "height:140px !important;width:30% !important;");
texto.setAttribute("style", "height:140px !important;width:80% !important;");
button1.setAttribute("style", "display:none !important;");
var element = document.getElementById('texto'),
style = window.getComputedStyle(element),
height = style.getPropertyValue('height');
if (height == "26px") {
self.VKI_close();
}
}
}
function inputwrap() {
var searchText = document.getElementById("texto").value;
var inputLength = searchText.length;
if (inputLength > 20) {
inddata.setAttribute("style", "height:140px !important;width:30% !important;min-height:140px!important;max-height:140px!important;");
texto.setAttribute("style", "height:140px !important;width:80% !important;min-height:140px!important;max-height:140px!important;");
button1.setAttribute("style", "display:none !important;");
var element = document.getElementById('texto'),
style = window.getComputedStyle(element),
height = style.getPropertyValue('height');
if (height == "26px") {
self.VKI_close();
}
}
}
// #1: The URLs. Be aware of the ascending numbering and do not forget to call them below at #2
var input_de0 = document.createElement("input");
input_de0.type = "button";
input_de0.value = "DWDS";
input_de0.id = "inputordbog";
input_de0.title = "Digitale Wörterbuch der deutschen Sprache";
input_de0.onclick = function(){suche('https://www.dwds.de/wb/');return false;};
var input_de1 = document.createElement("input");
input_de1.type = "button";
input_de1.value = "ZweiDat";
input_de1.id = "inputordbog";
input_de1.title = "Datenbank sprachlicher Zweifelsfälle";
input_de1.onclick = function(){suche4('http://kallimachos.de/zweidat/index.php?title=Spezial:Suche&search=');return false;};
var input_de2 = document.createElement("input");
input_de2.type = "button";
input_de2.value = "Duden";
input_de2.id = "inputordbog";
input_de2.onclick = function(){suche('http://www.duden.de/suchen/dudenonline/');return false;};
var input_de3 = document.createElement("input");
input_de3.type = "button";
input_de3.value = "OWID";
input_de3.id = "inputordbog";
input_de3.title = "Online-Wortschatz-Informationssystem Deutsch des Instituts für Deutsche Sprache (IDS)";
input_de3.onclick = function(){suche('http://www.owid.de/suche/wort?wort=');return false;};
var input_de4 = document.createElement("input");
input_de4.type = "button";
input_de4.value = "Pons DaF";
input_de4.id = "inputordbog";
input_de4.title = "Deutsch als Fremdsprache";
input_de4.onclick = function(){suche('https://de.pons.com/übersetzung?l=dedx&in=&lf=&q=');return false;};
var input_de5 = document.createElement("input");
input_de5.type = "button";
input_de5.value = "Wiktionary";
input_de5.id = "inputordbog";
input_de5.onclick = function(){suche('https://de.wiktionary.org/wiki/');return false;};
var input_de6 = document.createElement("input");
input_de6.type = "button";
input_de6.value = "OpenThesaurus";
input_de6.id = "inputordbog";
input_de6.title = "Synonyme";
input_de6.onclick = function(){suche('https://www.openthesaurus.de/synonyme/');return false;};
var input_de7 = document.createElement("input");
input_de7.type = "button";
input_de7.value = "Redensarten";
input_de7.id = "inputordbog";
input_de7.onclick = function(){suche('http://www.redensarten-index.de/suche.php?bool=relevanz&gawoe=an&suchspalte[]=rart_ou&suchspalte[]=rart_varianten_ou&suchbegriff=');return false;};
var input_de8 = document.createElement("input");
input_de8.type = "button";
input_de8.value = "Wörterbuch-Portal";
input_de8.id = "inputordbog";
input_de8.title = "Heidelberger und Berlin-Brandenburgische Akademie der Wissenschaften";
input_de8.onclick = function(){suche('http://www.woerterbuch-portal.de/result?SUBMIT=Suche&WDG=1&DRW=1&eingabe=');return false;};
var input_de9 = document.createElement("input");
input_de9.type = "button";
input_de9.value = "Wörterbuchnetz";
input_de9.id = "inputordbog";
input_de9.title = "Universität Trier";
input_de9.onclick = function(){suche4('http://www.woerterbuchnetz.de/cgi-bin/WBNetz/startGlobalSearch.tcl?stichwort=');return false;};
var input_de10 = document.createElement("input");
input_de10.type = "button";
input_de10.value = "grammis";
input_de10.id = "inputordbog";
input_de10.title = "Wissenschaftliches Informationssystem zur deutschen Grammatik";
input_de10.onclick = function(){suche('https://grammis.ids-mannheim.de/suche?search=');return false;};
var input_de11 = document.createElement("input");
input_de11.type = "button";
input_de11.value = "FreeDictionary";
input_de11.id = "inputordbog";
input_de11.onclick = function(){suche('https://de.thefreedictionary.com/');return false;};
var input_korpus1 = document.createElement("input");
input_korpus1.type = "button";
input_korpus1.value = "LIMAS";
input_korpus1.id = "inputordbog";
input_korpus1.title = "Online-Wortschatz-Informationssystem Deutsch des Instituts für Deutsche Sprache (IDS)";
input_korpus1.onclick = function(){suche4('https://korpora.zim.uni-duisburg-essen.de/cgi-bin/Limas/chkinput.pl?startpos=1&seite=einfach.htm&menge=20&kontextbreite=1&suchtext=');return false;};
var input_korpus2 = document.createElement("input");
input_korpus2.type = "button";
input_korpus2.value = "DTA";
input_korpus2.id = "inputordbog";
input_korpus2.title = "Deutsches Textarchiv";
input_korpus2.onclick = function(){suche('http://www.deutschestextarchiv.de/search?in=text&q=');return false;};
var input_korpus3 = document.createElement("input");
input_korpus3.type = "button";
input_korpus3.value = "Zeitungskorpus 2011";
input_korpus3.id = "inputordbog";
input_korpus3.title = "Wortschatzportal (Korpus) Uni Leipzig";
input_korpus3.onclick = function(){suche('http://corpora.uni-leipzig.de/de/res?corpusId=deu_newscrawl_2011&word=');return false;};
var input_korpus4 = document.createElement("input");
input_korpus4.type = "button";
input_korpus4.value = "Zeitungskorpus 2012";
input_korpus4.id = "inputordbog";
input_korpus4.title = "Wortschatzportal (Korpus) Uni Leipzig";
input_korpus4.onclick = function(){suche('http://corpora.uni-leipzig.de/de/res?corpusId=deu-na_newscrawl_2012&word=');return false;};
var input_korpus5 = document.createElement("input");
input_korpus5.type = "button";
input_korpus5.value = "DWDS-Kernkorpus";
input_korpus5.id = "inputordbog";
input_korpus5.onclick = function(){suche('https://www.dwds.de/r?corpus=kern&date-start=1900&date-end=1999&genre=Belletristik&genre=Wissenschaft&genre=Gebrauchsliteratur&genre=Zeitung&format=full&sort=date_asc&limit=10&q=');return false;};
var input_korpus6 = document.createElement("input");
input_korpus6.type = "button";
input_korpus6.value = "Deutsches Textarchiv";
input_korpus6.id = "inputordbog";
input_korpus6.title = "Deutschsprachige Texte aus dem Zeitraum von ca. 1600 bis 1900";
input_korpus6.onclick = function(){suche('http://www.deutschestextarchiv.de/search?in=text&q=');return false;};
var input_en1 = document.createElement("input");
input_en1.type = "button";
input_en1.value = "dict.cc EN ⇔ DE";
input_en1.id = "inputordbog";
input_en1.onclick = function(){suche('http://www.dict.cc/?s=');return false;};
var input_en2 = document.createElement("input");
input_en2.type = "button";
input_en2.value = "Leo EN ⇔ DE";
input_en2.id = "inputordbog";
input_en2.onclick = function(){suche('https://dict.leo.org/englisch-deutsch/');return false;};
var input_en3 = document.createElement("input");
input_en3.type = "button";
input_en3.value = "Pons EN ⇔ DE";
input_en3.id = "inputordbog";
input_en3.onclick = function(){suche('https://en.pons.com/translate?l=deen&q=');return false;};
var input_en4 = document.createElement("input");
input_en4.type = "button";
input_en4.value = "Beolingus EN ⇔ DE";
input_en4.id = "inputordbog";
input_en4.onclick = function(){suche('http://dict.tu-chemnitz.de/dings.cgi?service=deen&opterrors=0&optpro=0&query=');return false;};
var input_en5 = document.createElement("input");
input_en5.type = "button";
input_en5.value = "bab.la EN ⇔ DE";
input_en5.id = "inputordbog";
input_en5.onclick = function(){suche('http://de.bab.la/woerterbuch/deutsch-englisch/');return false;};
var input_en7 = document.createElement("input");
input_en7.type = "button";
input_en7.value = "Phrases / Redewendungen EN ⇔ DE";
input_en7.id = "inputordbog";
input_en7.onclick = function(){suche('https://www.phrasen.com/index.php/suche/');return false;};
var input_bg1 = document.createElement("input");
input_bg1.type = "button";
input_bg1.value = "dict.cc BG ⇔ DE";
input_bg1.id = "inputordbog";
input_bg1.onclick = function(){suche('http://bgde.dict.cc/?s=');return false;};
var input_bg2 = document.createElement("input");
input_bg2.type = "button";
input_bg2.value = "Lingea BG ⇔ DE";
input_bg2.id = "inputordbog";
input_bg2.onclick = function(){suche('https://www.dict.com/немско-български/');return false;};
var input_mk1 = document.createElement("input");
input_mk1.type = "button";
input_mk1.value = "makedonisch.info MK ⇔ DE";
input_mk1.id = "inputordbog";
input_mk1.onclick = function(){suche('http://www.makedonisch.info/search/');return false;};
var input_mk2 = document.createElement("input");
input_mk2.type = "button";
input_mk2.value = "off.net.mk DE ⇒ MK";
input_mk2.id = "inputordbog";
input_mk2.onclick = function(){suche('http://recnik.off.net.mk/recnik/germanski-makedonski/');return false;};
var input_mk3 = document.createElement("input");
input_mk3.type = "button";
input_mk3.value = "off.net.mk MK ⇒ DE";
input_mk3.id = "inputordbog";
input_mk3.onclick = function(){suche('http://recnik.off.net.mk/recnik/makedonski-germanski/');return false;};
var input_ru1 = document.createElement("input");
input_ru1.onclick = function(){suche("http://www.multitran.ru/c/m.exe?HL=2&l1=3&l2=2&s=");return false;};
input_ru1.value = "Multitran RU ⇔ DE";
input_ru1.title = "";
input_ru1.type = "button";
input_ru1.id = "inputordbog";
var input_ru4 = document.createElement("input");
input_ru4.onclick = function(){suche("https://en.pons.eu/dict/search/results/?in=&l=deru&q=");return false;};
input_ru4.value = "Pons RU ⇔ DE";
input_ru4.title = "";
input_ru4.type = "button";
input_ru4.id = "inputordbog";
var input_ru5 = document.createElement("input");
input_ru5.onclick = function(){suche("https://dict.leo.org/russisch-deutsch/");return false;};
input_ru5.value = "LEO RU ⇔ DE";
input_ru5.title = "";
input_ru5.type = "button";
input_ru5.id = "inputordbog";
var input_ru6 = document.createElement("input");
input_ru6.onclick = function(){suche("http://www.ozali.org/deutsch-russisch/");return false;};
input_ru6.value = "Ozali RU ⇔ DE";
input_ru6.title = "";
input_ru6.type = "button";
input_ru6.id = "inputordbog";
var input_ru7 = document.createElement("input");
input_ru7.onclick = function(){suche("http://de.bab.la/woerterbuch/deutsch-russisch/");return false;};
input_ru7.value = "bab.la RU ⇔ DE";
input_ru7.title = "";
input_ru7.type = "button";
input_ru7.id = "inputordbog";
var input_ru8 = document.createElement("input");
input_ru8.onclick = function(){suche("http://deru.dict.cc/?s=");return false;};
input_ru8.value = "dict.cc RU ⇔ DE";
input_ru8.type = "button";
input_ru8.id = "inputordbog";
var input_ru10 = document.createElement("input");
input_ru10.onclick = function(){suche("https://www.translate.ru/dictionary/ru-de/");return false;};
input_ru10.value = "Promt RU ⇒ DE";
input_ru10.type = "button";
input_ru10.id = "inputordbog";
var input_ru11 = document.createElement("input");
input_ru11.onclick = function(){suche("https://www.translate.ru/dictionary/de-ru/");return false;};
input_ru11.value = "Promt DE ⇒ RU";
input_ru11.type = "button";
input_ru11.id = "inputordbog";
var input_ru12 = document.createElement("input");
input_ru12.onclick = function(){suche("http://starling.rinet.ru/cgi-bin/response.cgi?root=%2Fusr%2Flocal%2Fshare%2Fstarling%2Fmorpho&morpho=1&basename=morpho\\rugrte\\rugrte11&first=1&off=&text_type=&method_type=substring&ic_type=on&text_vochead=&method_vochead=substring&ic_vochead=on&text_etym=&method_etym=substring&ic_etym=on&text_content=&method_content=substring&ic_content=on&text_engl_term=&method_engl_term=substring&ic_engl_term=on&method_germ_term=substring&ic_germ_term=on&text_fran_term=&method_fran_term=substring&ic_fran_term=on&text_span_term=&method_span_term=substring&ic_span_term=on&text_esper_term=&method_esper_term=substring&ic_esper_term=on&text_syno=&method_syno=substring&ic_syno=on&text_anti=&method_anti=substring&ic_anti=on&text_correlat=&method_correlat=substring&ic_correlat=on&text_hyper=&method_hyper=substring&ic_hyper=on&text_hypo=&method_hypo=substring&ic_hypo=on&text_base=&method_base=substring&ic_base=on&text_deriv=&method_deriv=substring&ic_deriv=on&text_totum=&method_totum=substring&ic_totum=on&text_class=&method_class=substring&ic_class=on&text_combine=&method_combine=substring&ic_combine=on&text_illustr=&method_illustr=substring&ic_illustr=on&text_rus_exam=&method_rus_exam=substring&ic_rus_exam=on&text_engl_exam=&method_engl_exam=substring&ic_engl_exam=on&text_germ_exam=&method_germ_exam=substring&ic_germ_exam=on&text_fran_exam=&method_fran_exam=substring&ic_fran_exam=on&text_lat_exam=&method_lat_exam=substring&ic_lat_exam=on&text_span_exam=&method_span_exam=substring&ic_span_exam=on&text_etc_exam=&method_etc_exam=substring&ic_etc_exam=on&text_durnovo24_=&method_durnovo24_=substring&ic_durnovo24_=on&text_jakob_i=&method_jakob_i=substring&ic_jakob_i=on&text_jakob_p=&method_jakob_p=substring&ic_jakob_p=on&text_deut_term=&method_deut_term=substring&ic_deut_term=on&text_shax41page=&method_shax41page=substring&ic_shax41page=on&text_pesh56page=&method_pesh56page=substring&ic_pesh56page=on&text_karc28page=&method_karc28page=substring&ic_karc28page=on&text_karc00page=&method_karc00page=substring&ic_karc00page=on&text_karc04page=&method_karc04page=substring&ic_karc04page=on&text_pete23page=&method_pete23page=substring&ic_pete23page=on&text_pete25page=&method_pete25page=substring&ic_pete25page=on&text_avsid45=&method_avsid45=substring&ic_avsid45=on&text_not10=&method_not10=substring&ic_not10=on&text_nota1=&method_nota1=substring&ic_nota1=on&text_nota2=&method_nota2=substring&ic_nota2=on&text_nota3=&method_nota3=substring&ic_nota3=on&text_nota4=&method_nota4=substring&ic_nota4=on&text_nota5=&method_nota5=substring&ic_nota5=on&text_any=&method_any=substring&sort=type&ic_any=on&text_germ_term=");return false;};
input_ru12.value = "Крылов / Krylov DE ⇒ RU";
input_ru12.title = "Справочник по метаязыку русских грамматистов первой половины XX века / Linguistische Terminologie";
input_ru12.type = "button";
input_ru12.id = "inputordbog";
var input_ru13 = document.createElement("input");
input_ru13.onclick = function(){suche("https://de.langenscheidt.com/deutsch-russisch/");return false;};
input_ru13.value = "Langenscheidt DE ⇒ RU";
input_ru13.type = "button";
input_ru13.id = "inputordbog";
var input_da1 = document.createElement("input");
input_da1.type = "button";
input_da1.value = "dict.cc DA ⇔ DE";
input_da1.id = "inputordbog";
input_da1.title = "Deutsch/Dänisch, Tysk/Dansk";
input_da1.onclick = function(){suche('http://deda.dict.cc/?s=');return false;};
var input_da2 = document.createElement("input");
input_da2.type = "button";
input_da2.value = "pauker.at DA ⇔ DE";
input_da2.id = "inputordbog";
input_da2.title = "Deutsch/Dänisch, Tysk/Dansk";
input_da2.onclick = function(){suche('https://www.pauker.at/pauker/DE_DE/DA/wb/?modus=&page=1&suche=');return false;};
var input_da3 = document.createElement("input");
input_da3.type = "button";
input_da3.value = "Lingea DA ⇔ DE";
input_da3.id = "inputordbog";
input_da3.title = "Deutsch/Dänisch, Tysk/Dansk";
input_da3.onclick = function(){suche('https://www.dict.com/danisch-deutsch/');return false;};
var input_transl1 = document.createElement("input");
input_transl1.type = "button";
input_transl1.value = "Google Translate";
input_transl1.id = "inputordbog";
input_transl1.title = "Eingabe übersetzen";
input_transl1.onclick = function(){suche('https://translate.google.com/?hl=&tab=TT&text=');return false;};
var input_transl2 = document.createElement("input");
input_transl2.type = "button";
input_transl2.value = "Google Translate Webseiten";
input_transl2.id = "inputordbog";
input_transl2.title = "aktuelle Homepage übersetzen";
input_transl2.onclick = function(){window.open('https://translate.google.com/translate?&u='+window.location.href,'_blank');};
var input_transl3 = document.createElement("input");
input_transl3.type = "button";
input_transl3.value = "Yandex.Translate";
input_transl3.id = "inputordbog";
input_transl3.title = "Eingabe übersetzen";
input_transl3.onclick = function(){suche('https://translate.yandex.com/?text=');return false;};
var input_transl4 = document.createElement("input");
input_transl4.type = "button";
input_transl4.value = "Yandex.Translate Webseiten";
input_transl4.id = "inputordbog";
input_transl4.title = "aktuelle Homepage übersetzen";
input_transl4.onclick = function(){window.open('https://translate.yandex.com/translate?url='+window.location.href,'_blank');};
// #1 END ///////////////////
var divinnen = document.createElement('div');
divinnen.setAttribute("class", "ordbog-indhold");
var textluk = document.createTextNode('×');
var spanluk = document.createElement('span');
spanluk.setAttribute("class", "luk");
spanluk.title ="Fenster schließen (verwirft alle Eingabedaten)";
spanluk.appendChild(textluk);
divinnen.appendChild(spanluk);
divinnen.appendChild(ordbogform);
var textminimer = document.createTextNode('_');
var spanminimer = document.createElement('span');
spanminimer.setAttribute("class", "minimer");
spanminimer.title ="Fenster minimieren (behält Eingabedaten bei)";
spanminimer.appendChild(textminimer);
divinnen.appendChild(spanminimer);
divinnen.appendChild(ordbogform);
var spanoben = document.createElement('span');
spanoben.setAttribute("class", "oben");
var title = document.createElement('span');
title.setAttribute("class", "title");
var lupe = document.createElement('p');
lupe.setAttribute("class", "lupe");
lupe.setAttribute("title", "Suchbegriff eintragen oder ändern");
var lupeinhalt = document.createTextNode('⚲');
lupe.appendChild(lupeinhalt);
spanoben.appendChild(lupe);
spanoben.appendChild(inddata);
var button1 = document.createElement('input');
button1.type = "button";
button1.value = "vergrößern";
button1.id = "inputordbog";
button1.setAttribute("class", "bigger");
button1.title = "Eingabefeld vergrößern";
button1.setAttribute("onclick", "bigger2()");
spanoben.appendChild(button1);
var spantitle = document.createElement('span');
spantitle.setAttribute("class", "spantitle");
var texttitle = document.createTextNode('DE dicts');
spantitle.appendChild(texttitle);
title.appendChild(spantitle);
var spansubtitle = document.createElement('p');
spansubtitle.setAttribute("class", "spansubtitle");
var textsubtitle = document.createTextNode('Deutsche Wörterbücher / German Dictionaries');
spansubtitle.appendChild(textsubtitle);
title.appendChild(spansubtitle);
ordbogform.appendChild(title);
ordbogform.appendChild(spanoben);
var de_title = document.createElement('div');
var de_title_inhalt = document.createTextNode('Einsprachige Wörterbücher');
de_title.setAttribute("class", "dictsubtitle");
de_title.appendChild(de_title_inhalt);
var de_multi_title = document.createElement('div');
var de_multi_title_inhalt = document.createTextNode('Mehrsprachige Wörterbücher / Multilingual Dictionaries');
de_multi_title.setAttribute("class", "dictsubtitle");
de_multi_title.appendChild(de_multi_title_inhalt);
var corpora_title = document.createElement('div');
var corpora_title_inhalt = document.createTextNode('Korpora');
corpora_title.setAttribute("class", "dictsubtitle");
corpora_title.appendChild(corpora_title_inhalt);
var de_mk = document.createElement('div');
var de_mk_inhalt = document.createTextNode('MK: ');
de_mk.setAttribute("class", "sprachindikator");
de_mk.appendChild(de_mk_inhalt);
var de_en = document.createElement('div');
var de_en_inhalt = document.createTextNode('EN: ');
de_en.setAttribute("class", "sprachindikator");
de_en.appendChild(de_en_inhalt);
var de_bg = document.createElement('div');
var de_bg_inhalt = document.createTextNode('BG: ');
de_bg.setAttribute("class", "sprachindikator");
de_bg.appendChild(de_bg_inhalt);
var de_ru = document.createElement('div');
var de_ru_inhalt = document.createTextNode('RU: ');
de_ru.setAttribute("class", "sprachindikator");
de_ru.appendChild(de_ru_inhalt);
var de_da = document.createElement('div');
var de_da_inhalt = document.createTextNode('DA: ');
de_da.setAttribute("class", "sprachindikator");
de_da.appendChild(de_da_inhalt);
var transl_title = document.createElement('div');
var transl_title_inhalt = document.createTextNode('Automatische / maschinelle Übersetzung');
transl_title.setAttribute("class", "dictsubtitle");
transl_title.appendChild(transl_title_inhalt);
var umbruch = document.createElement('br');
var umbruch2 = document.createElement('br');
var umbruch3 = document.createElement('br');
var umbruch4 = document.createElement('br');
//var umbruch5 = document.createElement('br');
function bigger2() {
inddata.setAttribute("style", "height:140px !important;width:30% !important;");
texto.setAttribute("style", "height:140px !important;width:80% !important;");
button1.setAttribute("style", "display:none !important;");
}
// #2: Call here the URLs which have been declared above.
ordbogform.appendChild(de_title);
ordbogform.appendChild(input_de0);
ordbogform.appendChild(input_de2);
ordbogform.appendChild(input_de3);
ordbogform.appendChild(input_de8);
ordbogform.appendChild(input_de9);
ordbogform.appendChild(input_de4);
ordbogform.appendChild(input_de5);
ordbogform.appendChild(input_de6);
ordbogform.appendChild(input_de11);
ordbogform.appendChild(input_de7);
ordbogform.appendChild(input_de10);
ordbogform.appendChild(input_de1);
ordbogform.appendChild(de_multi_title);
ordbogform.appendChild(de_en);
ordbogform.appendChild(input_en1);
ordbogform.appendChild(input_en2);
ordbogform.appendChild(input_en3);
ordbogform.appendChild(input_en4);
ordbogform.appendChild(input_en5);
ordbogform.appendChild(input_en7);
ordbogform.appendChild(umbruch);
ordbogform.appendChild(de_ru);
ordbogform.appendChild(input_ru1);
ordbogform.appendChild(input_ru4);
ordbogform.appendChild(input_ru5);
ordbogform.appendChild(input_ru6);
ordbogform.appendChild(input_ru7);
ordbogform.appendChild(input_ru8);
ordbogform.appendChild(input_ru10);
ordbogform.appendChild(input_ru11);
ordbogform.appendChild(input_ru12);
ordbogform.appendChild(input_ru13);
ordbogform.appendChild(umbruch2);
ordbogform.appendChild(de_da);
ordbogform.appendChild(input_da3);
ordbogform.appendChild(input_da1);
ordbogform.appendChild(input_da2);
ordbogform.appendChild(umbruch3);
ordbogform.appendChild(de_bg);
ordbogform.appendChild(input_bg2);
ordbogform.appendChild(input_bg1);
ordbogform.appendChild(umbruch4);
ordbogform.appendChild(de_mk);
ordbogform.appendChild(input_mk1);
ordbogform.appendChild(input_mk2);
ordbogform.appendChild(input_mk3);
ordbogform.appendChild(transl_title);
ordbogform.appendChild(input_transl1);
ordbogform.appendChild(input_transl2);
ordbogform.appendChild(input_transl3);
ordbogform.appendChild(input_transl4);
//ordbogform.appendChild(umbruch5);
ordbogform.appendChild(corpora_title);
ordbogform.appendChild(input_korpus1);
ordbogform.appendChild(input_korpus2);
ordbogform.appendChild(input_korpus3);
ordbogform.appendChild(input_korpus4);
ordbogform.appendChild(input_korpus5);
ordbogform.appendChild(input_korpus6);
// #2 END ///////////////////
var linktitle = document.createElement('a');
linktitle.setAttribute("class", "linktitle");
var linktitletext = document.createTextNode("Dokumentation / weitere Wörterbücher");
linktitle.appendChild(linktitletext);
linktitle.title = "Erfahre mehr über dieses und andere Wörterbuch-Bookmarklets";
linktitle.href = "https://pod-o-mart.github.io/dictionaryBookmarklets";
linktitle.target = "_blank";
divinnen.appendChild(linktitle);
var divaussen = document.createElement('div');
divaussen.setAttribute("id", "ordbog");
divaussen.appendChild(divinnen);
document.body.appendChild(divaussen);
var ordbog = document.getElementById('ordbog');
var ordbogspan = document.getElementsByClassName("luk")[0];
var ordbogkleinspan = document.getElementsByClassName("minimer")[0];
ordbog.style.display = "block";
var versionindicator = document.createElement('div');
versionindicator.setAttribute("style", "padding: 0;color: grey;font: normal normal bold 10px verdana, sans-serif !important;float: left;white-space: nowrap;margin-top: 15px;");
versionindicator.innerHTML = "Version " + version;
divinnen.appendChild(versionindicator);
var divaussenklein = document.createElement('div');
divaussenklein.setAttribute("id", "ordbogklein");
var divaussenkleina = document.createElement('a');
divaussenkleina.title = "Klik for at genetabler ordbogsvinduet";
divaussenkleina.setAttribute("onmousedown", "display()");
inddata.setAttribute("onclick", "inputwrap()");
divaussenklein.appendChild(divaussenkleina);
var divaussenkleintext = document.createTextNode("DE dicts");
divaussenkleina.appendChild(divaussenkleintext);
document.body.appendChild(divaussenklein);
var div = document.getElementById('ordbogklein');
div.style.display = 'none';
ordbogspan.onclick = function() {
var elem = document.getElementById("ordbog"); elem.parentNode.removeChild(elem);
var elem2 = document.getElementById("ordbogklein"); elem2.parentNode.removeChild(elem2);
}
ordbogkleinspan.onclick = function(event) {
if (event.target == ordbogkleinspan) {
var div = document.getElementById('ordbog');
if (div.style.display !== 'none') {
div.style.display = 'none';
}
else {
div.style.display = 'block';
}
var div = document.getElementById('ordbogklein');
div.style.display = 'block';
}
}
window.onclick = function(event) {
if (event.target == ordbog) {
var div = document.getElementById('ordbog');
if (div.style.display !== 'none') {
div.style.display = 'none';
}
else {
div.style.display = 'block';
}
var div = document.getElementById('ordbogklein');
div.style.display = 'block';
}
}
}
else
{
display();
};
function display() {
if (window.getSelection)
{
inddata.value = window.getSelection();
}
else if (document.getSelection)
{
inddata.value = document.getSelection();
}
else if (document.selection)
{
inddata.value = document.selection.createRange().text;
}
else return;
var div = document.getElementById('ordbog');
if (div.style.display !== 'none') {
div.style.display = 'none';
}
else {
div.style.display = 'block';
}
var div = document.getElementById('ordbogklein');
div.style.display = 'none';
if (inddata.value.indexOf('\n') >= 0) {
inddata.setAttribute("style", "height:140px !important;width:30% !important;");
texto.setAttribute("style", "height:140px !important;width:80% !important;");
button1.setAttribute("style", "display:none !important;");
}
}
inputwrap();