convert the text to reference

8. to get more when [1] partnerships with civil society so that the human rights advocates feel full [2] supported normal EU;

[1] Human Rights WATCH: Central Asia: five years of commitment to the EU

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

It is a small sample of text xml we receive from external sources. There is no link between the false "note-ref [1]" text and the false "text of the note.

Is it possible to convert these 'notes' real notes text, but not to the end-notes? Sometimes, this kind of remarks extend to more than 100.

Thnkx

Hello

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 = "]";
    separatorText = "\t";
    markerPositioning = FootnoteMarkerPositioning.NORMAL_MARKER;
    }
//------------------------------------------------------------
// move endnotes to a separate textFrame
for (k=mStory.paragraphs.length - 1; k >=0; k--)
    {
    if (mStory.paragraphs[k].contents.search(/^\[\d+\]/) == 0)
        {
        currPara = mStory.paragraphs[k].move(LocationOptions.AT_BEGINNING, mEndNotes.parentStory);
        currPara.words[0].remove();
        }
    }
//--------------------------------------
// create footnote markers
app.findGrepPreferences.findWhat = "\\[\\d+\\]";
mMarkers = mStory.findGrep();
len = mMarkers.length;
while (len-->0) {
    cIP = mMarkers[len].insertionPoints[0].index;
    mMarkers[len].remove();
    mStory.footnotes.add( LocationOptions.AFTER, mStory.insertionPoints[cIP] );
    }
//-------------------------------------------------------
// fill footnote contents with proper text
for (k=0; k < mStory.footnotes.length; k++) {
    currFoot = mStory.footnotes[k];
    mEndNotes.paragraphs[0].texts[0].move(LocationOptions.AT_END, currFoot.texts[0]);
    if (mStory.footnotes[k].characters[-1].contents == "\r") mStory.footnotes[k].characters[-1].remove();
    }

mEndNotes.remove();

Assumings:

  • text and endnotes are in the same story
  • one of the textContainer of this story is named 'history '.
  • each note is a paragraph separate (a)
  • Initially, there is a white space after number of endnote

Jarek

Tags: InDesign

