Copying Tamil or Sinhala text out of a PDF
You copy a paragraph from a PDF, paste it somewhere, and get garbage. This happens a lot with Sinhala and Tamil. It usually comes down to one of three things.
1. The PDF was made from an old font
Many Sri Lankan PDFs were made from files typed in Bamini, STMZH or FM fonts. When you copy, you get the hidden English letters, not Tamil or Sinhala. Paste the result into the matching converter: Bamini, STMZH or FM Abhaya.
2. The PDF is a scan
If you can't select any text at all, the page is just a picture. Take a screenshot or export the page as an image and use image to text.
3. The letters are in the right order but look broken
Some PDF viewers split Sinhala and Tamil signs from their letters when copying. Try a different viewer, or open the PDF in your browser and copy from there.
A habit that helps
Whatever you get, check it against the original before you use it. Look closely at vowel signs and the special letters, because that is where mistakes hide.