Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Dutch (Belgium) keyboard - how to create chars with umlauts (Read 4597 times)
Bryan Maule
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Apr 11th, 2018
Dutch (Belgium) keyboard - how to create chars with umlauts
Apr 11th, 2018 at 6:42pm
Print Post  
I installed the Dutch (Belgium) keyboard and ran the MindFusion Virtual Keyboard Creator and selected Keyboard Language as Dutch (Belgium).  The resulting keyboard has only a small subset of these Dutch characters:
á é í ó ú à è ë ï ö ü
Á É Í Ó Ú À È Ë Ï Ö Ü

How would I add something that isn't already on the list, for example ü ?  If I try to just paste that character into a regular key it doesn't work.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Dutch (Belgium) keyboard - how to create chars with umlauts
Reply #1 - Apr 11th, 2018 at 7:40pm
Print Post  
I think the creator's Character textbox tries to detect the code of actual typed key, so pasting with Ctrl+V might not give you expected result but only V's keycode. If you have an actual Dutch keyboard, try typing into that field with it to get the code. Otherwise edit the layout xml file and specify the code inside <VirtualKey> element of the new key.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Bryan Maule
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Apr 11th, 2018
Re: Dutch (Belgium) keyboard - how to create chars with umlauts
Reply #2 - Apr 12th, 2018 at 11:54am
Print Post  
The "alt-code" (for a u with an umlaut on top) in decimal is alt-0252. So, I typed that into the XML and got this:

<Key xsi:type="RegularKey">
<Left>55</Left>
<Top>70</Top>
<Width>40</Width>
<Height>40</Height>
<VirtualKey>ü</VirtualKey>
<Repeat>1</Repeat>
</Key>

But when I try to load that with Virtual Keyboard Creator, it says there is an error on this line:
<VirtualKey>ü</VirtualKey>

... and then it crashes.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Dutch (Belgium) keyboard - how to create chars with umlauts
Reply #3 - Apr 12th, 2018 at 12:13pm
Print Post  
That should be an integer number corresponding the Windows virtual key code for the key. The control will translate it automatically to a ü label depending on current keyboard language and state of shift / caps keys.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Bryan Maule
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Apr 11th, 2018
Re: Dutch (Belgium) keyboard - how to create chars with umlauts
Reply #4 - Apr 12th, 2018 at 12:33pm
Print Post  
I just printed out every single virtual key code with Dutch (Belgium) as the selected keyboard and there is no u with umlaut.

Is there a way to just use the alt-code?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Dutch (Belgium) keyboard - how to create chars with umlauts
Reply #5 - Apr 12th, 2018 at 1:28pm
Print Post  
Right, it seems there's no single virtual key for that character from what I can see on the Windows on-screen keyboard, but it's entered as a combination of Shift + umlaut key + U. We'll investigate if we can reproduce that with ours.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Dutch (Belgium) keyboard - how to create chars with umlauts
Reply #6 - Apr 13th, 2018 at 12:14pm
Print Post  
You cannot create the three-key combination umlauted characters with Mindfusion's keyboard because it immediately releases the umlaut modifier when you click it, sending both down and up key events, unlike the shift key which sends only down. If that's what you are after we'll send you a new build that keeps the umlaut modifier down until next char is pressed. If you need to send umlauted character with a single key that does not have its own virtual keycode, we'll have to create a new type of key class that sends the whole sequence of events:  shift + umlaut + character.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Dutch (Belgium) keyboard - how to create chars with umlauts
Reply #7 - Apr 23rd, 2018 at 5:57am
Print Post  
We have added a UnicodeKey class, please check if it helps for your scenario -
https://mindfusion.eu/_beta/vkwpf443.zip

UnicodeKey can send arbitrary Unicode symbols as input, even ones that do not have a direct corresponding virtual key code as the umlauted U.

We haven't updated the keyboard creator tool yet to let you add UnicodeKey instances, at this time you can only add it from .NET code or as XML inside layout files -

Code
Select All
<Key xsi:type="UnicodeKey">
  <Image />
  <Left>40</Left>
  <Top>0</Top>
  <Width>40</Width>
  <Height>40</Height>
  <Character>26152</Character>
  <Repeat>1</Repeat>
</Key>
<Key xsi:type="UnicodeKey">
  <Image />
  <Left>80</Left>
  <Top>0</Top>
  <Width>40</Width>
  <Height>40</Height>
  <Character>25101</Character>
  <Repeat>1</Repeat>
</Key>
<Key xsi:type="UnicodeKey">
  <Image />
  <Left>120</Left>
  <Top>0</Top>
  <Width>40</Width>
  <Height>40</Height>
  <Character>252</Character>
  <Repeat>1</Repeat>
</Key>
 





Regards,
Slavcho
« Last Edit: Apr 23rd, 2018 at 9:36am by Slavcho »  
Back to top
 
IP Logged
 
Bryan Maule
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Apr 11th, 2018
Re: Dutch (Belgium) keyboard - how to create chars with umlauts
Reply #8 - Apr 25th, 2018 at 5:41pm
Print Post  
Thanks, this will be helpful. 

I haven't had a chance to try it yet as I need to migrate to the newest "MindFusion" version.  Purchasing a license and working on that today.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint