Character Color Plugin - Page 2 - Forum

Forum Navigation
You need to log in to create posts and topics.

Character Color Plugin

PreviousPage 2 of 2

@rrey

How can I pay you?

No charge ... I help out in order to make these products as useful as possible.

It could be a very interesting pluguin

If there is wide interest, it can be made into a plugin ... but a one-command-plugin might not be appropriate ... perhaps it could be amalgamated into some general utility plugin ... @luishp would be best placed to advise where this command can be added into an existing plugin.

If this is to made into a plugin ...

  • an additional custom option that might be considered would be the ? character (when user String2 is shorter than String1)  ... others might want to use something different
  • also, the css (for good and bad compares) could be specified via a command ... so the style classes do not conflict with same names used else where

@gaev

Well, thank you very much again.

What you have created will help me a lot.

Please @gaev and @rrey remind me about this in a few days. Would like to add it into an exiting plugin. A bit exhausted now :)

rrey has reacted to this post.
rrey

@luishp

remind me about this in a few days. Would like to add it into an exiting plugin.

OK ... in the mean time, I will make improvements noted earlier ... so it is even more versatile.

@luishp

Te recuerdo lo que comentabas sobre hacer un complemento del esta función de color de caracteres.

 

Roger

@rrey
@luishp

I have given some more thoughts on how to offer additional features for this plugin ... allow developers to ...

1) specify options via a separate command ... something like ...

neoCompareTextSetup "[Setup ID]" "[style for match]" "[style for no match]" "[text when missing character]" "[text when extra character]"

... for example ...

neoCompareTextSetup "Setup1" "class='abcd'" "color='red'" "?" "#"

2) invoke the compare with ...

neoCompare "[TextString1]" "[TextString2]" "[Setup ID to be used]" "[Resulting HTML]"

I am also thinking of another command that would be invoked after each character was typed/entered ... users might deploy it to give the impression that the TextInput Box (hidden from user, but retaining Focus) was being echoed with (rich) text.

All other ideas welcome.

@luishp

Pues esto es excelente. Es una de las funciones que siempre he querido tener.

Pero si quieres más caña propongo uno nuevo. Este seguro que es complicado de programar.  Te explico

Se trataría de hacer lo mismo pero con frases. Esto quiere decir que se corrige palabra por palabra.

Ejemplo:

Respuesta correcta:            La casa de mi madre.

Repuesta de usuario:         L  casita de mi madrasta.

Corrección  del programa:  L? casita de  mi madrasta

Si te fijas esta función identifica primero las palabras y las corrige separadamente.  Tiene una ventaja

sobre la otra función, y es que esta es capaz de corregir frases enteras al aislar la corrección en cada palabra.

No sé si me he explicado bien.

@rrey, fíjate que me nombras a mi pero es @gaev quien está haciendo el trabajo.
@gaev I think it will be an excelent plugin. Please let me know if you need anything from me.

@rrey
@luishp

If you look at this function, first identify the words and correct them separately. Has an advantage on the other function, and that is that it is able to correct whole sentences by isolating the correction in each word.

The functionality you requested is not difficult to implement; just have to parse the sentence into words (separated by one/more spaces), and then apply the original logic to each word.

I will make an attempt to include it in the plugin.

@gaevues e

Pues me parece excelente. A nivel educativo tiene muchas posibilidades.

hi,

I made the 2-string comparison plugin and put it here to test.

Regards

 

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim

@farhad2008

 

Funciona bien con una palabra pero no con varias palabras.  En la nueva propuesta

que hice para una nueva versión del programa el objetivo es corregir cada palabra por separado.

Ejemplo:

Respuesta correcta:            La casa de mi madre.

Repuesta de usuario:          La casita de mi madrasta.

Corrección  del programa:  L?  casita de mi madrasta.

 

Te  adjunto captura del resultado de tu programa.

 

 

Uploaded files:
  • You need to login to have access to uploads.

captura.jpg

@rrey

Apparently you need word-by-word comparison? it's true?

Regards

@farhad2008

 

Yes

PreviousPage 2 of 2