Like, what were his methods? I imagine there would have been a lot of reading involved.
I would like to know the answer to this myself. I do not see any references to how he learned these languages anywhere. Especially Kawi.