Permalink
Browse files

Reordered files, merged to singly directory for git migration.

  • Loading branch information...
1 parent 2130802 commit 2b374103d98d174a9971ebe1bf25b706fcfc87d3 Simos Xenitellis committed Jan 20, 2009
Showing with 0 additions and 5,807 deletions.
  1. 0 {KeyboardLayoutEditor → }/.project
  2. 0 {KeyboardLayoutEditor → }/.pydevproject
  3. 0 {KeyboardLayoutEditor → }/.settings/org.eclipse.ltk.core.refactoring.prefs
  4. 0 {KeyboardLayoutEditor → }/.settings/org.eclipse.mylyn.tasks.ui.prefs
  5. 0 {KeyboardLayoutEditor/src → }/COPYING
  6. 0 {KeyboardLayoutEditor/src → }/Common.py
  7. +0 −58 Compose/Compose.g
  8. +0 −16 Compose/ComposeWalker.g
  9. +0 −71 Compose/print_tree.py
  10. 0 {KeyboardLayoutEditor/src → }/DeadKeysDict.py
  11. 0 {KeyboardLayoutEditor/src → }/Disconnect.
  12. 0 {KeyboardLayoutEditor/src → }/DumbKey.py
  13. 0 {KeyboardLayoutEditor/src → }/Enum.py
  14. 0 {KeyboardLayoutEditor/src → }/GenericLayout.py
  15. 0 {KeyboardLayoutEditor/src → }/Key.py
  16. 0 {KeyboardLayoutEditor/src → }/KeyDict.py
  17. 0 {KeyboardLayoutEditor/src → }/KeyValue.py
  18. 0 {KeyboardLayoutEditor/src → }/Keyboard.py
  19. 0 {KeyboardLayoutEditor/src → }/KeyboardLayoutEditor.py
  20. +0 −41 KeyboardLayoutEditor/src/README.txt
  21. 0 {KeyboardLayoutEditor/src → }/Keycodes.g
  22. +0 −110 Keycodes/Keycodes.g
  23. +0 −34 Keycodes/KeycodesWalker.g
  24. +0 −121 Keycodes/create_keycode_dict.py
  25. +0 −123 Keycodes/extract_keycodes.py
  26. +0 −69 Keycodes/print_tree.py
  27. 0 {KeyboardLayoutEditor/src → }/KeycodesReader.py
  28. 0 {KeyboardLayoutEditor/src → }/KeycodesWalker.g
  29. 0 {KeyboardLayoutEditor/src → }/Keysyms.py
  30. 0 {KeyboardLayoutEditor/src → }/KeysymsUni.py
  31. 0 {KeyboardLayoutEditor/src → }/KeysymsUniByValue.py
  32. BIN {KeyboardLayoutEditor/src → }/Levels.png
  33. 0 {KeyboardLayoutEditor/src → }/Levels.svg
  34. 0 {KeyboardLayoutEditor/src → }/ParseXKB.py
  35. 0 {KeyboardLayoutEditor/src → }/ParseXML.py
  36. 0 KeyboardLayoutEditor/README.txt → README
  37. 0 {KeyboardLayoutEditor/src → }/SelectVariant.py
  38. 0 {KeyboardLayoutEditor/src → }/XKBGrammar.g
  39. +0 −4 XKBGrammar/README
  40. +0 −204 XKBGrammar/XKBGrammar.g
  41. +0 −67 XKBGrammar/XKBGrammar.tokens
  42. +0 −1,595 XKBGrammar/XKBGrammarLexer.py
  43. BIN XKBGrammar/XKBGrammarLexer.pyc
  44. +0 −2,396 XKBGrammar/XKBGrammarParser.py
  45. BIN XKBGrammar/XKBGrammarParser.pyc
  46. +0 −58 XKBGrammar/XKBGrammarWalker.g
  47. +0 −53 XKBGrammar/XKBGrammar__.g
  48. +0 −159 XKBGrammar/check_xkb.py
  49. +0 −17 XKBGrammar/gr
  50. +0 −188 XKBGrammar/parse_xkb_to_xml.py
  51. +0 −106 XKBGrammar/parse_xml_to_xkb.py
  52. +0 −70 XKBGrammar/print_tree.py
  53. +0 −129 XKBGrammar/xkb.rng
  54. +0 −118 XKBGrammar/xkbsample.xml
  55. 0 {KeyboardLayoutEditor/src → }/XKBGrammarWalker.g
  56. 0 {KeyboardLayoutEditor/src → }/aliases
  57. 0 {KeyboardLayoutEditor/src → }/evdev
  58. 0 {KeyboardLayoutEditor/src → }/kle-icon.svg
  59. 0 {KeyboardLayoutEditor/src → }/kle-icon2.svg
  60. 0 {KeyboardLayoutEditor/src → }/kle-icon3.svg
  61. 0 {KeyboardLayoutEditor/src → }/kle-icon4.svg
  62. 0 {KeyboardLayoutEditor/src → }/parse_xkb_to_xml.py
  63. 0 {KeyboardLayoutEditor/src → }/parse_xml_to_xkb.py
  64. 0 {KeyboardLayoutEditor/src → }/print_tree.py
  65. 0 {KeyboardLayoutEditor/src → }/utils/Keysyms.g
  66. 0 {KeyboardLayoutEditor/src → }/utils/KeysymsWalker.g
  67. 0 {KeyboardLayoutEditor/src → }/utils/extract_keysymdefh.py
  68. 0 {KeyboardLayoutEditor/src → }/utils/extract_keysymstxt.py
  69. 0 {KeyboardLayoutEditor/src → }/utils/keysymdef.h
  70. 0 {KeyboardLayoutEditor/src → }/utils/keysyms.txt
  71. 0 {KeyboardLayoutEditor/src → }/xfree86
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,58 +0,0 @@
-// Compose Grammar (X.org)
-// Written by Simos Xenitellis <simos.lists@googlemail.com>, 2008.
-// Version 0.1
-
-grammar Compose;
-
-options
-{
- language = Python;
- output = AST;
-}
-
-tokens
-{
- COMPOSE;
- CODEPOINT;
- SEQUENCE;
- SYM;
-}
-
-compose
- : sequence+ EOF
- -> ^(COMPOSE sequence+)
- ;
-
-sequence
- : sym+ ':' DQSTRING NAME?
- -> ^(SEQUENCE sym+ ^(CODEPOINT DQSTRING NAME?))
- ;
-
-sym
- : '<' NAME '>'
- -> ^(SYM NAME)
- ;
-
-NAME
- : ( 'a'..'z' | 'A'..'Z' | '_' | '0'..'9' )*
- ;
-
-WS
- :
- ( ' ' | '\r' | '\t' | '\u000C' | '\n')
- { $channel=HIDDEN; }
- ;
-
-LINE_COMMENT
- :
- '#' ~('\n' | '\r')* '\r'? '\n'
- { $channel=HIDDEN; }
- ;
-
-/** Match various string types. Note that greedy=false implies '''
- * should make us exit loop not continue.
- */
-DQSTRING
- : '"' str=('\\\"' | (options {greedy=false;}:~('"'))*) '"'
- ;
-
View
@@ -1,16 +0,0 @@
-// Compose Grammar (X.org)
-// Written by Simos Xenitellis <simos.lists@googlemail.com>, 2008.
-// Version 0.1
-
-tree grammar ComposeWalker;
-
-options
-{
- language = Python;
- tokenVocab = Compose;
- ASTLabelType = CommonTree;
-}
-
-compose : ^(COMPOSE sequence+) ;
-sequence: ^(SEQUENCe sym+ ^(CODEPOINT DQSTRING NAME?)) ;
-sym : ^(SYM NAME) ;
View
@@ -1,71 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-# Version 0.7
-
-import sys
-import pdb
-import antlr3
-from ComposeLexer import ComposeLexer
-from ComposeParser import ComposeParser
-from ComposeWalker import ComposeWalker
-
-# Helper function to iterate through all children of a given type
-def getChildrenByType(tree, type_value):
- for i in range(tree.getChildCount()):
- child = tree.getChild(i)
- if child.getType() == type_value:
- yield child
-
-# Helper function to iterate through all children of a given type
-def getChildrenListByType(tree, type_value):
- list = []
- for i in range(tree.getChildCount()):
- child = tree.getChild(i)
- if child.getType() == type_value:
- list.append(child)
- return list
-
-xkbfilename = "/usr/share/X11/locale/en_US.UTF-8/Compose"
-if len(sys.argv) > 1:
- xkbfilename = sys.argv[1]
-
-try:
- xkbfile = open(xkbfilename, 'r')
-except OSError:
- print "Could not open file ", xkbfilename, ". Aborting..."
- sys.exit(-1)
-
-xkbfile.close
-
-char_stream = antlr3.ANTLRFileStream(xkbfilename, encoding='utf-8')
-lexer = ComposeLexer(char_stream)
-tokens = antlr3.CommonTokenStream(lexer)
-parser = ComposeParser(tokens)
-
-#pdb.set_trace()
-result = parser.compose()
-
-print "XXXXXXXXXXXXXXXXXXXXXXX", xkbfilename
-print "tree =", result.tree.toStringTree()
-
-nodes = antlr3.tree.CommonTreeNodeStream(result.tree)
-nodes.setTokenStream(tokens)
-walker = ComposeWalker(nodes)
-walker.compose()
-
-
-MAX = 10
-TABS = "\t\t\t\t\t\t\t\t\t\t"
-
-def print_tree(node, depth):
- if depth >= MAX:
- return
- for n in node.getChildren():
- print TABS[:depth], "===", n.getText(), "==="
- print_tree(n, depth + 1)
-
-
-print result.tree.getChild(0).getText()
-print
-print_tree(result.tree, 0)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,41 +0,0 @@
-This is the Keyboard Layout Editor (KLE), a pygtk program that helps create
-or edit XKB keyboard layouts. This allows you to type characters from different
-languages or other special Unicode characters on your Linux desktop.
-
-The project page of the Keyboard Layout Editor is
-http://code.google.com/p/keyboardlayouteditor/
-
-You are strongly encouraged to use the version that is found at the above URL,
-as it includes several bug fixes.
-
-The project was developed using Eclipse (Ganymede), with the Python (PyDev)
-and Antlr (AntlrIDE) add-ons.
-
-PyDev is found at
-http://pydev.sourceforge.net/
-
-AntlrIDE is found at
-http://antlrv3ide.sourceforge.net/
-
-If you also have SVN support in Eclipse (hint: Subclipse),
-you can grab the latest source from within Eclipse.
-There is also integration with Mylene so that you can get the list of
-issues/bugs/todo items automatically.
-
-To run the application, you need the python binding packages for
-* Cairo
-* Pango
-* GObject
-* lxml
-
-and the Antlr 3.1 Runtime environment for Python. You grab that at
-http://antlr.org/download/Python/
-Choose the appropriate *.egg file for the 3.1 version, then type
-
-sudo easy_install antlr_python_runtime-3.1-py2.5.egg
-
-This should do the installation for you.
-
-You run the Keyboard Layout Editor with
-
-./KeyboardLayoutEditor.py
File renamed without changes.
View
@@ -1,110 +0,0 @@
-// Keycodes Grammar (X.org)
-// Written by Simos Xenitellis <simos.lists@googlemail.com>, 2008.
-// Version 0.8
-
-grammar Keycodes;
-
-options
-{
- language = Python;
- output = AST;
-}
-
-tokens
-{
- KEYCODEDOC;
- KEYCODELIST;
- KEYCODELISTTYPE;
- KEYCODELISTOPTIONS;
- KEYCODELISTOPTS;
- KEYCODELISTNAME;
- KEYCODEMATERIAL;
- INCLUDE;
- MINIMUM;
- MAXIMUM;
- ALIAS;
- INDICATOR;
- KEYCODE;
-}
-
-keycodedoc
- : keycodelist+ EOF
- -> ^(KEYCODEDOC keycodelist+)
- ;
-
-keycodelist
- : keycodelisttype '{' keycodeMaterial+ '}' ';'
- -> ^(KEYCODELIST keycodelisttype ^(KEYCODEMATERIAL keycodeMaterial+))
- ;
-
-keycodelisttype
- : KEYCODELISTOPTS+ DQSTRING
- -> ^(KEYCODELISTTYPE ^(KEYCODELISTOPTIONS KEYCODELISTOPTS+) ^(KEYCODELISTNAME DQSTRING))
- ;
-
-keycodeMaterial
- : line_include
- | line_minmax ';'!
- | line_alias ';'!
- | line_keycode ';'!
- | line_indicator ';'!
- ;
-
-line_include
- : 'include' DQSTRING
- -> ^(INCLUDE DQSTRING)
- ;
-
-line_minmax
- : 'minimum' '=' NAME -> ^(MINIMUM NAME)
- | 'maximum' '=' NAME -> ^(MAXIMUM NAME)
- ;
-
-line_alias
- : 'alias' '<' val+=NAME '>' '=' '<' val+=NAME '>'
- -> ^(ALIAS $val+)
- ;
-
-line_keycode
- : '<' val+=NAME '>' '=' val+=NAME
- -> ^(KEYCODE NAME+)
- ;
-
-line_indicator
- : 'indicator' NAME '=' DQSTRING
- -> ^(INDICATOR NAME DQSTRING)
- ;
-
-KEYCODELISTOPTS
- : 'default'
- | 'xkb_keycodes'
- ;
-
-NAME
- : ( 'a'..'z' | 'A'..'Z' | '_' | '0'..'9' | '+' | '-' )*
- ;
-
-WS
- :
- ( ' ' | '\r' | '\t' | '\u000C' | '\n')
- { $channel=HIDDEN; }
- ;
-
-COMMENT
- :
- '/*' .* '*/' {$channel=HIDDEN;}
- ;
-
-LINE_COMMENT
- :
- ('//' | '#') ~('\n' | '\r')* '\r'? '\n'
- { $channel=HIDDEN; }
- ;
-
-/** Match various string types. Note that greedy=false implies '''
- * should make us exit loop not continue.
- */
-DQSTRING
- : '"' ((options {greedy=false;}:~('"'))*) '"'
- ;
-
View
@@ -1,34 +0,0 @@
-// Keycodes Grammar (X.org)
-// Written by Simos Xenitellis <simos.lists@googlemail.com>, 2008.
-// Version 0.8
-
-tree grammar KeycodesWalker;
-
-options
-{
- language = Python;
- tokenVocab = Keycodes;
- ASTLabelType = CommonTree;
-}
-
-
-keycodedoc
- : ^(KEYCODEDOC keycodelist+)
- ;
-
-keycodelist
- : ^(KEYCODELIST keycodelisttype ^(KEYCODEMATERIAL keycodeMaterial+))
- ;
-
-keycodelisttype
- : ^(KEYCODELISTTYPE ^(KEYCODELISTOPTIONS KEYCODELISTOPTS+) ^(KEYCODELISTNAME DQSTRING))
- ;
-
-keycodeMaterial
- : ^(INCLUDE DQSTRING)
- | ^(MINIMUM NAME)
- | ^(MAXIMUM NAME)
- | ^(ALIAS NAME+)
- | ^(KEYCODE NAME+)
- | ^(INDICATOR NAME DQSTRING)
- ;
Oops, something went wrong.

0 comments on commit 2b37410

Please sign in to comment.