# Oxford Paravia English-Italian-English

**URL:** <https://forum.freemdict.com/t/topic/871>\
**Category:** 小语种\
**Tags:** oxford, italian, 意大利语\
**Created:** [2020 年2 月 29 日 13:17 UTC](https://forum.freemdict.com/t/topic/871 "2020-02-29T13:17:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![saas123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@saas123](https://forum.freemdict.com/u/saas123)\
**Post date:** [2020 年2 月 29 日 13:17 UTC](https://forum.freemdict.com/t/topic/871/1 "2020-02-29T13:17:00Z")

</div>

I thought it was better to create a MDX version of oxford paravia english-italian, since there’s no MDX of that dictionary, so I created that.  
29/2/20: first release  
[OxfordParavia.zip](https://forum.freemdict.com/uploads/short-url/nrR03XQ1iCxfnYo5CqQormBeBcY.zip) (17,7 MB)  
29/3/20:

1. merged two parts into one mdx file (thanks to @hua)
2. included a css and an empty js in the mdx (thanks to @hua)
3. now it’s more human-readable, adding orange color to the phrase to be translated, thanks to css (thanks to @kwomnk)
4. removed padding between a phrase and another one, as it took up too much space and it made longer the entry definition
5. added blue color in css, for meaning and green for alternative forms of entries below the entry  

[Oxford Paravia English-Italian Italian-English Dictionary.7z](https://forum.freemdict.com/uploads/short-url/A9vNF8TtRhN1NPseV4uEIhjCszt.7z) (20,1 MB)

---

<div class="post-metadata">

**Author:** ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
**Post date:** [2020 年2 月 29 日 13:20 UTC](https://forum.freemdict.com/t/topic/871/2 "2020-02-29T13:20:15Z")

</div>

thanks for your work!  
seems that you like separate mdx files haha.  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/1X/e1af6e7dee2098b0543db93e1aa8d2c23ea74171.png)

---

<div class="post-metadata">

**Author:** ![saas123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@saas123](https://forum.freemdict.com/u/saas123)\
**Post date:** [2020 年2 月 29 日 17:13 UTC](https://forum.freemdict.com/t/topic/871/3 "2020-02-29T17:13:41Z")

</div>

Yes, because they were separate ebooks and I had to convert them separately to MDX 😂

---

<div class="post-metadata">

**Author:** ![saas123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@saas123](https://forum.freemdict.com/u/saas123)\
**Post date:** [2020 年3 月 28 日 17:14 UTC](https://forum.freemdict.com/t/topic/871/4 "2020-03-28T17:14:01Z")

</div>

Hello @hua . I and @kwomnk tried several times to include these CSS on both IT-EN and EN-IT parts, but they didn’t work on GoldenDict, but they did on Eudic, beacuse it can recognise the CSS according to the MDX filename.  
Could you try to include them? Thanks  
[OPCSS.7z](https://forum.freemdict.com/uploads/short-url/ymJ29fx9mbs86KcO5ZtKbszjwX4.7z) (449 Byte)

---

<div class="post-metadata">

**Author:** ![kwomnk](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/k/4af34b/32.png) [@kwomnk](https://forum.freemdict.com/u/kwomnk)\
**Post date:** [2020 年3 月 28 日 17:38 UTC](https://forum.freemdict.com/t/topic/871/5 "2020-03-28T17:38:33Z")

</div>

@hua 为了给这个词典加点颜色，用欧陆时， 我把其他词典的css改成这个词典的名字，后来就出颜色了。

 ![image](https://forumcdn.freemdict.com/uploads/default/original/2X/2/2931ba76d5f967f0377e53a2411417164f71dcc0.png)

 ![image](https://forumcdn.freemdict.com/uploads/default/original/2X/3/314b54a90a98e75e57f02c3e10dcafc81be17f05.png)

但我把改名的css 转发给作者后，因为他用的是GoldenDict，不知怎的就是不出颜色！

---

<div class="post-metadata">

**Author:** ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
**Post date:** [2020 年3 月 29 日 07:12 UTC](https://forum.freemdict.com/t/topic/871/6 "2020-03-29T07:12:53Z")

</div>

I will check this issue tonight.

---

<div class="post-metadata">

**Author:** ![saas123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@saas123](https://forum.freemdict.com/u/saas123)\
**Post date:** [2020 年3 月 29 日 11:38 UTC](https://forum.freemdict.com/t/topic/871/7 "2020-03-29T11:38:52Z")

</div>

Okay. Thank you so much! This issue has been driving us crazy!

---

<div class="post-metadata">

**Author:** ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
**Post date:** [2020 年3 月 29 日 13:05 UTC](https://forum.freemdict.com/t/topic/871/8 "2020-03-29T13:05:15Z")

</div>

Done and enjoy!

[Oxford Paravia English-Italian Italian-English Dictionary.7z](https://forum.freemdict.com/uploads/short-url/mL3SuH6rC9487mmjxiDVS3m7aTi.7z) (20.1 MB)

Okay, let me explain how my fix works. MDX in nature is a collection of HTML files and in HTML files you will need to declare which css or js file you are going to use.  
The issue with your file is, HTML codes don’t come with declarations, so goldendict does not know which css or js file it uses for the dict. I add declarations to the content of each entry, so problem solved. By the way, I have combined the two dicts. If you like separate files, you can do it following the method and screenshot I provide here. I also make a combined cover the two dicts, haha.  
As for eudic, I **guess** it will automatically recognise and apply the css file with the same file name as MDX files.

 ![cover09332](https://forumcdn.freemdict.com/uploads/default/original/2X/4/42ebeb4abf51bc2ab1c4f16e08bf6fa73fb23e9c.jpeg)  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/2X/3/337f9fedb60915365ded3a96a1923b6339f063dd.png)

I put my python code for processing here, which is easy to understand, for those who may need.

```python
read1 = open('done.txt', 'r', encoding="utf8").readlines()

write1 = open('done_add.txt', 'w', encoding="utf8")
js_css = """<link rel="stylesheet" href="oxford_paravia_en22ita.css" type="text/css" ><script type="text/javascript" src="oxford_paravia_en22ita.js"></script>"""
for line in read1:
    if '<div>' in line:
        line = js_css + line
    write1.write(line)

write1.close()

```

你大概想到了是这个 css 没有被引用的原因吧？

---

<div class="post-metadata">

**Author:** ![saas123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@saas123](https://forum.freemdict.com/u/saas123)\
**Post date:** [2020 年3 月 29 日 15:25 UTC](https://forum.freemdict.com/t/topic/871/10 "2020-03-29T15:25:03Z")

</div>

Wow! Thank you! That’s much better than I did! Next time I want to include a css in a mdx, I’ll use that python code! 🙂  
Could you please explain how you combined two mdx/mdd files?

---

<div class="post-metadata">

**Author:** ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
**Post date:** [2020 年3 月 29 日 15:36 UTC](https://forum.freemdict.com/t/topic/871/11 "2020-03-29T15:36:20Z")

</div>

extract two mdx files get txt files, then copy and paste these two txt files into one txt file. finally convert txt to mdx

---

<div class="post-metadata">

**Author:** ![saas123](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@saas123](https://forum.freemdict.com/u/saas123)\
**Post date:** [2020 年3 月 29 日 15:45 UTC](https://forum.freemdict.com/t/topic/871/12 "2020-03-29T15:45:15Z")

</div>

Thank you so much for the explanation. If I understand correctly, when creating a mdx, however the entries are sorted, the mdxeditor sorts alphabetically, so it’s not a problem when two dictionaries in txt format are merged into a one txt.

---

<div class="post-metadata">

**Author:** ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
**Post date:** [2020 年3 月 29 日 16:22 UTC](https://forum.freemdict.com/t/topic/871/13 "2020-03-29T16:22:59Z")

</div>

basically you are right. 😀
