liuyunrushui 发表于 2013-11-1 17:56:22

【求助】关于dsl转换为EPWING

各位大神好!

几年来,在坛子里下载了很多大神的经典学习资料,受益无限,万分感谢!
mdict的日语词库不多,有限的几个也是从EPWING转换过来的,这一点颇为遗憾!
小弟想要是可以把abbly的dsl格式的词库转换为EPWING词库,也非常不错,这也是EPWING所缺乏的。
最近看了很多大神的教程,启发很多,也想尝试转换一下。

Hugh大神的帖子可谓经典之作,小弟从中学到了很多很多,非常感谢。
EPWING的源文件可以是HTML格式的,其大致结构如下:

<dt title="abode">abode /&#x0259;b'o&#x028A;d/ (abodes)</dt>
<key type="表記">abode</key>
<key type="クロス">abode</key>
<dd>
<p>1 usu poss N</p>
<p></p>
<p>Your <b>abode</b> is the place where you live. (FORMAL)</p>
<p><i>I went round the streets and found his new abode.</i></p>
<p>2 oft of PHR</p>
<p></p>
<p>If someone has <b>no fixed abode</b>, they are homeless. (LEGAL)</p>
<p><i>30 per cent of psychiatric hospital beds are occupied by people of no fixed abode.</i></p>
</dd>
<dt title="abolish">abol・ish /&#x0259;b'&#x0252;l&#x026A;&#x0283;/ (abolishes abolishing abolished)</dt>
<key type="表記">abolish</key>
<key type="クロス">abolish</key>
<dd>
<p> V n</p>
<p></p>
<p>If someone in authority <b>abolishes</b> a system or practice, they formally put an end to it.</p>
<p><i>The following year Parliament voted to abolish the death penalty for murder...</i></p>
</dd>
<dt title="abolition">abo・li・tion /'&aelig;b&#x0259;l'&#x026A;&#x0283;<sup>&#x0259;</sup>n/</dt>
<key type="表記">abolition</key>
<key type="クロス">abolition</key>
<dd>
<p> also a N, usu with supp, oft N of n</p>
<p></p>
<p>The <b>abolition</b> <b>of</b> something such as a system or practice is its formal ending.</p>
<p><i>...the abolition of slavery in Brazil and the Caribbean.</i></p>
</dd>

参考Hugh大神的帖子可以把dsl的很多诸如之类的标签去除,但是如何添加上面词条所示的HTML标签呢?小弟纯粹小白一个,烦请各位大神指教,多谢多谢。

liuyunrushui 发表于 2013-11-1 18:01:39

下面这三行,应该是epwing定义检索方式的,根据说明书所示,改为一行应该也可以。如下:

<dt title="abolish">abol・ish /əb'ɒlɪʃ/ (abolishes abolishing abolished)</dt>
<key type="表記">abolish</key>
<key type="クロス">abolish</key>

改为:
<dt>abode /əb'oʊd/ (abodes)</dt>

liuyunrushui 发表于 2013-11-1 18:05:55

下面这个网址有关于如何制作EPWING的英文说明:
http://www.japaneselanguagetools.com/docs/EBstudio.html

制作是使用EBStudio软件,其操作说明全是日文,小弟大致看了一下,其也支持一些常见的标签,有兴趣的大神可以参考下面网址:
http://ebstudio.info/manual/EBStudio/5_0_2_3_1.html

http://ebstudio.info/manual/EBStudio/5_0_2_3_2.html

liuyunrushui 发表于 2013-11-2 23:24:04

再来顶一下,期待大神给予指导^_^

Oeasy 发表于 2013-11-3 09:09:30

本帖最后由 Oeasy 于 2013-11-3 09:12 编辑

楼主的问题提得太宽泛了,连dsl的sample都不给,要完整准确地解答起码还得像Hugh那样写个帖子,这样10小时就没了。而一般人都懒得回帖的,所以基本不要指望人给你指导了。建议自己摸索,求人不如求己。
建议
1. 了解下dsl词典的Entry结构,参考:http://lingvo.helpmax.net/zh/%E6%95%85%E9%9A%9C%E6%8E%92%E9%99%A4/dsl-compiler/%E6%82%A8%E7%9A%84%E7%AC%AC%E4%B8%80%E6%9C%AC-dsl-%E8%AF%8D%E5%85%B8/
2. 和EPWING词典的Entry结构做对比,找到对应的地方,然后开工查找替换就行了等等。

bbkbbk 发表于 2013-11-3 14:45:08

Oeasy老大说的不错,我就是找张纸把dsl的标签写下来,旁边对应写上html的标签,一个一个替换而已。
当然也会用到几个简单的正则表达式,都在Hugh那个帖子里提到了。
祝楼主成功。

liuyunrushui 发表于 2013-11-3 20:55:28

谢谢两位的指点,小弟也把两者都打印出来,对照着看能否转换成功^_^多谢两位。

tovaremeterio 发表于 2014-4-1 09:05:47

thank you very much
页: [1]
查看完整版本: 【求助】关于dsl转换为EPWING