Morse Code to Text translation

Ok, here's my latest problem. I need to write a program that translates from one text file into another, the first being english and the second being in morse code., with a command something like:
$ java TranslatorProgram TEXTfile MORSEfileFirst things first, I have no idea how to read out of an existing text file, nor how to write into a new one. A little push in the right direction?
As for the rest of it I imagine an Iterator and a Text to Morse Map will be something I'll have to tinker with...

You might want to use a map with all the letters and punctuation with their corresponding code. Use this map for your encoding part of your program. Then use a TreeNode for your decoding segment. For the tree, place the letters in it by following the dots and dashes of each letter's code. For example, 'A' would be put in the tree by looking at each character in the code, so you would put it in by going left on the tree because of the '.' then right because of the'-'. Get my point yet? Though StringTokenizer is helpful, I wouldn't recomend you using it.

Similar Messages

  • Messy code problem while translating XString to String in OfficeControl

    Hi Expert,
        I have messy code problem while translating XString to String in XML-Format Word Doc in OfficeControl.
    I upload an XML-Format template Word Doc to server as a MIME Object.
    When OfficeControl is started in Web Dynpro, OfficeControl automatically open the XML-Format template.
    For the first time, I get the XString-type Context attribute bind to the content of the Word Doc,
    then translate it to string, I got the XML-format content, it's great!
    However, after the first time, when I input any new contents in MS Word in Web Dynpro,
    no matter I execute "Ctrl + S" or click the "savedocument" button,
    when I translate the XString Context attribute to String, I got messy code. (but the first time, it is good plain text)
    I use the function module: ECATT_CONV_XSTRING_TO_STRING (good for first time, dump after first time),
    SCMS_XSTRING_TO_BINARY, SCMS_BINARY_TO_STRING (good for first time, messy code after first time).
    My Demo source code is in: (system) SMV --> (local object) zhaode --> (Dynpro Component) ztest_office_control
    core source code is as:
    clear itab.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    BUFFER = lv_datas
    IMPORTING
    OUTPUT_LENGTH = lv_length
    TABLES
    binary_tab = itab.
    CALL FUNCTION 'SCMS_BINARY_TO_STRING'
    EXPORTING
    input_length = lv_length
    mimetype = 'text/plain; charset=utf-8'
    IMPORTING
    text_buffer = lv_datas_string
    output_length = lv_data_len
    TABLES
    binary_tab = itab.
    Can you give me some advice?
    Many thanks in advance.
    Best Regards,

    You have already posted this same question several times (and some very similiar questions) within the forum.  Please do NOT multiple post your questions. This is against the forum rules of engagement. SAP employee or not, you will find yourself banned from the forums if you don't follow the rules.

  • Problem in code with Google Translate

    hi
    i have Problem in code with Google Translate
    Imports Google.API.Translate.Language
    Imports Google.API.Translate
    Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim text As String = "hello"
    Dim tr As New TranslateClient("https://translate.google.com")
    Dim xx As String = tr.Translate(text, Language.English, Language.French, Google.API.Translate.TranslateFormat.Text)
    MsgBox(xx)
    End Sub
    End Class
    All things good but it shows an error in the second line

    For assistance with Google API's contact Google.
    La vida loca

  • Creating Morse Code Ring Tone for iPhone

    I have been an amateur radio operator for over 35 years. But I am new to garage band.  Could someone tell me how to create a morse code sounding ringtone at a speed of 13 words per minute for my amateur radio call sign in garage band that I can then transfer to my iPhone 4s?

    I entered the text, then clicked to create the mp3 file, then a new page appeared that said click here for the mp3 file which produced yet another page in safari where I could play the 16 seconds of sound perfectly.
    And then go and make yourself a cup of coffee, take the time to drink it, and after waiting a few minutes click "save as".
    Then you should be able to download the full file. What you are hearing before is the audio stream - the page did not yet load fully.

  • Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests. The http status code and text is 400, Bad Request.

    Hi All,
    I am seeing the following error for SMS_AWEBSVC_CONTROL_MANAGER component with Message ID: 8100
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    awebsctl.log file has below errors:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Management point and Application Catalog Website Point are installed on the same Server where I am seeing the error for Application Catalog Web Service Point role. Management Point and Application Catalog Website Point are functioning properly. Application
    Catalog Website is working.
    Thanks & Regards, Kedar

    Hi Jason,
    Application Catalog Web Service Point and Application Catalog Website Point; both are installed as per below configuration on same Server:
    IIS Website: Default Web Site
    Port Number: 80
    with default value for Web Application Name configured.
    For SMS_AWEBSVC_CONTROL_MANAGER component, I am getting below error in Component Status:
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    Possible cause: Internet Information Services (IIS) isn't configured to listen on the ports over which AWEBSVC is configured to communicate. 
    Solution: Verify that the designated Web Site is configured to use the same ports which AWEBSVC is configured to use.
    Possible cause: The designated Web Site is disabled in IIS. 
    Solution: Verify that the designated Web Site is enabled, and functioning properly.
    For more information, refer to Microsoft Knowledge Base.
    And awebsctl.log has the below error lines:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    STATMSG: ID=8100
    What should I check from IIS side?
    Application Catalog Website is functioning properly.
    Thanks & regards,
    Kedar
    Thanks & Regards, Kedar

  • Why are most websites only displaying code like text?

    Almost all of the web sites that I frequent have began displaying code like text on a blank white background. Some sites still have hyperlinks and images here and there with random text, but others are fully blank with what appears to be the code of the website showing. I wasn't able to access this web site until I tried multiple times and it magically worked, but others are still not working. The only sites that I have tested that have worked from the start are Google related sites (Gmail, Google, Youtube). My yahoo email is inaccessible, which is an important email for me and all other sites that i frequent are inaccessible. One major thing to note is that the sites are also inaccessible on Internet Explorer. This would typically lead you to believe that the problem lies with your connection in some way. I have reset my router/modem and it had no effect. I also have ran CCleaner and have deleted temp files, cookies, and caches. I have tried running Mozilla in safe mode with add-ons disabled as well. My malware protection and antivirus protection find no issues after completing full scans. One last thing to note is that, on both Firefox and IE, certain sites allow to me to access the homepage, such as yahoo, but once I attempt to check my mail the random display of code appears. On IE it simply says that the site cannot be displayed once I click to check my mail. Gmail works perfect on the other hand. The only things that I have done during this time are:
    Setup a LogMeIn account (Hamachi) and connected my PC to their service
    Downloaded and began using Malewarebytes software to remove malware that I had picked up
    Other than those two things it has been the same usual actions on my PC. Could the malware that I had still be effecting me somehow even though it was found/deleted? Is my router to blame even though resetting it does not help? After all the things I have tried, what could it be?

    What is the content type of those pages if you check that via Tools > Page Info > General?
    Is that text/html as it should be or text/plain as your screenshot would suggest?
    You can also check the Net log via the Web Console (Web Developer > Web Console;Ctrl+Shift+K)
    *https://developer.mozilla.org/en/Tools/Web_Console
    *https://developer.mozilla.org/en/Using_the_Web_Console
    This can be a problem with your firewall that modifies the server response headers if the settings in Firefox are correct.
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox
    *https://support.mozilla.org/kb/Basic+Troubleshooting
    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    Try to boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that works.

  • Unable to copy and paste code or text in the post

    hi
     i am unable to copy or paste the code or text from my notepad/word to this editor when i am trying post questions  etc.
    is this feature blocked my MS ?
    If i add a html code windows , i am able to paste the  code and text. can anyone pls confirm why they have removed copy-paste operations from the normal window

    Did you try to paste by right-clicking or by typing Ctrl + V ?
    Sometimes the former doesn't work but the latter works.  -- My own experience.
    Alexis Zhang
    http://mvp.support.microsoft.com/profile/jie
    http://blogs.itecn.net/blogs/alexis
    | i am unable to copy or paste the code or text from my notepad/word to this editor when i am trying post questions etc.

  • Loud beeps, squeals, morse code, hacking?

    In the middle of a conversation - loud beaps and squeals break out and stop the connection. Loud horn honks like a semi truck along with what absolutely sounds like morse code. Prob persisted into the next day. On the other end my GF could only here static. Could not call or receive. . ... As usual for me, I'm seeing nobody else mentioning this experience here. What happened? Did my line get hacked? Had to remove battery to reset phone and that cleared it up.
    These were the kinds of sounds you would hear on a shortwave radio when you tune around.

    I have had my Charge for about 4 days and I had the same noise interrupt a call today.  I tried to call the person back and got the same thing again.  The other person called me back and again all I had was this loud beeping, staticky, morse code like noise.  I had to restart the phone in order to use it.
    I am also having the problem with the phone constantly dropping the network service.  I have to reboot 2-3 times a day to get back on the network.  This is in a 3g coverage area. Today when I had no network service, my wife had 3 bars on her Droid 2.

  • MacBook pro morse code?!

    I am in boot camp Windows 7 Enterprise, so I don't know if this is windows 7, but here's the story
    ==========
    I came in my room, after I turned the display off by turning the brightness off, and the screen was flashing. I didn't think to much of it, until I noticed a pattern that resembled morse code. It would go -• -- •••(no, this isn't exact, I couldn't tell due to the speed) and then stops and does it like ten minutes later. This is why I am posting this on my iPad. What the **** is it?!
    Thanks, Charlie

    Jab
    Here you go.
    Joseph

  • SE63: Smartform Text translations Issue.

    Hi,
    I am working on ECC 5.0 for the first time and having a weird issue with Smartform text translations using SE63. After saving the text translations using SE63, When I change & activate the smartform tranlations are gone.
    Can someone please throw some light on this issue?
    Thanks,
    Rajesh.

    Hi Rajesh,
    Maintain the translations.Then go to smartforms transaction in that particular language's login. Type the name of smartform and from top menu,click
    <b>Smartforms-->Generate</b>. If ur translations are correctly mentained,then it will get generated successfully.Then when u again activate ur smartform u will not lose ur translations.
    But if u change any particular window and activate ur smartform then also u will lose translations for that particular window.In that case u hav to maintain once again,the translations.
    Reward points if this answer is useful.
    Regards
    Rudra

  • Object Code Short Text,Cause Code Short text and Problem Code Short Text..?

    Dear All,
    can any one help me in finding of Object Part Code Short text,Problem Code short text and Cause code short text fields....in which table it will be storing/function module to get this...?
    Thankx in Advance....

    hi,
    you want for which object??
    all the short text stored in the text table like
    T001t ( it starts with T and ends with T )
    cheers,
    sasi

  • ITS Text translation problem

    Hi,
           I am facing problem in ITS text translation in ECC6.0. When i loging in eglish language the text appears in the ITS but it doesnot work for other languages.
           Kindly suggest how do we do the text translation for ITS. GOTO->translation is disabled in my case. how do we enable this option if GOTO->translation is the answer.
    thanks.
    Edited by: neha gupta on Nov 4, 2009 11:09 AM

    Since I don't use Verb-Ace, some other users will have to help you further. Or you can email the developer for help:
    http://www.verbace.com/Contact

  • Full text translation software - wanted!

    hi there,
    i´m looking for a full text translation software (eng, ger, nl) which is compatible with mac. for microsoft office X using and not to high-priced
    thanx

    I use the Translate extension available here (scroll down till you find it):
    http://sidetree.com/extensions.html#Translate
    I don't know is it works with Lion, but probably does!

  • Morse code sound through external speakers

    I'm getting a morse code sound through my external speakers every 1/2 hour or so on my MDD, never bothered me before. But all of a sudden I'm getting the "ring of death" telling me to re-start the computer. Any ideas?

    Hi, have you blown the dust out lately?
    Get Temperature Monitor to see if it's heat related...
    http://www.macupdate.com/info.php/id/12381/temperature-monitor
    And/or iStat Pro...
    http://www.islayer.com/apps/istatpro/
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • Mass OTR texts translation

    Hi all.
    I need to translate a lot of OTR texts. First I uploaded a file with the aliases, original OTR texts and all the translations to internal table. I tried to use batch input for transaction se63 (translations), but it doesn't work. Please suggest any other ways for mass OTR texts translation.
    TIA,
    regards, Nikolai.

    Hi NIk,
    Hi,
    Trasaction for the OTR is SOTR_EDIT .
    following steps:
    1: Go to Transaction SOTR_EDIT
    2: Put the Alias name and display
    3: Go to Change menu (Edit>Context>Change)
    4:Do not choose anything in the popup. Just Hit Enter.
    5: You will be in change mode. Now select the language (e.g. DE)
    6: Blank out the Length field. Enter the text in Text field.
    The length will come automatically. (Or you can also specify the max value here).
    7: Now Press Save button. The text has been saved.
    8: Now select other language from dropdown
    (E.g. EL Greek) and change the Text and blank out the Length field
    (you can also specify Max length here as per your choice)
    And press Save. In similar way,
    you can just create the OTR for Multilanguageu2019s.
    9: At last save and come out. Enter another Alias and repeat the procedure.
    Hope this will Help You
    Thanks
    Kalyan

