amake / orgro

An Org Mode file viewer for iOS and Android
https://orgro.org
GNU General Public License v3.0
452 stars 21 forks source link

hi-lock mode coloring would be a nice addition #32

Open Dr-Blip opened 3 years ago

Dr-Blip commented 3 years ago

With Emacs Org mode I use hi-lock-mode with a configuration section within my org file for coloring different keywords (RegExp). It would be a nice addition if orgro would parse this section and color the current org file accordingly.

Here is a sample of the hi-lock section in an org file:

* hi-lock

;; EQUIPMENT
# hi-lock: ((" [Cc][Tt] \\|[Cc]omputed\\|[Tt]omography\\|[Mm]agnetic\\|[Rr]esonance\\| [Mm][Rr] \\| [Xx][Rr] \\| x-ray \\| [Uu][Ss] \\| nm \\| pet \\|pathology\\| mi \\| rt " (0 (quote hi-red-b) prepend)))
# hi-lock: (("surgery\\|treatment\\|genome\\|dental\\|orthodont\\| ecg \\|coherence\\|photon counting" (0 (quote hi-red-b) prepend)))
# hi-lock: (("transducer\\|optical\\|radiation\\|beam \\|pacs\\|archive\\|endoscop[ye]\\|microscop[ye]" (0 (quote hi-red-b) prepend)))
# hi-lock: (("[Oo]phthalmic\\|radiotherapy\\|ultrasound\\|magnetic\\|resonance\\| [Aa][Rr] \\| [Vv][Rr] \\|augmented\\|virtual\\|reality\\|collimator" (0 (quote hi-red-b) prepend)))

;; ALGORITHM
# Hi-lock: (("artificial\\| ai \\|neural\\|network\\| deep \\|learning\\|big data\\|analytic\\|cad\\|training\\|" (0 (quote hi-yellow) prepend)))
# Hi-lock: (("model\\| fusion\\|classification" (0 (quote hi-yellow) prepend)))
# Hi-lock: (("acquisition\\|detector\\|classify\\|render\\|enhance\\|register\\|registration\\| roi \\|region\\|interest\\|segment\\|blockchain" (0 (quote hi-yellow) prepend)))
# Hi-lock: (("monte carlo\\|scatter\\|probability\\|embed\\|3[Dd]\\|scan\\|voxel\\|pixel" (0 (quote hi-yellow) prepend)))

;; ANATOMY 
# Hi-lock: (("anatom[yi]\\|abdomen\\|blood\\|bone\\|brain\\|breast\\|eye\\|heart\\|endocrin\\|embryo\\|limb\\|vessel\\|corneal\\|oral" (0 (quote hi-green) prepend)))
# hi-lock: ((" angio\\|vascular\\|limb\\|neuro\\|lung\\|iris\\|tissue\\|hematom\\|cardi[ao]\\|coronary\\|thorax\\|lumbar\\|spine\\|prostate" (0 (quote hi-green) prepend)))
# hi-lock: ((" head\\|brain\\|nodule\\|thyroid\\|colon\\| liver\\|nerve\\|lymph\\|lesion\\|cerebral\\|cell\\|invitro\\|invivo\\|rectal\\|bladder\\|endometrial" (0 (quote hi-green) prepend)))
# Hi-lock: (("shoulder\\|knee\\|ankle\\|hip\\|wrist\\|scaphoid\\|foot\\|spinal\\|[Oo]phthalm\\|trachea\\|fetal\\|fetus\\|arthroplasty" (0 (quote hi-green) prepend)))
amake commented 3 years ago

Thanks for the request. I didn't even know hi-lock-mode existed.

It's an interesting feature, but unfortunately this would basically require me to reimplement hi-lock-mode in Dart. That's not impossible, but it's a lot of work, and it's not something I plan to take on anytime soon.

(But if I decide to make a generalized highlighting feature I will definitely keep this in mind as prior art to inform my implementation.)

Dr-Blip commented 3 years ago

I understand. Your viewer is great as is and works excellent for my use case. I read some 100 new patents in the medical field every week. With your viewer I can do it anywhere and at any time. Thank you again!

/Björn

Am 24.02.2021 um 13:58 schrieb Aaron Madlon-Kay notifications@github.com:

 Thanks for the request. I didn't even know hi-lock-mode existed.

It's an interesting feature, but unfortunately this would basically require me to reimplement hi-lock-mode in Dart. That's not impossible, but it's a lot of work, and it's not something I plan to take on anytime soon.

(But if I decide to make a generalized highlighting feature I will definitely keep this in mind as prior art to inform my implementation.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.