Page 1 of 1

Wrap multiple "paragraphs" in elements separately

Posted: Tue Nov 08, 2011 12:28 am
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.

Re: Wrap multiple "paragraphs" in elements separately

Posted: Tue Nov 08, 2011 11:21 am
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

Re: Wrap multiple "paragraphs" in elements separately

Posted: Wed Nov 09, 2011 12:18 am
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.