Forum Replies Created

  • Derek Read

    Reply To: Modify selected elements?

    Participants 0
    Replies 2618
    Last Activity 1 year, 7 months ago

    See my reply here, third in the thread:

    http://forums.xmetal.com/index.php/topic,4037.0.html

    The two relevant APIs are:
    Selection.IsMultiCellSelection
    Selection.Cells

    If you can provide more information about what you need to accomplish I might be able to suggest something in more detail. Keep in mind that the actual end result (and starting condition) is the most important thing here as sometimes you can get there multiple ways.

    Reply

    Derek Read

    Reply To: Multiple Entry Tags Add Text

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    Yes, the APIs Selection.IsMultiCellSelection and Selection.Cells do not exist in versions older than 13.

    You are correct in coming to the conclusion that being able to get the information your script needed was impossible. The information is just not there (without these new APIs). So, prompting the user is as good as it is going to get.

    Reply

    Derek Read

    Reply To: Is it possible to highlight the active line one is working on?

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    I'm not sure I completely understand, but in Plain Text view if you click on the line number (left edge of the screen) does it do what you are expecting?

    Reply

    Derek Read

    Reply To: XMetaL Author Essent 12:the typing is lagging (slow) with increase of text size

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    Drawing borders around or having a background-color on very large elements (elements that take up multiple screens) can reduce the editing speed.

    Sorry I missed that one. I have had quite a fast computer for a few years now so these issues are very much reduced for me and I have to perform fairly extreme stress tests to see them. In my case the element has to span about 25 screens before I start to notice this issue.

    If you are drawing a white border then I suspect you must also have a different background-color set for some parent element. If that element commonly spans multiple screens then that could be contributing.

    The colour itself does not matter.

    Reply

    Derek Read

    Reply To: XML Comment – Display in normal view?

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    By design XML comments are not visible in Normal view.
    Neither XMetaL Author nor XMAX can be configured to show XML comments in Normal view.

    Reply

    Derek Read

    Reply To: XMetaL Author Essent 12:the typing is lagging (slow) with increase of text size

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    This is true in general: the larger a document is the slower interactions with that document will be.

    However, 110KB is nowhere near what I would consider to be “large”. I would say that's pretty small. We have clients that work with multi-MB sized documents. In some cases editing is “slow” but that depends on much more than simply XML file size. As an example, the sample “CamerasInFocus.xml” (that uses the fairly complex journalist.dtd) ships at 8KB. After copying and pasting content in that document to increase overall content size to 1.5MB I see no reduction in authoring interactions other than an increase in save time (which also does a full document validation by default), increasing from less than 1 second (at 8KB) to several seconds (at 1.5MB).

    So, here are some things to look at:

    The complexity of the document itself and the complexity of the schema (DTD or XSD) can contribute. In other words, a document consisting of one element containing thousands of lines of text will be easier on the software than a document with thousands of elements each containing a small amount of text. A document containing complex validation rules can also slow editing (complexity of the schema). In other words, if the software needs to decide between many elements, attributes, or values when inserting or changing or validating those things vs a simpler schema where there are only a few options editing the latter will be faster. These issues are primarily related to how XMetaL Author uses its “rules checking” feature to stop users from putting a document into an invalid state.

    If none of the things below help then the primary strategy in this case would be to reduce document size (if the schema is not the issue or the schema cannot be altered) and then piece together multiple smaller documents when transforming the XML to its final output (if that is necessary).

    Additional things that will slow editing include the complexity of the CSS used to render the document in Tags On and Normal view as well as macros that run when various actions take place. The CTM file can also have an effect, primarily if it contains script or if it is configured to render XFT forms with complicated scripting code or display many XFT documents inline in a document.

    The “check spelling while typing” feature can also slow editing, so it makes sense to try turning that off, as you have done.

    The “bidirectional text” feature (which is off by default) can drastically reduce editing speed, depending on which languages are being rendered, so if you don't need that feature make sure it is off.

    You might try a test where you replace your CSS file and CTM file with empty files to see if that helps. If it does help then replace portions of those files until the issue returns to find out what is contributing to the slow down.

    Macros that fire frequently (such as On_Update_UI) can slow down document editing, as well as macros that run less frequently but contain complex code, or macros that are relying on some external service to respond (these would typically be found with CMS integrations or systems that help with language such as spelling, grammar, controlled language database, etc).

    The rendering of tables in a document can be slow, depending on the table type. HTML tables are auto-sized so they can be slower than CALS to render while users are making changes to content within them. Very large tables in general are slow (all table types). The only solution here is to reduce their size, which typically means breaking large tables into pieces then joining them together during output transformation if the final output requires that.

    Note that the issues above generally don't apply to Plain Text view as most of the features mentioned won't function in that view, or if they do they function in a much simpler way.

    Reply

    Derek Read

    Reply To: XMetaL Developer examples?

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    The developer samples should be listed in the Windows Start menu under an item named XMetaL.

    The samples included with XMetaL Author are listed in it's Help menu under Samples, but these simply open an XML sample document that uses those customizations. The actual customization files are installed in the XMetaL Author installation itself.

    Reply

    Derek Read

    Reply To: Schematron validation produce empty box in XMetal 11

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    It does, but the Schematron itself needs to be designed in a very specific way, and the resulting default display output is not that nice to look at.

    Reply

    Derek Read

    Reply To: XMetaL Developer examples?

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    Yes, XMetaL Developer includes a document-level customization called “MiniJournalist” which is a simple DTD and basic CSS, CTM files. Is that the kind of example you are looking for?

    XMetaL Author itself includes three sample document-level customizations: Journalist, Meeting Minutes, and Docbook.

    The Journalist sample uses a proprietary DTD created around the time DocBook for XML was being initially designed so it looks similar to some degree but it is just meant for demonstration. This customization shows off a large number of APIs through macros, includes some XFT forms, custom toolbars and menus. An XSD version of the DTD is also provided that uses all the same customization files but the XSD for validation and to drive the Element List and Attribute Inspector.

    The Meeting Minutes sample is a really strange use for the software but it shows off some interesting functionality, including how to interact with a database.

    The Docbook sample uses the 5.0 version of the Docbook standard DTDs. It is just a sample but could be used to build a more robust authoring environment for that schema. It shows off a bunch of APIs similar to the Journalist sample, exposed in this case via the Docbook menu (which itself is added to show how menus can be customized) and includes a demo of XInclude, and functionality for displaying the same document using different CSS styling.

    Reply

    Derek Read

    Reply To: XMetaL Essential hangs using UNC paths

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    Yes, that path looks to be far under any Windows limits (commonly 255).

    Hard to say exactly what your issue might be. Perhaps there is some race condition occurring with multiple copies of the software or another process attempting to use files at the same time?

    The initial posting suggested the software was hanging (and never opening the file). But it sounds to me like what you are saying is that the file is opened, it just takes longer using one method (there are many ways to open a file in the GUI and via different APIs) vs right clicking and asking Windows Explorer to ask XMetaL Author to open the file.

    If you were to move the customization files to the user's local machine (this is the standard method of deployment) that should speed things up (if the issue is the speed of copying the files from the server each time).

    I'm not sure what you mean when you mention macros being an issue. Whatever behaviour you are seeing with macros would likely be very specific to what the macro is doing. If you can provide XMetaL Support with some samples they could have a look and possibly make some recommendations.

    Reply

    Derek Read

    Reply To: XMetaL Essential hangs using UNC paths

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    If the path to the DTD or XSD Schema is of significant length then the path that XMetaL Author generates to save files in the user's per-user folder may end up being too long for Windows:
    %appdata%SoftQuadXMetaLgen

    The fact that the issue goes away for you when you map the UNC path to a drive letter (reducing the length) suggests it might be the same issue. XMetaL Author Enterprise version 14 might include a fix that will help. XMetaL Author Essential 14 will not be released for a while.

    It's hard to know for sure what your issue is without getting more detail about what is stored at the UNC path, so which files XMetaL Author is opening from there, etc. So if you can provide that information we can probably give more detail.

    Reply

    Derek Read

    Reply To: Multiple Entry Tags Add Text

    Participants 0
    Replies 2618
    Last Activity 1 year, 8 months ago

    Because users interact with tables in a unique way when compared to standard elements in a document (what the user is seeing doesn't line up 1:1 with the XML so things get complicated) you need to use special (new and as yet undocumented) APIs to get a user's selection when it might consist of selected cells in a table.

    Here's something that does what I think your example code is trying to do.
    You can paste these into a document to see them run:

    [code=VBScript]'XMetaL Script Language VBScript:
    If Selection.IsMultiCellSelection Then
       Set c = Selection.Cells
    For j = 0 to c.length
    Selection.SelectNodeContents(c(j))
    Application.Alert(“content: ” & Selection.Text)
    Next
    End If[/code]

    [code=JScript]//XMetaL Script Language JScript:
    if(Selection.IsMultiCellSelection) {
       var c = Selection.Cells;
    for(j=0; j Selection.SelectNodeContents(c(j));
    Application.Alert(“content: ” + Selection.Text);
    }
    }[/code]

    Reply

    Derek Read

    Reply To: Window overlays topic

    Participants 0
    Replies 2618
    Last Activity 1 year, 9 months ago

    Aha, oops, yes this is an XMetaL Author feature. It is new to 12 I believe.

    Pressing Ctrl+Tab activates this window and allows you to navigate between all the various windows in XMetaL Author as well as switch documents.

    If you aren't holding the Ctrl key down on purpose perhaps it is being activated by a sticky keyboard or something.

    Reply

    Derek Read

    Reply To: How to open UWL files

    Participants 0
    Replies 2618
    Last Activity 1 year, 9 months ago

    This spell checking system and its file formats were integrated into the XMetaL product line when we were still part of Corel (around 2002/3). Unfortunately, there are some legalities (part of the deal when BlastRadius obtained XMetaL from Corel) that prevent JustSystems (who obtained XMetaL from BlastRadius) from releasing information about the spell checking system or providing additional tools that can work with it.

    You might have some luck if you are able to track down an older copy of Corel's WordPerfect.

    Reply

    Derek Read

    Reply To: Window overlays topic

    Participants 0
    Replies 2618
    Last Activity 1 year, 9 months ago

    This doesn't sound like a standard feature of XMetaL Author Enterprise to me.

    Please check with the vendor for the CMS you are working with to see if this is a window they have added to XMetaL Author's UI, why it might be appearing in this instance, and if they know about the issue and whether they have a fix for it.

    If you are sure this is something that is part of XMetaL Author's UI (perhaps I misunderstand from your description) having a screenshot of it might help clarify.

    Reply

Products
Downloads
Support