next if ($file=~/dealigner\.pl/i)
这个里面的i 是代表 “无限和无数”吗?
$line=substr ($line, 13);
这个怎么解读?
s/ +/ /g
这个什么意思?
不好意思,刚刚接触,问的比较。。。感谢回答。
这个里面的i 是代表 “无限和无数”吗?
$line=substr ($line, 13);
这个怎么解读?
s/ +/ /g
这个什么意思?
不好意思,刚刚接触,问的比较。。。感谢回答。
This was a program I wrote to extract English and Chinese texts from Trados translation Memory into separate files.
If a line contains the character string "<Seg L =EN", then remove the first 13 characters of the line (and write the remainder of the line into the file for the English text - another command);
If a line contains the character string "<Seg L =CN", then remove the first 13 characters of the line (and write the remainder of the line into the file for the Chinese text - another command).
So the following two lines in the translation memory
<Seg L=EN-GB><P><S>CHAPTER XXVI</S></P>
<Seg L=ZH-CN><P><S>???????ù??</S></
will become
<P><S>CHAPTER XXVI</S></P>
<P><S>???????ù??</S></P>
and they are written into separate files.
That's what I called "de-alignment"...