Crossword Genius

System of writing in code, Scottish one (6)

Ross

I believe the answer is:

pinyin

I'm a little stuck... Click here to teach me more about this clue!

'system of' is the definition.
I know nothing about this answer so I cannot judge whether it can be defined by this definition.

'in code scottish one' is the wordplay.
'in' is an insertion indicator.
'code' becomes 'pin' (a PIN number is a 4-digit code).
'scottish' becomes 'ny' (I can't explain this - if you can you should give a lot more credence to this answer).
'one' becomes 'i' (Roman numeral).
'ny'+'i'='nyi'
'pin' placed around 'nyi' is 'PINYIN'.

'writing' is the link.

Can you help me to learn more?

I've seen this clue in The Times.
Want a hint initially instead of a full solution? Install my app