When you need to globally set the math font to upright or use a different font altogether (refer to documentation),mathastextis the solution you seek. While the results may not always be flawless, this is the recommended approach. \documentclass{article} \usepackage[LGRgreek]{mathastext} \beg...
Example (Greek): Νεπάλ → Nepal Example (Hindi): नेपाल → nepaal Example (Urdu): نیپال → nypal Example (Chinese): 三万一 → 31000 uromanenables the application of string-similarity metrics to texts from different scripts without the need and complexity ...