Re: init: API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le samedi 19 novembre 2005 à 13:43 +0000, Dave Mitchell a écrit :
> On Sat, Nov 19, 2005 at 11:16:24AM +0100, Nicolas Mailhot wrote:
> > Once again, what is wrong with /etc/fonts/fonts.conf ?
> 
> Because my brain can't parse XML. I'm speaking as someone who recently
> spent a lot of time messing with Ant files (XML/java based replacement for
> make). A simple example from /etc/fonts/fonts.conf:
> 
> <!--
>   Accept deprecated 'mono' alias, replacing it with 'monospace'
> -->
>         <match target="pattern">
>                 <test qual="any" name="family">
>                         <string>mono</string>
>                 </test>
>                 <edit name="family" mode="assign">
>                         <string>monospace</string>
>                 </edit>
>         </match>
> 
> There are 22 words in that chunk, of which 3 are the important ones
> (family/mono/monospace).  You can stare at that for minutes and what its
> doing still doesn't leap out at you.

And how would you express this in so its doings would leap at you ? What
is described here is not a simple operation, a more traditional syntax
would probably have used regexpes and other "simple" stuff which
requires 2 hours of man-page reading to be understood (let alone
modified). But sure, it would probably have been more compact.

-- 
Nicolas Mailhot

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux