Hi I’m trying to create a multi platform/baselayout keyboard, are there any examples in the repository I could crib from?
What I’ve got so far:
store(&TARGETS) 'windows macosx linux web iphone ipad androidphone androidtablet mobile desktop tablet'
store(&KEYBOARDVERSION) '10.0'
store(&mnemoniclayout) '0'
c NFC qwerty default for Mac, Linux and web, touch?
begin Unicode > use(main)
group(main) using keys
store(allchars) [K_A] [K_Q] [K_Z]
c platform("web") + notany(nochars) > use(web)
platform("web") + any() > use(web)
platform("touch") + any() > use(touch)
platform("hardware") + any() > use(hardware)
c should never get this far so beep as error message
nomatch() + any() > beep
group(web) using keys
c a qwerty web
+ any() > "a web keyboard"
group(touch) using keys
c a qwerty touch
+ any() > "a touch keyboard"
group(hardware) using keys
platform("windows") + any() > use(windows)
platform("linux") + any() > use(linux)
platform("macos") + any() > use(macos)
group(linux) using keys
+ any() > "a linux keyboard"
group(macos) using keys
+ any() > "a macos keyboard"
group(windows) using keys
c + any() > "a windows keyboard"
baselayout("en-US") + any() > use(SGGBUS73NFC)
baselayout("en-UK") + any() > use(SGGBUK73NFC)
baselayout("fr-FR") + any() > use(SGGBFR73NFC)
baselayout("fr-CH") + any() > use(SGGBCH73NFC)
baselayout("es-ES") + any() > use(SGGBES73NFC)
baselayout("pt-BR") + any() > use(PTABNT73NFC)
baselayout("pt-PT") + any() > use(SGGBPT73NFC)
baselayout("sv-SE") + any() > use(SGGBSW73NFC)
baselayout("it-IT") + any() > use(SGGBIT73NFC)
baselayout("nl-NL") + any() > use(SGGBNL73NFC)
baselayout("nn-NO") + any() > use(SGGBNO73NFC)
baselayout("nb-NO") + any() > use(SGGBNO73NFC)
baselayout("de-DE") + any() > use(SGGBDE73NFC)
baselayout("de-CH") + any() > use(SGGBCH73NFC)
c defaults to qwerty for ajami
c should this be 'mey' for Hassaniya Arabic??? or 'mey-sn'?
C is there a windows code for this??
baselayout("ar-sa") + any() > use(SNAJAMIQ)
nomatch() + any() > beep
group(SGGBUS73NFC) using keys
store(allchars) [K_Q][K_A][K_Z]
+ any(allchars) > context " on en-US keyboard "
c + [K_Q] > "q en-US keyboard "
group(SGGBUK73NFC) using keys
+ [K_A] > "a en-UK keyboard"
group(SGGBFR73NFC) using keys
+ [K_A] > "a fr-FR keyboard"
group(SGGBPT73NFC) using keys
+ any() > "a pt-PT keyboard"
group(PTABNT73NFC) using keys
+ any() > "a pt-ABNT keyboard"
group(SGGBES73NFC) using keys
+ any() > "a es-ES keyboard"
group(SGGBCH73NFC) using keys
+ any() > "a ch-CH keyboard"
group(SGGBDE73NFC) using keys
+ any() > "a de-DE keyboard"
group(SGGBIT73NFC) using keys
+ any() > "a it-IT keyboard"
group(SGGBSW73NFC) using keys
+ any() > "a sv-SE keyboard"
group(SGGBNO73NFC) using keys
+ any() > "a nn-NO keyboard"
group(SGGBNL73NFC) using keys
+ any() > "a nl-NL keyboard"
group(SNAJAMIQ) using keys
+ any() > "a QWERTY Ajami keyboard"
this complies and seems to switch for the web and en-US keyboards but only outputs the phrase when I type ‘a’.
Thanks for any advice
MarkS