What is the order of magnitude of the substitutes, 10s, 100s, 1000s? If 10s, it would the easiest and the most generic is to use regex for this task. If more, then there should be a break point such that they can be groupped into multiple passes.
A related question: did anyone think of having a frond end to generate the word formation table from some humane format, such as regex or BNF? ----- Original Message ---- From: JC Coez <[EMAIL PROTECTED]> To: Programming forum <[email protected]> Sent: Wednesday, July 19, 2006 4:18:00 AM Subject: Re: [Jprogramming] Words formation Yes, I already used strings.ijs and specially rplc. As often, I just discover the error in my code... Sorry. Anyway, I will study ;: as a good exercise. ----- Original Message ----- From: "Eric Iverson" <[EMAIL PROTECTED]> To: "Programming forum" <[email protected]> Sent: Wednesday, July 19, 2006 1:14 AM Subject: Re: [Jprogramming] Words formation > Is x;:y possibly overkill for your problem? Or perhaps you are looking for > a good ;: exercise. From your very brief problem description I wonder if > strings.ijs wouldn't do a lot for you. You could open'strings' for a quick > look. > > ----- Original Message ----- > From: "JC Coez" <[EMAIL PROTECTED]> > To: "Programming forum" <[email protected]> > Sent: Tuesday, July 18, 2006 1:56 PM > Subject: [Jprogramming] Words formation > > >>I would like to use ;: verb to replace special strings by others in a >>text. In other words, I have a text (in french) and a catalog of words >>(letters and possibly special caracters including space) and their >>corresponding substitutes. If there are multiple spaces in the original >>text, I want to keep them too in the result. I thought that the x;:y as >>explained in the dictionary would be the best approach to solve that >>problem. But I am surely missing something and I can't do it. >> Are there any some examples of ;: available somewhere ? >> Thanks for any help >> JC Coez ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
