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

Remove index reference marker

Explorer ,
Sep 17, 2014 Sep 17, 2014


Hi everyone

can you make a script for del those index reference marker:

index reference marker.jpg

Teetan

TOPICS
Scripting
2.6K
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

Community Expert , Sep 17, 2014 Sep 17, 2014

Here a screenshot before replacement with *nothing* and after.
(<FEFF> in text search will find the XML tags as well, but in this case will not remove them)

AfterTextSearchReplaceFEFF.png

Uwe

Translate
Enthusiast ,
Sep 17, 2014 Sep 17, 2014

Try,

app.activeDocument.indexes[0].topics.everyItem().remove();

OR

app.activeDocument.indexes[0].topics.everyItem().pageReferences.everyItem().remove();

Vandy

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
LEGEND ,
Sep 17, 2014 Sep 17, 2014

Hi,

Not index markers but cross-reference target markers.

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
Explorer ,
Sep 17, 2014 Sep 17, 2014

thank you Vandy

seems not work

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
Explorer ,
Sep 17, 2014 Sep 17, 2014


cross-reference marker?

I don't really sure what is it

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
Explorer ,
Sep 17, 2014 Sep 17, 2014

the GREP wildcard ~I

but unremovable

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
Enthusiast ,
Sep 17, 2014 Sep 17, 2014

Hi,

I am not in front of my system, may be the below link will help you.

http://indesignsecrets.com/how-to-remove-all-the-index-entries.php

Vandy

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
Explorer ,
Sep 17, 2014 Sep 17, 2014

thank you Vandy

run your script I got this error

Untitled-4.jpg

Teetan

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
Explorer ,
Sep 17, 2014 Sep 17, 2014

and search ^I

I got this

Untitled-5.jpg

but I don't know what in world is this kind of thing

thank you so much

Teetan

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
LEGEND ,
Sep 17, 2014 Sep 17, 2014

Coucou ! (in french)

Insert a index entry! Vandy is right!

But here, it is not a maker for an index entry. You have cross-references!!  Already said in Post#2. 

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
Explorer ,
Sep 17, 2014 Sep 17, 2014

I place a word file into Indesign, then the file have this kind of things

I don't how can I remove it

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
Community Expert ,
Sep 17, 2014 Sep 17, 2014

@Teetan VK – that's the dreaded <FEFF> special character!

Do a TEXT search/replace. Not a GREP search (that will not work).

And be aware, that also XML markers and Index markers will be found with:

<FEFF>

Uwe

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
Community Expert ,
Sep 17, 2014 Sep 17, 2014

Here a screenshot before replacement with *nothing* and after.
(<FEFF> in text search will find the XML tags as well, but in this case will not remove them)

AfterTextSearchReplaceFEFF.png

Uwe

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
LEGEND ,
Sep 17, 2014 Sep 17, 2014

Hi Uwe,

I've already had a discussion about <FEFF>.

If you have index markers that you want to keep! … 

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
Community Expert ,
Sep 17, 2014 Sep 17, 2014

Hi, Obi-wan!

Yes. Then you have to shield them (the index markers) with a special character style. The next step would be to search for <FEFF> without that special character style…

Uwe

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
LEGEND ,
Sep 17, 2014 Sep 17, 2014

Aha! Still difficult to block you in a corner of the ring! 

I use a condition to do this (personally used in another [JS] to generate several index in the same book)!

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
LEGEND ,
Sep 17, 2014 Sep 17, 2014

One question remains unanswered:

We can delete index marks:

app.activeDocument.indexes[0].topics.everyItem().remove();

and those of hyperlinks:

app.activeDocument.hyperlinkTextDestinations.everyItem().remove();

app.activeDocument.hyperlinkTextSources.everyItem().remove();

Is there a javascript syntax for cross references?

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
Community Expert ,
Sep 18, 2014 Sep 18, 2014

Obi-wan, Cross References were tacked on with paperclips and duct tape. They refer to the list of topics, just like indexed items: http://jongware.mit.edu/idcs6js/pc_CrossReference.html

I don't have the time to experiment, but this suggests that if you remove all index topics, you also remove cross references -- and the other way around. Looping over all cross references and only deleting their own is not safe; you would need to check if the topic is not used for the index as well.

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
LEGEND ,
Sep 18, 2014 Sep 18, 2014

Hi Jongware,

Thanks for the answer! 

Is there a way by Javascript [it's only a question] to "jump" from the first RC source to its RC target, then jump to the following RC source … as we can do with the RC panel?

Thanks in advance. 

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
Community Expert ,
Sep 18, 2014 Sep 18, 2014
LATEST

No idea, it's not something I've tried before. Maybe you can try [textItem].showText()?

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
Explorer ,
Sep 17, 2014 Sep 17, 2014

Laubender
AND
Obi-wan Kenobi
SOLUTION, BOTH WORK

THANK YOU ALL GUYS

TEETAN

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