On 11/08/2016 01:16 AM, Wes Warner wrote:
Our current process involves using
processing instructions for some items.  Is there an easy way to apply
these instructions using something like a custom toggle?

Yes, it's certainly possible to customize the DocBook toolbar to add custom buttons inserting custom processing instructions.

However, this requires reading *loads* of boring documentation. See "XMLmind XML Editor - Configuration and Deployment", "Customizing an existing configuration", "Adding buttons to the tool bar", http://www.xmlmind.com/xmleditor/_distrib/doc/configure/add_toolbar_buttons.html

Unless you are an XML consultant and/or want to become an XXE guru, I do not recommend that you attempt to go through this.




The following line is an example from one of our documents.

<?st LOC/LNV deviation bar movement?><?et CHECK?>

We have this in place in order to put dot leaders between each portion.

We also have one for hard page breaks.

This implies that you use customized DocBook XSL stylesheets because <?st?> and <?et?> are not supported by the stock DocBook XSL stylesheets bundled with XMLmind XML Editor.





The next item is the ability to have multiple lines in a table cell.  Is
there some equivalent of shift+enter to get a newline in a cell?

No. There is no DocBook equivalent to XHTML <br/> element.

A possible solution is to replace the plain text (#text) contained in a cell (<entry>) by a <para>. This way, simply pressing "Enter" in an <entry>/<para> will split the <para> just like in a word-processor.

If you are interested, there are 3 ways to implement this from simplest to most advanced.

1) Create one or more custom table templates where all <entry> elements contain <para> rather than plain text.

See tutorial with screencast:
Inserting custom element templates, http://www.xmlmind.com/xmleditor/_tutorial/element_template/index.html



OR



2) This can be automated by customizing the DocBook v5+ configuration by hand. You can force all tables to have their cells containing by default a <para> rather than plain text.

This is done using configuration element <elementTemplate>, http://www.xmlmind.com/xmleditor/_distrib/doc/configure/elementTemplate.html



OR



3) Bind shift+enter to a custom macro-command doing "the right thing" (wrap text in a <para> if this is not already the case then split the <para>).

* Macro-commands: http://www.xmlmind.com/xmleditor/_distrib/doc/commands/writing_macros.html * Keyboard bindings: http://www.xmlmind.com/xmleditor/_distrib/doc/configure/binding.html




Sorry if this gets too technical. XMLmind XML Editor is very customizable/extensible but if you want to really adapt to your needs you'll always end up writing configuration files by hand:

"XMLmind XML Editor - Configuration and Deployment", Introduction,
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/introduction.html









--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to