The Dictionary . . . Again
Forum rules
Be kind.
Be kind.
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
The Dictionary . . . Again
The current OXT Lite dictionary leaves out substantial bits of information:
- -
- -
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
- OpenXTalkPaul
- Posts: 2795
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: The Dictionary . . . Again
I don't know what NBG is? I've use 'NFG' at the shop.
That's pretty much why I didn't want to take on the task of completely redoing a Dictionary-as-stack from scratch, too many ways it could go wrong or foe info to go missing in action, but as a quick reference it is stil better than trying to use the broken-on-Linux Browser Widget dictionary version. I think a better option might have been to generate an entrees to display from the array which can be retrieved from that revDocs library (which is used to generate the JSON /HTML version to begin with). I believe that's how the IDE does it for the Dictionary display that can be viewed 'inline' at the bottom of script-editor windows.
put the machine -- on macOS returns Model Identifier. like MacBookPro13,1
... that's yet another bit of syntax that I don't think I've ever used or knew existed before!
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
That's probably because 'bloody' is not used much as a swear work on your side of the pond. 

https://richmondmathewson.owlstown.net/
- OpenXTalkPaul
- Posts: 2795
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: The Dictionary . . . Again
I think the closest thing we might get to 'the machine' in a web context is the userAgent string, you can figure out the type of machine/platform in a broad sense, like "desktop" or "mobile" plus vendor. in a desktop app context it's easy to get that sort of info with a shell() function.
I just checked the Emscripten port of the Engine 'the machine' returns empty.
But I yeah a syntax dictionary viewer should display a parameters section, specially with specific possible enum values it's important for being able to use the syntax.
Since Tom used a plain text format it should be easy to fix it yourself and then share it with us.
I just checked the Emscripten port of the Engine 'the machine' returns empty.
But I yeah a syntax dictionary viewer should display a parameters section, specially with specific possible enum values it's important for being able to use the syntax.
Since Tom used a plain text format it should be easy to fix it yourself and then share it with us.

- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
Why do I have a feeling that the discussion about 'the machine' has mysteriously migrated here from another thread?
viewtopic.php?p=14597&hilit=machine#p14597
Could one of the list 'Dads' (Ugh: we all know where that childish sort of terminology originated) sort this out, please?
viewtopic.php?p=14597&hilit=machine#p14597
Could one of the list 'Dads' (Ugh: we all know where that childish sort of terminology originated) sort this out, please?
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
In spite of "Mr Prickles" and his reaction, the FACT is that the current Dictionary does not display all the information it should.
And part of that reaction might be because of someone getting slightly frazzled digging in pastures new and having no time to do some weeding inbye the biggin.
I am aware the current Dictionary is 'there' because the inherited one 'fekked up big' on Linux.
That does not really excuse the very real problem.
While the text files for the current Dictionary are text files, as far as I recall they do contain some sort of markup language.
I intend to address this over the next few days, and see if I cannot produce at least a static stack that displays all the information inwith the text files in a fairly similar way to the legacy dictionary but usable on Linux.
And part of that reaction might be because of someone getting slightly frazzled digging in pastures new and having no time to do some weeding inbye the biggin.
I am aware the current Dictionary is 'there' because the inherited one 'fekked up big' on Linux.
That does not really excuse the very real problem.
While the text files for the current Dictionary are text files, as far as I recall they do contain some sort of markup language.
I intend to address this over the next few days, and see if I cannot produce at least a static stack that displays all the information inwith the text files in a fairly similar way to the legacy dictionary but usable on Linux.
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 3488
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: The Dictionary . . . Again
Rather than complain about it Richmond, why don't you have a look at the script of the dictionary stack and have a go at sorting it out? This is a common theme. I don't know why you don't go weeding through the script to work out WHY it's not working. Four eyes are better than two.richmond62 wrote: ↑Thu Apr 10, 2025 6:57 am In spite of "Mr Prickles" and his reaction, the FACT is that the current Dictionary does not display all the information it should.
I don't know what you mean by "inbye the biggin", but yes - pouring my time into what is essentially always going to remain a broken engine makes no sense.richmond62 wrote: ↑Thu Apr 10, 2025 6:57 am And part of that reaction might be because of someone getting slightly frazzled digging in pastures new and having no time to do some weeding inbye the biggin.
You aren't wrong there. It's better to have something rather than nothing.richmond62 wrote: ↑Thu Apr 10, 2025 6:57 am I am aware the current Dictionary is 'there' because the inherited one 'fekked up big' on Linux.
That does not really excuse the very real problem.
While the text files for the current Dictionary are text files, as far as I recall they do contain some sort of markup language.
Good. Glad to hear it!richmond62 wrote: ↑Thu Apr 10, 2025 6:57 am I intend to address this over the next few days, and see if I cannot produce at least a static stack that displays all the information inwith the text files in a fairly similar way to the legacy dictionary but usable on Linux.
That's what I'm on about. Hope this doesn't come across as too "Prickly!" but saying NBG (No bloody Good) is all very well, but let's see you do better!?
I don't mean that in a terse or objectionable way - see it as a scripting challenge if nothing else. The info is all there in the text files, for want of a better phrase - it's how they are being 'parsed'.
In all seriousness, I'd like someone to take over the development of what I see as our "very legacy engine", and I wish them all the luck in the world with it. I don't feel I can innovate or take it any further though.
You could equally argue though, that as the information in the dictionary is (at best) probably only 50% correct - I'm not going to overly worry about it anyway when the source material is so deeply flawed. I normally find I just need enough to jog my memory on something, then the rest is pretty much self explanatory in most cases: usually resulting in something not being implemented on all platforms in the engine, or implemented differently. (running up against our legacy engine problems yet again).
- tperry2x
- Posts: 3488
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: The Dictionary . . . Again
On a lighter note, this made me laugh at least:
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
Rather than complain about it Richmond, why don't you have a look at the script of the dictionary stack and have a go at sorting it out?
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 3488
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: The Dictionary . . . Again
Uh, yeah - indeed.richmond62 wrote: ↑Thu Apr 10, 2025 8:43 amRather than complain about it Richmond, why don't you have a look at the script of the dictionary stack and have a go at sorting it out?
If you want a starting point - open the dictionary stack so it's visible and loaded, and run this in the message box:
Code: Select all
edit the script of btn "load random" of cd 1 of stack "OpenXTalk Lite Dictionary"
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
Oops:
- - -
AT least part of the problem might be that a lot of the HTML tags have been removed in the TEXT files.
HOWEVER I have NO idea whatsoever where to find the HTML files from which these text files have been derived.
- - -
AT least part of the problem might be that a lot of the HTML tags have been removed in the TEXT files.
HOWEVER I have NO idea whatsoever where to find the HTML files from which these text files have been derived.
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
Let's suppose that these are what I need:
- -
Presumably (?) there is a way to export each term to an HTML file (otherwise I wonder how those TEXT files were derived).
- -
Presumably (?) there is a way to export each term to an HTML file (otherwise I wonder how those TEXT files were derived).
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
Um . . .
Erm . . .
Were those HTML files rather than text files would all that formatting code be necessary?
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 3488
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: The Dictionary . . . Again
They were exported as text by a script, opening each dictionary item one-by-one on a loop, copying the raw text, and pasting into a corresponding .txt file. (using xdotool on linux).richmond62 wrote: ↑Thu Apr 10, 2025 9:51 am Presumably (?) there is a way to export each term to an HTML file (otherwise I wonder how those TEXT files were derived).
If you want the HTML tags, you'd need to open the dictionary in LCC 9.6.3 in a browser, then view the source (for each entry) I suppose.
- tperry2x
- Posts: 3488
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: The Dictionary . . . Again
Yes, because HTML display within the IDE is very lacking. (which is why I think they default to trying to use a browser approach). - no table support for htmltext for example.richmond62 wrote: ↑Thu Apr 10, 2025 10:03 am Were those HTML files rather than text files would all that formatting code be necessary?
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
Not very helpful: https://livecode.com/apidocs/docs/api.htmlthe dictionary in LCC 9.6.3 in a browser
as seems no obvious way to export each individual entry as a 'simple' HTML file.
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
That's an odd statement as my Devawriter Pro gubbins can import HTML text and keeps at least some of the formatting intact.Yes, because HTML display within the IDE is very lacking.
However, right now I have to go and sing for my supper:
-
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 3488
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: The Dictionary . . . Again
Not really. As you wanted the parameters to load as a table, there's no built in table support in the htmltext implementation of the IDE, so you either have to use a datagrid or roll-your-own.richmond62 wrote: ↑Thu Apr 10, 2025 10:09 amThat's an odd statement as my Devawriter Pro gubbins can import HTML text and keeps at least some of the formatting intact.Yes, because HTML display within the IDE is very lacking.
Anyway, here's how you get access to those HTML files. (Ignore the time on these screenshots as it's a VM).
I'm using LCC 9.6.3 here and opening the dictionary. With the dictionary loaded, not closed, I then navigate to here in the finder: it's this api.html file you want. Open that in a browser of your choice.
You now at least have it displaying in a normal browser, not the browser widget of the IDE. View page source: There's all your HTML tags and markup.
- richmond62
- Posts: 5232
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: The Dictionary . . . Again
Thanks.
Something tells me I'm going to have a fairly dirty weekend . . .
Something tells me I'm going to have a fairly dirty weekend . . .
https://richmondmathewson.owlstown.net/
Who is online
Users browsing this forum: No registered users and 6 guests