Highlighted

Replace n/x by n/n+1

New Here ,
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

193

Likes

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

Replace n/x by n/n+1

New Here ,
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

194

Likes

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

Likes

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
Reply
Loading...
Aug 09, 2018 0
Contributor ,
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.

Likes

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
Reply
Loading...
Aug 10, 2018 0
remydg LATEST
New Here ,
Aug 13, 2018

Copy link to clipboard

Copied

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...

Likes

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
Reply
Loading...
Aug 13, 2018 0