Skip to main content
remydg
Participating Frequently
August 9, 2018
Question

Replace n/x by n/n+1

  • August 9, 2018
  • 2 replies
  • 540 views

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 ?

    This topic has been closed for replies.

    2 replies

    August 10, 2018

    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.

    remydg
    remydgAuthor
    Participating Frequently
    August 13, 2018

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

    remydg
    remydgAuthor
    Participating Frequently
    August 9, 2018

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