Forum Replies Created
-
AuthorPosts
-
Jay Fredrickson
MemberThats. Amazing. Thank you so much! Works perfectly.
Jay Fredrickson
MemberSo, apparently I wasn’t very far off. I found this awesome Unicode chart:
And using an insertion script like:
footnote.contents = “\u0019” + text.toString()
Works just fine but for some reason the 0x0004 doesn’t work (footnote reference number).
So does anyone have any thoughts on how to insert this?
Jay Fredrickson
MemberI just found this statement in an IDML documentation https://wwwimages.adobe.com/content/dam/acom/en/devnet/indesign/sdk/cs6/idml/idml-cookbook.pdf:
“There is no reference for these characters so you’ll have to experiment…”
That’s awesome.
Jay Fredrickson
MemberWhen I only do the footnote the number doesn’t show up. For instance, with this code below:
var footnote = tf.footnotes.add(LocationOptions.AFTER, location)
footnote.contents = text.toString()It only shows like this:
” text from the footnote”
The number in the text shows up properly, but the actual footnote at the bottom of the page doesn’t show. Someone would need to manually count the footnotes to know which one they’re reading.
I am expecting it to show up like:
“1 text from the footnote”
Does this make sense? That’s why I am looking to insert the footnote special character with the script. I understand that the footnote special character is already added when you create it in the UI though.
Jay Fredrickson
MemberThanks Peter, thats actually a very helpful trick. I didn’t realize you could insert them into the find/change dialog.
So, I tried using these in the script with:
var footnote = tf.footnotes.add(LocationOptions.AFTER, location)
footnote.contents = “^F” + text.toString()Tried ^F, \^F \~F and ~F and none of them will insert the special character. Do you have any insight into how to insert the actual character into the footnote with script?
Jay Fredrickson
MemberThanks, but I am looking for the actual character that gets inserted when you do “Type > Insert Special Character > Markers > Footnote Number”. I need to use that character in a script…
Jay Fredrickson
MemberHi Michel,
Would you also mind sharing it with me as well? I look forward to taking a look at it. Looks amazing.
Thanks!
-
AuthorPosts
