Brian C. Huffman | 17 Apr 21:27 2014

DISPLAY needed for command-line tool?

Is there a way around having the DISPLAY set (and working) for linux 
command-line?

I'd like to run the convert tool out of a script that wouldn't have a 
working X display, but it's failing:
xxetool: *** error: Plug-in Errors:
- com.xmlmind.xmleditext.mathml.imgtk.MathMLImageToolkit
-- cannot create image toolkit plug-in 
"com.xmlmind.xmleditext.mathml.imgtk.MathMLImageToolkit": 
java.lang.ExceptionInInitializerError

Thanks,
Brian

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

Brian C. Huffman | 17 Apr 18:58 2014

Command-line convert to PDF on linux not working

So I got past the last issue.  You were correct - I was trying to 
convert a DocBook 5 document but using the incorrect module.

But now I'm getting a different message on *some* documents but not others:

[proj]$ ../xxe-pro-5_9_0/bin/xxetool convert db5.toPSFile 
doc/ProgrammerGuide.xml -s pdf -s "|pdf" -u doc/out.pg
Making portrait pages on A4 paper (210mmx297mm)
xxetool: *** error: Command execution has failed:
FOP XSL-FO processor error:
java.lang.NullPointerException

If I do this in the GUI, I get some more information:
FOP XSL-FO processor error:
javax.xml.transform.TransformerException: java.lang.NullPointerException
+---------------------------------------
| com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:61)
| com.xmlmind.xmleditext.fop1_foprocessor.FOP.doProcessFO(FOP.java:125)
| com.xmlmind.xmleditext.fop1_foprocessor.FOP.processFO(FOP.java:82)
| 
com.xmlmind.xmleditapp.cmd.process.ProcessFOItem.execute(ProcessFOItem.java:114)
| 
com.xmlmind.xmleditapp.cmd.process.ProcessFOItem.execute(ProcessFOItem.java:72)
| 
com.xmlmind.xmleditapp.cmd.process.SubProcessItem.execute(SubProcessItem.java:89)
| 
com.xmlmind.xmleditapp.cmd.process.ProcessCommand$1.run(ProcessCommand.java:198)
+---------------------------------------
CAUSE:
java.lang.NullPointerException
(Continue reading)

Niels Grundtvig Nielsen | 17 Apr 14:15 2014
Picon

improving .pdf output by font substitution

Since I'm lucky enough to have Acrobat X, I can just open the .pdf output and touch up the font property of the problem character. Takes the urgency off the question, but I would still like to know how to achieve the required result by making more informed use of XXE … and for the time being, I'm still very confused :-{


what I've seen happen

the default .pdf conversion does not render a glyph I select from the XXE symbols pallette correctly, even though it is displayed on screen


what you've explained

this is what we can expect, because by default the .pdf conversion uses the Symbol font that does not contain this glyph


what I need to do

I imagine, from your explanation and from other experiments, this is a two-step procedure:

  1. include a font (for example, Letter Gothic Standard) in the "embed fonts" list in the FOP options
  2. edit the attribute set in the custom XSLT stylesheet to make .pdf conversion use this font – for example, <uicontrol font-family="Letter Gothic Standard">

what the FAQ say

A: By default, PDF uses its 14 built-in fonts: Times, Helvetica, Courier, Symbol and ZapfDingbats. These fonts have glyphs only for the western (AKA Latin1) languages. Therefore you need to substitute to these built-in fonts truly multilingual fonts [...] This can be done from within XMLmind XML Editor. More information in XMLmind XML Editor - Online Help, Apache FOP options and RenderX XEP options


The link to Apache FOP options takes me to 6.13. Add-on options > 6.13.1. Apache FOP options > Procedure 9.2. How to choose specific fonts (for example, you want to replace Times fonts by Georgia fonts)


I have read, re-read and experimented – complete lack of success :-{

  • the procedure says nothing about replacing or substituting – it just talks about adding a TTF font to the list
  • the list looks as though it's related to the 14 standard PS fonts … but does not include Symbol or ZapfDingbats
  • alerted by the warning about Windows, I've tried drag and drop from C:\windows\fonts to the list … no luck on this Windows 7 PC; I've also tried typing in the path and filename, and that doesn't work either

Following your advice to read the help topics on editConversionStylesheetsAction and xslcustom.Customizer has improved my general understanding, but I'm no nearer being able to carry out the one piece of customisation I'm aiming for: telling FOP to use Letter Gothic Standard instead of Symbol when rendering a UIcontrol element.


Any chance you can come up with a new way of guiding my idiot footsteps through this task? unfortunately, I'm not managing to interpret either the interface or the helps in a way that solves my problem. As I said, it is less urgent now I've worked out how to adjust the final .pdf myself.


Thanks in advance!


Niels Grundtvig Nielsen

Technical Communicator

you know what you're talking about – I can help you say it




--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Camille Bégnis | 16 Apr 16:28 2014

XXE WebDAV RFE

Hello,

A little request for enhancement when dealing with locked file on a WebDAV repository.

If the connection fails or XXE hangs, the remote file might remain locked even though it is actually closed on XXE side.
When the user tries to open it again, XXE tells him that the file is locked and offers the possibility to open it in read-only, or read-write mode.
It would be useful to add a third option if the user is the same that had isssued the former lock. This option would release and issue the lock again before opening the file in normal mode.

Thanks,

--
NeoDoc
Camille Bégnis
camille <at> neodoc.fr
Tél: +33 (0)4.42.52.24.20
5, rue de la Touloubre
13770 Venelles
France

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Jeff Hooker | 10 Apr 22:30 2014

Using the colspec element to set table column color in the CSS

Hi Hussein,

 

I’ve modified my DITA PDF and xhtml publishing scripts to read an attribute (bg_color) from colspec, row, and entry elements and reflect the defined color in the output. Now I am working on the GUI for this.

 

In the CSS presentation layer for XMLmind, it was quite easy to write commands to set the colors on the elements, and easy to make the interface reflect the color chosen when the attribute is set at the entry or row level. Making a whole column in a table reflect a color selection made on its colspec element, however, is proving difficult. I would prefer to do this in CSS somehow rather than writing a command to actually add the bg_color attribute to every  individual entry in the column, partly because this would involve having to re-apply it every time I added a new row.

 

Are there any widgets in XMLmind that connect entry elements with their colspec elements? The xpath statement for intelligently reaching backwards from each entry element and finding the right colspec element is proving to be problematical.

 

Regards,

Jeff.


--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Jeff Hooker | 4 Apr 02:27 2014

XML Source by default?

Hello Hussein,

 

Is it possible to make the “XML source” view the default view for opening specific configurations?

 

Jeff.


--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Hussein Shafie | 27 Mar 18:31 2014

Re: two small observations

On 03/27/2014 04:06 PM, Niels Grundtvig Nielsen wrote:
> First serious use of XML Mind, after successful proof of concept
> documents: I'm now using it to collect information from a team of
> developers and prepare a DITA-compliant configuration document for a client.
>
> The deliverable is going to be a .pdf file, and I've noticed just a
> couple of small glitches :-{
>
>   * when I use <menucascade> in a <step>, the arrow character between
>     the <uicontrol> elements knocks the output down so it no longer
>     lines up with the step number

Yes, that's right and I really don't understand why the left arrow used 
in <menucascade> (&#x2192;) is considered by FOP and XEP to be a ``tall 
character''.

>   * I've selected 'black left-pointing triangle' U+25C0 from the
>     Characters pallette to match another uicontrol, and while it shows
>     up as expected on screen it's rendered as # in the .pdf

That's normal because font Symbol does not contain U+25C0.

Please refer to this FAQ (which also applies to your case) to quickly 
solve this problem:

---
When I convert documents written in Russian (or Polish or Czech or any 
non-western language) to PDF, almost all characters are replaced by the 
"#" character. Is there a workaround for this problem?
---

http://www.xmlmind.com/xmleditor/faq.html#custom_pdf_fonts

>
> Can I resolve both these problems by specifying a particular font for
> the .pdf output? I know /that's/ possible, because you already told me
> once where to find it in the documentation :-}
>

Sure. However this is slightly more complicated than simply using a 
different font for all the text including the left arrow (what's 
explained in the above FAQ). For that, you need to customize the XSL 
stylesheets which generate XSL-FO out of a DITA document.

--> The relevant parameters are:

menucascade-separator

Default value: &#x2192;

--> The relevant attribute-sets are:

menucascade-separator

Default value:
---
   <xsl:attribute-set name="menucascade-separator">
     <xsl:attribute name="font-family"
                    select="if ($foProcessor eq 'XFC')
                            then $body-font-family
                            else 'Symbol'"/>
   </xsl:attribute-set>
---

You may want to change attribute "font-family" from "Symbol" to a 
typeface containing U+25C0.

All these changes can be done quickly and safely from within XXE by 
using "Options|Customize Configuration|Customize Document Conversion 
Stylesheets" after opening you DITA map.

Please take the time to carefully read:

http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html#editConversionStylesheetsAction

and:

http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xslcustom.Customizer.html

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

Niels Grundtvig Nielsen | 27 Mar 16:06 2014
Picon

two small observations

First serious use of XML Mind, after successful proof of concept documents: I'm now using it to collect information from a team of developers and prepare a DITA-compliant configuration document for a client.

The deliverable is going to be a .pdf file, and I've noticed just a couple of small glitches :-{
  • when I use <menucascade> in a <step>, the arrow character between the <uicontrol> elements knocks the output down so it no longer lines up with the step number
  • I've selected 'black left-pointing triangle' U+25C0 from the Characters pallette to match another uicontrol, and while it shows up as expected on screen it's rendered as # in the .pdf
Can I resolve both these problems by specifying a particular font for the .pdf output? I know that's possible, because you already told me once where to find it in the documentation :-}

Thanks in advance!

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Jeff Hooker | 27 Mar 17:34 2014

Error in consol when trying to open new "Navigation Pane" view

Hi Hussein,

 

When I attempt to open a ditamap in the new Navigation Pane view, the document appears to load (i.e. I get the dialog with all the scrolling file names as XXE reads in the files) but then it fails silently. When I open XXE using the xxe-c.bat file I see this in the console:

 

Saving Quick Start info to "C:\Users\hookerje\AppData\Roaming\XMLmind\XMLEditor5

\cache\start\start.ser"...

Cleared Quick Start cache.

Cleared Schema cache.

Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: com.xmlmin

d.xmleditext.dita.TopicSet.getSpecificationName()Ljava/lang/String;

        at com.xmlmind.xmleditapp.app.part.NavigationPane.<init>(NavigationPane.

java:145)

        at com.xmlmind.xmleditapp.app.part.OpenNavigationPaneAction.open(OpenNav

igationPaneAction.java:269)

        at com.xmlmind.xmleditapp.app.part.OpenNavigationPaneAction.exec(OpenNav

igationPaneAction.java:224)

        at com.xmlmind.xmleditapp.kit.LengthyAction$1.actionPerformed(LengthyAct

ion.java:42)

        at javax.swing.Timer.fireActionPerformed(Unknown Source)

        at javax.swing.Timer$DoPostEvent.run(Unknown Source)

        at java.awt.event.InvocationEvent.dispatch(Unknown Source)

        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

        at java.awt.EventQueue.access$200(Unknown Source)

        at java.awt.EventQueue$3.run(Unknown Source)

        at java.awt.EventQueue$3.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour

ce)

        at java.awt.EventQueue.dispatchEvent(Unknown Source)

        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.run(Unknown Source)

 

I installed the xxe-eval-5_9_0-setup.exe on a Windows 7 box.

 

Regards,

Jeff.


--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Camille Bégnis | 21 Mar 12:05 2014

Suggestion: search from XML view

Hello,

when searching from XML view, the search popup change uppercase to lowercase.


Which is particularly annoying when using special characters.

Thanks for considering this.

Best regards,

--
NeoDoc
Camille Bégnis
camille <at> neodoc.fr
Tél: +33 (0)4.42.52.24.20
5, rue de la Touloubre
13770 Venelles
France

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Camille Bégnis | 19 Mar 19:10 2014

Suggestion: edit transcluded document

Hello,

usecase: editing a DB5 master document (A.xml) that transcludes another document (B.xml) that himself transcludes a third document (C.xml)

When you right-click on an element part of C.xml and choose "Open referenced document" it opens B.xml instead of C.xml.

It would be nice to offer the choice, or open C.xml instead.

Have a nice evening,

--
NeoDoc
Camille Bégnis
camille <at> neodoc.fr
Tél: +33 (0)4.42.52.24.20
5, rue de la Touloubre
13770 Venelles
France

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

Gmane