LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2007, 04:46 AM   #1
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Rep: Reputation: 30
ktouch


Hi again, I have been looking at improving my typing skills with ktouch. I have already learned the very basics touch method, but I need to learn more. Ktouch looks really good, but they don't have a Swedish keyboard on the list of available keyboards. I looked briefly at the installation files for ktouch - where they talk about creating your own keyboard file. Well, I found the info a little above me - and could do with a little help. Is there anyone that could help me stage by stage create my Swedish keyboard? I really don't know how to begin.

bookie
 
Old 06-12-2007, 04:23 PM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Hi bookie,

I've not done that myself but looked at the keyboard files out of curiousity. What part is above you? I suggest you open the English keyboard file and for example the German and the Danish, since the first contains the column titles (you see what each column in the sections are for), the second contains ae (ä) and oe (ö) and the latter one has aa (å).

Each small key has a x and y height/width of 10. So a key with (x, y, width, height) = (15, 40, 15, 10) starts at 1,5 times the width of a small key, it is in the fifth row from top (Esc row = 0, each additional downward counts for 10), it has 1,5 times the width of a small key and is exactly as high as a normal key (10).
You can get Unicode values if you start kcharmap (but you won't need it if you take the values from the German and Danish keyboard files). Keytext is obviously the text ktouch will show as the key name. Fingerkey in some parts of the keyboard file means with which finger should trigger each key. So if in the base line "Unicode 97" hits the "A" you can give that value "97" to tell ktouch that the same finger should hit another key. Modifier is needed to tell the values you get with "Shift" or "AltGr" and they are listed in the second block of the keyboard file (named ControlKey).

I suggest you start with the German or Danish layout and modify them. From what I've seen the German looks more complete with special chars like ";:_" if you want to train them.
 
Old 06-12-2007, 05:09 PM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Please try the following (I hope it gets copied right here) and save it as UTF-8 encoded file se.keyboard. Then move it to /opt/kde/share/apps/ktouch or /usr/share/apps/ktouch or whereever your ktouch folder is. Please test the file, it should be quite complete (actually as complete as I could get the layout of the Swedish keyboard). If it works please give me some kind of answer so I could send it to the ktouch people or make changes.

Cheers

Code:
####################################################
#    KTouch
#    Keybord layout file for swedish keybord layout
#    Encoding: UTF-8 (save as UTF-8 from editor)
#    Edit this file with tabs set to 8 characters.
#
#    Refer to file en.keyboard for details.
####################################################
#
FingerKey 	97		A				13		20
FingerKey  	115		S				23		20
FingerKey  	100		D				33		20
FingerKey  	102		F				43		20
FingerKey  	106		J				73		20
FingerKey  	107		K				83		20
FingerKey  	108		L				93		20
FingerKey  	246		Ö				103		20
#
ControlKey	260		Tab				0	10	15    10
ControlKey	13		Enter				138	10	12    20
ControlKey	258		Shift				123	30	27    10
ControlKey	264		AltGr				120	40	15    10
ControlKey	265		Strg				135	40	15    10
ControlKey	263		Alt				15	40	15    10
ControlKey	262		Strg				0	40	15    10
ControlKey	32		Mellanslag			30	40	90    10
ControlKey	257		Shift				0	30	13    10
ControlKey	259		CapsLock			0	20	13    10
ControlKey	8		Bakslag				130	0	20    10

NormalKey 	167		§				0		0		97
NormalKey 	49		1				10		0		97
NormalKey 	50		2				20		0		97
NormalKey 	51		3				30		0		115
NormalKey 	52		4				40		0		100
NormalKey 	53		5				50		0		102
NormalKey 	54		6				60		0		102
NormalKey 	55		7				70		0		106
NormalKey 	56		8				80		0		106
NormalKey 	57		9				90		0		107
NormalKey 	48		0				100		0		108
NormalKey 	43		+				110		0		246
NormalKey 	180		´				120		0		246
#
NormalKey	113		Q				15		10		97
NormalKey	119		W				25		10		115
NormalKey	101		E				35		10		100
NormalKey	114		R				45		10		102
NormalKey	116		T				55		10		102
NormalKey	121		Y				65		10		106
NormalKey	117		U				75		10		106
NormalKey	105		I				85		10		107
NormalKey	111		O				95		10		108
NormalKey	112		P				105		10		246
NormalKey	91		Å				115		10		246
NormalKey	168		¨				125		10		246
#
NormalKey	103		G				58		20		102
NormalKey	104		H				68		20		106
NormalKey	228		Ä				118		20		246
NormalKey	39		'				128		20		246
#
NormalKey	60		<				13		30		97
NormalKey	122		Z				23		30		97
NormalKey	120		X				33		30		115
NormalKey	99		C				43		30		100
NormalKey	118		V				53		30		102
NormalKey	98		B				63		30		102
NormalKey	110		N				73		30		106
NormalKey	109		M				83		30		106
NormalKey	44		,				93		30		107
NormalKey	46		.				103		30		108
NormalKey	45		-				113		30		246
#
HiddenKey		65			97			97			258 	 	#A
HiddenKey		66			98			102			258 	 	#B
HiddenKey		67			99			100			258 	 	#C
HiddenKey		68			100			100			258 	 	#D
HiddenKey		69			101			100			258 	 	#E
HiddenKey		70			102			102			258 	 	#F
HiddenKey		71			103			102			258 	 	#G
HiddenKey		72			104			106			258 	 	#H
HiddenKey		73			105			107			258 	 	#I
HiddenKey		74			106			106			258 	 	#J
HiddenKey		75			107			107			258 	 	#K
HiddenKey		76			108			108			258 	 	#L
HiddenKey		77			109			106			258 	 	#M
HiddenKey		78			110			106			258 	 	#N
HiddenKey		79			111			108			258 	 	#O
HiddenKey		80			112			246			258 	 	#P
HiddenKey		81			113			97			258 	 	#Q
HiddenKey		82			114			102			258 	 	#R
HiddenKey		83			115			115			258 	 	#S
HiddenKey		84			116			102			258 	 	#T
HiddenKey		85			117			106			258 	 	#U
HiddenKey		86			118			102			258 	 	#V
HiddenKey		87			119			115			258 	 	#W
HiddenKey		88			120			115			258 	 	#X
HiddenKey		89			121			97			258 	 	#Y
HiddenKey		90			122			106			258 	 	#Z
HiddenKey		62			60			97			258 	 	#>
HiddenKey		196			228			246			257 	 	#Ä
HiddenKey		214			246	 		246			257		#Ö
HiddenKey		197			91	 		230			258 	 	#Å
HiddenKey		189			167			97			258		#½
HiddenKey		33			49 			97			258 	 	#!
HiddenKey		34			50 			97			258 	 	#"
Hiddenkey		164			52			100			258		#¤
HiddenKey		37			53 			102			258 	 	#%
HiddenKey		38			54 			102			258 	 	#&
HiddenKey		47			55 			106			257 	 	#/
HiddenKey		40			56 			106			257 	 	#(
HiddenKey		41			57 			107			257 	 	#)
HiddenKey		61			48 			108			257 	 	#=
HiddenKey		63			223			246			257 	 	#?
HiddenKey		96			180			246			257 	 	#`
HiddenKey		59			44 			107			257 	 	#;
HiddenKey		58			46 			108			257 	 	#:
HiddenKey		95			45 			246			257 	 	#_
Hiddenkey		94			168			246			257		#^
Hiddenkey		126			168			246			264		#~
HiddenKey		42			39 			246			257 	 	#*
HiddenKey		92			223			246			264 	 	#\
HiddenKey		124			60 	 	 	97 	 	 	264  	  	#|
HiddenKey		64			50			97 			264 	 	#@
HiddenKey		36			52 			100			264 	 	#$
HiddenKey		181			109			106			264		#µ
 
Old 06-13-2007, 02:46 AM   #4
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Thanks a lot for the help titopoquito. I have been a little busy with other things - but will get back to you if I need any more help and as soon as I have tested your files.

Once again - thanks a lot.

bookie
 
Old 06-13-2007, 03:43 AM   #5
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Hi titopoquito
Well, I had a little time over, so I set about copying and adding your file to ktouch. I tried to copy and save it in a manner of different ways, but every time I opened it it didn't look the same as you had written it. I did give it the name se.keyboard because all the keyboards seemed to be labeled in that way. When I tried to open the keyboard with ktouch there was a problem and the program couldn't read the keyboard. Maybe that has to do with me not being able to save it how you have written it. It also said that the language was Samiska, which isn't entirely the case for most of the population of Sweden.

I had an idea. What about the general keyboard settings that I choose when using my Swedish keyboard? I don't know how those files look like, or where I would find them on the computer? Please don't give up - you are on the right track. It is just a case of probably saving the file in the right way.

bookie
 
Old 06-21-2007, 12:40 PM   #6
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Hi titopoquito, I have just downloaded the se.keyboard that you sent via mail. I am sorry to say I had no luck in choosing the keyboard after installation.

Back to the drawing board.
Please don't give up.

bookie
 
Old 06-21-2007, 01:25 PM   #7
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
There is still a problem here with three chars. I have put them at the end of the file and commented them out.
Please save it as sv.keyboard (sv not se!).

Code:
####################################################
#    KTouch
#    Keybord layout file for swedish keybord layout
#    Encoding: UTF-8 (save as UTF-8 from editor)
#    Edit this file with tabs set to 8 characters.
#
#    Refer to file en.keyboard for details.
####################################################
#
FingerKey 	97		A				18		20
FingerKey  	115		S				28		20
FingerKey  	100		D				38		20
FingerKey  	102		F				48		20
FingerKey  	106		J				78		20
FingerKey  	107		K				88		20
FingerKey  	108		L				98		20
FingerKey  	246		Ö				108		20
#
ControlKey	260		Tab				0	10	15    10
ControlKey	13		Enter				138	10	12    20
ControlKey	258		Shift				123	30	27    10
ControlKey	264		AltGr				120	40	15    10
ControlKey	265		Strg				135	40	15    10
ControlKey	263		Alt				15	40	15    10
ControlKey	262		Strg				0	40	15    10
ControlKey	32		Mellanslag			30	40	90    10
ControlKey	257		Shift				0	30	13    10
ControlKey	259		CapsLock			0	20	18    10
ControlKey	8		Bakslag				130	0	20    10
#
NormalKey 	167		§				0		0		97
NormalKey 	49		1				10		0		97
NormalKey 	50		2				20		0		97
NormalKey 	51		3				30		0		115
NormalKey 	52		4				40		0		100
NormalKey 	53		5				50		0		102
NormalKey 	54		6				60		0		102
NormalKey 	55		7				70		0		106
NormalKey 	56		8				80		0		106
NormalKey 	57		9				90		0		107
NormalKey 	48		0				100		0		108
NormalKey 	43		+				110		0		246
NormalKey 	180		´				120		0		246
#
NormalKey	113		Q				15		10		97
NormalKey	119		W				25		10		115
NormalKey	101		E				35		10		100
NormalKey	114		R				45		10		102
NormalKey	116		T				55		10		102
NormalKey	121		Y				65		10		106
NormalKey	117		U				75		10		106
NormalKey	105		I				85		10		107
NormalKey	111		O				95		10		108
NormalKey	112		P				105		10		246
NormalKey	91		Å				115		10		246
NormalKey	168		"				125		10		246
#
NormalKey	103		G				58		20		102
NormalKey	104		H				68		20		106
NormalKey	228		Ä				118		20		246
NormalKey	39		'				128		20		246
#
NormalKey	60		<				13		30		97
NormalKey	122		Z				23		30		97
NormalKey	120		X				33		30		115
NormalKey	99		C				43		30		100
NormalKey	118		V				53		30		102
NormalKey	98		B				63		30		102
NormalKey	110		N				73		30		106
NormalKey	109		M				83		30		106
NormalKey	44		,				93		30		107
NormalKey	46		.				103		30		108
NormalKey	45		-				113		30		246
#
HiddenKey	65		97		97		258 #A
HiddenKey	66		98		102		258 #B
HiddenKey	67		99		100		258 #C
HiddenKey	68		100		100		258 #D
HiddenKey	69		101		100		258 #E
HiddenKey	70		102		102		258 #F
HiddenKey	71		103		102		258 #G
HiddenKey	72		104		106		258 #H
HiddenKey	73		105		107		258 #I
HiddenKey	74		106		106		258 #J
HiddenKey	75		107		107		258 #K
HiddenKey	76		108		108		258 #L
HiddenKey	77		109		106		258 #M
HiddenKey	78		110		106		258 #N
HiddenKey	79		111		108		258 #O
HiddenKey	80		112		246		258 #P
HiddenKey	81		113		97		258 #Q
HiddenKey	82		114		102		258 #R
HiddenKey	83		115		115		258 #S
HiddenKey	84		116		102		258 #T
HiddenKey	85		117		106		258 #U
HiddenKey	86		118		102		258 #V
HiddenKey	87		119		115		258 #W
HiddenKey	88		120		115		258 #X
HiddenKey	89		121		97		258 #Y
HiddenKey	90		122		106		258 #Z
HiddenKey	62		60		97		258 #>
HiddenKey	196		228		246		257 #Ä
HiddenKey	214		246		246		257 #Ö
HiddenKey	197		91		230		258 #Å
HiddenKey	189		167		97		258 #½
HiddenKey	33		49 		97		258 #!
HiddenKey	34		50 		97		258 #"
HiddenKey	37		53 		102		258 #%
HiddenKey	38		54 		102		258 #&
HiddenKey	47		55 		106		257 #/
HiddenKey	40		56 		106		257 #(
HiddenKey	41		57 		107		257 #)
HiddenKey	61		48 		108		257 #=
HiddenKey	63		223		246		257 #?
HiddenKey	96		180		246		257 #`
HiddenKey	59		44 		107		257 #;
HiddenKey	58		46 		108		257 #:
HiddenKey	95		45 		246		257 #_
HiddenKey	42		39 		246		257 #*
HiddenKey	92		223		246		264 #\
HiddenKey	124		60 		97 		264 #|
HiddenKey	64		50		97 		264 #@
HiddenKey	36		52 		100		264 #$
HiddenKey	181		109		106		264 #µ
# The following three keys don't work for now
#Hiddenkey	94		168		246		257 #^
#Hiddenkey	164		52		100		258 #¤
#Hiddenkey	126		168		246		264 #~
 
Old 06-21-2007, 04:46 PM   #8
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
Hi titopoquito

Well, by George he's got it. Now we are getting some where. Could load the keyboard - seems to be working fine. Keys in the right places.

Thanks a lot. You're a little diamond.

bookie
 
Old 06-21-2007, 05:44 PM   #9
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Du är välkommen - you're welcome
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing ktouch. akihandyman Mandriva 0 12-16-2003 08:19 AM
ktouch installation today53 Linux - Software 0 10-30-2003 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration