- 论坛徽章:
- 0
|
原始题目:- I want to see @f1(what will happen) if we put the
- font change commands @f1(on a set of lines). If I
- understand
- things (correctly), the @f1(third) line causes problems.
- (No?).
- Is this really the case, or is it (maybe) just something
- else?
- Let's test having two on a line @f1(here) and @f1(there) as
- well as one that begins on one line and ends @f1(somewhere
- on another line). What if @f1(it is here) on the line?
- Another @f1(one).
复制代码 要求把 @f1(内容) 变成\fb内容\fr
如果做练习,作者的这个东东是对的:- # Scribe font change script.
- s/@f1(\([^)]*\))/\\fB\1\\fR/g
- /@f1(.*/{
- N
- s/@f1(\(.*\n[^)]*\))/\\fB\1\\fR/g
- P
- D
- }
复制代码 那么,如果在文本的well as one that begins on one line and ends @f1(somewhere之后在插入一行内容,你怎么做到替换成功? 如果这行之前还有@f1()是不是就无解,只能用交互式的进行?
|
|