Jump to content

lihang1031

Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Milwaukee, WI

LabVIEW Information

  • Version
    LabVIEW 2016
  • Since
    2010

lihang1031's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Guys I recently fixing a vi that can translate all the English to Spanish, and Spanish back to English. Here is how this vi works: there is a dictionary table there, header will be English, Chinese, French, Spanish, etc All the words will be ordered by the length of the English words, so that it can only start searching from the longest words to the shortest one And inside the for loop, it will use export all the english word out one by one and use the search and replace function to check the "Input Text", if found it, then it will replace it and go to shift register and ready for next translation. The reason allow it to translate couple times is because some string maybe a combination of few strings, for example " The remaining time is 5 Seconds" the number 5 will be keep changing, counting down or up, so this word need be translated twice complete with the first translation " The remaining time is" and the second one "Seconds" and make it as a complete translation. There is a bug in this translation vi is that it will also translate part of my word and mass up the whole sentence: for example, English word both "Automatic" and "Auto" will match with Spanish word "Modo Autom¨¢tico", so if I have the word "Automatic" for translation, it will first translate to "Modo Autom¨¢tico", and because there is an "Auto" inside that Spanish word, it will translate it again, it becomes " "Modo Modo Autom¨¢ticom¨¢tico", and mass it up. I think I need check if the word I need translate is a complete word or sentence, than I will do the translation not just translate a part of a word. Because the word "Automatic" can exist in any sentence. But I have no idea how to determine if the word is a complete word or sentence, by check if there is a space or nothing before or after the translated word? if that, how to achieve that? By the way, the "english" directory can not be changed, so I can not add something special between each word Best Hang
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.