China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-29 10:58
中国DOS联盟论坛 » 论坛回收站 » Please provide more details about the specific script you need, such as what functionality it should have, related context, etc. Otherwise, I can't accurately provide the corresponding script file. Please supplement the relevant information. View 1,701 Replies 2
Original Poster Posted 2009-08-15 04:46 ·  中国 四川 遂宁 电信
初级用户
Credits 34
Posts 30
Joined 2008-11-24 15:21
17-year member
UID 131962
Gender Male
Status Offline
There are many files with the following basic format:
<link rel="stylesheet" type="text/css" href="style.css">
<DIV CLASS='un_div'><SPAN CLASS='un_name'>Li Bai
</SPAN></DIV>
<P><SPAN class=Title_41><a name="1"></a>【Person Name】</SPAN>
<DIV class=Content_42>Chinese Name: Li Bai</div>
<DIV class=Content_42>English Name: LiBai</div>
<DIV class=Content_42>Former Names: Li Taibai, Qinglian Jushi, Poet Immortal</div>
<P><SPAN class=Title_41><a name="2"></a>【Person Profile】</SPAN>

In the same file, 'un_name' has the same Chinese name, such as all being Li Bai, but different files have different names. The number of former names may be different, and others are the same. To make an MDICT format dictionary, it needs to be batch - changed to the following format through a JS script or program:

Li Taibai
See <meta http-equiv="refresh" content="0;url=entry://Li Bai">Li Bai</a></>
Qinglian Jushi
See <meta http-equiv="refresh" content="0;url=entry://Li Bai">Li Bai</a></>
Poet Immortal
See <meta http-equiv="refresh" content="0;url=entry://Li Bai">Li Bai</a></>
Li Bai
<link rel="stylesheet" type="text/css" href="style.css">
<DIV CLASS='un_div'><SPAN CLASS='un_name'>Li Bai
</SPAN></DIV>
<P><SPAN class=Title_41><a name="1"></a>【Person Name】</SPAN>
<DIV class=Content_42>Chinese Name: Li Bai</div>
<DIV class=Content_42>English Name: LiBai</div>
<DIV class=Content_42>Former Names: Li Taibai, Qinglian Jushi, Poet Immortal</div>
<P><SPAN class=Title_41><a name="2"></a>【Person Profile】</SPAN>

Earnestly request experts for help.
Floor 2 Posted 2009-08-15 04:58 ·  中国 北京 海淀区 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Poor child, always asking for code

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 3 Posted 2009-08-15 08:43 ·  中国 江苏 苏州 电信
中级用户
★★
Credits 247
Posts 83
Joined 2005-09-12 12:06
20-year member
UID 42446
Gender Male
Status Offline
It feels better to solve problems by oneself. That's how I am. Maybe experts can get it done in one line, but I'm happy even if I write ten lines by myself!
Forum Jump: