pjheslin / diogenes

Diogenes: an environment for reading Latin and Greek
https://d.iogen.es/d
Other
57 stars 11 forks source link

EMACS interface #38

Closed daphniz closed 4 years ago

daphniz commented 4 years ago

An EMACS interface would be nice.

Doc73 commented 4 years ago

I use some shortcuts for emacs.

(define-abbrev-table 'global-abbrev-table
  '(
    ("afootnote" "\\edtext{}{\\Afootnote{{\\textbf{\\pstartref{itm:}}}\\enspace}}%" nil 0)
    ("bfootnote" "\\edtext{}{\\Bfootnote{{\\textbf{\\pstartref{itm:}}}\\enspace}}%" nil 0)
    ("grnumber" "\\greeknumeral{}" nil 0)
    ("nrlectio" "\\edtext{}{\\lemma{\\textbf{\\pstartref{itm:}}}\\Cfootnote[nonum,nosep]{}}" nil 0)
    ("pstart" "\\pstart\\edlabel{itm:} \\pend" nil 0)
    ("pstartref" "\\pstartref{itm:}" nil 0)
    ("sidenote" "\\ledsidenote{}" nil 0)
    ("tsuper" "\\textsuperscript{}" nil 0)
    ("vlectio" "\\edtext{}{\\Cfootnote[]{}}" nil 0)
    ("ascii" "\\textascii{}" nil 0)
   ))
daphniz commented 4 years ago

Sorry, I meant it would be nice to have an EMACS interface for browsing and looking up, as an alternative to the web interface.

Doc73 commented 4 years ago

Sorry! And I thought it was a post on the ledmac page! :laughing:

pjheslin commented 4 years ago

I use Emacs myself, but the potential user base in the intersection of Emacs users and classicists is not large enough for me to consider it worth investing the effort in creating and maintaining yet another interface. And there are significant limitations to the Emacs display engine that make it a highly suboptimal solution for rendering text with complex formatting.

nitardus commented 7 months ago

A while ago, I wrote some elisp functions to use the diogenes CLI from within emacs. It is a bit rude, but does the job. I've uploaded it to github. When using it, please make sure to patch the bug in diogenes-cli.pl, or use my fork of diogenes.