On Fri, May 19, 2006 at 01:05:59AM -0600, Archaic wrote: > The font configuration section of xorg shows a sed that clobbers > Bitstream Vera fonts. While DejaVu is clearly preferred, do we want to > remove the references to Bitstream? > > I've been playing around with sed and came up with this: > > sed -i \ > 's,\(^\t\t*\)\(<family>Bitstream Vera\)\(.*\),\1<family>DejaVu\3\n\1\2\3,' \ > fonts.conf > > which produces a diff like this: > > + <family>DejaVu Serif</family> > <family>Bitstream Vera Serif</family> > > The 1st reference required a * because some of the lines began with 3 > tabs instead of 2. I'm no regex master, so perhaps this can be shortened > by someone better than me (assuming the results are even desired).
Excuse the lack of quoting, but I'm CC'ing Alex since he might not be reading the lists right now and I want to be sure I'm staying within the desired final results. Anyway, I found a problem with the sed for Arphic fonts as well (both in the wiki and in the livecd Makefile). Again, the tab count might be 2 or 3, so I'm using this similar sed:: sed -i 's,\(^\t\t*\)\(<family>Kochi.*\),\1\2\n\1<family>AR PL New Sung</family>,' -- Archaic Want control, education, and security from your operating system? Hardened Linux From Scratch http://www.linuxfromscratch.org/hlfs -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
