Code Monkey home page Code Monkey logo

Comments (7)

Jacajack avatar Jacajack commented on June 3, 2024

Hi, @pavlosts !
I'm really, really glad to see someone contribute finally! 😄

Unfortunately, I can't help you right now, because I'm away from home.

I can suggest changing morse array type from char to wchar_t,
because I think there are no Greek characters in standard ASCII character
set. I can do that when I'm back (today evening).

Also, I'll take a deeper look at your code then.

Cheers
~Jacajack

from cmorse.

Jacajack avatar Jacajack commented on June 3, 2024

@pavlosts - your code probably doesn't work because of this line:

if(strcmp(lang, "en") && (j <= 25 || j > 49) )

It looks like you missed ! beforestrcmp. In this case it should look like this:

if( !strcmp(lang, "en") && (j <= 25 || j > 49) )

I'm going to create branch for developing support for more languages today. I plan to add new parsing arrays for few alphabets (someday in future). Managing multiple arrays should be much easier, than selective reading from one, longer. I'd be really happy if You could help me to implement Greek there. Stay tuned for repo updates, so you don't waste your time, please :)

from cmorse.

pavlosts avatar pavlosts commented on June 3, 2024
  1. Thanks for mentioning the !. I completely forgot it.
  2. I tried changing char with wchar_t and a river of errors flew through my terminal.
  3. My biggest problem so far is the message

cmorse: unknown option: -l

It's my first time working with flags and I don't know how to fix it. Thanks for helping! :)

from cmorse.

Jacajack avatar Jacajack commented on June 3, 2024

@pavlosts, Remember that if you change char to wchar_t, you have to change whole bunch of functions (like strlen) to their wide character alternative. I'm going to do that today for you, also I can implement language flags.

By the way, I can't see any obvious reason why you get the error. Are you sure, than you are working on the same version as your fork?

from cmorse.

pavlosts avatar pavlosts commented on June 3, 2024

I am not home right now, so I can't check but I think so. I'll wait for your changes first and then see what I can do.

from cmorse.

Jacajack avatar Jacajack commented on June 3, 2024

@pavlosts, that's alright. At this moment I almost finished changing everything to wchar_t.
I finished and this is basically how my version of character sets works. I might commit some little changes, but don't worry about that.
I guess everything should be self explanatory.
Though, if you have any questions, we can discuss them on IRC, let's say. (freenode, #cmorse - I guess that room doesn't exist yet, so it should be fine)

from cmorse.

Jacajack avatar Jacajack commented on June 3, 2024

@pavlosts, I can see we missed each other on IRC. Sorry, I didn't notice anything.
Maybe, when you are online again, write something here, so I get an email, and know to join you. 😝

from cmorse.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.