goldendict-ng/website/docs/custom_dictionary.md
2023-07-26 05:58:11 -04:00

1.2 KiB

About the configuration of metadata.toml

A metadata.toml, which uses toml format, can be placed on each dictionary's root folder to customize or override some properties. It is also used in auto grouping by metadata

Customize the name of the dictionary

[metadata]
name = "New Name"

This New Name will be appeared as the dictionary name.

The metadata.toml should be placed beside dictionary files. One metadata.toml for each dictionary.

The metadata file uses TOML format.

For example,

.
├── Cambridge
│    ├── metadata.toml     (A)
│    ├── Cambridge.idx
│    ├── Cambridge.info
│    ├── Cambridge.syn
│    └── Cambridge.dict.dz    
└── Collins
     ├── metadata.toml
     ├── res.zip
     └── Collins.dsl       (B)  

Disable full-text search for certain dictionary

fts=false

[metadata]
name="New Name"

The fts field's value can be on/off, 1/0 ,true/false etc.

fts=false

will disable the current dictionary's full-text search.

you can check the full-text search status on each dictionary's info dialog.