New technique could help identify inks without harming historic documents.