forked from neo/neo-layout
Pfad zu Python korrigiert
coding korrigiert neo_yaml eingefügt NEO durch Neo ersetzt etc. Verweis auf get_dependencies.sh ausführbar gemacht Coding style
This commit is contained in:
parent
09761d2727
commit
cc360dbf9a
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# installing the neo_yaml-dependencies: python >= 3.0, pyyaml >= 3.08
|
||||||
|
cd ~
|
||||||
|
# sudo pacman -Sy python3 # arch linux example
|
||||||
|
wget http://pyyaml.org/download/pyyaml/PyYAML-3.08.tar.gz
|
||||||
|
tar xzf PyYAML-3.08.tar.gz
|
||||||
|
rm PyYAML-3.08.tar.gz
|
||||||
|
# svn co http://svn.pyyaml.org/pyyaml/trunk PyYAML-3.08 # alternative to the 3
|
||||||
|
# commands above
|
||||||
|
cd PyYAML-3.08
|
||||||
|
sudo python3 setup.py install
|
||||||
|
cd ..
|
||||||
|
rm -r PyYAML-3.08
|
|
@ -1,15 +1,15 @@
|
||||||
#!usr/bin/python
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# YAML Parser for the Neo reference
|
# YAML Parser for the Neo reference (neo_yaml)
|
||||||
# Copyright 2009 Martin Roppelt (m.p.roppelt ἢτ web in Germany)
|
# Copyright 2009 Martin Roppelt (m.p.roppelt ἢτ web in Germany)
|
||||||
#
|
#
|
||||||
# This file is part of German NEO-Layout Version 2.
|
# This file is part of German Neo-Layout Version 2.
|
||||||
# German Neo Layout Version 2 is free software: you can redistribute it and/or
|
# German Neo-Layout Version 2 is free software: you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License as published by
|
# modify it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or (at your
|
# the Free Software Foundation, either version 3 of the License, or (at your
|
||||||
# option) any later version. You should have received a copy of the GNU General
|
# option) any later version. You should have received a copy of the GNU General
|
||||||
# Public License along with German NEO-Layout Version 2. If not, see
|
# Public License along with German Neo-Layout Version 2. If not, see
|
||||||
# <http://www.gnu.org/licenses/>.
|
# <http://www.gnu.org/licenses/>.
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
'''
|
'''
|
||||||
|
@ -17,8 +17,9 @@ Converts the reference into both human and machine readable and editable files
|
||||||
for automated creating of keyboard drivers, pictures and references.
|
for automated creating of keyboard drivers, pictures and references.
|
||||||
'''
|
'''
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# Needs at least Phyton 3.0 and PyYAML 3.08 (pyyaml.org) to run.
|
# Needs at least Phyton 3.0 and PyYAML 3.08 (pyyaml.org) to run (In GNU/Linux
|
||||||
#
|
# you can run get_dependencies.sh to install them.)
|
||||||
|
#
|
||||||
# Call with -h|--help to print command line options.
|
# Call with -h|--help to print command line options.
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
|
@ -52,7 +53,7 @@ options = OptionParser(usage = 'example: %prog -ti -astest', description = 'YAML
|
||||||
make_option('-f', '--key-level-delimiter-filler', metavar = 'char',default = " ", help = 'default = %default'),
|
make_option('-f', '--key-level-delimiter-filler', metavar = 'char',default = " ", help = 'default = %default'),
|
||||||
make_option('-D', '--key-level-delimiter', metavar = 'char'),
|
make_option('-D', '--key-level-delimiter', metavar = 'char'),
|
||||||
make_option('-l', '--key-levels-per-line', type = 'int', metavar = 'int', default = 3, help = 'default = %default'),
|
make_option('-l', '--key-levels-per-line', type = 'int', metavar = 'int', default = 3, help = 'default = %default'),
|
||||||
make_option('-L', '--no-level-disorder',dest = 'level_disorder', action = 'store_false', default = True, help = 'Level 4 and 5 are not swapped')
|
make_option('-L', '--no-level-disorder', dest = 'level_disorder', action = 'store_false', default = True, help = 'Level 4 and 5 are not swapped')
|
||||||
]).parse_args()[0]
|
]).parse_args()[0]
|
||||||
if options.destination_file == None:
|
if options.destination_file == None:
|
||||||
options.destination_file = options.source_file.rsplit(file_name_standard_extension)[0]
|
options.destination_file = options.source_file.rsplit(file_name_standard_extension)[0]
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
Neo-Projekt: Maschinenlesbare Referenz
|
Neo-Projekt: Maschinenlesbare Referenz (neo_yaml)
|
||||||
|
|
||||||
Martin Roppelt (m.p.roppelt ät web in Deutschland)
|
Martin Roppelt (m.p.roppelt ät web in Deutschland)
|
||||||
|
|
||||||
Ressourcen:
|
Ressourcen:
|
||||||
- https://svn.neo-layout.org/grafik/xml-vorschlag/, Revision 200
|
- https://svn.neo-layout.org/grafik/xml-vorschlag/@200
|
||||||
- http://www.eigenheimstrasse.de/~ben/layoutgen/layoutgen/
|
- http://www.eigenheimstrasse.de/~ben/layoutgen/layoutgen/
|
||||||
- svn://svn.tuxfamily.org/svnroot/dvorak/svn/pilotes/trunk/configGenerator/
|
- svn://svn.tuxfamily.org/svnroot/dvorak/svn/pilotes/trunk/configGenerator/
|
||||||
- http://pyyaml.org/
|
- http://pyyaml.org/
|
||||||
|
|
Loading…
Reference in New Issue