Wrap multiple "paragraphs" in elements separately

Are you missing a feature? Request its implementation here.
Paeon
Posts: 4
Joined: Tue Nov 08, 2011 12:23 am

Wrap multiple "paragraphs" in elements separately

Post by Paeon »

Hi,
This is something InDesign can do with its tags (actually this is the default). You select several paragraphs of text, select the tag, and each paragraph starts and ends with a tag.

In oXygen, if you select several paragraphs and "surround with tag", you get one starting tag and one ending tag around all paragraphs.

Is there a preference setting, or another way to do this, as it sucks to have to select each paragraph individually.

Thanks.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Wrap multiple "paragraphs" in elements separately

Post by sorin_ristache »

Hello,

If you insert the set of paragraphs in Oxygen by a copy and paste operation you should try the Author mode. For example if your target document is a DITA topic, a DocBook document or a TEI one, you just copy some paragraphs from a Web browser or a Word document (or other application that places (X)HTML in the system clipboard) and paste them in Oxygen in Author mode. The result is that each paragraph is surrounded by a start tag and an end tag.

If you edit the set of paragraphs in Text mode there is no action yet for surrounding with tags each paragraph of the current selection of text, kind of an action like Surround with tags which is applied on a selection of several tags and inserts start and end tags for each paragraph. However we will consider adding such an action in Text mode in a future version. I assume the separator of two adjacent paragraphs is and end-of-line character, right?


Regards,
Sorin
Paeon
Posts: 4
Joined: Tue Nov 08, 2011 12:23 am

Re: Wrap multiple "paragraphs" in elements separately

Post by Paeon »

Yes! You are correct. The end of line character would separate characters. This would be a great feature!

I did find a work around if anyone is interested. OpenOffice.org Writer has an xhtml export transform that also wraps each paragraph in a <p> tag.

Thanks, Sorin, you are the best.
Post Reply