Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

convert text to footnote

Engaged ,
Jan 26, 2014 Jan 26, 2014

8.      de chercher plus de véritables [1] partenariats avec la société civile afin que les défenseurs des droits de l'homme se sentent pleinement [2] soutenus par l'UE;

[1] HRW: Central Asia : Five Years of EU engagement

[2] http://www.senat.fr/rap/r96-2013,1054/r96-374.html.

This is a little sample of xml-text we get from external sources. There's no link between the false "footnote-ref [1]" in de text and the false "endnote text".

Is there a possibility to convert those "notes" to real notes in de text, but not to end-notes? Sometimes these kind of notes extend to more than 100.

thnkx

TOPICS
Scripting
5.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Mentor , Jan 27, 2014 Jan 27, 2014

Hi,

Just to show the way:

var

    myDoc = app.activeDocument,

    mStory = myDoc.textFrames.item("story").parentStory,

    mEndNotes = myDoc.textFrames.add( {name:"EndNotes"} ),

    k, len, cIP, currPara, currFoot, mMarkers;

app.findGrepPreferences = app.changeGrepPreferences = null;

//---------------------------------------------

// edit doc.footnoteOption here

with (myDoc.footnoteOptions)

    {

    showPrefixSuffix = FootnotePrefixSuffix.PREFIX_SUFFIX_BOTH;

    prefix = "[";

    suffix = "]";

    separator

...
Translate
Engaged ,
Jul 01, 2022 Jul 01, 2022

The document is just stories extracted from different books.

Each story starts with a Drop cap. The first paragraph of each story has been assigned a 'Body 1' character style.

The remaining

The footnote text appears after the story and has been assigned a paragraph style.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 01, 2022 Jul 01, 2022
LATEST

The remaining paragraphs in the story have been assigned a 'body' paragraph style.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines