Copy link to clipboard
Copied
I am researching how to best create a large amount of signs with help of InDesign Data Merge. I'd like to have and icon (like left/right arrow) to accompany the text of the sign. I've set up test files but get stuck when it comes to adding symbols.
My thought was to use Font Awesome, Noto Symbol or similar to add the needed symbol. I've tried adding the symbol as a glyph into the .csv and then have a paragraph style for the symbol in the target document with the correct font. I only get broken glyphs (the box with and x).
Any idea on how to solve this!?
Importing images works, and is a backup option.
2 Correct answers
As this is two byte glyph - f178 - you need to save your CSV file with Unicode coding.
Then you need style placeholder - place in the InDesign where you want it to be placed - with this font.
You should be able to just copy and paste the glyph from the web page example you gave us.
And, as Robert mentioned, you must save the csv file encoded as UTF-8.
Copy link to clipboard
Copied
Hi @Nina31724321qd6o, one approach could be to put the font symbol characters into your csv file, eg:
SYMBOL,TEXT
C,The quick brown
F,fox jumps over
B,the lazy dog
And then use a Paragraph Style with a nested style that applies a Character Style to the first character. (Or even simpler: just manually format the first field placeholder with the symbol font!) See my attached demo files. Also there are plenty of other ways to go about this.
- Mark
Copy link to clipboard
Copied
Thank you! Your example works fine. But still, when I try it with Font Awesome for example, I get errors. Maybe I didn't understand your instruction correctly. How should I add this glyph, for example:
https://fontawesome.com/icons/arrow-right-long?f=classic&s=solid
As unicode? Or paste the glyph? Another way?
Thanks again for taking your time to help me!!
Copy link to clipboard
Copied
As this is two byte glyph - f178 - you need to save your CSV file with Unicode coding.
Then you need style placeholder - place in the InDesign where you want it to be placed - with this font.
Copy link to clipboard
Copied
You should be able to just copy and paste the glyph from the web page example you gave us.
And, as Robert mentioned, you must save the csv file encoded as UTF-8.
Copy link to clipboard
Copied
I got it to work! Thank you! Huge step on the way.
It does though only work if I create the .csv in Sublime Text (I've tried Excel and TextEdit - to get the Excel-csv-file to open in InDesign data merge at all, I had to first open in text edit and save again, even if there was only A-Z glyphs). Any idea why that is? And thanks again!
Copy link to clipboard
Copied
Great.
InDesing is very fussy with CSV files - it's always best to "manually" convert them into right encoding in a good text editor.
Copy link to clipboard
Copied
Tag your character between, for example, "#$#" - #$#k#$#" - then just use GREP to change it with CharStyle.
(#$#)(.+)(#$#)
$2 (plus CharStyle)
Copy link to clipboard
Copied
The dollar is a special character in regular expressions (stands for 'end of input/paragraph). Better to use a character that has no meaning in regexes, such as &, @, #, %
Copy link to clipboard
Copied
Right, or it can always be escaped.
And then it probably would be better to differentiate opening and closing tags - %#...#%.
Copy link to clipboard
Copied
Except that escaping $ doesn't always work (old ID bug, though I haven't checked it for a while). The workaround is to use it as a character class, [$], but that gets messy.
Copy link to clipboard
Copied
Thanks, will have to remember to avoid it in GREP - for anything else but intended use.

