This defines a toSmallCaps function which converts the text in Adventure API Components to latin small caps.
private static final String[] small = "ᴀʙᴄᴅᴇꜰɢʜɪᴊᴋʟᴍɴᴏᴘǫʀѕᴛᴜᴠᴡxʏᴢ".split("");
private static final List<TextReplacementConfig> conversions = IntStream.range(0, 26)
.mapToObj(i -> {
Pattern p = Pattern.compile(String.valueOf(65 + i), Pattern.CASE_INSENSITIVE);
return TextReplacementConfig.builder().match(p).replacement(small[i]).build();
})
.toList();