-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
German and Neo2 layout: merge altchars
The de_rNE layout was applying overrides when plain "de" locale was selected, leading to confused mappings.
- Loading branch information
Klaus Weidner
committed
Dec 11, 2016
1 parent
2d68c06
commit 0394abc
Showing
4 changed files
with
163 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/perl | ||
|
||
binmode(STDOUT, ":utf8"); | ||
|
||
use Getopt::Std; | ||
getopts('c') || die; | ||
|
||
sub read_strings { | ||
my ($href, $file) = @_; | ||
|
||
open(my $in, '<:utf8', $file) or die; | ||
while (<$in>) { | ||
#print; | ||
chomp; | ||
if (/string\s+name="(.*)"\s*>(.*)</) { | ||
my $name = $1; | ||
$$href{$name} = $_; | ||
} | ||
} | ||
close $in; | ||
} | ||
|
||
sub main { | ||
my %base = (); | ||
my %sub = (); | ||
|
||
read_strings(\%base, $ARGV[0]); | ||
read_strings(\%sub, $ARGV[1]); | ||
|
||
foreach my $n (%base) { | ||
print $base{$n}, "\n" unless $sub{$n}; | ||
} | ||
} | ||
|
||
&main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters