Introducing ch+de layout and modified ch.yaml fallback
Autor: Patrick Jörg <patrickjoerg@gmx.ch>
This commit is contained in:
		
				
					committed by
					
						
						Patrick Jörg
					
				
			
			
				
	
			
			
			
						parent
						
							e073434781
						
					
				
				
					commit
					6409ff3748
				
			
							
								
								
									
										73
									
								
								data/keyboards/ch+de.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										73
									
								
								data/keyboards/ch+de.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,73 @@
 | 
				
			|||||||
 | 
					# Maintained by Patrick Jörg <patrickjoerg@gmx.ch>. No Copyright, enjoy!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					outlines:
 | 
				
			||||||
 | 
					    default:   { width: 35.33, height: 52 }
 | 
				
			||||||
 | 
					    altline:   { width: 48,    height: 52 }
 | 
				
			||||||
 | 
					    wide:      { width: 59,    height: 52 }
 | 
				
			||||||
 | 
					    spaceline: { width: 70,    height: 52 }
 | 
				
			||||||
 | 
					    special:   { width: 28,    height: 52 }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					views:
 | 
				
			||||||
 | 
					    base:
 | 
				
			||||||
 | 
					        - "q w e r t z u i o p ü"
 | 
				
			||||||
 | 
					        - "a s d f g h j k l ö ä"
 | 
				
			||||||
 | 
					        - "Shift_L   y x c v b n m  BackSpace"
 | 
				
			||||||
 | 
					        - "show_numbers ? !  preferences    '   space        , . Return"
 | 
				
			||||||
 | 
					    upper:
 | 
				
			||||||
 | 
					        - "Q W E R T Z U I O P Ü"
 | 
				
			||||||
 | 
					        - "A S D F G H J K L Ö Ä"
 | 
				
			||||||
 | 
					        - "Shift_L   Y X C V B N M  BackSpace"
 | 
				
			||||||
 | 
					        - "show_numbers - _  preferences    \"  space        , . Return"
 | 
				
			||||||
 | 
					    numbers:      
 | 
				
			||||||
 | 
					        - "1 2 3 4 5 6 7 8 9 0"
 | 
				
			||||||
 | 
					        - "@ * + - = ( ) ~ < >"
 | 
				
			||||||
 | 
					        - "show_symbols  # & / \\ √ ; : BackSpace"
 | 
				
			||||||
 | 
					        - "show_letters ? !  preferences    _   space        , . Return"
 | 
				
			||||||
 | 
					    symbols:
 | 
				
			||||||
 | 
					        - "€ $ £ ¥ % | § µ [ ]"
 | 
				
			||||||
 | 
					        - "© ® § ` ^ { } · ¡ ¿"
 | 
				
			||||||
 | 
					        - "show_numbers  « » ÷ × “ ” „ BackSpace"
 | 
				
			||||||
 | 
					        - "show_letters  preferences    -   space        , . Return"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					buttons:
 | 
				
			||||||
 | 
					    Shift_L:
 | 
				
			||||||
 | 
					        action:
 | 
				
			||||||
 | 
					            locking:
 | 
				
			||||||
 | 
					                lock_view: "upper"
 | 
				
			||||||
 | 
					                unlock_view: "base"
 | 
				
			||||||
 | 
					        outline: "altline"
 | 
				
			||||||
 | 
					        icon: "key-shift"
 | 
				
			||||||
 | 
					    BackSpace:
 | 
				
			||||||
 | 
					        outline: "altline"
 | 
				
			||||||
 | 
					        icon: "edit-clear-symbolic"
 | 
				
			||||||
 | 
					        action: erase
 | 
				
			||||||
 | 
					    preferences:
 | 
				
			||||||
 | 
					        action: "show_prefs"
 | 
				
			||||||
 | 
					        outline: "special"
 | 
				
			||||||
 | 
					        icon: "keyboard-mode-symbolic"
 | 
				
			||||||
 | 
					    show_numbers:
 | 
				
			||||||
 | 
					        action:
 | 
				
			||||||
 | 
					            set_view: "numbers"
 | 
				
			||||||
 | 
					        outline: "altline"
 | 
				
			||||||
 | 
					        label: "123"
 | 
				
			||||||
 | 
					    show_letters:
 | 
				
			||||||
 | 
					        action:
 | 
				
			||||||
 | 
					            set_view: "base"
 | 
				
			||||||
 | 
					        outline: "altline"
 | 
				
			||||||
 | 
					        label: "abc"
 | 
				
			||||||
 | 
					    show_symbols:
 | 
				
			||||||
 | 
					        action:
 | 
				
			||||||
 | 
					            set_view: "symbols"
 | 
				
			||||||
 | 
					        outline: "altline"
 | 
				
			||||||
 | 
					        label: "*/="
 | 
				
			||||||
 | 
					    space:
 | 
				
			||||||
 | 
					        outline: "spaceline"
 | 
				
			||||||
 | 
					        label: " "
 | 
				
			||||||
 | 
					        text: " "
 | 
				
			||||||
 | 
					    Return:
 | 
				
			||||||
 | 
					        outline: "wide"
 | 
				
			||||||
 | 
					        icon: "key-enter"
 | 
				
			||||||
 | 
					        keysym: "Return"
 | 
				
			||||||
 | 
					    "\"":
 | 
				
			||||||
 | 
					        keysym: "quotedbl"
 | 
				
			||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
