I think there is a way to do it, although it does require a software with an internal sequencer, such as Vienna Instruments Pro. I am just trying out Dorico for now, but have experience with programming Articulation Sets and Expression Maps for certain software.
I’ll take VIP as an example. The idea is to save all the different ornaments inside the sequencer (e.g. WT Trill, HT Trill, WT Mordent, HT Mordent, etc.) then create custom playing techniques for all the different ornaments, assign them the corresponding symbols, and in the expression maps of dorico, select these playing techniques.
This should be working in theory. I will try this out when I find the time within the next week and can report back if there is any interest here, as my whole decision of purchasing Dorico depends on this working.