* [kbd] U+f000 and above
@ 2008-11-09 12:42 Michael Schutte
2008-11-10 14:54 ` Alexey Gladkov
0 siblings, 1 reply; 8+ messages in thread
From: Michael Schutte @ 2008-11-09 12:42 UTC (permalink / raw)
To: kbd
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
Alexey,
Do you agree with me that it would make sense to make loadkeys fail (or
at least warn the user) on U+xxxx keysym specifications >= 0xf000?
Currently, these will simply be seen by the kernel as non-Unicode syms,
which is confusing at best.
As far as I can tell, there are no widespread keymap files which use
this feature.
Cheers,
--
Michael Schutte <michi@uiae.at>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [kbd] U+f000 and above
2008-11-09 12:42 [kbd] U+f000 and above Michael Schutte
@ 2008-11-10 14:54 ` Alexey Gladkov
2008-11-12 16:04 ` Michael Schutte
0 siblings, 1 reply; 8+ messages in thread
From: Alexey Gladkov @ 2008-11-10 14:54 UTC (permalink / raw)
To: kbd
Michael Schutte wrote:
> Alexey,
>
> Do you agree with me that it would make sense to make loadkeys fail (or
> at least warn the user) on U+xxxx keysym specifications >= 0xf000?
I agree. This is a good idea.
--
Rgrds, legion
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [kbd] U+f000 and above
2008-11-10 14:54 ` Alexey Gladkov
@ 2008-11-12 16:04 ` Michael Schutte
2008-11-18 14:55 ` Alexey Gladkov
0 siblings, 1 reply; 8+ messages in thread
From: Michael Schutte @ 2008-11-12 16:04 UTC (permalink / raw)
To: Linux console tools development discussion
[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]
On Mon, Nov 10, 2008 at 05:54:52PM +0300, Alexey Gladkov wrote:
>> Do you agree with me that it would make sense to make loadkeys fail (or
>> at least warn the user) on U+xxxx keysym specifications >= 0xf000?
>
> I agree. This is a good idea.
Okay then, this does the trick:
diff --git a/src/analyze.l b/src/analyze.l
index f55c676..392c9aa 100644
--- a/src/analyze.l
+++ b/src/analyze.l
@@ -90,7 +90,7 @@ To to|To|TO
\- {return(DASH);}
\, {return(COMMA);}
\+ {return(PLUS);}
-{Unicode} {yylval=strtol(yytext+1,NULL,16);return(UNUMBER);}
+{Unicode} {yylval=strtol(yytext+1,NULL,16);if(yylval>=0xf000)lkfatal1("unicode keysym out of range: %s",yytext);return(UNUMBER);}
{Decimal}|{Octal}|{Hex} {yylval=strtol(yytext,NULL,0);return(NUMBER);}
<RVALUE>{Literal} {return((yylval=ksymtocode(yytext))==-1?ERROR:LITERAL);}
Sorry for the ugliness, I just sticked to the prevailing coding style in
analyze.l. Re-format as you wish :-)
--
Michael Schutte <michi@uiae.at>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [kbd] U+f000 and above
2008-11-12 16:04 ` Michael Schutte
@ 2008-11-18 14:55 ` Alexey Gladkov
0 siblings, 0 replies; 8+ messages in thread
From: Alexey Gladkov @ 2008-11-18 14:55 UTC (permalink / raw)
To: Linux console tools development discussion
Michael Schutte wrote:
> Sorry for the ugliness, I just sticked to the prevailing coding style in
> analyze.l. Re-format as you wish :-)
Applied, thanks!
--
Rgrds, legion
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [kbd] U+f000 and above
[not found] <CACnij5edOguVuJiYFvvFhfot1SCOAkegxg3gK+kfi7fW4ZDKHA@mail.gmail.com>
@ 2021-03-20 9:28 ` Alexey Gladkov
2021-03-20 13:31 ` Random832
[not found] ` <CACnij5cRGP51cXjMCs8TgnVhFg7TObUquH2q7XnDA0HjY2pknQ@mail.gmail.com>
0 siblings, 2 replies; 8+ messages in thread
From: Alexey Gladkov @ 2021-03-20 9:28 UTC (permalink / raw)
To: Pooya Taherkhani; +Cc: Linux console tools development discussion
On Fri, Mar 19, 2021 at 06:54:12PM -0500, Pooya Taherkhani wrote:
> Hi there,
>
> I cannot load Farsi keymap because a decision was made here:
>
> https://lists.altlinux.org/mailman/listinfo/kbd
>
> to prevent it from loading. Interestingly, a secondary reason cited by
> Michael Schutte to prevent the Farsi keyboard from loading is (from link
> above):
>
> As far as I can tell, there are no widespread keymap files which use
> this feature.
>
>
> I'd greatly appreciate it if anybody could direct me to some instructions
> on how to load Farsi keyboard.
>
> Here is the command that I enter and the error I get:
>
> [pooya@thinkpad ~] sudo loadkeys fa
> [sudo] password for pooya:
> unicode keysym out of range: U+FDFC
> syntax error, unexpected ERROR, expecting NUMBER or LITERAL or PLUS or
> UNUMBER
The keymap you are trying to load is not valid. The linux kernel cannot
handle keysym greater than 0xf000. You need to fix this and then the
keymap will load.
--
Rgrds, legion
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [kbd] U+f000 and above
2021-03-20 9:28 ` Alexey Gladkov
@ 2021-03-20 13:31 ` Random832
2021-03-20 15:58 ` Alexey Gladkov
[not found] ` <CACnij5cRGP51cXjMCs8TgnVhFg7TObUquH2q7XnDA0HjY2pknQ@mail.gmail.com>
1 sibling, 1 reply; 8+ messages in thread
From: Random832 @ 2021-03-20 13:31 UTC (permalink / raw)
To: kbd
On Sat, Mar 20, 2021, at 05:28, Alexey Gladkov wrote:
> The keymap you are trying to load is not valid. The linux kernel cannot
> handle keysym greater than 0xf000. You need to fix this and then the
> keymap will load.
What exactly is the correct way to define a keyboard that uses characters in the valid Unicode range above U+F900?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [kbd] U+f000 and above
2021-03-20 13:31 ` Random832
@ 2021-03-20 15:58 ` Alexey Gladkov
0 siblings, 0 replies; 8+ messages in thread
From: Alexey Gladkov @ 2021-03-20 15:58 UTC (permalink / raw)
To: Linux console tools development discussion
On Sat, Mar 20, 2021 at 09:31:41AM -0400, Random832 wrote:
> On Sat, Mar 20, 2021, at 05:28, Alexey Gladkov wrote:
> > The keymap you are trying to load is not valid. The linux kernel cannot
> > handle keysym greater than 0xf000. You need to fix this and then the
> > keymap will load.
>
> What exactly is the correct way to define a keyboard that uses
> characters in the valid Unicode range above U+F900?
Where is no way to use keysym above U+F000.
--
Rgrds, legion
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [kbd] U+f000 and above
[not found] ` <CACnij5cRGP51cXjMCs8TgnVhFg7TObUquH2q7XnDA0HjY2pknQ@mail.gmail.com>
@ 2021-03-22 9:54 ` Alexey Gladkov
0 siblings, 0 replies; 8+ messages in thread
From: Alexey Gladkov @ 2021-03-22 9:54 UTC (permalink / raw)
To: Pooya Taherkhani; +Cc: Linux console tools development discussion
On Sat, Mar 20, 2021 at 05:30:49PM -0500, Pooya Taherkhani wrote:
> Alexay,
>
> Thanks for your response. I used to have Farsi keyboard on Linux Ubuntu,
> but now I am not sure if there is any Frasi keyboard other than the "fa"
> keymap that works on Arch Linux.
>
> Could you point me to where to start if I want to fix the "fa" keymap?
You just need to find all unicode symbols greater than 0xf000 in the "fa"
keymap and replace them with something below that limit.
>
> On Saturday, March 20, 2021, Alexey Gladkov <gladkov.alexey@gmail.com>
> wrote:
>
> > On Fri, Mar 19, 2021 at 06:54:12PM -0500, Pooya Taherkhani wrote:
> > > Hi there,
> > >
> > > I cannot load Farsi keymap because a decision was made here:
> > >
> > > https://lists.altlinux.org/mailman/listinfo/kbd
> > >
> > > to prevent it from loading. Interestingly, a secondary reason cited by
> > > Michael Schutte to prevent the Farsi keyboard from loading is (from link
> > > above):
> > >
> > > As far as I can tell, there are no widespread keymap files which use
> > > this feature.
> > >
> > >
> > > I'd greatly appreciate it if anybody could direct me to some instructions
> > > on how to load Farsi keyboard.
> > >
> > > Here is the command that I enter and the error I get:
> > >
> > > [pooya@thinkpad ~] sudo loadkeys fa
> > > [sudo] password for pooya:
> > > unicode keysym out of range: U+FDFC
> > > syntax error, unexpected ERROR, expecting NUMBER or LITERAL or PLUS or
> > > UNUMBER
> >
> > The keymap you are trying to load is not valid. The linux kernel cannot
> > handle keysym greater than 0xf000. You need to fix this and then the
> > keymap will load.
> >
> > --
> > Rgrds, legion
> >
> >
--
Rgrds, legion
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-03-22 9:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-09 12:42 [kbd] U+f000 and above Michael Schutte
2008-11-10 14:54 ` Alexey Gladkov
2008-11-12 16:04 ` Michael Schutte
2008-11-18 14:55 ` Alexey Gladkov
[not found] <CACnij5edOguVuJiYFvvFhfot1SCOAkegxg3gK+kfi7fW4ZDKHA@mail.gmail.com>
2021-03-20 9:28 ` Alexey Gladkov
2021-03-20 13:31 ` Random832
2021-03-20 15:58 ` Alexey Gladkov
[not found] ` <CACnij5cRGP51cXjMCs8TgnVhFg7TObUquH2q7XnDA0HjY2pknQ@mail.gmail.com>
2021-03-22 9:54 ` Alexey Gladkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox