Codebase list ding / a7b1f2c
Imported Debian patch 1.2-5 Roland Rosenfeld 8 years ago
9 changed file(s) with 344 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
0 ding (1.2-5) unstable; urgency=low
1
2 * s/summarieses/summarises/, s/formating/formatting/,
3 s/license/to license/ (Closes: #229463).
4 * Remove duplicated "::" from dictionary (line "in terms of").
5 * Build dict-de-en package from this source instead of providing
6 a separate source package which build-depends from this package
7 (Thanks to Andreas Tille <tille@debian.org> for providing this).
8 * Added "Homepage:" to long decription according to developers
9 reference.
10 * Added Build-Depends from dict-de-en.
11 * dict-de-en depends from dict-server (instead of dictd)
12 (Closes: #227513).
13 * Recode dictd dictionary to UTF-8 (Closes: #217210).
14 * Rewrite of conv.py in Perl.
15 * Split alternatives ("|") for dictd usage into multiple entries.
16 * Add invoke-rc.d support to dict-de-en postinst/postrm scripts.
17 * Missing " : " added to some abbreviations.
18 * Add support for abbreviations (defined by " : ") (Closes: #222824).
19 * Add "Beschluss {m} | Beschlüsse {pl} :: resolution | resolutions"
20 (Closes: 230156).
21
22 -- Roland Rosenfeld <roland@debian.org> Sat, 31 Jan 2004 09:29:47 +0100
23
024 ding (1.2-4) unstable; urgency=low
125
226 * Distinguish between summarize [Am.] and summariese [Br.] (Closes: #212140).
22 Priority: optional
33 Maintainer: Roland Rosenfeld <roland@debian.org>
44 Standards-Version: 3.6.1
5 Build-Depends-Indep: debhelper (>= 4), man-db, bsdmainutils
5 Build-Depends-Indep: debhelper (>= 4), man-db, bsdmainutils, dictfmt, dictzip, locales, recode
66
77 Package: ding
88 Architecture: all
2525 German-English dictionary which can be found in the trans-de-en
2626 package, but you can use every other translation word lists with one
2727 entry per line.
28 .
29 Homepage: http://www-user.tu-chemnitz.de/~fri/ding/
2830
2931 Package: trans-de-en
3032 Architecture: all
3537 .
3638 This dictionary was designed for the "ding" dictionary lookup
3739 program, but may be used by other clients, too.
40 .
41 The source of the database is available from
42 http://dict.tu-chemnitz.de/
43
44 Package: dict-de-en
45 Architecture: all
46 Depends: dict, dict-server
47 Description: German-English translation dictionary for dictd
48 German-English and English-Deutsch translation dictionary for
49 the dictd server. It contains approximately 124,000 entries.
50 .
51 The source of the database is available from
52 http://dict.tu-chemnitz.de/
0 #! /usr/bin/perl -w
1 #
2 # Based on conv.py, which is GPL
3 # Copyright (C) 2002 John Goerzen
4 #
5 # Rewrite in perl by
6 # Copyright (C) 2004 Roland Rosenfeld <roland@spinnaker.de>
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 2 of
11 # the License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #
22 # $Id: conv.pl,v 1.7 2004/01/25 22:37:42 roland Exp $
23 #
24
25 use strict;
26 my $reverse = 0;
27 if (($#ARGV>=0) && ($ARGV[0] eq '-r')) {
28 $reverse = 1;
29 $ARGV = shift;
30 }
31
32 while (<>) {
33 if (/^\#/) {
34 print;
35 next;
36 }
37 if (! /::/) {
38 next;
39 }
40 chomp;
41 my ($entry, $definition) = split / :: /;
42 if (($entry =~ /^\s*$/) || ($definition =~ /^\s*$/)) {
43 next;
44 }
45 if ($entry =~ / : /) {
46 my ($eshort, $elong) = split / : /, $entry;
47 my ($dshort, $dlong) = split / : /, $definition;
48 if ($reverse) {
49 doall ("$dshort : $dlong", "$eshort : $elong") unless $dshort eq '-';
50 doall ("$dlong : $dshort", "$elong : $eshort") unless $dlong eq '-';
51 } else {
52 doall ("$eshort : $elong", "$dshort : $dlong") unless $eshort eq '-';
53 doall ("$elong : $eshort", "$dlong : $dshort") unless $elong eq '-';
54 }
55 } else {
56 if ($reverse) {
57 doall ($definition, $entry);
58 } else {
59 doall ($entry, $definition);
60 }
61 }
62 }
63
64 sub doall {
65 my ($entry, $definition) = @_;
66 my @elist = split /\|/, $entry;
67 my @dlist = split /\|/, $definition;
68 if ($#elist != $#dlist) {
69 print STDERR "Fehler: $entry :: $definition\n";
70 next;
71 }
72 for (my $i=0; $i<=$#elist; $i++) {
73 $entry = $elist[$i];
74 $definition = $dlist[$i];
75 for ($entry, $definition) {
76 s/^\s+//;
77 s/\s+$//;
78 }
79 if ($entry eq '' || $definition eq '') {
80 next;
81 }
82 $entry =~ s/^to //;
83 printdef ($entry, $definition);
84 }
85 }
86
87 sub printdef {
88 my ($entry, $definition) = @_;
89 my @entrylist = split /;/, $entry;
90 foreach $entry (@entrylist) {
91 my $comment = '';
92 # move heading () after the main entry:
93 $entry =~ s/^(\([^\)]+\))\s*([^\[\{\(]+)/$2 $1/;
94 if ($entry =~ /[\[\(\{]| : /) {
95 ($entry, $comment) = $entry =~ /^([^\[\(\{]*)(([\[\(\{]| : ).*)$/;
96 }
97 for ($entry, $comment) {
98 s/^\s+//;
99 s/\s+$//;
100 }
101 if ($comment ne '') {
102 $comment = " $comment";
103 }
104 print ":$entry:$comment\n";
105 print " $definition\n";
106 }
107 }
0 #!/usr/bin/python
1 # By John Goerzen
2 # GPL
3 # Copyright (C) 2002 John Goerzen
4 from sys import argv, stdin, stdout
5 import re
6
7 reverse = 0
8
9 if len(argv) >= 2 and argv[1] == '-r':
10 reverse = 1
11
12 def printdef(entry, definition):
13 entrylist = entry.split(';')
14 definition = definition.strip()
15 for item in entrylist:
16 bracetype = re.search('[(\[{].+[)\]}]', item)
17 if bracetype:
18 bracetype = " " + bracetype.group(0)
19 item = re.sub('[(\[{].+[)\]}]', '', item)
20 else:
21 bracetype = ""
22 item = item.strip()
23 if reverse:
24 if item.startswith("to "):
25 item = item[3:]
26 print ":%s:%s" % (item, bracetype)
27 print " %s" % (definition)
28
29 while 1:
30 line = stdin.readline()
31 if not line:
32 break
33 line.strip()
34 if line[0] == '#':
35 stdout.write(line)
36 continue
37
38 if line.find("::") == -1:
39 continue
40 entry, definition = line.split("::")
41 if not entry.strip() or not definition.strip():
42 continue
43 if not reverse:
44 printdef(entry, definition)
45 else:
46 printdef(definition, entry)
47
0 *.dz usr/share/dictd
1 *.index usr/share/dictd
0 #! /bin/sh
1 #
2 # see: dh_installdeb(1)
3
4 set -e
5
6 # summary of how this script can be called:
7 # * <postinst> `configure' <most-recently-configured-version>
8 # * <old-postinst> `abort-upgrade' <new version>
9 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
10 # <new-version>
11 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
12 # <failed-install-package> <version> `removing'
13 # <conflicting-package> <version>
14 # for details, see http://www.debian.org/doc/debian-policy/ or
15 # the debian-policy package
16 #
17 # quoting from the policy:
18 # Any necessary prompting should almost always be confined to the
19 # post-installation script, and should be protected with a conditional
20 # so that unnecessary prompting doesn't happen if a package's
21 # installation fails and the `postinst' is called with `abort-upgrade',
22 # `abort-remove' or `abort-deconfigure'.
23
24 case "$1" in
25 configure)
26 DICTDEFAULTS=/etc/default/dictd
27
28 if `sed "s/#.*//" ${DICTDEFAULTS} | grep -q -w UTF-8` ; then
29 echo ${DICTDEFAULTS} is OK.
30 else
31 echo ${DICTDEFAULTS} will be fixed ...
32 echo "DICTD_ARGS=\"$DICTD_ARGS --locale=de_DE.UTF-8\"" \
33 >> ${DICTDEFAULTS}
34 fi
35
36 [ -x /usr/sbin/dictdconfig ] && dictdconfig -w
37 if [ -x /etc/init.d/dictd ]
38 then
39 if [ -x /usr/sbin/invoke-rc.d ]
40 then
41 invoke-rc.d dictd restart
42 else
43 /etc/init.d/dictd restart
44 fi
45 fi
46 ;;
47
48 abort-upgrade|abort-remove|abort-deconfigure)
49 ;;
50
51 *)
52 echo "postinst called with unknown argument \`$1'" >&2
53 exit 1
54 ;;
55 esac
56
57 # dh_installdeb will replace this with shell code automatically
58 # generated by other debhelper scripts.
59
60 #DEBHELPER#
61
62 exit 0
63
64
0 #! /bin/sh
1 #
2 # see: dh_installdeb(1)
3
4 set -e
5
6 # summary of how this script can be called:
7 # * <postrm> `remove'
8 # * <postrm> `purge'
9 # * <old-postrm> `upgrade' <new-version>
10 # * <new-postrm> `failed-upgrade' <old-version>
11 # * <new-postrm> `abort-install'
12 # * <new-postrm> `abort-install' <old-version>
13 # * <new-postrm> `abort-upgrade' <old-version>
14 # * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
15 # for details, see http://www.debian.org/doc/debian-policy/ or
16 # the debian-policy package
17
18
19 case "$1" in
20 purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
21
22 [ -x /usr/sbin/dictdconfig ] && dictdconfig -w
23
24 if [ -x /etc/init.d/dictd ]
25 then
26 if [ -x /usr/sbin/invoke-rc.d ]
27 then
28 invoke-rc.d dictd restart
29 else
30 /etc/init.d/dictd restart
31 fi
32 fi
33 ;;
34
35 *)
36 echo "postrm called with unknown argument \`$1'" >&2
37 exit 1
38 ;;
39
40 esac
41
42 # dh_installdeb will replace this with shell code automatically
43 # generated by other debhelper scripts.
44
45 #DEBHELPER#
46
47 exit 0
1515 build-stamp:
1616 dh_testdir
1717
18 # Build dictionaries for dictd daemon
19 mkdir locale
20 localedef -i de_DE -f UTF-8 locale/de_DE
21 ./debian/conv.pl < ger-eng.txt | \
22 recode -f iso-8859-1..UTF-8 | \
23 env LOCPATH=locale dictfmt -j --locale de_DE.utf-8 \
24 -u 'http://dict.tu-chemnitz.de/' \
25 -s 'German - English Dictionary 1.2' \
26 german-english
27 dictzip german-english.dict
28 localedef -i en_US -f UTF-8 locale/en_US
29 ./debian/conv.pl -r < ger-eng.txt | \
30 recode -f iso-8859-1..UTF-8 | \
31 env LOCPATH=locale dictfmt -j --locale en_US.utf-8 \
32 -u 'http://dict.tu-chemnitz.de/' \
33 -s 'English - German Dictionary 1.2' \
34 english-german
35 dictzip english-german.dict
36
1837 touch build-stamp
1938
2039 clean:
2140 dh_testdir
2241 dh_testroot
2342 rm -f build-stamp
43
44 -rm -f *.dz *.index *.dict *.dictfmt
45 -rm -rf locale
2446
2547 dh_clean
2648
6385 dh_installdocs
6486 dh_installexamples
6587 dh_installmenu
88 dh_install
6689 # dh_installdebconf
6790 # dh_installlogrotate
6891 # dh_installemacsen
64586458 Beschluss {m}; Beschlufl {m} [alt] :: decision
64596459 Beschluss {m}; Bestimmtheit {f} :: determination
64606460 Beschluss {m} | den Beschluss fassen, etwas zu tun :: resolve | to make a resolve to do something
6461 Beschluss {m} | Beschlüsse {pl} :: resolution | resolutions
64616462 Beschlussfähigkeit {f} :: quorum
64626463 Beschlussunfähigkeit {f} :: absence of quorum
64636464 Beschmutzer {m} | Beschmutzer {pl} :: defiler | defilers
1557015571 Forderungsübernahme {f} :: assumption of indebtedness
1557115572 Forelle {f} [zool.] | Forellen {pl} :: trout | trouts
1557215573 Form {f} | in aller Form :: form | in due form
15573 in Form von; im Sinne als; hinsichtlich :: :: in terms of
15574 in Form von; im Sinne als; hinsichtlich :: in terms of
1557415575 Formabweichungen {pl} :: geometrical error
1557515576 Formaldehyd {n} [chem.] :: formaldehyde
1557615577 Formalin {n} [chem.] :: formalin
7045670457 fasst falsch auf :: misconceives
7045770458 fasst ins Auge :: envisages
7045870459 fasst sich :: recollects
70459 fasst zusammen :: summarizes [Am.]; summarieses [Br.]
70460 fasst zusammen :: summarizes [Am.]; summarises [Br.]
7046070461 fasst ab :: indites
7046170462 fasst zusammen :: recapitulates
7046270463 fasste :: collared
7135671357 formalistisch {adv} :: formalisticly
7135771358 formatfrei :: nonformatted
7135871359 formatieren :: to format
71359 formatierend :: formating
7136071360 formatierend :: formatting
7136171361 formatiert :: formatted
7136271362 formatiert :: formats
8189681896 liturgisch :: liturgic
8189781897 liturgische :: liturgical
8189881898 liturgisch {adv} :: liturgically
81899 lizenzieren :: license
81899 lizenzieren :: to license
8190081900 lizenziert :: licensed
8190181901 lobbend :: lobbing
8190281902 loben :: to commend
114467114467 Pkt. : Punkt :: pt : point
114468114468 Pkw, PKW : Personenkraftwagen :: - : motor car
114469114469 Pl. : Platz :: Sq., Pl. : Square, Place
114470 PLZ : Postleitzahl :: : postcode, zip code [Am.]
114470 PLZ : Postleitzahl :: - : postcode, zip code [Am.]
114471114471 pp(a). : per Prokura :: p.p. : per pro(c).; per procurationem; by proxy
114472114472 Priv.-Doz. : Privatdozent :: - : unsalaried lecturer
114473114473 Prof. : Professor :: Prof. : Professor
114733114733 - : elektronischer Zahlungsverkehr :: EFT : electronic funds transfer
114734114734 - : gekapseltes Postscript :: EPS : encapsulated PostScript
114735114735 ESA : Europäische Weltraumbehörde :: ESA : European Space Agency
114736 ESZB : Europäisches System der Zentralbanken :: : European System of Central Banks
114736 ESZB : Europäisches System der Zentralbanken :: - : European System of Central Banks
114737114737 EWI : Europäisches Währungsinstitut :: EMI : European Monetary Institute
114738114738 EWS : Europäisches Währungssystem :: EMS : European Monetary System
114739114739 EWWU : Europäische Wirtschafts- und Währungsunion :: EEMU : European Economic and Monetary Union
114783114783 - : britische Schulabschlussprüfung :: GCSE : General Certificate of Secondary Education [Br.]
114784114784 BIP : Bruttoinlandsprodukt {n} :: GDP : Gross Domestic Product
114785114785 - : General {m} :: Gen. : General
114786 - : amerikanischer Soldat :: GI :
114786 - : amerikanischer Soldat :: GI : -
114787114787 - : von der Regierung ausgegeben, Staatseigentum :: GI : government issue
114788114788 BSP : Bruttosozialprodukt {n} :: GNP : gross national product
114789114789 - : Regierung {f} :: Gov., Govt. : government
115018115018 VHF : Ultrakurzwellenbereich :: VHF : very high frequency
115019115019 VIP : prominente Persönlichkeit :: VIP : very important person
115020115020 - : contra, gegen :: vs. : versus
115021 - Tierarzt {m} :: VS : veterinary surgeon
115021 - : Tierarzt {m} :: VS : veterinary surgeon
115022115022 - : Qualitätsmerkmal für Weinbrand :: VSOP : very special (superior) old pale
115023115023 - : umgekehrt :: vv, v.v. : vice versa
115024115024 - : Angehöriger des weißen amerikanischen Bürgertums (protestantischem Glaubens) :: WASP : White Anglo-Saxon Protestant
115086115086 - : soweit ich sagen kann :: AFAICT : as far as I can tell
115087115087 - : soviel ich weifl, soweit ich weifl :: AFAIK : as far as I know
115088115088 - : abwesend vom Computer, nicht an der Tastatur :: AFK : away from keyboard
115089 - Bin ich Jesus? :: AIJ : Am I Jesus?
115089 - : Bin ich Jesus? :: AIJ : Am I Jesus?
115090115090 - : so, wie ich die Sache sehe :: AISI : as I see it
115091115091 - : so, wie ich es verstehe :: AIUI : as I understand it
115092115092 - : auch bekannt als :: AKA : also known as
115979115979 Al-Iskandariyah; Alexandria (Stadt in Ägypten) :: Al-Iskandariyah; Alexandria (city in Egypt)
115980115980 Houston (Stadt in USA) :: Houston (city in USA)
115981115981 Wuhan (Stadt in China) :: Wuhan (city in China)
115982 Yangon; Rangun; Rangoon (Hauptstadt von Myanmar; Burma) :: Yangon; Rangoon (capital of Myanmar; Birma)
115982 Yangon; Rangun; Rangoon (Hauptstadt von Myanmar, Burma) :: Yangon; Rangoon (capital of Myanmar, Birma)
115983115983 Chongqing (Stadt in China) :: Chongqing (city in China)
115984115984 Harbin (Stadt in China) :: Harbin (city in China)
115985115985 Shenyang (Stadt in China) :: Shenyang (city in China)