Giter Club home page Giter Club logo

Comments (9)

mkiol avatar mkiol commented on June 12, 2024

Thanks for reporting.

It should work but you have to have appropriate keyboard layout installed in your system.

It is not documented, but to make "sending text to the active window" functional, your keyboard must be able to generate characters you want to send. For instance to send Greek characters you need to have Greek keyboard layout installed in your system. You can check current layouts with following command:

setxkbmap -query

What language you have set in your system and what language you use for STT?

from dsnote.

rafsj avatar rafsj commented on June 12, 2024

Thank you for your quick response.
I use Portuguese for STT. Here's the output of setxkbmap -query on my system:

rules: evdev
model: pc105
layout: br,us
variant: ,

from dsnote.

mkiol avatar mkiol commented on June 12, 2024

Can confirm. It doesn't work.

This feature ("sending text to the active window") is implemented in such a way that the application imitates pressing a virtual keyboard. This makes it possible to insert any text outside the application. The key problem is finding the right combination of keystrokes to get the character you need. This is trivial for English because English characters map almost 1-1 to real keys on the keyboard. It's more complicated when you want to find a combination of characters that don't exist in English. Typically, you use Left Alt+<something> to create a modified latin letter. For example, to get ó, you type Left Alt + o (PL layout). This mechanism is implemented and works fine, but other combinations are not supported right now.

Using Brazilian keyboard layout, how can I type these characters? I mean what is the right key combination?

  • ã
  • ê
  • á

from dsnote.

rafsj avatar rafsj commented on June 12, 2024

To type the accents you asked about on a Brazilian keyboard:

  • ã: Press ~ then a.
  • ê: Press Shift + ^ then e.
  • á: Press ´ then a.
  • à: Press Shift + ` then a.

The tilde, circumflex, acute and grave accents act as dead keys, waiting for the next character to be pressed.

from dsnote.

mkiol avatar mkiol commented on June 12, 2024

Thanks for the explanation. This is much more complicated than I anticipated!

I did quick research and I think I will be able to fix this :)

from dsnote.

rafsj avatar rafsj commented on June 12, 2024

That’s great! Excited to use this feature in Portuguese. Thanks!

from dsnote.

mkiol avatar mkiol commented on June 12, 2024

Fix: 60f15d6

The fix will be included in the next release.

from dsnote.

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.