# Maintained by: Patrick Jörg <patrickjoerg@gmx.ch>. No Copyright, enjoy!
 | 
					# Maintained by: Jordy Bossy <jordi@bossy.space>
 | 
				
			||||||
# Thankfully copied from: Jordi Bossy <jordi@bossy.space>.
 | 
					# and Patrick Jörg <patrickjoerg@gmx.ch>. No Copyright, enjoy!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
outlines:
 | 
					outlines:
 | 
				
			||||||
@ -22,7 +22,7 @@ views:
 | 
				
			|||||||
        - "show_numbers show_eschars preferences    \"  space        , . Return"
 | 
					        - "show_numbers show_eschars preferences    \"  space        , . Return"
 | 
				
			||||||
    numbers:      
 | 
					    numbers:      
 | 
				
			||||||
        - "1 2 3 4 5 6 7 8 9 0"
 | 
					        - "1 2 3 4 5 6 7 8 9 0"
 | 
				
			||||||
        - "@ * + - = ( ) ~ < >"
 | 
					        - "@ * + - = ( ) ~ < > ? !"
 | 
				
			||||||
        - "show_symbols  # & / \\ √ ; : BackSpace"
 | 
					        - "show_symbols  # & / \\ √ ; : BackSpace"
 | 
				
			||||||
        - "show_letters show_eschars preferences    _   space        , . Return"
 | 
					        - "show_letters show_eschars preferences    _   space        , . Return"
 | 
				
			||||||
    symbols:
 | 
					    symbols:
 | 
				
			||||||
 | 
				
			|||||||
@ -29,6 +29,7 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[
 | 
				
			|||||||
    ("br", include_str!("../data/keyboards/br.yaml")),
 | 
					    ("br", include_str!("../data/keyboards/br.yaml")),
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    ("ch+fr", include_str!("../data/keyboards/ch+fr.yaml")),
 | 
					    ("ch+fr", include_str!("../data/keyboards/ch+fr.yaml")),
 | 
				
			||||||
 | 
					    ("ch+de", include_str!("../data/keyboards/ch+de.yaml")),
 | 
				
			||||||
    ("ch", include_str!("../data/keyboards/ch.yaml")),
 | 
					    ("ch", include_str!("../data/keyboards/ch.yaml")),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ("de", include_str!("../data/keyboards/de.yaml")),
 | 
					    ("de", include_str!("../data/keyboards/de.yaml")),
 | 
				
			||||||
 | 
				
			|||||||
@ -63,6 +63,7 @@ foreach layout : [
 | 
				
			|||||||
    'bg',
 | 
					    'bg',
 | 
				
			||||||
    'br',
 | 
					    'br',
 | 
				
			||||||
    'ch+fr',
 | 
					    'ch+fr',
 | 
				
			||||||
 | 
					    'ch+de',
 | 
				
			||||||
    'ch',
 | 
					    'ch',
 | 
				
			||||||
    'cz', 'cz_wide',
 | 
					    'cz', 'cz_wide',
 | 
				
			||||||
    'cz+qwerty', 'cz+qwerty_wide',
 | 
					    'cz+qwerty', 'cz+qwerty_wide',
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user