Bổ sung tiếng Việt trong Bart’s PE
Công nghệ - Ngày đăng : 10:01, 07/07/2010
Sau khi tải Pebuilder3028.zip (phiên bản mới nhất tại thời điểm viết bài) từ địa chỉ http://www.nu2.nu/pebuilder, chúng ta giải nén tập tin này vào đĩa cứng. Giả sử chúng ta giải nén vào thư mục pebuilder3028 thì thư mục này sẽ có các file của Bart’sPE và 2 thư mục con là \DOC và \PLUGIN.
Trong thư mục plugin sẽ chứa các thư mục con khác, mỗi thư mục sẽ là một ứng dụng nào đó sẽ chạy khi quá trình tạo đĩa được hoàn tất. Mỗi plugin sẽ được thiết lập trên cơ sở một file có đuôi là .inf. Bạn có thể tham khảo thêm về các plugin trong file PLUGINHELP.HTM có trong thư mục \DOC
Để có giao diện desktop, taskbar và đặc biệt là System tray, bạn cần tải thêm plugin XPE 0.95 của tác giả Sherpya tại địa chỉ: http://oss.netfarm.it/winpe
Đặc biệt hiện đã có plugin cho bộ MS Office 97 SR2 của tác giả Natashatq tại 2 địa chỉ: http://www.911cd.net/forums/index.php?showtopic=4244&hl=office+97http://www.geocities.com/claudias_za
Cài thêm bộ gõ tiếng việt Unikey của tác giả Phan Kim Long:
- Trong thư mục PLUGIN tạo một thư mục con có tên là UNIKEY.
- Ta sẽ giải nén (hoặc copy) các file của Unikey vào một thư mục có tên là FILES trong thư mục UNIKEY này. Chạy tập tin Unikeynt.exe một lần để tạo file Ukhook35.dll.
- Dùng Notepad để tạo tập tin UNIKEY.INF (lưu dạng All Files với bảng mã ANSI) có nội dung chính xác như sau:
; PE Builder v3 plug-in INF file
; Plugin for Unikey Program by Phan Kim Long
; Created by Le Quoc Thuan
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="UnikeyNT"
Help="Ukhelp.htm"
Enable=1
[WinntDirectories]
a=Programs\Unikey,2
[SourceDisksFolders]
Files=a,,1
[Default.AddReg]
0x4,"Software\PKlong\Unikey","Showdlg",0x0
0x4,"Software\PKlong\Unikey","Vietnamese",0x0
0x4,"Software\PKlong\Unikey","CodeTable",0x0
0x4,"Software\PKlong\Unikey","SwitchKey",0x0
0x4,"Software\PKlong\Unikey","OtherCharset",0x5
0x4,"Software\PKlong\Unikey","InputMethod",0x0
0x4,"Software\PKlong\Unikey","FreeMarking",0x0
0x4,"Software\PKlong\Unikey","ToneNextToVowel",0x0
0x4,"Software\PKlong\Unikey","ModernStyle",0x0
0x4,"Software\PKlong\Unikey","VietGUI",0x1
0x4,"Software\PKlong\Unikey","InConvCharset",0x0
0x4,"Software\PKlong\Unikey","OutConvCharset",0x1
0x4,"Software\PKlong\Unikey","ClipboardConvert",0x1
0x4,"Software\PKlong\Unikey","MacroEnabled",0x0
0x4,"Software\PKlong\Unikey","UseUnicodeClipboard",0x0
[Software.Addreg]
; start up with XPE by Sherpya
0x2,"Sherpya\XPEinit\startup","UniKey","%Systemdrive%\Programs\Unikey\unikeyNT.exe
[Append]
Nu2menu.xml,unikey_nu2menu.xml
- Tương tự tạo một tập tin khác có tên là UNIKEY_NU2MENU.XML (cũng lưu dạng All Files, ANSI) với nội dung như trong box bên cạnh:
DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\Unikey\unikeynt.exe))" CMD="RUN"
FUNC="@GetProgramDrive()\Programs\unikey\unikeynt.exe">Unikey
- Cả 2 tập tin trên đều sẽ được lưu vào thư mục UNIKEY
Cài thêm các font chữ tiếng Việt “truyền thống”
Ở đây tôi chỉ chọn mỗi bảng mã một font chữ làm ví dụ, các bạn có thể từ đó bổ sung thêm các font của mình theo nhu cầu.
- Trong thư mục PLUGIN bạn tiếp tục tạo một thư mục khác có tên VNFONTS chẳng hạn. Copy những font chữ mà bạn muốn thêm vào chương trình của Bart’sPE vào thư mục VNFONTS này. Trong ví dụ minh họa sau chúng ta sẽ thêm các font chữ sau: VNarial (Mã Vietware), VNI-Times (mã VNI) và .VNArial (mã TCVN3-ABC) cụ thể là các tập tin sau: varialn.ttf; varialb.ttf ;variali.ttf; vharialn.ttf; vharial.ttf; vharialb.ttf; vhariabi.ttf’; vhariali.ttf; vnarial.ttf; vnarialb.ttf; vnariabi.ttf; vnariali.ttf; vnarialn.ttf; vnarianb.ttf; vnariani.ttf; vtimesn.ttf; vtimesb.ttf; vtimesbi.ttf; vtimesi.ttf
- Dùng Notepad để tạo tập tin VNFONTS.INF (lưu dạng All Files với bảng mã ANSI) có nội dung chính xác như sau và lưu ở thư mục VNFONTS:
; PE Builder v3 plug-in INF file
; Created by Le Quoc Thuan
;Vietnamese Extra Fonts
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="Vietnamese Fonts"
Help="VNFont.htm"
Enable=1
[SourceDisksFiles]
*.ttf=22,,1
[Software.AddReg]
; Moi dong sau se bat dau bang 0x1 va ket thuc bang ten font chu
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts","VNarial
(TrueType)","varialn.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts","VNarial Bold
(TrueType)","varialb.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts","VNarial Italic
(TrueType)","variali.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArial NarrowH
(TrueType)","vharialn.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArialH
(TrueType)","vharial.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArialH Bold
(TrueType)","vharialb.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArialH Bold Italic
(TrueType)","vhariabi.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArialH Italic
(TrueType)","vhariali.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArial
(TrueType)","vnarial.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArial Bold
(TrueType)","vnarialb.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArial Bold Italic
(TrueType)","vnariabi.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArial Italic
(TrueType)","vnariali.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArial Narrow
(TrueType)","vnarialn.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArial Narrow
Bold (TrueType)","vnarianb.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts",".VnArial Narrow
Italic (TrueType)","vnariani.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts","VNI-Times
(TrueType)","vtimesn.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts","VNI-Times-Bold
(TrueType)","vtimesb.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts","VNI-Times-Bold-
Italic (TrueType)","vtimesbi.ttf"
0x1,"Microsoft\Windows NT\CurrentVersion\Fonts","VNI-Times-Italic
(TrueType)","vtimesi.ttf"
; Ôban co the tiep tuc bo sung them nhieu font khac tiep theo
Muốn thêm những font chữ khác đã cài trong máy đang sử dụng bạn có thể tiến hành theo cách sau:
Copy các font bạn cần vào thư mục VNFONTS ở trên. Vào REGISTRY tìm và Export nhánh [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] thành một file .reg (ví dụ FONT.REG)
Dùng notepad mở file FONT.REG này, bạn sẽ có các giá trị registry của các font để thêm vào file VNFONTS.INF trên theo cú pháp cũng giống như các font đã ghi trong box. Ví dụ từ: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts],“Tên font chữ(typyface name)” = “tên file (.tff/.fon)”
sẽ được chuyển thành: 0x1,”Microsoft\Windows NT\CurrentVersion\Fonts”,”Tên font chữ(typyface name)”,”tên file (.tff/.fon)”
Nếu có thời gian bạn có thể truy cập vào website h t t p: //www.911cd.net/forums/ index.php?act=SC&c=8 để tham khảo thêm.