repo.or.cz
/
manpages-zh.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mv lapack files to man3 and man7
[manpages-zh.git]
/
utils
/
bi2fbfi.pl
blob
e7ed1168aaa389df02eed9bc7369d46ed3698c38
1
#!/usr/bin/env perl
2
#
3
# 将html 格式中的<B></B>转换为roff 格式中的\fB \fR
4
# <I></I> 也转换为 \fI \fR
5
#
6
while
(<>){
7
s/\<b\>(.*?)\<\/b\>/
\\
fB\
1
\\
fR
/
g
;
8
s/\<B\>(.*?)\<\/B\>/
\\
fB\
1
\\
fR
/
g
;
9
s/\<i\>(.*?)\<\/i\>/
\\
fI\
1
\\
fR
/
g
;
10
s/\<I\>(.*?)\<\/I\>/
\\
fI\
1
\\
fR
/
g
;
11
print
12
}