GithubHelp home page GithubHelp logo

unicode about qmk_firmware HOT 10 CLOSED

qmk avatar qmk commented on May 22, 2024
unicode

from qmk_firmware.

Comments (10)

jackhumbert avatar jackhumbert commented on May 22, 2024

This is still a largely untested feature, but what OS are you trying it on? You'll need to modify keymap_unicode.c to get it to output what your OS needs to unicode character input.

from qmk_firmware.

20lives avatar 20lives commented on May 22, 2024

tryied on osx and windows.
what do i need to modify in the file to make it work on windows?

from qmk_firmware.

coderkun avatar coderkun commented on May 22, 2024

I would also like to know what changes need to be done in order to get it to work with gtk3 under Linux.

from qmk_firmware.

jackhumbert avatar jackhumbert commented on May 22, 2024

Check this out!

from qmk_firmware.

20lives avatar 20lives commented on May 22, 2024

so this method is only a alt+(unicode number) macro shortcut?

from qmk_firmware.

jackhumbert avatar jackhumbert commented on May 22, 2024

Yeap! That's the only way I know of to get this sort of input right now.

from qmk_firmware.

coderkun avatar coderkun commented on May 22, 2024

As far as I understand the action_function() method in keymap_unicode.c has to print out CTRL+SHIFT+U, then the Unicode sequence and finally ENTER (for ISO 14755 compatible systems) as shown below?

    register_code(KC_LCTL);
    register_code(KC_LSFT);
    register_code(KC_U);
    unregister_code(KC_LCTL);
    unregister_code(KC_LSFT);
    unregister_code(KC_U);
    […]
    register_code(KC_ENT);
    unregister_code(KC_ENT);

But with this code, nothing happens.

from qmk_firmware.

20lives avatar 20lives commented on May 22, 2024

cool.

from qmk_firmware.

jackhumbert avatar jackhumbert commented on May 22, 2024

Yeah, that looks correct - do you have any luck manually entering those keystrokes? I would start there to make sure the OS is ready for the input.

from qmk_firmware.

20lives avatar 20lives commented on May 22, 2024

your function seems to not work or something else but macro i made work great:

const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{
      switch(id) {
        case 0:
        if (record->event.pressed) {
          register_code(KC_RSFT);
        } else {
          unregister_code(KC_RSFT);
        }
        case 128:  
        if (record->event.pressed) {
          return MACRO( I(1), D(LALT),T(P1), T(P2), T(P8), U(LALT), END  );
        }
        case 145:
        if (record->event.pressed) {
          return MACRO( I(1), D(LALT),T(P1), T(P4), T(P5), U(LALT), END  );
        }
        break;
      }
    return MACRO_NONE;
};

from qmk_firmware.

Related Issues (20)

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.