This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
Replies: 1 comment
-
Hello~ I have made three colored and styled mdict of pali dictionany。 Thank you for the inspiration~ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NOTE: The following is for discussion. The current implementation differs from this.
This refers to Markdown and TOML content in the dictionary-wiki, but parsing the data is implemented in this project.
TOML blocks are a data representation in a text format which is intended to be easy to read and write for humans, and can be parsed by programs.
Simple entry
This form allows us to add short entries, which still minimally function for word - definition lookup.
The definition bodies could be long, such as when imported from other dictionaries, which people are able to read and understand from the text, with at least some information captured in the metadata to be used by the program.
A simple Markdown page may be a title, some basic metadata in a TOML block, the rest of the file being the definition text of the entry, which may be a short summary or a longer description.
Complex entry
The more metadata is captured in TOML, the better it may be used by the program for dictionary lookup and database processing.
The definition body may still contain long descriptions, but information such as grammatical construction and example sentences may be captured in the metadata and used in other parts of the program.
The TOML block may contain the following:
Spreadsheet columns
If you are using a spreadsheet to collect words, use the following headers which can be parsed back to the above TOML.
If you have more than one meaning for a word, add a new row and use the
meaning_order
number (1, 2, etc.).Beta Was this translation helpful? Give feedback.
All reactions