-- @titre Numéroter les alternatives -- @title Number the alternates -- @categorie ranger -- @resume Renomme les glyphes « .alt » en « .alt1 », la convention des alternatives de répétition (a.alt devient a.alt1) ; les composants suivent. -- @summary Renames ".alt" glyphs to ".alt1", the convention for repetition alternates (a.alt becomes a.alt1); components follow. -- Fontista · bibliothèque de scripts · https://fontista.thinkspark.dev/scripts.html local en = lang == "en" local n = 0 for _, g in ipairs(font.glyphs) do if g:sub(-4) == ".alt" and not glyph(g .. "1") then if rename_glyph(g, g .. "1") then n = n + 1 end end end print(string.format(en and "%d glyph(s) renamed" or "%d glyphe(s) renommé(s)", n))