Build me a conditional OCR script with additional taggings. -- 2

Job ID: 35029915

Budget: ₹1,500 – ₹12,500 INR

Hi there,

I need to create a script which will help me with converting pdf to txt while adding tags based on 4 criterias.

1. if the text is bold, I need to add "{/bd" before text.
2. If there is a long hyphen, I need to replace it with two hyphens (--).
3. If there is any superscript text, I need to add a tag before it.
4. I need to add "{start}" beginning of the of the paragraph and "{end}" at the end of the paragraph.
Related categories: Python Data Processing OCR Coding Automation