From c600ec48f2e025597cfa774913157a5e78f3b961 Mon Sep 17 00:00:00 2001 From: MarvNC Date: Sun, 7 Jul 2024 00:48:42 -0700 Subject: [PATCH 1/2] Explain Adding Dictionary CSS Files --- docs/making-yomitan-dictionaries.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/making-yomitan-dictionaries.md b/docs/making-yomitan-dictionaries.md index 79769f4f7c..019a053d2e 100644 --- a/docs/making-yomitan-dictionaries.md +++ b/docs/making-yomitan-dictionaries.md @@ -31,6 +31,10 @@ Below is a list of Yomitan dictionary schemas, their expected filenames, and the | [`dictionary-term-bank-v3-schema.json`](https://github.com/themoeway/yomitan/tree/master/ext/data/schemas/dictionary-term-bank-v3-schema.json) | `term_bank_${number}.json` | Stores dictionary readings, definitions, etc. | | [`dictionary-term-meta-bank-v3-schema.json`](https://github.com/themoeway/yomitan/tree/master/ext/data/schemas/dictionary-term-meta-bank-v3-schema.json) | `term_meta_bank_${number}.json` | Stores meta information about terms, such as frequency data and pitch accent data. | +## Adding Custom CSS + +You can add custom CSS to a dictionary simply by adding a `styles.css` file to the root of the dictionary zip archive. This file will be loaded by Yomitan and applied to the dictionary viewer with the styles scoped to the dictionary. For example, observe the `styles.css` file in the [official test dictionary](\test\data\dictionaries\valid-dictionary1). + ## Packaging A Dictionary A dictionary can contain various types of information within the zip file. After creating an `index.json` and the relevant data files, zip them with all data `.json` files in the root directory of the zip, not in subfolders. Use the highest compression level possible to reduce the size. From 5b17278f102d3383a67d1fcfe238e0b9cd2c5e71 Mon Sep 17 00:00:00 2001 From: MarvNC Date: Sun, 7 Jul 2024 01:00:56 -0700 Subject: [PATCH 2/2] Fix Test Dict Link --- docs/making-yomitan-dictionaries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/making-yomitan-dictionaries.md b/docs/making-yomitan-dictionaries.md index 019a053d2e..430d64c20c 100644 --- a/docs/making-yomitan-dictionaries.md +++ b/docs/making-yomitan-dictionaries.md @@ -33,7 +33,7 @@ Below is a list of Yomitan dictionary schemas, their expected filenames, and the ## Adding Custom CSS -You can add custom CSS to a dictionary simply by adding a `styles.css` file to the root of the dictionary zip archive. This file will be loaded by Yomitan and applied to the dictionary viewer with the styles scoped to the dictionary. For example, observe the `styles.css` file in the [official test dictionary](\test\data\dictionaries\valid-dictionary1). +You can add custom CSS to a dictionary simply by adding a `styles.css` file to the root of the dictionary zip archive. This file will be loaded by Yomitan and applied to the dictionary viewer with the styles scoped to the dictionary. For example, observe the `styles.css` file in the [official test dictionary](https://github.com/themoeway/yomitan/tree/master/test/data/dictionaries/valid-dictionary1). ## Packaging A Dictionary