Similar Questions

  • I converted the text to the shape in illustrator and I try to apply a dotted around the shape; However, it does not work.

    I converted the text to the shape in illustrator and I try to apply a dotted around the shape; However, it does not work. Maybe I'm missing a step? Any suggestions?

    Capture.PNG

    The settings that you should should work. I agree with sisham, to keep things simple and only put 5 in the first 2 fields, or your H will resemble each other.

    Now, you must have something else, and I suggest you select the element and to dissociate in the appearance menu > clear appearance. Then apply the dotted line.

    If you can post your file, am sure we could find what is worrying, but my guess is you have your dashboard applied, and which is overridden by a stroke applied to the group or level of the layer and dashboard you

  • I try to combine pdf files.  My word documents convert the text but lose the background color.  Any suggestions?

    I try to combine pdf files.  My word documents convert the text but lose the background color.  Any suggestions?

    Hello

    With Office 365, need you Acrobat 11.0.1 or higher.

    You can also try the new DC Pro Acrobat.

    Thank you

    Tanvi

  • I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    Abdel,

    What font you vectorize?

    Or is happening with all your fonts?

  • Convert the text to a change in vector form.

    Ive sent a fireworks document that uses a font not on my computer. If I resize the text changing his apeparance, no doubt that the police is substituted.

    So I can resize the front without him, I tried first to convert the text to a path, but as soon as I do this I have the same problem.

    What is the customer of default for this action? If so, what else can I achieve what I need.

    Thank you

    This is the expected behavior in this situation. The best ways to deal with are to install the missing font, or the person who sent the document to convert the text to paths.

  • need me OCR software to convert the text scanned in Word?

    I have a Photosmart 7510 multifunctional printer/ecanner and a PC with Windows 7, the new reasonably. I don't see how I can convert my text scanned in Word and cannot find OCR anywhere. Must OCR be purchased separately now?

    Hello

    Yes, you can buy the OCR program, but there are a few free options such as:

    http://free-OCR-to-Word.en.softonic.com/
    http://www.free-OCR.com/

    for Word:

    http://Office.Microsoft.com/en-AU/Word-Help/scan-and-edit-a-document-HA010254879.aspx

    Kind regards.

  • How do I do to convert the text of the String object to the Clipboard.

    Hi all, I am a beginner and I have a problem with the method of the Clipboard. I want to put a text string to the Clipboard, but the Clipboard.put method requires an object. What can I do to convert my text from the string object?

    My code below:

    String message = OriginalMessage.getBodyText();
    
                    String[] selections = {"Copy","Cancel"};                            Dialog addDialog = new Dialog("Copy to Clipboard", selections, null, 0, null);                           LabelField field = new LabelField(message);                addDialog.add(field);    
    
                if(addDialog.doModal() == 0) // User selected "Copy".            {
    
                    Clipboard cb = new Clipboard.put(message);
    
                }
    

    Please help me.

    A string is an object in Java.  You can simply call Clipboard.getClipBoard () .put (message);

  • Move all of the URLS in the text for references

    Hello world

    I have an interesting little problem. Basically, I have a text in which all URLS are displayed in the format < URL > < URL > www.example.org and I want to spend these coins - preferably without the < URL > - tags to references. So I decided to do this and I got far enough. I can create empty notes for each instance of < URL >(.+?) < / URL > but then when I want to move the text, I'm stumped on how to define what text should be moved without losing the location of the note to the text. So here's what I have:

    href() {} function

    var curSel = app.selection [0];

    current selection is that the script is looking through

    var searchTerm = "< URL >(.+?). < URL > ';

    Search term such as variable to facilitate the eventual later use

    app.findGrepPreferences = app.changeGrepPreferences = null;

    Reset the search parameters

    app.findGrepPreferences.findWhat = searchTerm;

    Search searchTerm

    var result = curSel.findGrep (true);

    app.findGrepPreferences = null;

    for (var f = 0; f < result.length; f ++) {}

    f is defined as 0, but if there are no more results than 0, increments f by the number of results

    curRes var = result [f];

    Defines curRes as the number of results f-> last occurrence of searchTerm in selection

    var curFootnote = curRes.footnotes.add ();

    Creates an empty reference of last instance of < URL >. + ? < URL >

    moveURL.move (LocationOptions.AFTER, curFootnote.insertionPoints [-1]);

    }

    app.findGrepPreferences = null;

    }

    I apologize for the rather silly sounding commenting in it, but I'm trying to make sure everyone with a bit of JavaScript knowledge knows that I do.

    As you can see, moveURL var is not set. var moveURL would be the function where I define the text that needs to be moved. Now, he can't be curSel because who would try to move all the text in the reference, which is just stupid for obvious reasons. curFootnote is not, because it generates the note. So what I'm doing wrong here?

    Thanks for your help!

    You don't need an 'intermediate' at all moveURL.

    The problem occurs because you add a new reference to the found object (curRes) - you can see if you add this after line of footnote.add:

    curRes.select();exit();
    

    (so please withdraw again, this is only to show how to check what is the problem).

    You can fix this, oddly enough, by adding the note before the target text:

    var curFootnote = curRes.insertionPoints[0].footnotes.add();
    

    If you check with the trick 'select', you will see the found text "curRes" still only constituted the part of the URL and the new reference appears right in front of him and not inside. When you add a note "at the end", to help

    var curFootnote = curRes.insertionPoints[-1].footnotes.add();
    

    you will find the note becomes an integral part of the "curRes" and if you can't its text more move in this same note.

    With that, it's child's play to move the text found in the note, but then you still have to remove the markers of the URL. There are several approaches, but I will copy only the text in the note, then by removing all of the text found in the document, like this:

    curRes.characters.itemByRange(6,curRes.characters.length-5).duplicate(LocationOptions.AFTER, curFootnote.insertionPoints[-1]);
    curRes.remove();
    
  • How to stop the text of reference guides snap

    Hello

    Could you get it someone please let me know how I can stop the text snap to guides reference design cs6? Please see the attached screenshot

    Thank you, Ryanguides.JPG

    Uncheck the box 'align on the baseline grid.

    See

    https://helpx.Adobe.com/InDesign/using/aligning-text.html

  • scan a document and then convert the text words

    I need to convert scanned text documents, so I don't have to type all this. But I'm not sure how to do this, HELP! [need SPECIFIC directions please and thank you:]

    Purchase a license for Acrobat (Standard or Pro) XI.

    Download, install, register, activate (if a license "full" / "perpetual" vs a subscription).

    Buy a scanner. Connect the equipment, install the scanner software.

    You use the scanner to make a picture / photo of the document that contains the text.

    Acrobat allows you to create a PDF file from the output of the parser.

    Step by step for all of this is very long that's why it is essential that give you a good, close reading to the scanner/scanner software or notices / Help and
    using Acrobat.

    Start here with the help of Acrobat:

    Acrobat help. Acrobat learn & support

    Be well...

  • convert the text to a form

    I don't want to be limited to web-safe fonts. I can't find enough of them. Here's a solution - if Muse can do. Convert my text to a shape. I don't care if it is not the living text. Muse can do?

    Hi Teppy,

    You can create exactly shape of vector graphics in Muse. Muse is a website, software design and can not do graphic design. However, if you use the system font in Muse or add a text and do rotate, then the text is converted to an image on the publishing site or export the site. If you really want to use the graphics in vector form, I suggest you to use Illustrator and import graphics in Muse.

    I hope this helps.

    Kind regards

    Aish

  • Convert the text of the text field

    For compatibility with other forms, I have a text field of digital data are concluded.  I however, would be to do a calculation out of this field, so therefore like to convert the number entered in this field to a numeric value instead of a text value.  Can someone explain to me how this is done?

    Thank you in advance!

    Depending on the type of number you want you would use parseInt or parseFloat in Javascript. So when it comes to your domain in the calculation (assuming it's called TextField1)

    Ditto var = parseFloat (TextField1.rawValue) + 123.45

    Make sense?

    Paul

  • How to convert the text to a police Chinese?

    I have a postcard that I need to translate it into Chinese. I tried to go to the characters at the bottom of the menu fonts, but they appear as English always. How can I change the font to one of the Chinese fonts?

    First, change you the name of the font to a Chinese police. Chinese fonts include English characters, so many changes nothing except the style of English characters. Now, you use the normal way to type Chinese characters in the text box.

  • Convert the text to a table

    Our IT Department has just installed FM9.0p237 on a new machine running vista. I can't convert it to a table of command under the drop-down Table! Help for FM9 shows you convert text to a table in the same way as FM8. I really need this feature. I asked a reinstall but they tend to move at speeds of glaical! Someone else has run into this problem or a solution? I build unstructured documents.

    Thank you

    Stu

    View > menu > full. Quick menu option is in effect, or maybe there's a custom menu configuration file assets, instead of the standard default value of FM.

    For more information, search for it in the quick menus FM help and follow the section Customizing (Windows) for the document framework for customization of PDF products.

    HTH

    Kind regards

    Peter gold

    Know-how ProServices

  • Convert the text to a char to convert a standard military time field

    Hi all

    I am trying to change a time field military winter time. The field is a text SSRMEET_Begin_time field that stands at 15:00 (as for example). I need to convert this output 03:00. I try it in a calculation Discoverer Desktop version 10.1.2.1 field, but I only see the to_char conversion, which I do not know how to properly set the declaration for the conversion.

    Any help would be greatly appreciated.

    Thank you!

    Hello
    Try to create this calculation:

    TO_CHAR (to_date (' 15:00 ',' HH24 '), ' Hh: mi AM ")

    * If you have no need for the AM/PM indicator remove the 'AM' of the formula

Maybe you are looking for