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

Replace n/x by n/n+1

New Here ,
Aug 09, 2018 Aug 09, 2018

Copy link to clipboard

Copied

Hi !

I have a page what generate automatically the numbers of some pages in a list of paragraphs

but in the cas of double pages the process generates pagen1/x instead of pagen1/pagen2,

so I want to make a script what replace the /x by /pagen+1.

I think I did arrived to arrive to the paragraph (it alert yes at the step what should be doing what I asked) but I don't actually know how to make this replacement, can someone help me ?

Views

331

Translate

Translate

Report

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
New Here ,
Aug 09, 2018 Aug 09, 2018

Copy link to clipboard

Copied

I am progressing, but I am still missing how to read the text and place it in a variable

Votes

Translate

Translate

Report

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
Contributor ,
Aug 10, 2018 Aug 10, 2018

Copy link to clipboard

Copied

I am sorry to say, but I do not understand your issue.

Perhaps you can give us an example what you are trying to achieve.

Votes

Translate

Translate

Report

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
New Here ,
Aug 13, 2018 Aug 13, 2018

Copy link to clipboard

Copied

LATEST

So my Issue is :

I have to replace a text only if :

  1. the paragraph is on a body page
  2. The paragraph format is x

and I have diferent cases

  1. The doc is a list of paragraphs
    1. The paragraph contains "/X"
  2. The doc is a list of table
    1. If the paragraph is followed by a paragraph with the same paragraph format
    2. The paragraph contains an non breakable space "\x11" and a soft return "\r"

I have already found how to replace text in a example script in an example, but it replace the text using the paragraph number, and I have to check all paragraphs...

Votes

Translate

Translate

Report

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