[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Another strange macro request...



Rene,

If I were doing it, I would pull the 2 files into a Lotus spreadsheet,
insert a column with an unused character or combination between them, print
the spreadsheet as a file, then go into XyWrite and change the unused
character to a carrier return.

If I had to do it as a XyWrite XPL macro, I would set up 3 windows, one in
language A, one in language B, and the third a target file. I'd alternately
define and copy a line from language A and language B into the target file.
It would be a loop something like;

#1 XD DL #3 CP #2 XD DL #3 CP

LB start Label "start"
#1      Go to first window
XD      release define (if there is a define)
DL      define line
#3      go to target window
CP      copy
#2      go to second window
XD     release define
DL      define line
#3      go to target window
CP      copy
GL      start go back to label "start"

Hit Ctrl-Break when you're done. 

Norman

At 01:01 PM 9/17/02 +0900, Yo Intl. YK wrote:
>
>I am sorry if I am bothering the experts with weird macro requestis, but
>here I go again... just if somebody has a few minutes to take a crack at
>this, I would be delighted.
>
>Here is the situation:
>I have to files (computer files, very structured). One in language A, the
>other in language B.
>The number of lines is identical.
>Now what I need to produce is one combined file which contains langage A
>and language B alternatingly.
>So, for example, the files look like:
>
>File A:
>"Dialogue"
>"Cancel"
>"Group No."
>
>File B:
>"Dialog"
>"Abbrechen"
>"Gruppe Nr."
>
>What I need is:
>
>"Dialogue"
>"Dialog"
>"Cancel"
>"Abbrechen"
>"Group No."
>"Gruppe Nr."
>
>I thought about numbering all lines in File A with 1A, 2A, 3A and all lines
>in file B with "1B, 2B, 3B" etc, then merge the files and sort them, and
>then remove the numbering.
>But the files are huge, and even numbering would take a lot of time if done
>manually. Help?
>
>
>--
>-- Rene 
>
>

-------------------------------------------------------
Norman Bauman
411 W. 54 St. Apt. 2D
New York, NY 10019
(212) 977-3223
http://www.nasw.org/users/nbauman
Alternate address: nbauman@xxxxxxxx
-------------------------------------------------------