* Convert tabbed text to table
Convert tabbed text to table
Having upgraded to v7 I'm going to use the rich text source transcriptions in Ancestral Sources from now on.
For consistency in the census sources I'd like to go back over all the existing sources and change the tabbed (with | delimiters) in to tables.
Has anyone come up with an easy way to do this?
For consistency in the census sources I'd like to go back over all the existing sources and change the tabbed (with | delimiters) in to tables.
Has anyone come up with an easy way to do this?
John Elvin
- ColeValleyGirl
- Megastar
- Posts: 4853
- Joined: 28 Dec 2005 22:02
- Family Historian: V7
- Location: Cirencester, Gloucestershire
- Contact:
Re: Convert tabbed text to table
Thanks.
I did several searches on FHUG thinking someone must have done something but never found the right search to find this plug in!
I did several searches on FHUG thinking someone must have done something but never found the right search to find this plug in!
John Elvin
- Mark1834
- Megastar
- Posts: 2147
- Joined: 27 Oct 2017 19:33
- Family Historian: V7
- Location: South Cheshire, UK
Re: Convert tabbed text to table
Unfortunately, the plugin doesn’t work for lumped citations. They are trickier for plugins to manage. I have modified it to work with either (I tend to lump simple secondary sources such as FreeReg), but it’s a bit clunky for lumped citations so not really suitable for general use.
Mark Draper
Re: Convert tabbed text to table
I'm a splitter so it works perfectly for me - thanks Jane.
One minor niggle: the size of the dialog box where you select the text to be converted is always way too small and if you are working on a number of sources you have to stretch the box every time. I've managed to find where it is defined and changed it to HALFxTHIRD which works a lot better.
A technique I've used in the past in a vbasic program was that when the user resized or moved a dialog it remembered the size and position and the next time the program was run they was what it used instead of the default. Is that possible? A brief dip in to the iup reference suggests it might.
One minor niggle: the size of the dialog box where you select the text to be converted is always way too small and if you are working on a number of sources you have to stretch the box every time. I've managed to find where it is defined and changed it to HALFxTHIRD which works a lot better.
A technique I've used in the past in a vbasic program was that when the user resized or moved a dialog it remembered the size and position and the next time the program was run they was what it used instead of the default. Is that possible? A brief dip in to the iup reference suggests it might.
John Elvin
- tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Convert tabbed text to table
Yes, John, that is possible, and some plugins do so, especially the more complex ones that are likely to be run repeatedly.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Convert tabbed text to table
Could you point me to the code in one that does this and I'll see if I can lift it. It may be a bit of a jump in at the deep end, but it may be a way of starting to learn lua programming. I always find with any programming environment, having a clear goal is a great incentive to learning how.
John Elvin
- tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Convert tabbed text to table
See FHUG Knowledge Base > Snippets > Plugin-related / Lua / Programming > Preserve User Settings.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry