An input-device should generally not change shape/functionality during use, unless there is a good reason for that and it is clearly indicated when that happens, as otherwise it will be more complicated and exhausting to use, and learn to use, the input-device. To improve that, this commit will: - Make it so that the space-bar, view-switching buttons, backspace-button, and return-button will not move around when switching views. - Add placeholder-buttons and/or stretch buttons to fill gaps. - Remove buttons that are duplicated in the same view. - Add buttons for entering commas, on the base-views of some layouts. - Make the shape of layouts fit into a rectangular space; usually without empty space. - Align layouts more closely to the expected aspect-ratios, to reduce changes when switching between languages, and use more of the available space. Other changes: - `.`-buttons are generally not highlighted anymore. - On the layouts `gr` and `gr+polytonic`, the highlighting for punctuation has been switched to `subtle-highlight` from `special`, so those can be visually distinguished from buttons with special functionality. - The Spanish characters `ñ` and `Ñ` on the `French (Swiss)`-layout (ch+fr) were making the layout wider than it should be. As there was no other appropriate place for those buttons, and the layout is meant for entering French, not Spanish, those buttons have been removed from the layout. Some layouts have been changed much: - gr+polytonic (which requires more work, but it is much more usable now) - ir Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/646>
		
			
				
	
	
		
			248 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			248 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
# Greek polytonic layout by Antonis Tsolomitis
 | 
						||
# University of the Aegean, Department of Mathematics, atsol@aegean.gr
 | 
						||
# March 2022
 | 
						||
# 
 | 
						||
---
 | 
						||
outlines:
 | 
						||
    default:          { width: 74,    height: 60 }
 | 
						||
    special:          { width: 74,    height: 60 }
 | 
						||
    altline:          { width: 97.44, height: 60 }
 | 
						||
    large:            { width: 97.44, height: 60 }
 | 
						||
    wide:             { width: 114.7, height: 60 }
 | 
						||
    change-view:      { width: 97.44, height: 60 }
 | 
						||
    change-view-2:    { width: 114.7, height: 60 }
 | 
						||
    character-group:  { width: 122.1, height: 60 }
 | 
						||
    spaceline:        { width: 279,   height: 60 }
 | 
						||
    spaceline-2:      { width: 427,   height: 60 }
 | 
						||
    subtle-highlight: { width: 74,    height: 60 }
 | 
						||
    placeholder:      { width: 74,    height: 60 }
 | 
						||
    placeholder-2:    { width: 122.1, height: 60 }
 | 
						||
 | 
						||
