Author and linefeed
Oxygen general issues.
-
- Posts: 11
- Joined: Fri Dec 02, 2011 1:11 am
Author and linefeed
Hi,
I was trying to understand the Author mode in Oxygen. I have two question:
- if I have a large <p> paragraph, and in the middle I press ENTER, Oxygen asks me if I want to add a new <p>.
If I say "ok", a new paragraph is created. But if I go back to text view mode, I see Oxygen adds a linefeed (or cr) at the end of every line of the paragraph. Is there a way to split a paragraph in Author mode without this forced linefeed?
- Using Author mode for xhtml document, I see icons (in menubar) for italic and bold. Is there a way to change those with other tags, like em, strong, ins and del?
Thank you for the answers.
f.
I was trying to understand the Author mode in Oxygen. I have two question:
- if I have a large <p> paragraph, and in the middle I press ENTER, Oxygen asks me if I want to add a new <p>.
If I say "ok", a new paragraph is created. But if I go back to text view mode, I see Oxygen adds a linefeed (or cr) at the end of every line of the paragraph. Is there a way to split a paragraph in Author mode without this forced linefeed?
- Using Author mode for xhtml document, I see icons (in menubar) for italic and bold. Is there a way to change those with other tags, like em, strong, ins and del?
Thank you for the answers.
f.
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Author and linefeed
Hi,
1. Related to your first question, if I understand correctly, when you split a paragraph in Author mode, you want oXygen to preserve all the whitespaces of that paragraph as they are in text mode.
In Author mode, when you split an existing paragraph or you make changes inside one, Oxygen formats the element and its contents, as seen in Text mode.
The line breaks are added to keep the length of a line to a reasonable size. There is a "Line width" option in Options > Preferences, Editor > Format, under the "Format and Indent" section, which has a default set value of "100".
Even after you split a paragraph, if one line's width is longer than the value mentioned above, then your paragraph's lines will break and appear as new ones when in text mode.
The solutions to prevent that to happen, are as follow:
- you could add the <p> element in the "preserve space" list in Options > Preferences > Editor > Format > XML to preserve space on ALL the <p> elements in your document
or
- if you have only a few paragraphs for which you need to preserve the lines of text, you could use the xml:space="preserve" attribute only for the respective <p> elements.
2. Regarding your second question, oXygen allows you to customize the actions and icons from the toolbar for a specific document type, by reaching the Options/Preferences/Document Type Association section and editing the desired document type.
In your case, you need to go to Options/Preferences/Document Type Association, scroll the list to the XHTML document type and click on the "Edit" button below. In the Document type window, you should navigate to the "Author" tab and then choose the "Actions" tab in the vertical list on the left side.
Now, using the editing buttons from the bottom of the window, you should be able to create, edit, duplicate and remove actions. To be easier to create new actions or edit the existing ones, please take a look at our pre-configured actions. Also, it could be useful to cast a glance over the Actions, Menus and Toolbars Configuration in Document Type Associations section from the user manual, available at:
http://www.oxygenxml.com/doc/ug-editor/ ... olbar.html
If I may ask, why do you want to preserve whitespaces(line breaks) in XHTML paragraphs(they don't show in the end result)? Have you formatted them in a certain way and you want to keep that way?
Regards,
Costin
1. Related to your first question, if I understand correctly, when you split a paragraph in Author mode, you want oXygen to preserve all the whitespaces of that paragraph as they are in text mode.
In Author mode, when you split an existing paragraph or you make changes inside one, Oxygen formats the element and its contents, as seen in Text mode.
The line breaks are added to keep the length of a line to a reasonable size. There is a "Line width" option in Options > Preferences, Editor > Format, under the "Format and Indent" section, which has a default set value of "100".
Even after you split a paragraph, if one line's width is longer than the value mentioned above, then your paragraph's lines will break and appear as new ones when in text mode.
The solutions to prevent that to happen, are as follow:
- you could add the <p> element in the "preserve space" list in Options > Preferences > Editor > Format > XML to preserve space on ALL the <p> elements in your document
or
- if you have only a few paragraphs for which you need to preserve the lines of text, you could use the xml:space="preserve" attribute only for the respective <p> elements.
2. Regarding your second question, oXygen allows you to customize the actions and icons from the toolbar for a specific document type, by reaching the Options/Preferences/Document Type Association section and editing the desired document type.
In your case, you need to go to Options/Preferences/Document Type Association, scroll the list to the XHTML document type and click on the "Edit" button below. In the Document type window, you should navigate to the "Author" tab and then choose the "Actions" tab in the vertical list on the left side.
Now, using the editing buttons from the bottom of the window, you should be able to create, edit, duplicate and remove actions. To be easier to create new actions or edit the existing ones, please take a look at our pre-configured actions. Also, it could be useful to cast a glance over the Actions, Menus and Toolbars Configuration in Document Type Associations section from the user manual, available at:
http://www.oxygenxml.com/doc/ug-editor/ ... olbar.html
If I may ask, why do you want to preserve whitespaces(line breaks) in XHTML paragraphs(they don't show in the end result)? Have you formatted them in a certain way and you want to keep that way?
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
-
- Posts: 11
- Joined: Fri Dec 02, 2011 1:11 am
Re: Author and linefeed
Ah, wonderful. It works fine.Costin wrote:Hi,
- you could add the <p> element in the "preserve space" list in Options > Preferences > Editor > Format > XML to preserve space on ALL the <p> elements in your document
Ah, wonderful again. It works as I need.Now, using the editing buttons from the bottom of the window, you should be able to create, edit, duplicate and remove actions. To be easier to create new actions or edit the existing ones, please take a look at our pre-configured actions.
A great “thank you” for those information. I tried yesterday to understand how to do, reading the manual, but oxygen is quite sophisticated application, so I do not find the answer to my problems. I'm learning day after day.
Actually I work in text view with automatic text-reflow for most of the things I have to do. I prefer to keep the paragraph in coerent block text, without any linefeed, because in this way I have a good view of the document, and less problem if I have to copy/paste text to other programs.If I may ask, why do you want to preserve whitespaces(line breaks) in XHTML paragraphs(they don't show in the end result)? Have you formatted them in a certain way and you want to keep that way?
Thank you again for the support.
f.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service