文本规范技巧

求文本规范技巧,如下文:
<B> and .. if nothing special happen . mm I think .. I will stay at home . all the time <laughs> [ <XX> <\B>
<A> [ and if you feel bored how would you . how you cope if you suddenly feel that <\A>
<B> eh I will have a talk . with my er friends . telephone call . I will not feel . bored <laughs> I like en= eb I enjoy watching TV eh you know . during the summer holiday there're there are many wonderful er films . on TV . I li= and I: <laughs> nowadays when I was . nowadays when I er now I'm in the campus eh du= on weekends I will I will see a film <\B>
<A> ok maybe you can tell me about your hometown <\A>
<B> hometown is a er is a: small small is a small town er s= mm ... I <\B>
<A> what is it called <\A>

以<A>话轮为例,正确的是最后一个,即<A>后隔一个空格才是话语what is it ...; 中间的不规范,因为<A>空了四个字符才是话语,应该是空一个;但第一个也规范,因为同话步的空格数视乎同话步何时开始.

请问:可以如何很快将所有不规范的改过来如又不改变同话步空格数?
 
回复: 文本规范技巧

楼上文段格式不够明显,再粘贴如下
<B> and .. if nothing special happen . mm I think .. I will stay at home . all the time <laughs> [ <XX> <\B>
<A> [ and if you feel bored how would you . how you cope if you suddenly feel that <\A>

<B> eh I will have a talk . with my er friends . telephone call . I will not feel . bored <laughs> I like en= eb I enjoy watching TV eh you know . during the summer holiday there're there are many wonderful er films . on TV . I li= and I: <laughs> nowadays when I was . nowadays when I er now I'm in the campus eh du= on weekends I will I will see a film <\B>
<A> ok maybe you can tell me about your hometown <\A>
<B> hometown is a er is a: small small is a small town er s= mm ... I <\B>
<A> what is it called <\A>
 
回复: 文本规范技巧

把你原来的文本和期望的文本帖二行出来,让你们看明白.
 
回复: 文本规范技巧

不明白你说的问题。
查找替换:用两空格换一空格就都解决了。

如果要做批量处理可在PowerGREP软件中用正则表达式
查找\s+,替换为一个空格
 
Back
顶部