One solution, by mixing both of our approaches would be something like:

*Caption_Differs_Command=False*

Default actual situation, same command as cleaned-caption, if no command 
stops the script like it does now.

*Caption_Differs_Command=True*

Caption will be the literal text, command will be the cleaned-text one. If 
the cleaned-text code is empty (no command name possible) still works, no 
problem (Maybe a warning).

*Caption_Differs_Command=Value_Other_than_True_False*

The command name will take the value "*Value_Other_than_True_False*", if 
Leo cant make a valid command out of that text, it will stop the script 
like it does now, since the user wanted to name the command and Leo could 
not assign that name to the command.


Through this solution, the user has all the following options:

- Same as now (caption=command name=cleaned text)
- (Literal caption, low priority on command name)
- (Literal caption, high priority on command name with possibility of 
defining it)

Thanks again Terry.

On Monday, June 24, 2013 3:41:08 PM UTC+2, Fidel Pérez wrote:
>
> Well actually there is one problem I don't see the solution yet:
>
> The main issue Im trying to address is that, if you are to make a button 
> out of some weird text, in my oppinion, Leo should make the button anyway, 
> that was the main purpose of my suggestion. It will also display the 
> literal text into the buton.
>
> So with my fix, if you want leo to just make the button, you set the value 
> to true and you are set. It will both dont care about not making a command, 
> and set the text to what you intend.
>
> Through your fix, we still have the problem of having to check the text, 
> figuring out if its valid for a command or not, then provide valid text for 
> a command given its not valid, then provide the new text we want as name.
> So in case your fix is the final solution, I would like to know if there 
> would be a way to just let Leo forget about the command (or make a random 
> command name) in case the provided text is not valid for a command name, 
> instead of the user having to worry about that.
>
> Im sorry I was not specific enough or able to describe/clearly specify my 
> concern in the previous post, and if there is something I am missing/not 
> understanding I am grateful for your insights.
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to