Pages: « 1 2 3 4 5 6 7 8 9 10 »
 on: November 29, 2017, 02:25:49 AM 
Started by Paolo.scomparin - Last post by Paolo.scomparin
Hi Derek,

We purchase Xmetal essentials 12.

If i install and use x64 version, some XFT forms sub controls doesn't works. (se image attached)

~ Regards,


 on: November 23, 2017, 01:40:58 PM 
Started by bk - Last post by Derek Read
The DITA authoring solution implements a transformation from HTML to DITA and includes support for many of the basic DITA elements. This transformation works for any HTML content on the clipboard (MS Word puts HTML on the clipboard together with several other formats when you copy). Any similar transformation process needs to be tuned to the target schema's markup. Keep in mind that every version of MS Word puts something slightly different on the clipboard (as does every different browser and many browser versions -- even though the underlying HTML source code is the same many applications put their own version of what they have built in memory onto the clipboard, or some version of that). In Word's case the HTML it puts on the clipboard contains a lot of proprietary Word (non-HTML) markup, so that is stripped out and the file is turned into an XHTML version before the transformation is done. The actual transform is essentially XML (XHTML) to XML (DITA) at that point.

If you want to implement something similar for your own schema you might have a look at the JScript code implemented for the DITA functionality in an XMetaL Author Enterprise installation. It tries to handle as many cases as possible however, so it is complex (and also undocumented as it is not really meant to serve as an example, though it has a few comments in it).

If you know that all of your MS Word documents were created using similar steps for constructing your tables (so Word's internal format for them is consistent), and that they were made using the same version of MS Word (this may not be important), and that all of your users will be using the same version of MS Word to copy from (this is important), and that users will only be copying tables or content from tables, then some of the cleanup steps might be simplified or you might get away without doing any cleanup before a transformation to your schema's format. In an XMetaL Author macro you can access the Windows clipboard using Application.Clipboard and you can use various "paste" related properties, methods and events to manipulate the content you obtain through Application.Clipboard so that what is actually pasted into the document matches what is allowed (essentially you need to transform it into a table that can be validly inserted into your document). I would recommend searching for "clipboard", "paste" and "When text is dropped" in the Programmer's Guide if you think this might be feasible.

 on: November 23, 2017, 11:59:33 AM 
Started by bk - Last post by bk

In XMetal 12, i see that copy/paste table from MS Word works (but not merged cells) in Dita for CALS table but not in HTML table in our customisation and also in the Journalist example.

I don't see any code that make it work, do you know if there is a mean to make it work for HTML table (like any DLL object to use on an event macro triggered  by the drop. ?
Thanks you.


 on: November 21, 2017, 03:51:26 PM 
Started by lekiert - Last post by Derek Read
The TBR format is undocumented so these files can be easily broken and are best managed by the application. XMetaL Author provides a UI for making modifications to your toolbars for end users.

If this is for distribution to multiple users as part of a customization please use the CommandBars APIs in an MCR file to create toolbars and then distribute the MCR file as part of the customization. These APIs are documented as part of the XMetaL Developer Programmer's Guide

You can't create shortcut keys for menu items. In other words, you cannot assign a key to a menu item that directly activates the action associated with that menu item. However, you can assign or change the hotkey for a menu item. When you name (or rename) a menu item, if you insert an ampersand (&) into the menu item's "button text" value, the letter (character) following the ampersand becomes the hotkey. When the item's parent menu is open, pressing the item's hotkey activates the item.

To assign (or change) a hotkey for a menu item:
1. Right click on the toolbar area and select Customize.
2. Navigate to and select the menu item you wish to change.
3. Right click on the menu item and select "Button Appearance".
4. In the Button Appearance dialog edit the value for the "Button Text". Include an ampersand before the letter you want to use to activate this item. It is best to select a letter that is not already in use in that menu.
5. Click OK to dismiss the Button Appearance dialog.
6. Click OK to dismiss the Customize dialog.

Some built-in actions have a shortcut key assigned that allows you to execute that feature without needing to go into a menu (for example: Ctrl+S = Save). These cannot be altered without overriding that functionality (which requires scripting). Macros can have shortcut keys assigned as well. The developer of the macro assigns the shortcut key to it using XMetaL Developer so if you need this changed please check with teh developer of the macro. See the XMetaL Developer help for details on assigning a shortcut key to a macro. Macros with shortcut keys can be run directly by pressing the shortcut key combination and you can also run them from the Macros toolbar and Macros dialog. You can also assign a hotkey to a menu item associated with a macro. The steps are basically the same as listed above except that instead of "New Menu" item you will be adding an "Application Macro" or "<your schemaName> Macro".

Note: If you launch XMetaL Author as an administrator you can reassign the shortcut key for a macro using the Macros dialog, but I would recommend asking the developer to do that so that such changes are made for everyone in the organization.

 on: November 21, 2017, 06:18:38 AM 
Started by lekiert - Last post by lekiert
Is it possible to specify a shortcut text for PopupMenuItem in TBR file? Where I can find tbr.dtd?

   <Caption><![CDATA[content assistant]]></Caption>
   <TooltipText><![CDATA[Insert Sth]]></TooltipText>

 on: November 20, 2017, 04:41:21 PM 
Started by bk - Last post by bk
Thank you Derek for your precise and complete answer.

 on: November 20, 2017, 02:28:34 PM 
Started by bk - Last post by Derek Read
In XMetaL (all products: XMetaL Author Enterprise, XMetaL Author Essential, XMAX) borders on tables (CALS and HTML) cannot be styled using CSS.

If you turn off the display of borders for a table (which can be done by setting the @border for the table value to an empty string or "0") the software still renders dotted lines because without any lines visible it can be very difficult to edit a table.

There are no plans to implement fancier CSS styling for tables. That would likely slow down editing speed. Unlike a browser which only needs to render a table once, an editor like XMetaL Author re-flows the entire table with each edit made to table content and the more things it needs to take into consideration when doing that rendering the longer it will take to complete.

 on: November 20, 2017, 11:48:45 AM 
Started by bk - Last post by bk

I'm using XMetal 12 with HTML tables and i would like to know how to get rid of the defaut display of table border (double border) in the editing view.

I try the following in the CSS (setting table border attribute to 0 or 1) but no change at all, the default "double" border is displayed :

   border: 1px black solid;
   border-collapse: collapse;

Any idea ?


 on: November 08, 2017, 01:12:22 AM 
Started by tcarano - Last post by Linneman
Gey tc, I just got the same error. Any luck?

 on: November 03, 2017, 02:04:54 PM 
Started by Derek Read - Last post by Derek Read
This topic has been moved to DITA and XMetaL Discussion.

Pages: « 1 2 3 4 5 6 7 8 9 10 »