views:
 | 
						||
    base:
 | 
						||
        - "; ς ε ρ τ υ θ ι ο π"
 | 
						||
        - "α σ δ φ γ η ξ κ λ show_accents"
 | 
						||
        - "Shift_L ζ χ ψ ω β ν μ BackSpace"
 | 
						||
        - "show_numbers preferences space . ,-subtle-highlight Return"
 | 
						||
    upper:
 | 
						||
        - ": € Ε Ρ Τ Υ Θ Ι Ο Π"
 | 
						||
        - "Α Σ Δ Φ Γ Η Ξ Κ Λ show_accents"
 | 
						||
        - "Shift_L Ζ Χ Ψ Ω Β Ν Μ BackSpace"
 | 
						||
        - "show_numbers preferences space ! ·-subtle-highlight Return"
 | 
						||
    accents:
 | 
						||
        - "show_psiliordasiaandvaria show_psiliordasiaandoxia show_psiliordasia show_bariaorperispomeni show_oxia ᾿"
 | 
						||
        - "show_PsiliOrDasiaAndVaria show_PsiliOrDasiaAndOxia show_PsiliOrDasia show_BariaOrPerispomeni show_Oxia show_base"
 | 
						||
        - "--- show_PsiliOrDasiaAndPerispomeni show_psiliordasiaandperispomeni --- --- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    oxia:
 | 
						||
        - "ά έ ή ί ϊ ΐ ό ύ ϋ ώ"
 | 
						||
        - "show_Oxia -- ᾳ ᾴ ῃ ῄ ῳ ῴ show_base"
 | 
						||
        - "Ϗ ϐ ϑ ϗ ϖ ΰ ϕ – — BackSpace"
 | 
						||
        - "show_numbers preferences space « » Return"
 | 
						||
    Oxia:
 | 
						||
        - "Ά Έ Ή Ί Ϊ Ό Ύ Ϋ Ώ --"
 | 
						||
        - "show_oxia -- -- ᾼ ῌ ῼ -- -- show_base"
 | 
						||
        - "Ϗ ϐ ϑ ϗ ϖ -- ϕ – — BackSpace"
 | 
						||
        - "show_numbers preferences space « » Return"
 | 
						||
    bariaorperispomeni:
 | 
						||
        - "ὰ ὲ ὴ ὶ ῒ ὸ ὺ ὼ ῐ ῑ"
 | 
						||
        - "show_BariaOrPerispomeni ᾳ ᾲ ῃ ῂ ῳ ῲ ῠ show_base"
 | 
						||
        - "ᾶ ᾷ ῆ ῖ ῗ ῦ ῧ ῶ ῡ BackSpace"
 | 
						||
        - "show_numbers preferences space ῇ ῷ Return"
 | 
						||
    BariaOrPerispomeni:
 | 
						||
        - "-- Ὰ Ὲ Ὴ Ὶ Ὸ Ὺ Ὼ -- --"
 | 
						||
        - "show_bariaorperispomeni -- -- ᾼ ῌ ῼ -- -- show_base"
 | 
						||
        - "--- -- -- -- -- -- -- -- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    psiliordasia:
 | 
						||
        - "ἀ ἐ ἠ ἰ ὀ ὐ ὠ ᾀ ᾐ ᾠ"
 | 
						||
        - "show_PsiliOrDasia ἁ ἑ ἡ ἱ ὁ ὑ ὡ show_base"
 | 
						||
        - "--- ᾁ ᾑ ᾡ ῤ ῥ -- -- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    PsiliOrDasia:
 | 
						||
        - "Ἀ Ἐ Ἠ Ἰ Ὀ Ὠ ᾈ ᾘ ᾨ --"
 | 
						||
        - "show_psiliordasia Ἁ Ἑ Ἡ Ἱ Ὁ Ὑ Ὡ show_base"
 | 
						||
        - "--- -- ᾉ ᾙ ᾩ Ῥ -- -- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    psiliordasiaandoxia:
 | 
						||
        - "ἄ ἔ ἤ ἴ ὄ ὔ ὤ ᾄ ᾔ ᾤ"
 | 
						||
        - "show_PsiliOrDasiaAndOxia ἅ ἕ ἥ ἵ ὅ ὕ ὥ show_base"
 | 
						||
        - "--- -- ᾅ ᾕ ᾥ -- -- -- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    PsiliOrDasiaAndOxia:
 | 
						||
        - "Ἄ Ἔ Ἤ Ἴ Ὄ Ὤ ᾌ ᾜ ᾬ --"
 | 
						||
        - "show_psiliordasiaandoxia Ἅ Ἕ Ἥ Ἵ Ὅ Ὕ Ὥ show_base"
 | 
						||
        - "--- -- ᾍ ᾝ ᾭ -- -- -- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    psiliordasiaandvaria:
 | 
						||
        - "ἂ ἒ ἢ ἲ ὂ ὒ ὢ ᾂ ᾒ ᾢ"
 | 
						||
        - "show_PsiliOrDasiaAndVaria ἃ ἓ ἣ ἳ ὃ ὓ ὣ show_base"
 | 
						||
        - "--- -- ᾃ ᾓ ᾣ -- -- -- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    PsiliOrDasiaAndVaria:
 | 
						||
        - "Ἂ Ἒ Ἢ Ἲ Ὂ Ὢ ᾊ ᾚ ᾪ --"
 | 
						||
        - "show_psiliordasiaandvaria Ἃ Ἓ Ἣ Ἳ Ὃ Ὓ Ὣ show_base"
 | 
						||
        - "--- -- ᾋ ᾛ ᾫ -- -- -- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    psiliordasiaandperispomeni:
 | 
						||
        - "-- ἆ ἦ ἶ ὖ ὦ ᾆ ᾖ ᾦ --"
 | 
						||
        - "show_PsiliOrDasiaAndPerispomeni -- ἇ ἧ ἷ ὗ ὧ -- show_base"
 | 
						||
        - "--- -- ᾇ ᾗ ᾧ -- -- -- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    PsiliOrDasiaAndPerispomeni:
 | 
						||
        - "-- Ἆ Ἦ Ἶ Ὦ ᾎ ᾞ ᾮ -- --"
 | 
						||
        - "show_psiliordasiaandperispomeni -- Ἇ Ἧ Ἷ Ὗ Ὧ -- show_base"
 | 
						||
        - "--- -- ᾏ ᾟ ᾯ -- -- -- BackSpace"
 | 
						||
        - "show_numbers preferences space-spaceline-2 Return"
 | 
						||
    numbers:
 | 
						||
        - "1 2 3 4 5 6 7 8 9 0"
 | 
						||
        - "@ # $ % & - _ + ( )"
 | 
						||
        - "show_symbols ,-subtle-highlight \" ' : ; ! ? BackSpace"
 | 
						||
        - "show_letters preferences space . ,-subtle-highlight Return"
 | 
						||
    symbols:
 | 
						||
        - "~ ` | · √ π τ ÷ × ¶"
 | 
						||
        - "© ® £ € ¥ ^ ° * { }"
 | 
						||
        - "show_numbers \\ / < > = [ ]  BackSpace"
 | 
						||
        - "show_letters preferences space . ,-subtle-highlight Return"
 | 
						||
 | 
						||
buttons:
 | 
						||
    Shift_L:
 | 
						||
        action:
 | 
						||
            locking:
 | 
						||
                lock_view: "upper"
 | 
						||
                unlock_view: "base"
 | 
						||
        outline: "change-view-2"
 | 
						||
        icon: "key-shift"
 | 
						||
    BackSpace:
 | 
						||
        outline: "altline"
 | 
						||
        icon: "edit-clear-symbolic"
 | 
						||
        action: "erase"
 | 
						||
    preferences:
 | 
						||
        action: "show_prefs"
 | 
						||
        outline: "special"
 | 
						||
        icon: "keyboard-mode-symbolic"
 | 
						||
    show_oxia:
 | 
						||
        action:
 | 
						||
            set_view: "oxia"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "´ ΅"
 | 
						||
    show_Oxia:
 | 
						||
        action:
 | 
						||
            set_view: "Oxia"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "´¨↑"
 | 
						||
    show_bariaorperispomeni:
 | 
						||
        action:
 | 
						||
            set_view: "bariaorperispomeni"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "` ῀"
 | 
						||
    show_BariaOrPerispomeni:
 | 
						||
        action:
 | 
						||
            set_view: "BariaOrPerispomeni"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "`῀↑"
 | 
						||
    show_psiliordasia:
 | 
						||
        action:
 | 
						||
            set_view: "psiliordasia"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "᾿ ῾"
 | 
						||
    show_PsiliOrDasia:
 | 
						||
        action:
 | 
						||
            set_view: "PsiliOrDasia"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "᾿῾↑"
 | 
						||
    show_psiliordasiaandoxia:
 | 
						||
        action:
 | 
						||
            set_view: "psiliordasiaandoxia"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "῎ ῞"
 | 
						||
    show_PsiliOrDasiaAndOxia:
 | 
						||
        action:
 | 
						||
            set_view: "PsiliOrDasiaAndOxia"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "῎῞↑"
 | 
						||
    show_psiliordasiaandvaria:
 | 
						||
        action:
 | 
						||
            set_view: "psiliordasiaandvaria"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "῍ ῝"
 | 
						||
    show_PsiliOrDasiaAndVaria:
 | 
						||
        action:
 | 
						||
            set_view: "PsiliOrDasiaAndVaria"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "῍῝↑"
 | 
						||
    show_psiliordasiaandperispomeni:
 | 
						||
        action:
 | 
						||
            set_view: "psiliordasiaandperispomeni"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "῏ ῟"
 | 
						||
    show_PsiliOrDasiaAndPerispomeni:
 | 
						||
        action:
 | 
						||
            set_view: "PsiliOrDasiaAndPerispomeni"
 | 
						||
        outline: "character-group"
 | 
						||
        label: "῏῟↑"
 | 
						||
    show_numbers:
 | 
						||
        action:
 | 
						||
            set_view: "numbers"
 | 
						||
        outline: "change-view-2"
 | 
						||
        label: "123"
 | 
						||
    show_letters:
 | 
						||
        action:
 | 
						||
            set_view: "base"
 | 
						||
        outline: "change-view-2"
 | 
						||
        label: "ΑΒΓ"
 | 
						||
    show_symbols:
 | 
						||
        action:
 | 
						||
            set_view: "symbols"
 | 
						||
        outline: "change-view-2"
 | 
						||
        label: "*/="
 | 
						||
    show_accents:
 | 
						||
        action:
 | 
						||
            locking:
 | 
						||
                lock_view: "accents"
 | 
						||
                unlock_view: "base"
 | 
						||
        outline: "change-view"
 | 
						||
        label: "ᾦ"
 | 
						||
    show_base:
 | 
						||
        action:
 | 
						||
            set_view: "base"
 | 
						||
        outline: "change-view"
 | 
						||
        label: "αι"
 | 
						||
    space:
 | 
						||
        outline: "spaceline"
 | 
						||
        text: " "
 | 
						||
    Return:
 | 
						||
        outline: "wide"
 | 
						||
        icon: "key-enter"
 | 
						||
        keysym: "Return"
 | 
						||
    .:
 | 
						||
        outline: "subtle-highlight"
 | 
						||
    ·-subtle-highlight:
 | 
						||
        outline: "subtle-highlight"
 | 
						||
        text: "·"
 | 
						||
    ",-subtle-highlight":
 | 
						||
        outline: "subtle-highlight"
 | 
						||
        text: ","
 | 
						||
    ":":
 | 
						||
        outline: "subtle-highlight"
 | 
						||
    ;:
 | 
						||
        outline: "subtle-highlight"
 | 
						||
    "!":
 | 
						||
        outline: "subtle-highlight"
 | 
						||
    «:
 | 
						||
        outline: "subtle-highlight"
 | 
						||
    »:
 | 
						||
        outline: "subtle-highlight"
 | 
						||
    €:
 | 
						||
        outline: "subtle-highlight"
 | 
						||
    space-spaceline-2:
 | 
						||
        outline: "spaceline-2"
 | 
						||
        text: " "
 | 
						||
    --:
 | 
						||
        outline: "placeholder"
 | 
						||
        text: ""
 | 
						||
    ---:
 | 
						||
        outline: "placeholder-2"
 | 
						||
        text: ""
 | 
						||
    ᾿:
 | 
						||
        outline: "large" |