Gentoo Archives: gentoo-dev

From: Spider <spider@g.o>
To: gentoo-dev <gentoo-dev@g.o>
Cc: redhog@××××××.org
Subject: Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo wm's.
Date: Sat, 31 May 2003 16:48:52
Message-Id: 20030531184848.47b0d0ac.spider@gentoo.org
In Reply to: Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo wm's. by Svyatogor
1 CC'ing him here, he promised me the sourcecode .
2
3 //Spider
4
5
6 begin quote
7 On Sat, 31 May 2003 17:17:28 +0000
8 Svyatogor <svyatogor@g.o> wrote:
9
10 > That's interesting! Could you please send me your friends prog? As far
11 > as I understand he doesn't mind releasing the source.
12 >
13 > On Friday 30 May 2003 15:09, Spider wrote:
14 > > hi folks, this came as a reply when I bounced the initial mail to a
15 > > friend of mine whom I have been discussing implementation and so on
16 > > with(quite a while before any discussion on the list)
17 > >
18 > >
19 > > //Spider
20 > >
21 > >
22 > >
23 > >
24 > > begin forwarded message:
25 > >
26 > > Date: Fri, 30 May 2003 17:02:25 +0200
27 > > From: redhog <redhog@×××××××××.net>
28 > > To: Spider <spider@g.o>
29 > > Subject: Re: Fw: [gentoo-dev] [PROPOSAL] Menu system for all gentoo
30 > > wm's.
31 > >
32 > >
33 > > Kan du fwd:a mitt svar kanske?
34 > >
35 > > -----
36 > > Hi!
37 > > First of all both Debian and Mdk does have such systems. But they
38 > > are different, with different file-formats. In addition,
39 > > http://www.freedesktop.org/standards/desktop-entry-spec/desktop-entry-spec.
40 > >html
41 > >
42 > > specifies a third format, which is used by GNOME and KDE at the
43 > > moment. The system in Debian is quite broken, and the implementation
44 > > (the hack to convert from their format to the ones of the different
45 > > window-managers) even more so. Esepecially when it comes to
46 > > translating and transforming the menu.
47 > > We at TakeIT/Jamtlinux are currently using Debian (don't hate us for
48 > > that folks!) for a system for high-schools, and thus translation
49 > > into our native language, aswell as "dumbing-down" the menu (moving
50 > > all but the most frequently used apps to a special sub-menu), is
51 > > very important for our application. As the current Debian hack is
52 > > so broken, I decided
53 > >
54 > > to hack a new implementation of it, in Python. I succeeded with a
55 > > minimal version (supporting the same input format and output to the
56 > > GNOME/KDE format) of this in just an eavening (the old hack was
57 > > written in C, and thus much clumsier than mine), and continued with
58 > > support for different input sources, like the one specified by
59 > > freedesktop.org. The program reads a set of menu-sources (files or
60 > > directory structures) of different formats using input-modules,
61 > > stores all tanslations find in
62 > >
63 > > the input-files and combines them with ones provided in special
64 > > translation/language-packs, filters the entries using simple
65 > > python-expressions, transforms them (for example their paths down
66 > > through the menu-tree) using other such expressions, combines all
67 > > the entries to a tree, translates them using the stored
68 > > translations, and finally exports them to one or more destination
69 > > files/directory structures using output-modules for the different
70 > > fomats. This hack is totally independent of the Debian distribution
71 > > as such (it depends only on the Python language), and I wouldn't
72 > > mind if you included it in your distribution and/or added some more
73 > > input our output
74 > >
75 > > modules.
76 > > /Egil
77 >
78 > --
79 > Sergey Kuleshov <svyatogor@g.o>
80 > Let the Force be with us!
81 >
82 >
83 > --
84 > gentoo-dev@g.o mailing list
85 >
86
87
88 --
89 begin .signature
90 This is a .signature virus! Please copy me into your .signature!
91 See Microsoft KB Article Q265230 for more information.
92 end