.tdi term lists - phrases possible?

<oXygen/> general issues.
tcleghorn
Posts: 8
Joined: Wed Nov 23, 2016 5:43 pm

.tdi term lists - phrases possible?

Post by tcleghorn » Wed Jan 18, 2017 7:47 pm

Hi,
I can't work out whether it's possible to add a multiple word phrase to the spellcheck dictionaries in a .tdi file - searching the web, I've found conflicting information about Hunspell, without any clear detail.
What I'd like is to have something like this:

Code: Select all


*power-on
*power on
power up
...such that "power-on" or "power on" would be flagged, and ideally, "power up" be suggested. Is this possible with just a .tdi? If not, would customising the .aff file get me anywhere? Or am I limited to checking single words without spaces?
Thanks in advance!

adrian
Posts: 2543
Joined: Tue May 17, 2005 4:01 pm

Re: .tdi term lists - phrases possible?

Post by adrian » Thu Jan 19, 2017 7:19 pm

Hello,

At least for Oxygen (v18), it is only possible to use single words. So, you can flag "*power-on" and that's about it.
I don't see a way to make this work for multiple words.

You could use "AutoCorrect" (Options > Preferences > Editor / Edit Modes / Author / AutoCorrect) and replace "power-on" and "power on" with "power up". But this only works in Author mode and only while typing.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Kevin H
Posts: 2
Joined: Thu Apr 04, 2019 7:51 pm

Re: .tdi term lists - phrases possible?

Post by Kevin H » Thu Apr 04, 2019 8:11 pm

Does anyone know if the .tdi file will now accept flagging compound words in version 20?
I work in aviation and have a long list of words that should be flagged as wrong when written as two words:
check list
check point
clam shell
coast guard
coast line
etc.

Radu
Posts: 6393
Joined: Fri Jul 09, 2004 5:18 pm

Re: .tdi term lists - phrases possible?

Post by Radu » Fri Apr 05, 2019 12:01 pm

Hi,

Our spell checker only checks words, it does not check terminology terms containing multiple words.
At some point I wrote a blog post which should give you some choices to implement what you want:

http://blog.oxygenxml.com/2017/06/check ... ng-in.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Kevin H
Posts: 2
Joined: Thu Apr 04, 2019 7:51 pm

Re: .tdi term lists - phrases possible?

Post by Kevin H » Thu May 09, 2019 10:08 pm

Thank you Radu; that helps. Have started adding the words to a schematron file.
Best regards

Post Reply