Frank Küster <[EMAIL PROTECTED]> wrote: > I agree. Except that I think that we can assume that a "TeXstring" with > a hyphen after it can also be replaced always: > > (^|[[:space:]])TeX(-|[[:space:]]|$) > > at least until we find that it causes an error (a hyphen in front *and* > after TeX gives a false positive, the filename Debian-TeX-Policy).
This would probably be OK in most cases, yes. OTOH, I don't see many "English" words such as TeX-related that would benefit from such a treatment. So, this would mostly apply to words like TeX-XeT, which would probably benefit from a special case anyway (replacing them with their own command). BTW: I forgot to write it in my previous mail, but the regexes I proposed are valid with sed *provided* we use its -r option (aka --regexp-extended). Regards, -- Florent