I have a txt file that contains data for a dictionary project, and the file is formatted as below:
@acute /ei, ə/
* noun
- a mark that means excellent, given to something of the highest quality, esp. school work:
= The teacher gave me an A for my essay.+ Cô giáo cho tôi điểm A cho bài luận.
- the first letter of the English alphabet
* preposition
- in or for each or every; per:
= Take one tablet three times a day.+ Uống thuốc 3 lần một ngày
Basically, a word starts with an @, its types start with *, its meanings start with - and examples start with =, Vietnamese translation of examples start with +
I want to display this content in a JTextPane
in Java Swing, in the following format but do not know how to start.

Can someone give me advice on how to do it?