Search found 878 matches

by Ron Melby
06 Jun 2021 18:03
Forum: Plugin Technical Support & Development
Topic: fhIsTAG or something akin is missing or is there a like alternative.
Replies: 2
Views: 1446

fhIsTAG or something akin is missing or is there a like alternative.

function matTAG(eptr) local atr = fhIsAttribute(eptr) local evt = fhIsEvent(eptr) local fct = fhIsFact(eptr) given an eptr to (for instance): 'NAME' all of these fhIs* are false and that would be fine because it could be considered it is one of the gedcom tags by default However, I think a tag like ...
by Ron Melby
06 Jun 2021 17:50
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

Re: text wrap

Look it up, its documented. I help where I can. Not being terribly advanced, it often goes to naught. Some help is on the FB group, some here.

How about you, what's your gadfly count?
by Ron Melby
06 Jun 2021 15:32
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

Re: text wrap

You are not a super user Helen, and your 'advice' has always been singularly unhelpful. I bet you dont get told to read the documentation by Scuri when you ask a question, say for instance; regarding themes, because he knows his documentation is unintelligible and sparse, and he just whips out a con...
by Ron Melby
06 Jun 2021 11:50
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

Re: text wrap

mike, ok, well that is the long way around the barn. since I am not writing to the gedcom much as of yet, I have the code here, and it looks like when fh 7 gets some more of its bugs out if I get the upgrade, then this sort of thing is wrapped in. I think my UTF8len works sufficiently to write displ...
by Ron Melby
06 Jun 2021 11:09
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

Re: text wrap

maybe I am missing something very fundamental here. but I am not. where is the documentation of utf8.whatevers and how to use them? where is the code? if its only binaries, and since I don't know good old Steve-o, we are at the end of any discussion of using this scrap, because it looks flaky to me....
by Ron Melby
06 Jun 2021 04:44
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

Re: text wrap

Mike,

Yes. and no.
Untitled.png
Untitled.png (116.43 KiB) Viewed 5496 times
by Ron Melby
05 Jun 2021 15:18
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

Re: text wrap

yes, from the link in knowledgebase,copied it in
by Ron Melby
05 Jun 2021 14:56
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

Re: text wrap

I used loadrequire and it got compat53, and got utf8 with no utf8.len that I can find

there is an artifact copy of util in utf8.

is it one of those, I have to use it before I know whats in it? it grabs modules as I use them?
by Ron Melby
05 Jun 2021 14:17
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

Re: text wrap

