View Single Post
Old 05-27-2011, 01:20 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,350
Quote:
Originally Posted by Seth Manson View Post
Awesome new features.
Quote:
The synonym table syntax has been extended. Now it's possible to create case-insensitive rewrite rules which affects text only and preserve the HTML code (links, tags etc).
Since I still working on manual update, I will explain the new syntax here. To use it, you have to put the ">" symbol before the first word in your synonym entry. For example, let's assume that you have the following entry in your synonym table:

>google|teddy panda|big brother

So every occurrence of "google" (case doesn't matter) in the aggregating post will be replaced with "teddy panda" or "big brother". However "teddy panda" or "big brother" phases won't be replaced with "google". So it's not a synonymizing but a case-insensitive rewrite rule.

This rule works very similar to another rewrite rule which has "|" before the first word (e.g. |google|teddy panda|big brother) excepting two differences:
1) the ">" rewrite rule is case-insensitive;
2) the ">" rewrite rule affects text of your post only but it preserves your HTML code (tags, links etc). Thus if you want to rewrite some URL's, you need to use the old "|" rewrite rule.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote