Function: hywiki-get-term-variant-regexp
hywiki-get-term-variant-regexp is a byte-compiled function defined in
hywiki.el.
Signature
(hywiki-get-term-variant-regexp TERM)
Documentation
Return a grouped regexp of the allowed glossary variants for TERM string.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260822.1645/hywiki.el
(defun hywiki-get-term-variant-regexp (term)
"Return a grouped regexp of the allowed glossary variants for TERM string."
;; Allow for term downcased, and/or with spaces between capitalized words
;; or the whole term capitalized. Also allow the term to be surrounded by
;; Org emphasis characters.
(let ((str)
(case-fold-search nil))
(format "[*/_=~]?\\(%s\\|%s\\|%s\\|%s\\)[*/_=~]?"
(regexp-quote term)
(regexp-quote (downcase term))
(regexp-quote (setq str (hywiki-wikiword-to-string term " ")))
(regexp-quote (capitalize str)))))