replace with false glyph?
Hi guys, im making a script that is designed to replace one character with another.
in the case of Arabic, when importing the test you need to change the opening quote for a closing and closing for opening. However in order to do that i need to temporarily change one to another character.
Im using Jongware's script, i understand we are free to modify. the following is a simplified version for my needs:
app.findTextPreferences = null;
app.changeTextPreferences = null;
var changelijst = [
[ "\u201C", "\u002A" ], // ; Opening Curly for X
[ "\u201D", "\u201C" ], // ; Closing Curly for Opening Curly
[ "\u002A", "\u201D" ], // ; X for Closing Curly
[ "\u00BB", "\u002A" ], // ; Opening Arrow for X
[ "\u00AB", "\u201C" ], // ; Closing Arrow for Opening Arrow
[ "\u002A", "\u201D" ], // ; X for Closing Arrow
[ "\u2018", "\u002A" ], // ; Opening Curly single for X
[ "\u2019", "\u2018" ], // ; Closing Curly single for Opening Curly single
[ "\u002A", "\u2019" ], // ; X for Closing Curly single
];
for (a=0; a<changelijst.length; a++)
{
app.findTextPreferences.findWhat = changelijst[0];
app.changeTextPreferences.changeTo = changelijst[1];
app.activeDocument.changeText();
right now X is a * in that font.
however i need to use a glyph that i can guarantee 100% will not be in their document. is there any way i can use a false glyph? I tried using 999X, but it doesnt leave a character, but rather leaves nothing. (more or less i'd like to create a fake version of that missing font scenario). Anyone know if there is such a thing? or otherwise, any other suggestions? Thanks!
