engine: Add layout_variant in gensimple.py

Missed to handle layout_variant and also add latam layouts to denylist

BUG=https://github.com/ibus/ibus/issues/2153
This commit is contained in:
fujiwarat 2020-08-21 22:07:31 +09:00
Родитель 59b902a809
Коммит 568d58dfad
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -24,4 +24,5 @@
# Asterisk(*) character can be used to match any engines.
# E.g. xkb:cn:*:* excludes xkb:cn::zho and xkb:cn:mon_trad:mvf
xkb:cn:*:*
xkb:latam:*:*
xkb:nec_vndr/jp:*:*

Просмотреть файл

@ -180,6 +180,11 @@ class EvdevXML(XMLFilterBase):
self.__downstream.startElement('layout', AttributesImpl({}))
self.__downstream.characters(self.__layout)
self.__downstream.endElement('layout')
if self.__variant != '':
self.__downstream.startElement('layout_variant',
AttributesImpl({}))
self.__downstream.characters(self.__variant)
self.__downstream.endElement('layout_variant')
self.__downstream.startElement('longname', AttributesImpl({}))
self.__downstream.characters(self.__description)
self.__downstream.endElement('longname')