Is the user dictionary available in pdf?

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

stam
Posts: 3061
Joined: Sun Jun 04, 2006 9:39 pm

Re: Is the user dictionary available in pdf?

Post by stam » Thu Jul 18, 2024 9:02 am

richmond62 wrote:
Thu Jul 18, 2024 8:57 am
I am looking, ultimately, for a plain text version of the Dictionary, so I store it as a custom prop in a stack, call bits of it into a field, and edit (add my own guff) using a simple text editor.
I think maybe more useful you either look at Bernd's tinyDictionary or James Hale's Docset Reader stack, modify them "to add your guff", rather than keep thousands of pages as unstructured text in a custom prop...

This would mean likely having to edit the SQL functionality as I think both of these are based on SQLite.
Keeping it as unstructured text seems like a non-viable option to me... I guess you could make it an array, but not sure that's less work that just working with SQLite which is blazingly fast...

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Is the user dictionary available in pdf?

Post by bn » Thu Jul 18, 2024 9:17 am

Hi Richmond,
richmond62 wrote:
Thu Jul 18, 2024 8:57 am
I am looking, ultimately, for a plain text version of the Dictionary, so I store it as a custom prop in a stack, call bits of it into a field, and edit (add my own guff) using a simple text editor.
TinyDictionary has to option to add user notes to a dictionary entry. Those notes are stored locally and loaded at the start of TinyDictionary. Maybe that does what you want.

Kind regards
Bernd

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Is the user dictionary available in pdf?

Post by richmond62 » Thu Jul 18, 2024 9:21 am

The only snag about this is that I might want to transfer my modded dictionary onto other machines: say the ones in my school.

"unstructured text" would be fairly useless, but structured text would not.

Were the dictionary available as a list of terms, delimited in some way (e.g. '-----'), and it were loaded into a variable when required, searching it should not be unduly difficult.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is the user dictionary available in pdf?

Post by FourthWorld » Thu Jul 18, 2024 9:36 am

The SQLite DB that contains the data is inherently very nicely delimited.

PDF is a display format, not designed for parsing and notoriously inconsistent in what you get out of it with the clipboard or conversion tools.

I'd go to the source: use the SQLite DB.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Is the user dictionary available in pdf?

Post by bn » Thu Jul 18, 2024 9:50 am

Hi Richmond,
richmond62 wrote:
Thu Jul 18, 2024 9:21 am
The only snag about this is that I might want to transfer my modded dictionary onto other machines: say the ones in my school.

"unstructured text" would be fairly useless, but structured text would not.

Were the dictionary available as a list of terms, delimited in some way (e.g. '-----'), and it were loaded into a variable when required, searching it should not be unduly difficult.
the notes file is stored (on a Mac)
/Users/userName/Library/Application Support/LcTinyDict/tinyDictNotes.array

TinyDictionary has the option to import notes via the cog menu. So notes are portable. Synching is another problem.
Also in tinyDict there is a category to sort by "Note".

Kind regards
Bernd

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Is the user dictionary available in pdf?

Post by richmond62 » Thu Jul 18, 2024 10:13 am

Synching is another problem.
In my language school the only type of synching we aim for is lip-synching:

"Repeat after me: THe THin THerpeutic Thesaurus THinks it is THe Thing to use." :D

Post Reply