[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Find/replace algorithm

Subject: Re: Find/replace algorithm
From: "Albright, Jim jim_albright@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Mar 2021 13:40:46 -0000
Re:  Find/replace algorithm
An ancient but very powerful tool called Consistent Changes handles this
very easily.  Program available for free at
https://software.sil.org/cc/

The table would be

'xxxx'    >  'yyyyyyy'
'as many items'    >  'that you like'
'very efficient'       >  'but old program'

I use this program along with XSLT.  I choose the best from each world.
Right now I am converting a dictionary in Word format to be input into FLEx
(our linguistic tool) for handling dictionaries. I export Word to XHTML and
then process with the context in mind with XSLT.  After I have done as much
as I can here I switch to CC. There are lots of items that are better
handled with the changes tables.

Jim Albright
Wycliffe Bible Translators
704-562-1529


On Thu, Mar 25, 2021 at 1:35 PM Liam R. E. Quin liam@xxxxxxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> On Thu, 2021-03-25 at 16:29 +0000, rick@xxxxxxxxxxxxxx wrote:
> > Thank you Michael. I like the idea of keeping the processing cost
> > constant
> > but I was going to use regular expressions in my map, so I may still
> > have to
> > loop through the lookup structure.
>
> An alternative to consider is to put your input document into a map and
> check each map key against all the tokens.
>
> Liam
>
>
>
> --
> Liam Quin, https://www.delightfulcomputing.com/
> Available for XML/Document/Information Architecture/XSLT/
> XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
> Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.