General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › End of Line options
-
wetcoastwriter April 3, 2009 at 4:49 pm
End of Line options
April 3, 2009 at 4:49 pmParticipants 1Replies 2Last Activity 13 years, 10 months agoWe recently had a report from our translation firm that content that was unchanged was showing up as a fuzzy match… they later reported that they had stripped out the end of line codes and the content then matched what they had.
I looked in the Options to see if I could do something to prevent this in the future. I don't see a way to do this. The end of line options are just OS settings (essentially).
I opened some files in a text editor, to look at the code (our Documentum integration prevents XMetal from displaying the plain text view). The text wrapped in places that had nothing to do with the paragraph markers.
How do I prevent this?Derek Read April 3, 2009 at 6:54 pm
Reply to: End of Line options
April 3, 2009 at 6:54 pmFrom your description it sounds like you need someone to have a look at the pretty printing settings for your customization. This is controlled in the CTM file associated with your DTD or XSD and can be altered (most easily) using XMetaL Developer.
If the people that created your customization files did not specifically address this with their design you may have a CTM file that either has pretty printing turned off entirely, or a CTM file that has auto-generated settings (either created by XMetaL Author or Developer using a fairly simplistic logic and list of oft-used English language element names). Or perhaps it was designed, but did not take your specific needs into account. For anyone that really cares about pretty printing this is really something that needs to be properly designed by a human being (rather than using the auto-generated settings).
Because you are seeing line wrapping I think you must have pretty printing enabled and that it just needs to be adjusted properly.
The CTM file is just a plain text (XML) file however, so it can be modified with most text editors. There is a “global” section for pretty printing settings (that affects everything, like line length) and then each element has its own section with settings that control how pretty printing is handled for that element and the content it contains. The tricky bit is knowing which settings do what, and that is where XMetaL Developer is most useful. Presumably the people that created your customization either have a copy or already know the format (if they don't use Developer).
Derek Read April 4, 2009 at 12:17 am
Reply to: End of Line options
April 4, 2009 at 12:17 amOne more thing that might be of use is a new feature in the 5.5 releases of XMetaL Author, XMAX and Developer that allows you to ignore the global “maximum line length” setting.
This setting should be listed in the CTM Editor in XMetaL Developer 5.5 (though I don't believe the documentation lists it yet).
The setting as it appears within the CTM file is
and is inserted as a child inside . The setting it overrides is the global pretty printing setting (which when not set defaults to 80 characters). -
AuthorPosts
- You must be logged in to reply to this topic.