Tech

통합자막을 만들기 - UltraEdit Macro

onesixx 2009. 5. 24. 00:52
반응형


1. 영어자막을 열고서. 매크로 1.United-Eng 실행

InsertMode
ColumnModeOff
HexOff
UnixReOff
Find "<P Class=ENCC>"
Replace All "<P Class=ENCC><font color=yellow>"
Find "<P Class=EGCC>"
Replace All "<P Class=ENCC><font color=yellow>"
Find "<P Class=KRCC>"
Replace All "<P Class=ENCC><font color=yellow>"
Find "<BODY>"
Key END
SelectToTop
Key DEL
SelectToBottom
StartSelect
Key Ctrl+END
Copy
CloseFile

 

2. 한글자막을 열고서  2.United-Kor 실행

<SAMI>
<sss="sss/sss">
<!--
p{ddf:ddd;}
#1234
-->
</sss>
InsertMode
ColumnModeOff
HexOff
UnixReOff
Find "<P Class=KRCC>"
Replace All "<P Class=KRCC><font color = blue>"
Find "<P Class=EGCC>"
Replace All "<P Class=KRCC><font color = blue>"
Find "<P Class=ENCC>"
Replace All "<P Class=KRCC><font color = blue>"
Find "<BODY>"
Key END
SelectToTop
Key DEL
Top
"<SAMI>
<HEAD>
<TITLE>SIXX</TITLE>
<STYLE TYPE="text/css">
<!--
P {margin-left:2pt; margin-right:2pt; margin-bottom:1pt; margin-top:1pt;
    text-align:center; font-size:20pt; font-family: Arial, Sans-serif;
    font-weight:bold; color:white;}
.KRCC { Name:한국어;  lang:ko-KR; SAMIType:CC; }
.ENCC { Name:English; lang:en-EN; SAMIType:CC;}
#STDPrn {Name:Standard Print;}
#VLargePrn {Name:32pt (VLarge Print); font-size:32pt;}
#LargePrn {Name:28pt (Large Print); font-size:28pt;}
#MediumPrn {Name:24pt (Medium Print); font-size:24pt;}
#BSmallPrn {Name:18pt (BSmall Print); font-size:18pt;}
#SmallPrn {Name:12pt (Small Print); font-size:12pt;}
-->
</STYLE>
</HEAD>
<BODY>
"
Find "</BODY>"
Key HOME
SelectToBottom
StartSelect
Key Ctrl+END
EndSelect
Key DEL
"

"
Paste
Save

 

------------------

반응형

'Tech' 카테고리의 다른 글

OFFSET 함수  (0) 2009.05.30
사용자 지정  (0) 2009.05.30
ODS(Operational Data Store)  (0) 2009.05.25
UltraEdit Macro  (0) 2009.05.24
한 열의 빈행 삭제하기  (0) 2009.05.15
통화를 표시할때 천원 단위로 표기  (0) 2009.05.15