summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump version to 0.5.0xkbcommon-0.5.0Ran Benita2014-10-181-1/+1
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* Update NEWSRan Benita2014-10-181-0/+44
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* Change initial symbol file versions to V_0.5.0Ran Benita2014-10-182-2/+2
| | | | | | | | | It will be quite confusing to use V_0.4.3 since this was already released without symbol versioning. Hopefully this doesn't cause any trouble for people who are using -git. Signed-off-by: Ran Benita <ran234@gmail.com>
* compose: fill @since TBDRan Benita2014-10-181-1/+1
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* doc/compat.md: add compose incompatibilitiesRan Benita2014-10-181-0/+9
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* Add PACKAGING fileRan Benita2014-10-182-1/+52
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* Makefile.am: add symbol files to EXTRA_DISTRan Benita2014-10-181-1/+3
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* README: we also accepts patches through githubRan Benita2014-10-181-0/+1
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* docs: make html output have a fixed width, hide footerRan Benita2014-10-183-2/+12
| | | | | | | | It's hard to read text which stretches indefinitely. The footer is not adding much. Signed-off-by: Ran Benita <ran234@gmail.com>
* README: add notes about Compose supportRan Benita2014-10-181-2/+7
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* doc/quick-guide: some improvementsRan Benita2014-10-181-5/+15
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* README: remove elaborate details from the introRan Benita2014-10-181-11/+2
| | | | | | Point to the "quick guide" instead. Signed-off-by: Ran Benita <ran234@gmail.com>
* doc/compat.md: we don't support more groups or mods yetRan Benita2014-10-181-2/+2
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* README: move compatibility notes to their own pageRan Benita2014-10-184-42/+49
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* README: link to online API docsRan Benita2014-10-181-4/+4
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* README: move note about xkeyboard-config to its own sectionRan Benita2014-10-181-6/+8
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* README: remove section on API stabilityRan Benita2014-10-181-8/+0
| | | | | | | This was useful when we *weren't* stable. But now that we are this should be obvious. Signed-off-by: Ran Benita <ran234@gmail.com>
* Replace some strncmp's with memcmpRan Benita2014-10-182-4/+4
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* compose/parser: save len in keysym_from_name cacheRan Benita2014-10-181-1/+4
| | | | | | This reduces a lot of strcmp's, and allows to use a faster memcmp. Signed-off-by: Ran Benita <ran234@gmail.com>
* test/keyseq: test 'map[None] = Level2;' scenarioRan Benita2014-10-171-0/+20
| | | | | | See previous commit for an explanation. Signed-off-by: Ran Benita <ran234@gmail.com>
* test/data: add files for model=applealu_ansi layout=usRan Benita2014-10-173-0/+288
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* test/data: sync to xkeyboard-config 2.13Ran Benita2014-10-1745-1874/+2251
| | | | | | (Run ./test/data/sync.sh). Signed-off-by: Ran Benita <ran234@gmail.com>
* state: correctly infer inactive type entriesRan Benita2014-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | The current test is incorrect, since 'map[None]' is entirely valid. In most cases this doesn't cause any problems, since the default fallback is Level1, and it's almost always 'map[None] = Level1' anyway. But in one case in xkeyboard-config it isn't, in types/numpad(mac): type "KEYPAD" { modifiers = None; map[None] = Level2; level_name[Level2] = "Number"; }; So before checking if no modifiers were mapped, make sure there *were* any modifiers at all. https://bugs.freedesktop.org/show_bug.cgi?id=85092 Reported-by: Gatis Paeglis <gatis.paeglis@digia.com> Signed-off-by: Ran Benita <ran234@gmail.com>
* symbols: don't warn about conflicting syms if they are the sameRan Benita2014-10-171-1/+14
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* parser: bring back warning about includes of files with no defaultRan Benita2014-10-171-0/+6
| | | | | | Using the same format as xkbcomp. Signed-off-by: Ran Benita <ran234@gmail.com>
* Merge pull request #14 from jasperla/undefinedRan Benita2014-10-161-1/+9
|\ | | | | disable -Wl,--no-undefined on OpenBSD for it doesn't have DT_NEEDED for libc
| * disable -Wl,--no-undefined on OpenBSD for it doesn't have DT_NEEDED for libcJasper Lievisse Adriaanse2014-10-161-1/+9
|/
* Merge pull request #13 from jasperla/librtRan Benita2014-10-152-2/+7
|\ | | | | Make librt optional, required for at least OpenBSD
| * Make librt optional, required for at least OpenBSDJasper Lievisse Adriaanse2014-10-152-2/+7
|/
* test/compose: test include statementRan Benita2014-10-141-0/+37
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* test/compose: test modifier syntaxRan Benita2014-10-141-0/+46
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* compose/parser: fix parsing of multiple modifiersRan Benita2014-10-141-13/+20
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* compose/parser: parse (! mods) properlyRan Benita2014-10-131-15/+91
| | | | | | | We don't actually do anything with them. But if someone uses them we can at least not choke. Signed-off-by: Ran Benita <ran234@gmail.com>
* compose/parser: resolve keysyms in parser instead of scannerRan Benita2014-10-131-28/+38
| | | | | | It will become context-sensitive. Signed-off-by: Ran Benita <ran234@gmail.com>
* compose/parser: use parameter as intendedRan Benita2014-10-131-1/+1
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* compose/parser: one more skip_to_eol()Ran Benita2014-10-131-3/+2
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* compose/parser: fix segfault when includingRan Benita2014-10-134-6/+7
| | | | | | | | The keysym cache for the new scanner was not initialized. To avoid such errors also in the future, require passing the priv argument in scanner_init(), instead of initializing it separately. Signed-off-by: Ran Benita <ran234@gmail.com>
* COPYING: add copyright notice from libX11:modules/im/ximcp/imLcPrs.cRan Benita2014-10-132-0/+58
| | | | | | We have used some portions of it, so add the notice. Signed-off-by: Ran Benita <ran234@gmail.com>
* scanner-utils: optimize one-line commentsRan Benita2014-10-084-3/+12
| | | | | | Compose files have a lot of those. Signed-off-by: Ran Benita <ran234@gmail.com>
* bench/compose: add new benchmarkRan Benita2014-10-053-1/+80
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* test/interactive-evdev: add compose supportRan Benita2014-10-054-24/+94
| | | | | | | To try, do e.g.: sudo ./test/interactive-evdev -l us -v intl -o compose:ralt -d Signed-off-by: Ran Benita <ran234@gmail.com>
* test/compose: add new testRan Benita2014-10-054-1/+6419
| | | | | | | | | | | | | | | | | | | | | | Some results from the benchmark (compilation of en_US.UTF-8/Compose): $ grep 'model name' /proc/cpuinfo model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz $ uname -a Linux ran 3.16.1-1-ARCH #1 SMP PREEMPT Thu Aug 14 07:40:19 CEST 2014 x86_64 GNU/Linux $ ./test/compose bench compiled 1000 compose tables in 7.776488331s So according to the above benchmark and valgrind --tool=massif, an xkb_compose_table adds an overhead of about ~8ms time and ~130KB resident memory. For contrast, a plain US keymap adds an overhead of ~3ms time and 90KB resident memory. Signed-off-by: Ran Benita <ran234@gmail.com>
* compose: add xkbcommon-compose - implementationRan Benita2014-10-0510-0/+1463
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* compose: add xkbcommon-compose - APIRan Benita2014-10-032-1/+485
| | | | | | | | | | | | | | | | xkbcommon-compose is a Compose implementation for xkbcommon. It mostly behaves like libX11's Compose, but the support is somewhat low-level and is not transparent like in libX11. The user must add some supporting code in order to utilize it. The intended audience are users who use xkbcommon but not a full-blown input method. With this they can add Compose support in a straightforward manner, so they have a fairly complete keyboard input for Latin-like languages at least. See the header documentation for details. Signed-off-by: Ran Benita <ran234@gmail.com>
* scanner-utils: add priv memberRan Benita2014-10-031-0/+1
| | | | | | For when a user of the scanner wants to pass something along with it. Signed-off-by: Ran Benita <ran234@gmail.com>
* darray: add darray_shrink()Ran Benita2014-10-031-0/+6
| | | | | | | If we have a big array which can be finalized, on average we can give back 1/4 of its size, which the allocator might be able to use. Signed-off-by: Ran Benita <ran234@gmail.com>
* keysym: add function to test if a keysym is for a modifierRan Benita2014-10-032-0/+15
| | | | | | Needed for compose. Signed-off-by: Ran Benita <ran234@gmail.com>
* scanner-utils: add helper for appending an entire stringRan Benita2014-10-021-0/+11
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* scanner-utils: add helper for hex string escapeRan Benita2014-10-021-0/+13
| | | | | | Like the already existing oct. Signed-off-by: Ran Benita <ran234@gmail.com>
* Move benchmarks from tests to their own files in bench/Ran Benita2014-10-028-109/+157
| | | | | | The tests only contain tests, and the benchmarks are more visible. Signed-off-by: Ran Benita <ran234@gmail.com>