Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mdndo-0004nD-OX for mharc-grub-devel@gnu.org; Wed, 19 Aug 2009 12:04:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mdndn-0004mW-4N for grub-devel@gnu.org; Wed, 19 Aug 2009 12:03:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mdndi-0004iS-9v for grub-devel@gnu.org; Wed, 19 Aug 2009 12:03:58 -0400 Received: from [199.232.76.173] (port=57978 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mdndi-0004iL-1P for grub-devel@gnu.org; Wed, 19 Aug 2009 12:03:54 -0400 Received: from mx20.gnu.org ([199.232.41.8]:55806) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mdndh-0005wo-6W for grub-devel@gnu.org; Wed, 19 Aug 2009 12:03:53 -0400 Received: from rv-out-0708.google.com ([209.85.198.250]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mdnde-0002zp-FO for grub-devel@gnu.org; Wed, 19 Aug 2009 12:03:50 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1806469rvb.6 for ; Wed, 19 Aug 2009 09:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=rQfqfdS3V1bq67Y1YwhHQ3sNHE9Yrwh+KnJAoSir2DI=; b=YGYyieLVL7B7YFcAPGeNo/ValcZrTJyjLHknXygrSvDRN84BOXKc7UfmWxwQCRW0zP tIDUTvDI9J9WJK+okUx76WPg/ADCL9ufEnzG78FbwOgqq7J4uX3x5CLUXQ7XcPwTS3X1 r1wRoZ2/VMWmUpb4l3opxO6EgGc0IAldB3ZNg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=wTLbOBhFPQlqLcgeIuJfn0pbpvSSmPEync3vpXpskoCjr9I91zgvMZoxYhHB34bJVf KpxenV9Ef04/cd9mx6q6rti7hB4+KfNl7j8ElGZ3rLVmV85qi3cY+k/SClz/es8XKn6e ZVviGA+pHfZ4MdNe0N7B2iymJNUBER0+6Tetc= MIME-Version: 1.0 Received: by 10.141.48.3 with SMTP id a3mr3806071rvk.266.1250697828270; Wed, 19 Aug 2009 09:03:48 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Aug 2009 00:03:48 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [RFC] Redesign of the menu system X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2009 16:03:59 -0000 On Wed, Aug 19, 2009 at 11:17 PM, Michal Suchanek wrote: > {} block syntax is also widely used and much easier to read and write > by humans than XML+CSS. > > I do not see the reason for pushing XML/CSS everywhere. It's a > compromise that does not quite work for neither of visual formatting, > other media formatting, automatic parsing nor user readability. > > While you can add additional properties that make it specific enough > for grub to know what to do (and drop things that grub would not use) > it is no longer really XML/CSS and the familiarity could be even > misleading. > > XML/CSS was created for the web but does not work even there because > it is unclear, underspecified, and does not solve problems of media > representation description that any decent menu system will want to > solve. > > Given that using XML/CSS is contradicting your goal of extensibility. Hi, It's just a format to represent data, XML or not, as long as it does the job, it's ok with me. The basic requirement would be: component has a name, and various number of attributes. Some component is container that have child components. Currently Colin use a format like this: + vbox { position = (10, 440) preferred_size = (620, 40) + label { text="Select an item with the arrow keys and press Enter to boot." font="lime Regular 11" color=#000 } + label { text="Press: 'c' for command line; 't' to switch to non-graphical menu." font="lime Regular 11" color=#000 } } If it's fine with others, I'd just stick to it. -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/