Google Groups Home
Help | Sign in
Does exist a language to speed up text creation upon decisional tree structure( (with conditional branches, choices,...) ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Simone Murdock  
View profile
 More options Sep 7 2007, 1:52 am
Newsgroups: comp.lang.misc
From: Simone Murdock <FalselinKsimonemurd...@vene.ws>
Date: Fri, 07 Sep 2007 07:52:12 +0200
Local: Fri, Sep 7 2007 1:52 am
Subject: Does exist a language to speed up text creation upon decisional tree structure( (with conditional branches, choices,...) ?
I often need to write relations whose structure is roughly similar.
Now I'm using Auto-Hot key to expand some text abbreviations (I write in
editbox of a Delphi program), but it would be better to have a language
to describe a kind of "decisional tree" (with conditional branches,
choices [radio box, check box, "if" structure,...) to obtain a final
text according user decisions.

e.g. in a medical context (in UPPER CASE the resulting text):

Does shoulder ache ? No, Yes (radio-button)
        [No]  -> NO SYMPTOMS ABOUT SHOULDER
        [Yes] -> Can rise arm against resistance ? (radio button)
                [No]  ->  STRONG SHOULDER PAIN WITH LOSS OF FUNCTIONALITY.
                [Yes] ->  SHOULDER PAIN, BUT ABLE TO RISE OBJECTS.

This is only a small example: I'd like to create more complex decisional
tree (e.g. about different body parts)
....

Does already exist a similar descriptive language text-oriented or have
I to create it ?
(I know Delphi and I could learn Python, but I have no much time).

Thanks for any advice!

Simon
_______________________________________________________

Sperm: To be fastest doesn't imply that you are smartest.
                   ( by Enrique Herranz )


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco van de Voort  
View profile
 More options Sep 7 2007, 9:16 am
Newsgroups: comp.lang.misc
From: Marco van de Voort <mar...@stack.nl>
Date: Fri, 7 Sep 2007 13:16:57 +0000 (UTC)
Local: Fri, Sep 7 2007 9:16 am
Subject: Re: Does exist a language to speed up text creation upon decisional tree structure( (with conditional branches, choices,...) ?
On 2007-09-07, Simone Murdock <FalselinKsimonemurd...@vene.ws> wrote:

> I often need to write relations whose structure is roughly similar.
> Now I'm using Auto-Hot key to expand some text abbreviations (I write in
> editbox of a Delphi program), but it would be better to have a language
> to describe a kind of "decisional tree" (with conditional branches,
> choices [radio box, check box, "if" structure,...) to obtain a final
> text according user decisions.

> e.g. in a medical context (in UPPER CASE the resulting text):

> Does shoulder ache ? No, Yes (radio-button)
>    [No]  -> NO SYMPTOMS ABOUT SHOULDER
>    [Yes] -> Can rise arm against resistance ? (radio button)
>            [No]  ->  STRONG SHOULDER PAIN WITH LOSS OF FUNCTIONALITY.
>            [Yes] ->  SHOULDER PAIN, BUT ABLE TO RISE OBJECTS.

Easier to do it like this:

1: Does shoulder ache ?
       [No]  -> NO SYMPTOMS ABOUT SHOULDER
       [Yes] -> [2]

2: Can rise arm against resistance ?
               [No]  ->  STRONG SHOULDER PAIN WITH LOSS OF FUNCTIONALITY.
               [Yes] ->  SHOULDER PAIN, BUT ABLE TO RISE OBJECTS.

In other words, the number is a label, you start with label 1, and if you
have to go to another label you simply add the

- Put this in a textfile, and have a delphi app read it line for line.
        - if the line starts with a label, read two extra lines (yes and
          no), store them in an object and put them in a tstringlist with the label
          as string (iow strl.addobject(labelname,myobject); )
        - skip empty lines.

The GUI will like this: Have a combo box, or a few buttons. As said we
assume label 1 is the start, do a ind:=strl.indexof('1') and get the
corresponding object (myobj:=TMyObjecType(strl.objects[ind]); ).

Now update the gui with the data in the classe. When a user selects something with an end
choice, simply show the text, otherwise determine the number of the next
label, and do the next iteration.

Should be doable in an hour or so.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simone Murdock  
View profile
 More options Sep 7 2007, 4:26 pm
Newsgroups: comp.lang.misc
From: Simone Murdock <FalselinKsimonemurd...@vene.ws>
Date: Fri, 07 Sep 2007 22:26:49 +0200
Local: Fri, Sep 7 2007 4:26 pm
Subject: Re: Does exist a language to speed up text creation upon decisional tree structure( (with conditional branches, choices,...) ?
On Fri, 7 Sep 2007 13:16:57 +0000 (UTC), Marco van de Voort

<mar...@stack.nl> wrote:
>Easier to do it like this:

What a elegant method (and seems born to be done also in Python)!

Well, I had to read it 4-5 times to understand it fully.... :-)
(I couldn't do it this way by myself, thanks!)

Simon
_______________________________________________________

Sperm: To be fastest doesn't imply that you are smartest.
                   ( by Enrique Herranz )


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco van de Voort  
View profile
 More options Sep 8 2007, 4:08 am
Newsgroups: comp.lang.misc
From: Marco van de Voort <mar...@stack.nl>
Date: Sat, 8 Sep 2007 08:08:44 +0000 (UTC)
Local: Sat, Sep 8 2007 4:08 am
Subject: Re: Does exist a language to speed up text creation upon decisional tree structure( (with conditional branches, choices,...) ?
On 2007-09-07, Simone Murdock <FalselinKsimonemurd...@vene.ws> wrote:

> On Fri, 7 Sep 2007 13:16:57 +0000 (UTC), Marco van de Voort
><mar...@stack.nl> wrote:

>>Easier to do it like this:

> What a elegant method (and seems born to be done also in Python)!

No elegant method deserves the humiliation to be done in Python :_)

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google