|
4楼
楼主 |
发表于 2016-7-26 21:08:42
|
只看该作者
- open('MdxBuilder.cfg','w:utf-16LE',bom:true){|f|
- path = File.dirname(__FILE__).gsub("/","\")
- f.print %{<Setting InputFile="#{path}\\dictionary.html.txt" OutputFile="#{path}\\#{TITLE}原文例句词典.out.mdx" DataDir="" StyleFile="" SourceFormat="MDict(Html)" Encoding="UTF-8(Unicode)" KeyCaseSensitive="0" RightToLeftText="0" StripKey="1" Title="#{TITLE}" Description="" BuildDataOnly="0" IndexBlockSize="32" RecordBlockSize="64" EncryptKey=""/>\r\n}
- }
- system('MdxBuilder.exe','MdxBuilder.cfg')
复制代码 |
|