Apply the Minecraft Dungeons Method for Enchantment Display!
Dungeons Enchantment Icons is a free resource pack that completely eliminates the need for OptiFine installation.
By modifying language files and fonts, the author has successfully implemented a custom icon system that provides clear visual representation for each enchantment mechanism in the game! Every enchantment now has its own unique symbol in an ancient script, making it much easier to identify magical properties on your items.
See how it works in practice:
I also recommend checking out the trailer for the complete resource pack "Barely Default" by the same creator, which offers even more visual enhancements to the standard gaming experience.