Skip to main content
1-Visitor
June 24, 2015
Solved

Request for support

  • June 24, 2015
  • 2 replies
  • 2170 views

HI Team,

              As per my requirement I have created new menus and sub menus on menu bar of ArborText editor, The actual requirement of mine is  when I click on new menu then it should check the words presented on editor window with the data coming from some service  , if the words are not matching then the non matching words should be colored(red). I am new to ACL , kindly do some need full help on this please.

Thanks & Regards,

Prashant

Best answer by kjoono

Hi Prashant

I made a simple sample for your requrest and attached file.

Attached sample include adding custom menu, matching text and changing text color.

- ptc_init.acl : copy into '/Arbortext Editor/custom/init' folder

- ptc_menu.acl and ptc_check_word.acl : copy into '/Arbortext Editor/custom/scripts' folder

- Sample Topic.dita : sample document

After copy files, relaunching Arbortext Editor.

So you can see new menu of 'Custom Menu'.

There are two considerations.

1) I don't understand that you want to find non-matching word not matching word.

    So I was considering case of matching word.

2) When publishing, Touchup is prior to stylesheet. So Touchup style is applied Publishing Output.

   If you want to only checking in Arbortext Editor you should remove Touchup PI before Publishing.

Hope that helps,

Kim, Joon O

2 replies

5-Regular Member
June 25, 2015

Hi Prashant,

This sound like a Compare process.  Is the compare utility in the Editor not what  you are looking for?

How would your process differ?

What is the nature of the 'data coming from some service'?  XML fille?

prao1-VisitorAuthor
1-Visitor
June 26, 2015

HI Rafael Diaz,

                        Thanks for your valuable response , we are getting data in the form of XML only.Do we have any documents with examples to follow better.

With Regards,

Prashant

12-Amethyst
June 26, 2015

Hi Prashant

If you want to change color of non matching words you should use 'Touchup'.

Touchup is PI and provide user-dfine style without stylesheet.

To use Touchup PI, choose 'Format > Touchup > Font'.

By use touchup as follow :

<p><?Pub _font FontColor="red"?>non matching words<?Pub /_font?> ....</p>

After you find non matching words, you should insert 'Touchup' PI using ACL.

Hope that helps.

Kim, Joon O

prao1-VisitorAuthor
1-Visitor
June 26, 2015

HI Kim,

             Thanks for immediate response, I am very new to this ACL platform, can I have any reference examples or documents to follow.

With Regards,

Prashant

kjoono12-AmethystAnswer
12-Amethyst
June 29, 2015

Hi Prashant

I made a simple sample for your requrest and attached file.

Attached sample include adding custom menu, matching text and changing text color.

- ptc_init.acl : copy into '/Arbortext Editor/custom/init' folder

- ptc_menu.acl and ptc_check_word.acl : copy into '/Arbortext Editor/custom/scripts' folder

- Sample Topic.dita : sample document

After copy files, relaunching Arbortext Editor.

So you can see new menu of 'Custom Menu'.

There are two considerations.

1) I don't understand that you want to find non-matching word not matching word.

    So I was considering case of matching word.

2) When publishing, Touchup is prior to stylesheet. So Touchup style is applied Publishing Output.

   If you want to only checking in Arbortext Editor you should remove Touchup PI before Publishing.

Hope that helps,

Kim, Joon O