4

I have some copied text from a pdf which renders like this with my current font:

enter image description here

I know I could use a different font that handles Unicode characters better, but I would rather find a function to compose the two characters into one character:

a" --> ä
a° --> å
o¨ --> ö
etc

Is there such a function?

Drew
  • 75,699
  • 9
  • 109
  • 225
trmdttr
  • 233
  • 1
  • 10
  • I don't think your issue is related to your font, accents are in separate glyphs in your example. –  Jan 14 '19 at 19:30
  • @DoMiNeLa10 I'm not sure how it works, but in the pdf the glyphs seem to be combined to show one character, such as ä or å. But the answer from Stefan solved it, anyway. – trmdttr Jan 15 '19 at 08:19
  • It could be just clever character positioning, I've seen things of this sort in PDFs. –  Jan 15 '19 at 13:37

1 Answers1

3

I think you want to

M-x ucs-normalize-NFC-region RET
Stefan
  • 26,154
  • 3
  • 46
  • 84