From julien@c-lab.de Sun Mar 15 07:28:59 2009 From: Julien Claassen To: linux-audio-dev@lists.linuxaudio.org Subject: [LAD] [ot] Vim substitution question... Date: Sun, 15 Mar 2009 07:28:59 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8494170210747990207==" --===============8494170210747990207== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello all! I'm sorry to bother you with that, but I don't find a feasable solution fo= r=20 this. It's all about patterns. Imagine the following text examples:

What I need to do is make sure, that every TAG (a and p in these cases) an= d=20 every attribute (href, title, name, id and center in these examples) is lower= =20 case. I've tried a lot, but I'm not the crack at patterns and so I got no=20 completely satisfying result, if I got any at all. :-( Could someone please help me here? Kindest regards Julien -------- Music was my first love and it will be my last (John Miles) =3D=3D=3D=3D=3D=3D=3D=3D FIND MY WEB-PROJECT AT: =3D=3D=3D=3D=3D=3D=3D=3D http://ltsb.sourceforge.net the Linux TextBased Studio guide =3D=3D=3D=3D=3D=3D=3D AND MY PERSONAL PAGES AT: =3D=3D=3D=3D=3D=3D=3D http://www.juliencoder.de --===============8494170210747990207==-- From fbar@footils.org Sun Mar 15 08:29:26 2009 From: Frank Barknecht To: linux-audio-dev@lists.linuxaudio.org Subject: Re: [LAD] [ot] Vim substitution question... Date: Sun, 15 Mar 2009 08:29:26 +0000 Message-ID: <20090315123116.GE18220@fliwatut.scifi> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3298493459736648154==" --===============3298493459736648154== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hallo Julien, maybe instead of using Vim, you are better off with using a HTML cleanup tool. The on called "tidy" is popular and available in most Linux distributions - in Debian the package is called "tidy". There also is an online version here: http://valet.htmlhelp.com/tidy/ Ciao -- Frank Barknecht Do You RjDj.me? _ ______footils.org__ --===============3298493459736648154==-- From julien@c-lab.de Sun Mar 15 08:44:27 2009 From: Julien Claassen To: linux-audio-dev@lists.linuxaudio.org Subject: Re: [LAD] [ot] Vim substitution question... Date: Sun, 15 Mar 2009 08:44:27 +0000 Message-ID: In-Reply-To: <20090315123116.GE18220@fliwatut.scifi> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2068443765415413539==" --===============2068443765415413539== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hallo Frank! Thanks for the tipp. I had a look into it, but it looks like it won't be much help. Because I've only got fragments of html. The server is zope. Which means, that there are some part like top and bottom of the documents, encapsulated in their own places. It would look like: [code] [more code] The header and footer can also be omitted if the file is declared as local content. Then there only the code part. Which means a sub-part of the tags. Thanks anyway. I'll study the utility, it looks interesting. Kindest regards Julien -------- Music was my first love and it will be my last (John Miles) ======== FIND MY WEB-PROJECT AT: ======== http://ltsb.sourceforge.net the Linux TextBased Studio guide ======= AND MY PERSONAL PAGES AT: ======= http://www.juliencoder.de --===============2068443765415413539==-- From fbar@footils.org Sun Mar 15 09:00:39 2009 From: Frank Barknecht To: linux-audio-dev@lists.linuxaudio.org Subject: Re: [LAD] [ot] Vim substitution question... Date: Sun, 15 Mar 2009 09:00:39 +0000 Message-ID: <20090315130038.GA15792@footils.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5143653494573657578==" --===============5143653494573657578== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hallo Julien, to process only parts of a html file, you can use the show-body-only configuration option which you can set to "yes", "no" or "auto".=20 For example if you have a file with just this in it: LINK and you run:=20 tidy --show-body-only auto FILENAME.html it will fix that snippet and not add any other tags. I think it should work f= or Zope as well, as Zope templates are valid xml, IIRC. Ciao --=20 Frank --===============5143653494573657578==-- From julien@c-lab.de Sun Mar 15 09:04:24 2009 From: Julien Claassen To: linux-audio-dev@lists.linuxaudio.org Subject: Re: [LAD] [ot] Vim substitution question... Date: Sun, 15 Mar 2009 09:04:24 +0000 Message-ID: In-Reply-To: <20090315130038.GA15792@footils.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8437066387061408070==" --===============8437066387061408070== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Thanks! I didn't see that in the options list. I'll have to study it more careful. Warm regards Julien -------- Music was my first love and it will be my last (John Miles) ======== FIND MY WEB-PROJECT AT: ======== http://ltsb.sourceforge.net the Linux TextBased Studio guide ======= AND MY PERSONAL PAGES AT: ======= http://www.juliencoder.de --===============8437066387061408070==--