Skip to content

Aquafina-water-bottle/jmdict-english-yomichan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JMdict for Yomichan

This simply contains various versions of JMdict Yomichan dictionaries from the main website (from files JMdict, JMdict_e_examp, JMnedict.xml, etc.), compiled using yomichan-import. (Disclaimer: I did not make any of these tools.)

This repository exists to simply give people a more up-to-date version of this dictionary, for people who don't want to compile the dictionary themselves. A more up-to-date version of JMdict usually provides better definitions and coverage compared to older versions, so I would recommend updating this dictionary every few months.

To see your current version of JMdict, hover over this entry:

JMdict

Downloads

"JMdict English Extra" Usage Notes

  • For Windows users with a Chromium based browser (i.e. Google Chrome, Opera, Microsoft Edge, etc.), some emojis will not properly show (i.e. the flags). You can instead customize the emojis using the following CSS (relevant github issue):

    Sample CSS (click here)
    ul[data-sc-content="glossary"] {
      list-style-type: circle !important;
    }
    ul[data-sc-content="infoGlossary"] {
      list-style-type: "ℹ️ " !important; /* hint: try "💬 " */
    }
    ul[data-sc-content="sourceLanguages"] {
      list-style-type: "🌐 " !important;
    }
    ul[data-sc-content="notes"] {
      list-style-type: "📝 " !important;
    }
    ul[data-sc-content="antonyms"] {
      list-style-type: "🔄 " !important;
    }
    ul[data-sc-content="references"] {
      list-style-type: "➡️ " !important;
    }
    ul[data-sc-content="examples"] {
      list-style-type: "🇯🇵 " !important; /* hint: try "⛩️ ", "👺 ", "🗾 ", or "🎌 " */
    }
    ul[data-sc-content="examples"] > li[lang="en"] {
      list-style-type: "🇬🇧 " !important; /* hint: try "🗽 ", or "🌎 " */
    }
    Sample CSS (Text only, no emojis)
    ul[data-sc-content="glossary"] {
      list-style-type: circle !important;
    }
    ul[data-sc-content="infoGlossary"] {
      list-style-type: "◆ " !important; /* matches closer with monolingual dictionaries. If you want a symbol, try "ⓘ  " */
    }
    ul[data-sc-content="sourceLanguages"] {
      list-style-type: "語源: " !important;
    }
    ul[data-sc-content="notes"] {
      list-style-type: "メモ: " !important;
    }
    ul[data-sc-content="antonyms"] {
      list-style-type: "⇔  " !important;
    }
    ul[data-sc-content="references"] {
      list-style-type: "↪  " !important;
    }
    ul[data-sc-content="examples"] {
      list-style-type: "例文: " !important;
    }
    
    ol[data-count="1"].definition-list ul[data-sc-content="examples"],
    ol[data-count="1"].definition-list ul[data-sc-content="references"],
    ol[data-count="1"].definition-list ul[data-sc-content="antonyms"],
    ol[data-count="1"].definition-list ul[data-sc-content="notes"],
    ol[data-count="1"].definition-list ul[data-sc-content="sourceLanguages"],
    ol[data-count="1"].definition-list ul[data-sc-content="infoGlossary"] {
      padding-left: 2em !important;
    }

    The CSS above will not affect exported Anki definitions. You will need to add the appropriate CSS to your card template, if you want to change it for Anki as well.

  • Exporting cards with compact mode will not export correctly. In order to fix this, your main solution is to add the following CSS as described here:

    ul[data-sc-content="glossary"] li {
      display: inline-block;
      padding-right: 1em;
      margin-right: 1em;
      border-right: 2px solid;
    }
    
    ul[data-sc-content="glossary"] li:last-of-type {
      padding-right: 0px;
      margin-right: 0px;
      border-right: 0px solid;
    }

    If you prefer plaintext definitions, see options 1. and 2. as listed here. I highly recommend contributing a proper solution to Yomichan if you're interested.