Reordering entries

1 view
Skip to first unread message

TonyNaden

unread,
Nov 3, 2025, 12:52:11 PM (3 days ago) Nov 3
to Shoebox/Toolbox Field Linguist's Toolbox
I want to reorder entries on a field which was not the original entry word, and export with that field at the head of the entry.  I know I've done this before but can't find the magic agin --  help anybody?  :

\lx dɔlintaa
\pl dɔlintaaba
\ps n
\sn 1
\ge fellow_followers
\de fellow-follower/disciple
\re fellow-follower
\rf 1SA 11:15[draft]
\xv ba daa laa m-maali dɔlintaa sara
\xe they again offered fellowship offerings
\lf Sim
\lv dɔlinkpeaa
\thes companion
\is II.E.4.c
\is II.B.6.b
\is II.B.6.c
\is II.E.2.b
\is II.E.4.c
\cf dɔli
\cf -taa


to become :

\thes companion
\lx dɔlintaa
\pl dɔlintaaba
\ps n
\sn 1
\ge fellow_followers
\de fellow-follower/disciple
\re fellow-follower
\rf 1SA 11:15[draft]
\xv ba daa laa m-maali dɔlintaa sara
\xe they again offered fellowship offerings
\lf Sim
\lv dɔlinkpeaa
\is II.E.4.c
\is II.B.6.b
\is II.B.6.c
\is II.E.2.b
\is II.E.4.c
\cf dɔli
\cf -taa

(to then load as a different Type where \thes is the entry field.

Alan Buseman

unread,
Nov 5, 2025, 5:41:55 PM (14 hours ago) Nov 5
to shoeboxtoolbox-fiel...@googlegroups.com, ToolBox Support
Hi, Tony,

I was surprised to see that this message only appeared in Alan's email! It should have also come to me! Sorry you haven't gotten a response until now. I don't check his email every day. 

At this point, I'm mostly acknowledging your message, but I will reply in another day or so with the information you're looking for. This looks like a "reversal" and it's not too hard, but not totally easy either.

Good to hear from you, by the way. It's been a long time.

Karen
Toolbox Support


--
You received this message because you are subscribed to the Google Groups "Shoebox/Toolbox Field Linguist's Toolbox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shoeboxtoolbox-field-ling...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/shoeboxtoolbox-field-linguists-toolbox/02bf1930-3e4f-4cb1-b0f8-3517fef246dcn%40googlegroups.com.

Alan Buseman

unread,
Nov 5, 2025, 6:25:37 PM (13 hours ago) Nov 5
to shoeboxtoolbox-fiel...@googlegroups.com, ToolBox Support
Well, that went faster than I expected. Since you were only moving the \thes field, it's actually fairly easy. (Some such modifications sometimes move all sorts of stuff around.)

This solution does assume there is only one \thes field. If you have more, let me know. It's a bit more complex, but not too difficult.

Here is the basic table, with comments.
c Move the \thes field to the top of the record
group(Main)
c wait for the beginning of a record
'\lx ' > store(Start) dup c capture the first fields
'\thes ' > endstore c stop storing the first fields
           dup      c don't lose the marker
           use(NextField) c wait for the \thes data to go out
group(NextField)
c The next backslash is the end of the \thes field
c since storing was stopped, the data has gone out
'\' > out(Start)  c output the first fields
      dup back(1) c send the backslash to Main
      use(Main)   c data following \thes will go out

If you have any questions about how it works, I'll be glad to answer.

I was going to tell you how to add the database type to the file, but the explanation seemed to complicate things, even though it's fairly simple to do.

Karen
Toolbox Support
Reply all
Reply to author
Forward
0 new messages