9 Replies Latest reply on Sep 29, 2015 9:50 AM by Multiling Peter

    Inserting text at beginning of a certain character style

    Multiling Peter

      Hi all,

      I am working on a dictionary-style of document and the individual articles consist of one paragraph each. Within each. paragraph the text elements are formatted with character styles. At the beginning of a certain character style I'd like to insert a '—' (em dash) via search & replace. For example:

       

      Bode / Bodé [ˈbodeː] (2009: 25, 0.15‰; 1880: 29, 0.15‰). Schreibvariante von frz. Baudet, Patronym zum gleichlautenden Rufnamen.

      Bodry [ˈbodʀiː] (2009: 22, 0.13‰; 1880: 62, 0.32‰). Variante(n) Baudry, Bodri. Französisches Patronym zum gleichlautenden Rufnamen.

       

      Should render as:

      Bode / Bodé [ˈbodeː] (2009: 25, 0.15‰; 1880: 29, 0.15‰). Schreibvariante von frz. Baudet, Patronym zum gleichlautenden Rufnamen.

      Bodry [ˈbodʀiː] (2009: 22, 0.13‰; 1880: 62, 0.32‰). Variante(n) Baudry, Bodri. Französisches Patronym zum gleichlautenden Rufnamen.

       

      The character style in question starts at 'Schreibvariante' and 'Französisches' and I would need some method to find this position to insert the em dash.

       

      Thanks!
      Peter