Maybe you are looking for

  • IronPort C670 AsyncOS Upgrade over http proxy

    Good day. I try to upgrade my IronPort C670 AsyncOS over http proxy. Proxy is working fine when i try to get featured keys for example. But whe when i try to ugprade AsyncOS i get "Error - Error fetching manifest: Failed to connect to manifest server

  • Statistical WBS setting.

    Dear All, We have a WBS which is account assigned and have also some actual postings on It,the project is defined as statistical(tick set at project definition),as we can undo the statistical tick at the WBS level(control tab), the WBS does not have

  • Canopen through visual basic

    Hi i am new i in working with canopen,i am in compulsion to acquire canopen based encoder through visual basic 6 than labview,can anyone suggest the configuration which i need to make in visual basic for the same....     the hardware wich i have to a

  • Airplay only works for Netflix

    I'm using an iPad Air running iso 8.1.2. I can watch Netflix using airplay but can't show anything else. Apple online support indicates I need to turn on mirroring, but I can't find the switch, their example shows mirroring in iso 7 on a phone and do

  • [SOLVED] How to add files to iso file for Live USB ?

    I created a Live USB by dd command of the dual iso. Now I want to write a shell script to collect commands I need during installation process. Since dd command writes from sector to sector on the USB drive, it is not editable. How can I add my shell