things marked with two question marks (??) are not required for my usecase, but might be nice, especially if I want this to be a bit more generally usable
- a dictionary consists of multiple entries
- an entry consists of:
- a headword
- (one or more) definitions for said word
- also store roots for derived words (such as compounds)
- a definition consists of a block of text, maybe also some example sentences
- also may contain:
- an :english_gloss
- other forms of #tags (i guess including parts of speech? maybe should consider those separately)
- [links] to other entries (by headword)
- these should be inline with the rest of the text rather than separate sections
- ?? pronunciation
- also may contain:
- dictionary should be easily editable as a text document
- dictionary should be sorted / easily sortable by head word
- ?? custom sorting orders
- dictionary should be searchable and filterable:
- by headword (or component of headword)
- by english gloss (or component thereof)
- by tag
- ?? by pronunciation
- if you select an entry, it should be possible to find all backlinks (and derived words)
- you should be able to select any word in an example and see its definition
- you should be able to click on #tags, [links], and :english_glosses to search by those fields
- ?? some way to handle regular derivations or automatically create derived terms might be nice
- headword (roots of headword)
- meaning, containing :english_glosses and maybe some #tags
- example | translation
- yan2lun4 (yan2 lun4)
- #n open :discussion on public affairs; :views; :remarks.
Synonyms [min2yi4] [yi4lun4] [yu2lun4] [qun2qing2] [yu2qing2] (formal)
- gong1ji1xin4 ~ | offensive **remarks**
- bei4li2 she4hui4zhu3yi4 de ~ | **views** departing from socialism
- #v to :talk; to :discuss
(rest of definition omitted)