W
. 8 ( ! )A Eb ! 01010102.dat / Wٰ˳ e Wײ˶ WҶ YW )Wͷ uW W W֭۶ W W W UW̲շʳ Wϻ qW W W Wʽ WʽŹ WζС WƤ M Wʦ Wʱ Wع E
W·
W˿ W iWɶǻع WɹŹǼ =WС W W̶绰 5
Wζ
Wʨͷ
WعƬ MW Wල WǴ =W Wչ W 9W Wը W϶ QWԪ W˿ !WԴѿ W IW˶ W %Wֻ Wⷿ EW±Ѽ W± Wܲ UWܲë W˿ Wţ UW W WͿ yW̸ WëҺ )W÷ɲ˿ Wζţ W״ -Wۿ W֭ W֭ %W֭С W¯Ѽ WϺ֦ɳ 5Wľ Wǻõ WֺϷ !WĿ eW WϹŹ -WѵúͿ Wڻ· Wƹ !W W Wݲʲ ! Wݽצ WƤ WDZ !W Y!W !Wƴ "Wɫо }"Wɫſ "WɰŹ =#WɰŹ #Wɺ $W/ 0 IW˶ W %Wֻ Wⷿ EW±Ѽ W± Wܲ UWܲë W˿ Wţ UW W WͿ yW̸ WëҺ )W÷ɲ˿ Wζţ W״ -Wۿ W֭ W֭ %W֭С W¯Ѽ WϺ֦ɳ 5Wľ Wǻõ WֺϷ !WĿ eW WϹŹ -WѵúͿ Wڻ· Wƹ !W W Wݲʲ ! Wݽצ WƤ WDZ !W Y!W !Wƴ "Wɫо }"Wɫſ "WɰŹ =#WɰŹ #Wɺ $Wʲ߲ Q$Wʲ $Wץù %Wˬ e%Wı %W㹽 !&Wඹ m&Wʽβ &Wؼ 'WѼ 9'W m'W˿ 'W !(W㽷 (W֭ (W i)W̨ʽ )W̼ղܹ 1*W̼Ź *WǴȹ *Wˮľ 5+W彴 +W忧ଽչ
,Wʲ e,W ,Wʽ
-Wζſ i-Wζţ -Wţ .WѬ U.WѬ .Wƶ .W A/Wˮ /WˮϺ /W Y0W 0Wҹ
1Wһ Y1Wһ 1Wһ 1Wһǹͷ =2Wһ 2Wҽ 2Wҽ 53W m3W 3Wƴ )4Wˮ i4W \ ٰ˳ / ˶ _ ʲ _ R Q$Wʲ $Wץù %Wˬ e%Wı %W㹽 !&Wඹ m&Wʽβ &Wؼ 'WѼ 9'W m'W˿ 'W !(W㽷 (W֭ (W i)W̨ʽ )W̼ղܹ 1*W̼Ź *WǴȹ *Wˮľ 5+W彴 +W忧ଽչ
,Wʲ e,W ,Wʽ
-Wζſ i-Wζţ -Wţ .WѬ U.WѬ .Wƶ .W A/Wˮ /WˮϺ /W Y0W 0Wҹ
1Wһ Y1Wһ 1Wһ 1Wһǹͷ =2Wһ 2Wҽ 2Wҽ 53W m3W 3Wƴ )4Wˮ i4WӲ 4Wм 5Wԭ̬ q5W¹ 5W y6W 6W̨ 17Wնͷ 7WƲ 8WҲű q8Wְҵ 8Wְҵ A9WйʽӢ 9Wӵ㷿 :W i:Wעˮ :Wץ :Wץ M;Wװ ;Wײ <W ]<W߹ <W߹ u=Wʯ =W >W Y>W >WŮ ?W m?W魲ɳļ ?W 9@W쭳 @Wͻ @W d(6);
prestr += " ";
}
else if (linedata.Find("##") != -1)
{
if (prestr.IsEmpty())
{
destfile.WriteString(linedata);
}
else
{
destfile.WriteString(linedata.Left(6));
linedata = linedata.Mid(6);
if (!linedata.IsEmpty())
{
if (linedata[0] == '(' && linedata[2] == ')')
{
destfile.WriteString(linedata.Left(linedata.Find(")") + 2));
linedata = linedata.Mid(linedata.Find(")") + 2);
}
}
else
{
sourcefile.ReadString(linedata);
destfile.WriteString(linedata.Left(6));
linedata = linedata.Mid(6);
if (linedata[0] == '(' && linedata[2] == ')')
{
destfile.WriteString(linedata.Left(linedata.Find(")") + 2));
linedata = linedata.Mid(linedata.Find(")") + 2);
}
}
destfile.WriteString(prestr);
destfile.WriteString(linedata);
//prestr.Empty();
}
destfile.WriteString("\n");
}
else
{
if (linedata.Find("##") != -1 || linedata.Find("##") != -1)
prestr.Empty();
destfile.WriteString(linedata);
destfile.WriteString("\n");
}
}
sourcefile.Close();
destfile.Close();
}
}
void CProcessDlg::OnCombine1()
{
// TODO: Add your control notification handler code here
CString filename,pathname;
CFileDialog dlg(TRUE, _T("*.txt"), _T("*.txt"),
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, NULL, NULL);
if (dlg.DoModal()==IDOK)
{
filename=dlg.GetPathName();
pathname=filename.Left(filename.ReverseFind('\\') + 1);
CStdioFile sourcefile,destfile;
if (!sourcefile.Open(filename,CFile::modeRead))
{
MessageBox("can't open source file");
return;
}
destfile.Open(pathname + "wanghuan_cb1.txt", CFile::modeCreate|CFile::modeWrite);
CString linedata;
BOOL bEmptyZY = FALSE;
while(sourcefile.ReadString(linedata))
{
/* if (linedata.Find("##")!=-1) //q
{
if (linedata.GetLength() == 6)
bEmptyZY = TRUE;
else
bEmptyZY = FALSE;
destfile.WriteString("##");
destfile.WriteString(linedata.Mid(6));
}
else if (linedata.Find("Ӣ##")!=-1) //^q
{
if (!bEmptyZY)
destfile.WriteString(" ");
destfile.WriteString(linedata.Mid(6));
destfile.WriteString("\n");
}*/
if (linedata.Find("##")!=-1) //
{
destfile.WriteString("ʾ##");
destfile.WriteString(linedata.Mid(6));
}
else if (linedata.Find("Ӣ##")!=-1) //^
{
destfile.WriteString(" [");
destfile.WriteString(linedata.Mid(6));
destfile.WriteString("]\n");
}
else if (linedata.Find("##") != -1)//t
{
destfile.WriteString("##");
destfile.WriteString("");
destfile.WriteString(linedata.Mid(6));
destfile.WriteString("\n");
}
else
{
destfile.WriteString(linedata);
destfile.WriteString("\n");
}
}
sourcefile.Close();
destfile.Close();
MessageBox("finished!");
}
}
void CProcessDlg::OnDelKeyword()
{
// TODO: Add your control notification handler code here
CString filename,pathname,linedata,tmpstr;
CFileDialog dlg(TRUE, _T("*.txt"), _T("*.txt"),
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, NULL, NULL);
if (dlg.DoModal()==IDOK)
{
filename=dlg.GetPathName();
pathname=filename.Left(filename.ReverseFind('\\') + 1);
CStdioFile sourcefile,destfile, rptfile;
if (!sourcefile.Open(filename,CFile::modeRead))
{
MessageBox("can't open source file");
return;
}
destfile.Open(pathname+"wanghuan_del.txt",CFile::modeCreate|CFile::modeWrite);
rptfile.Open(pathname+"wanghuan_del.rpt",CFile::modeCreate|CFile::modeWrite);
BOOL bRec = FALSE;
BOOL nRecLine = 0;
CString recstr("");
while (sourcefile.ReadString(linedata)!= NULL)
{
if (linedata.Left(6) == "##" || linedata.Left(6) == "##") //r/
{
if (!recstr.IsEmpty())
{
if (nRecLine > 3)
{
destfile.WriteString(recstr);
}
else
rptfile.WriteString(recstr);
}
recstr.Empty();
if (linedata.Find("***") != -1)
{
bRec = FALSE;
rptfile.WriteString(linedata);
}
else
{
bRec = TRUE;
recstr += linedata;
recstr += "\n";
}
nRecLine = 1;
}
else
{
if (linedata.Find("##") == -1)
{
if (bRec)
{
recstr += linedata;
recstr += "\n";
}
nRecLine ++;
}
}
}
if (!recstr.IsEmpty())
{
if (nRecLine > 3)
{
destfile.WriteString(recstr);
}
else
rptfile.WriteString(recstr);
}
recstr.Empty();
sourcefile.Close();
destfile.Close();
rptfile.Close();
MessageBox("ok");
}
}
void CProcessDlg::OnReplaceSpecial()
{
// TODO: Add your control notification handler code here
//ഫS榡
// TODO: Add your control notification handler code here
CString filename,pathname,linedata,temp,buf,str,buf1;
CFileDialog dlg(TRUE, _T("*.txt"), _T("*.txt"),
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, NULL, NULL);
if (dlg.DoModal()==IDOK)
{
filename=dlg.GetPathName();
pathname=filename.Left(filename.ReverseFind('.'));
CStdioFile sourcefile,destfile;
if (!sourcefile.Open(filename,CFile::modeRead))
{
MessageBox("can't open source file");
return;
}
destfile.Open(pathname+"-1.txt",CFile::modeCreate|CFile::modeWrite);
while(sourcefile.ReadString(linedata))
{
linedata.Replace("","\x07\x04"); //
linedata.Replace("","\x07\x04");
linedata.Replace("","\x07\x03"); //
linedata.Replace("","\x07\x03");
linedata.Replace("","\x07\x01"); //U
linedata.Replace("","\x07\x01");
destfile.WriteString(linedata);
destfile.WriteString("\n");
}
sourcefile.Close();
destfile.Close();
MessageBox("finished!");
}
}
void CProcessDlg::OnPyCombine()
{
// TODO: Add your control notification handler code here
CString filename,pathname,linedata,tmpstr;
CFileDialog dlg(TRUE, _T("*.txt"), _T("*.txt"),
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, NULL, NULL);
if (dlg.DoModal()==IDOK)
{
filename=dlg.GetPathName();
pathname=filename.Left(filename.ReverseFind('\\')+1);
CStdioFile sourcefile,destfile;
if (!sourcefile.Open(filename,CFile::modeRead))
{
MessageBox("can't open source file");
return;
}
destfile.Open(pathname+"pycombine.txt",CFile::modeCreate|CFile::modeWrite);
CString curpy, prepy;
while (sourcefile.ReadString(linedata)!= NULL)
{
if (linedata.Left(2) == "~A")
{
curpy = linedata;
if (curpy != prepy && !prepy.IsEmpty())
{
destfile.WriteString(prepy);
destfile.WriteString("\n");
destfile.WriteString(tmpstr);
destfile.WriteString("~!\n");
tmpstr.Empty();
}
}
else if (linedata == "~!")
{
prepy = curpy;
}
else
{
tmpstr += linedata;
tmpstr += "\n";
}
}
if (!tmpstr.IsEmpty())
{
destfile.WriteString(curpy);
destfile.WriteString("\n");
destfile.WriteString(tmpstr);
destfile.WriteString("~!\n");
}
sourcefile.Close();
destfile.Close();
MessageBox("ok");
}
}
void CProcessDlg::OnPinyinIndex()
{
// TODO: Add your control notification handler code here
CString filename,pathname,linedata,tmpstr;
CFileDialog dlg(TRUE, _T("*.txt"), _T("*.txt"),
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, NULL, NULL);
if (dlg.DoModal()==IDOK)
{
filename=dlg.GetPathName();
pathname=filename.Left(filename.ReverseFind('\\')+1);
CStdioFile sourcefile,destfile;
if (!sourcefile.Open(filename,CFile::modeRead))
{
MessageBox("can't open source file");
return;
}
destfile.Open(pathname+"pyIndex.txt",CFile::modeCreate|CFile::modeWrite);
CString tmpstr;
while (sourcefile.ReadString(linedata)!= NULL)
{
if (linedata.Left(2) == "~A")
{
destfile.WriteString(linedata.Mid(2));
destfile.WriteString("\n");
}
else if (linedata.Left(2) == "~C")
{
if (tmpstr.Find(linedata.Mid(2)) == -1)
{
tmpstr += linedata.Mid(2);
tmpstr += " ";
}
/*destfile.WriteString(linedata.Mid(2));
destfile.WriteString(" ");*/
}
else if (linedata == "~!")
{
destfile.WriteString(tmpstr);
destfile.WriteString("\n\n");
tmpstr.Empty();
}
}
sourcefile.Close();
destfile.Close();
MessageBox("ok");
}
}
页ڡ linݡ页页页 zhnݡڡڡ tioݡ页۸ ݡ 页۹ ݡ页 linݣ̨ tiݣ zhnݡ页 页页页页页页ڡ页 tioݣ tioݣۼ jinݣۼ jinݡڡ页۸ ݡ页页ڡ 页ڡڡ页页页页 页页页页页页页 页 ᡵ۸ nݡڡڡڡ页页 ڡ页 页页页 页页۰ bݣ۸ ݡ 页 页 页页页页页 页 ᡵ页ҽ塵֦ zhݡء页塵页 tio ݡڡ 页页页页页ڡڡҽڡڡ页̨ tiݣ۸ ݡ页页 页页页页页 页页ڡڡ页页ڡڡ页 linݡ ƪ pin ݡ页页 ۰ bݣ۰ bݡ ᡵ 页 页页页页页页 ҽ页 zhnݡ tioݡҽ页页页ֻ zh tioݡ页ڡᡵ 页ҽ页۸ shnݣ۸ ݣۿ kuiݣ۸ ݣ shnݣ zhnݣ tioݣ۸ ݣ۸ ݣ۲ bݡ页ᡵᡵ 页页ᡵ页 tioݣ tioݣ۰ bݡ 页۸ ݣ۸ ݣ shnݣ۸ fݡ页 页页页۸ ݡ ۱ bn bݡ۸ ݡ۸ ݡ۸ ݡ۸ ݣ zuݣۼ jin toݣۿ kuiݣ shuݡ页页۷ fnݣ۱ b bݣ toݣ۲ b bnݡ 页 pnݡۿ kuiݣۿ kuiݣ۸ ݣ۸ nݡ页页ڡ页页页页۸ ݣ۸ nݣ۰ bݣ۸ ݡɡڡ页页ۿ k nݡ页 ۲ bݣƬ pinݣ۲ b toݡ页页ڡ页页 页ҽ页۸ kݣ֧ zhݡڡ 页 ұ 页۸ ݣ۸ ݣ۸ ݣ۸ ݣ۸ ݡ页۸ ݣ pݣ۱ bݣ۸ ݡ 页 ۸ kuiݡ页页页 页 xinݣ۰ bݣ۰ bݡڡڡڡڡ ڡڡҽڡڡ۸ ݡڡڡۼ jį tiݣ linݣ tioݡ页֡ڡɡڡڡ mnݡ zuݡڡڡڡũ۸ nݣ tioݡڡۼ jinݡڡڡڡڡ tioݣ tioݣ۱ bݡ 页ֻ zhݡ页ڡ۸ fݡ 塵۸ nݡ zhnݣ۸ ݡ塵ۼ jinݡ۸ ݡҽ页ҽ۰ bݡ页页页 ۸ fݡ页۸ ݣۿ kuiݡᡵ页ڡڡ minݡᡵ页页۰ bݡƬ pinݣ۰ bݡڡڡö miݡ۸ nݣ۸ ݡڡڡ页页 页页页 ۸ nݡڡڡյ zhnݣ۸ ݣ tioݣ۸ ݣ zu ݣ۸ ݣ۸ ݡ页页页页 ۸ ݡ塵页页硵页 页页页֦ zhݡ页页ũ zhnݡ页页ءʡƬ pinݣ tioݣ۸ ݡ졵۸ ݣ۸ ݣ۸ ݣۿ k ݡء۸ ݣ۸ ݣ zhn kuiݣ۸ ݣ zhnݡۼ jinݣ۸ nݡ zuݡʡʡ۸ ݣ۸ ݣ۸ ݣ۸ ݡ ۸ ݡ页页页页ڡᡵ 页ҽ۸ ݣ۸ ݣ۸ ݡ页ڡۿ kuiݡũ۸ ݡҩ۷ fnݣ۸ ݣ۸ ݡ硵硵۸ ݣ linݡ硵۽ jiݣյ zhnݡ̨ tiݡ硵硵硵۸ ݣ۲ b̨ tiݡ硵硵硵ۿ klnݡҽ۸ ݡ硵۰ npiݣ۸ ݣ̨ tiݡ硵۸ ݣ linݡ硵۷ flݡ硵̨ tiݣۼ jį tiݣ zuݣ۲ bݣ۸ nݣ۷ ftݣ۸ bݣ̨ tiݣۼ jiݣ zuݡҽ۸ ֧ zhݣ̨ tiݣ۸ ݣŷķ umݡɡۼ jiݡɡ۸ ݡɡۼ jiݣ۸ ݡ页页۸ ݡ塵۸ ݡ页 zu ݡ页ڡ页页 zuݣ̨ tiݣ zu