Don’t remember where I got this code from but I made myself one for Unicode Bold style some time ago. Dug this out of my extensions folder:
// #popclip
// name: Unicode Bold
// icon: square B
// language: javascript
function toBoldText(input) {
const boldOffsets = {
uppercase: 0x1D400 - 0x41, // Offset for A-Z
lowercase: 0x1D41A - 0x61 // Offset for a-z
};
return input.split('').map(char => {
let code = char.charCodeAt(0);
if (code >= 0x41 && code <= 0x5A) { // A-Z
return String.fromCodePoint(code + boldOffsets.uppercase);
} else if (code >= 0x61 && code <= 0x7A) { // a-z
return String.fromCodePoint(code + boldOffsets.lowercase);
}
return char; // Return unchanged if not A-Z or a-z
}).join('');
}
popclip.pasteText(toBoldText(popclip.input.text));
(The above block is an extension snippet — select it then click “Install Extension” in PopClip.)
Hopefull that is a start for inspiration. (I got ChatGPT to make some remixes.)