[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cgreek:00030] Re: More tlg utilities
Dear Dr.Smith,
As for the format of the reference citations on which I have written in
the last mail, I have forgotten you have already written about it.
> 2. Make the reference citations look nicer. At present, I just present
> a string of all the six possible reference values, separated by '*'. Since
> most values are typically not used, this results in a ref string that
> begins with a string of '*'. tlg-getref should probably be rewritten
> to ignore nil values.
Perhaps, the following way is the simplest, for instance. But you may have
already noticed it.
(defun tlg-getref ()
"Return the current TLG citation data."
(interactive)
(setq tlg-current-ref (format "%s*%s*%s*%s*%s*%s"
(or (get-text-property (point) 'nref) " ")
(or (get-text-property (point) 'vref) " ")
(or (get-text-property (point) 'wref) " ")
(or (get-text-property (point) 'xref) " ")
(or (get-text-property (point) 'yref) " ")
(or (get-text-property (point) 'zref) " "))
))
As for the conversion of the TLG string for the mode line, isn't it not
possible to use tlg2emacs as a "filter"?
> Takahashi-San
Could you explain us about the command-line parameters of tlg2emacs ?
Though I read the source of tlg2emacs, I couldn't find some informations
about it.
# Even after Emacs was terminated, the daemon(?) tlgd remained. Of course
# it is possible to kill the process of tlgd from the shell-command.
# but it is a little bit troublesome.
------------------------------------------
Prof.Kenji Mizuochi
Meijigakuin University
Tokyo, JAPAN
E-Mail: mizuochi@xxxxxxxxxxxxxxxxxxxxx
knj_miz@xxxxxxxxxxxxx
------------------------------------------