firmart / org-dict

Online dictionaries in Org mode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dictionaries

TLFi

Features [2/7]

  • [X] Put example into Org quote block.
  • [-] Markup
    • [X] Translate HTML basic markup (bold, italic) into Org mode markup.
    • [X] Translate superscript into Org mode superscript.
    • [ ] Handle small caps: put them in bold, and whenever they are in lowercase, uppercase the first letter.
  • [ ] Interlink
    • [ ] “v. dont² 1reSection I B 4 a δ”
    • [ ] “… dont, v. ce mot <numbering>”
    • [ ] “Corresp. à ​/pince/​ I B 2 b α chez le cheval”
    • [ ] Correspond à accabler, B
    • [ ] exemple 8 (use <<anchor>>)
    • [ ] sens [II B] (link to current buffer)
    • [ ] cf. arrière-ban ex. 1 (see ban)
    • [ ] Cf. abaisser, hist. II A 1 b.
    • [ ] V. ​/fioritureur/​ ex. de E. de Goncourt.
    • [ ] v. aussi ​/battre/ ¹​ I A 2
  • [X] Convert entries numbering (1reSection I A 1 a α) into Org heading and numbered list.
  • [ ] Option to enable abbreviation expansion.
  • [ ] LaTeX/PDF output.
  • [ ] Quotation: add link to Wikisource

To fix [3/13]

  • [X] Remove numerotation of numbered examples.
  • [X] Period immediately followed by italic tag (sol. put a zero-width space before slash)
  • [ ] Fix inline quotes: anything after “(…)” is not part of the quote.
  • [-] Apply specific face on part of definitions. [2/4]
    • [X] On the definition body.
    • [ ] On the definition title.
    • [X] On “Syntagme paragraphe”.
    • [ ] Use different colors on ([qQ]uasi)anton. and ([qQ]uasi)-synon.
  • [ ] Indent bullet and diamond of <tlf_paraputir>
    • [ ] Replace in <tlf_paraputir> Unicode dash (−) to ASCII dash (-) in order to make real item.
    • [ ] Replace in <tlf_paraputir> Unicode diamond to ASCII dash (-) in order to make real item.
  • [ ] Align quotation block to numbered item (so that they can be foldable).
  • [X] Enable multi-line markup
  • [ ] Keep quote block numbering
  • [ ] Fix part-of-speech face
  • [ ] Fix title length: when it exceeds a threshold, put the content in the body.
  • [ ] Parse tlf_parothersPrononc. et Orth.”, “*Étymol. et Hist.”, “*Fréq. abs. littér.”, “​*Fréq. rel. littér.”, “*DÉR.”, “BBG.”, “Rem.” etc. See abaisser for a critical example.
  • [ ] Fix issue when single * is present at the very beginning of the line. See haletant
  • [ ] Fix repeated entries: See maugréant. (solution: check article id).

Test sample

  • [ ] tlf_ccrochet and tlf_cdefinition inside a tlf_cexemple. See e.g. prognathe.
  • [ ] Fix superscript along with bold/italic markup. See e.g. ouvrir, ban
  • [ ] Parse tlf_cconstruction. See e.g. deviner
  • [ ] Parse suffix entry. See e.g. parade

Todo [3/14]

  • [X] org-dict on region
  • [ ] Integration with pdfview
  • [ ] Integration with guess-language (initial input of C-u C-u org-dict)
  • [ ] Dictionaries whitelist/blacklist
  • [ ] Dictionaries by language: from / to
  • [ ] Fix/test faces for light themes
  • [ ] Fix “fill whole buffer”: e.g. pétulance
  • [ ] Add an argument to parser: query to open the buffer in a specific position
  • [ ] Provide hydra menu
    • [ ] Allow selecting interactively different dictionaries.
  • [ ] Previous entry
  • [ ] Navigation facilities
  • [ ] Candidates function: if there is no entry and the dictionary provides some candidates, display them through the candidate-f.
  • [ ] Concise function: function that ignore examples and more so that the output of the dictionary can be reused elsewhere.
  • [X] URL/Services list (multiple dictionaries)
  • [X] Go to online dictionary URL (completing-read for multiple dictionaries)

Core

  • [ ] Implement a nodes list matcher
    ;; To match ((i nil "esprit") " 1" (sup nil "re") "Section II B 2 a).")
    `((:tag i)
      (or ("^[[:space:]]*?[0-9][[:space:]]*?$" (:tag sup) "^Section.*$")
          ,org-dict-tlfi--ref-regex))
        

About

Online dictionaries in Org mode.


Languages

Language:Emacs Lisp 100.0%