If I was going to use those, I would have to find a compat53.lua and a 'utf8 libraries' in either the store or in knowledge base), I found a kepler on github that required c++ compiling, and a bunch of junk with it--- (loadrequire was found, in knowledge base, but not as an lua, a copy and paste in ...
by Ron Melby
05 Jun 2021 12:34
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

Re: text wrap

Yes, absolutely sensible, I was only considering note fields, not any wrap of alphameric 'text' -- space is the gravamen. But it raises the question, should I 'gsub \t, space' ? and 'gsub \n, space ' or treat it as a break regardless of line length? I guess my lengths will have to be checked against...
by Ron Melby
04 Jun 2021 18:22
Forum: Plugin Technical Support & Development
Topic: text wrap
Replies: 35
Views: 8629

text wrap

I am trying to conceive of an algorithm of efficient text wrapping. say I have a string of text 2048 characters long and want to chop it into 80 char lengths. function WRAP(str, plen) --plen must be the maximum length to split lines at local wrap = {} slen = #tostring(str) llen = math.floor(slen/ple...
by Ron Melby
02 Jun 2021 00:14
Forum: Plugin Technical Support & Development
Topic: resolving unnamed return value in place.
Replies: 4
Views: 1623

Re: resolving unnamed return value in place.

dont know why my brain did not see '%s%s%s' as an arg. fixed, but more issues in the offing, thanks to non-consistent fh.
by Ron Melby
01 Jun 2021 11:48
Forum: Plugin Technical Support & Development
Topic: resolving unnamed return value in place.
Replies: 4
Views: 1623

Re: resolving unnamed return value in place.

I absolutely think it should work too, and I must be missing something simple. I am sure I have done this type of thing before. fred = rtvpgnam() local _pl = string.format('%s%s%s', __ipath.temp, rtvpgnam(), '.fh_prf') local _pl = string.format('%s%s%s', __ipath.temp, rtvpgnam, '.fh_prf') local _pl ...
by Ron Melby
31 May 2021 21:35
Forum: Plugin Technical Support & Development
Topic: resolving unnamed return value in place.
Replies: 4
Views: 1623

resolving unnamed return value in place.

local _pl = string.format('%s%s%s', __ipath.temp, ((rtvpgnam())), '.fh_prf')
ipath resolves in place
how do I get rtvpgnam to resolve in place? there is one return value
by Ron Melby
25 May 2021 11:22
Forum: Plugin Technical Support & Development
Topic: coding adding entries to a table subtable
Replies: 1
Views: 1075

coding adding entries to a table subtable

I am building a table, a typical example of what it should look like is: __ptr[1] = { _cp = { '_cp_01', (user data) }, -- rcd lookup handle, rcd handle(pointer) _dp[3] = { [3] = {'_dp_03', (user data)}, -- fld dta lookup handle, field handle(pointer) [7] = {'_dp_07', (user data)}, -- fld dta lookup ...
by Ron Melby
19 May 2021 14:28
Forum: Plugin Technical Support & Development
Topic: how do I create my own callback functions with return value?
Replies: 4
Views: 1625

Re: how do I create my own callback functions with return value?

oh wait....
k = key
v = val
rtx = ''
you mean
cb_io_[ix-](k, v, rtx) end

and then use rtx after the callback, right?
by Ron Melby
19 May 2021 14:23
Forum: Plugin Technical Support & Development
Topic: how do I create my own callback functions with return value?
Replies: 4
Views: 1625

Re: how do I create my own callback functions with return value?

I dont understand that, nor how to do that, at least not that I know of, can you elucidate, Helen? Thanks.
by Ron Melby
19 May 2021 14:12
Forum: Plugin Technical Support & Development
Topic: how do I create my own callback functions with return value?
Replies: 4
Views: 1625

how do I create my own callback functions with return value?

I have never done anything like this, and I am not conversant enough and there are no examples I can find to do this. I need to call or pcall a callback function defined in your program and get a return value rtx = cb_io_3(k, v) the internals of the callback decision are unimportant at the moment, b...
by Ron Melby
18 May 2021 11:54
Forum: Plugin Technical Support & Development
Topic: iup gridbox program not executing correctly.
Replies: 9
Views: 2496

Re: iup gridbox program not executing correctly.

OK, things are not as they seem, here-- I would like some help with where I find the documentation for this, it is not in gridbox. Helen, you use a gridbox in Research Planner Mike, you use a gridbox in Flexible CSV importer. local lbl = iup.label { title = options.name or '', visiblelines = options...
by Ron Melby
16 May 2021 09:34
Forum: Plugin Technical Support & Development
Topic: iup gridbox program not executing correctly.
Replies: 9
Views: 2496

Re: iup gridbox program not executing correctly.

thanks mike and helen

I guess at some point you should prepared to be innundated about iup matrix. I am off to read that documentation
by Ron Melby
15 May 2021 14:58
Forum: Plugin Technical Support & Development
Topic: iup gridbox program not executing correctly.
Replies: 9
Views: 2496

Re: iup gridbox program not executing correctly.

this is getresults() in the above code I have 3 elements across in each line of my gridbox sfl contains the pointer to the first line--- which is key = QPRTFS (the key to the table I am working on ctx = *USR or *SYS VAL --some value-- or '' on display as QPRTFS *USR 1 I read in the userdata line at ...
by Ron Melby
15 May 2021 12:00
Forum: Plugin Technical Support & Development
Topic: iup gridbox program not executing correctly.
Replies: 9
Views: 2496

Re: iup gridbox program not executing correctly.

yes, thank you, I am always having trouble with those ({ and )} -- and I cannot see well enough to distinguish them, and zerobrane does not allow me to color them differently. And it is even worse to see in fh debug.

now on to trying to fix get results.
by Ron Melby
15 May 2021 11:26
Forum: Plugin Technical Support & Development
Topic: iup gridbox program not executing correctly.
Replies: 9
Views: 2496

iup gridbox program not executing correctly.

I am creating what I believe to be a 3 across gridbox (sfl_elem =3 is numdiv in the gridbox) but somehow I am not getting the link, getresults see no brothers, and it displays as a list, one entry per line, while I expect 3. Something very simple I do not understand, or I misunderstand. Thanks. (a l...
by Ron Melby
08 May 2021 19:02
Forum: Plugin Technical Support & Development
Topic: debug problem? and still out of memory problem
Replies: 4
Views: 1749

Re: debug problem? and still out of memory problem

after several backs and forths and many many reruns of my code, here is what I know. fh tells me that fh limit is around 1GB for mem. (not straightforwardly) but consider it the limit. they do not clean up at plugins end correctly (no other explanation is possible) I run my code with 3032 humongous ...
by Ron Melby
03 May 2021 14:44
Forum: Plugin Technical Support & Development
Topic: debug problem? and still out of memory problem
Replies: 4
Views: 1749

Re: debug problem? and still out of memory problem

no the table is there, I am saying if I grab it up by inspecting the variable _famOBJ, with debug in an otherwise absolutely minimal program, it brings up a blank inspection window, no data shows. but it is there. If I do it in a normal program it runs out of memory, and does not show the inspection...