Skip to main content
1-Visitor
January 30, 2016
Question

Can any one suggest how to do a program

  • January 30, 2016
  • 2 replies
  • 3742 views

Can any one suggest how to do a program or set of instruction (like macro) which will show the errors in the authoring file (content) on running the program.

Eg: The statement should be

Correct: “put the unit in position”

Wrong:  “put the unit in its position”

If we use in its position in the authoring, it should show error

2 replies

16-Pearl
January 31, 2016

For the example you give, the code is obviously trivial. Are you asking for a generic grammer checker? Simplified english validation? How deep do you need to go? You should consider commercial plugins if you have anything more than the most simple needs.

1-Visitor
February 4, 2016

thanks Gareth,

Its not a grammar check. In my work there are a lot of standard statements and set of value which is common for all tasks which i do. Some times by mistake I used to give wrong values. To avoid such mistakes I need to create a checker

eg: 1.torque so and so, refer to document "111112222" (doc no)

the torquing should be done by referring the document"111112222". Instead by mistake we will write as "111112223" which is wrong and that should be identified while checking.@

16-Pearl
February 5, 2016

Assuming you are on a recent version of Arbortext (6.0 or later), the simplest method to achieve this is to use the built-in Schematron support. Define a Schematron rule set that reports on the errors you need to pick up. Add this Schematron to your doctype. The Schematron errors will then be reported by Arbortext during validation.

12-Amethyst
February 2, 2016

Another option would be to use entities.

One can set up entities for common string sequences, phrases, paragraphs, etc.

1-Visitor
February 4, 2016

thanks Tim,

In my work there are a lot of standard statements and set of value which is common for all tasks which i do. Some times by mistake I used to give wrong values. To avoid such mistakes I need to create a checker

eg: 1.torque so and so, refer to document "111112222" (doc no)

the torquing should be done by referring the document"111112222". Instead by mistake we will write as "111112223" which is wrong and that should be identified while checking. can u plz guide me how to do that

12-Amethyst
February 22, 2016

Rather than having to key these standard phrases, could you have the style sheet insert the data via generated text, by testing a given specific attribute value in the root tag, and a given tag and/or set of attribute settings?

The attribute in the root tag would identify the document.

The tag testing would indicate where to place the text and the attribute(s) values would specify the text or phrase to be inserted.

This way users would only need to insert the tag, and set certain attribute values.