Accepting request 899342 from devel:openQA:tested
Update to 1.1 OBS-URL: https://build.opensuse.org/request/show/899342 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xterm-console?expand=0&rev=2
This commit is contained in:
commit
890a935942
1
_service
1
_service
@ -1,3 +1,4 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
<services>
|
<services>
|
||||||
<service name="obs_scm" mode="disabled">
|
<service name="obs_scm" mode="disabled">
|
||||||
<param name="extract">psf2bdf.pl</param>
|
<param name="extract">psf2bdf.pl</param>
|
||||||
|
37
psf2bdf.pl
37
psf2bdf.pl
@ -23,6 +23,7 @@ for (@ARGV) {
|
|||||||
|
|
||||||
my ($length, $width, $height);
|
my ($length, $width, $height);
|
||||||
my (@glyphs, @unicode);
|
my (@glyphs, @unicode);
|
||||||
|
my $unilen = 0;
|
||||||
|
|
||||||
open my $fh, $_ or die $!;
|
open my $fh, $_ or die $!;
|
||||||
binmode $fh;
|
binmode $fh;
|
||||||
@ -49,6 +50,7 @@ for (@ARGV) {
|
|||||||
warn 'Unicode sequence ignored' if $u == 0xFFFE;
|
warn 'Unicode sequence ignored' if $u == 0xFFFE;
|
||||||
}
|
}
|
||||||
$unicode[$i] = [@u];
|
$unicode[$i] = [@u];
|
||||||
|
$unilen += (scalar @u) - 1 if (scalar @u);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -67,6 +69,7 @@ for (@ARGV) {
|
|||||||
$buf =~ m/\G([^\xfe\xff]*+)(?:\xfe[^\xfe\xff]++)*\xff/sg;
|
$buf =~ m/\G([^\xfe\xff]*+)(?:\xfe[^\xfe\xff]++)*\xff/sg;
|
||||||
utf8::decode(my $str = $1);
|
utf8::decode(my $str = $1);
|
||||||
$unicode[$i] = [map ord, split //, $str];
|
$unicode[$i] = [map ord, split //, $str];
|
||||||
|
$unilen += (scalar @{$unicode[$i]}) - 1 if (scalar @{$unicode[$i]});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -93,22 +96,32 @@ for (@ARGV) {
|
|||||||
}
|
}
|
||||||
print "ENDPROPERTIES\n";
|
print "ENDPROPERTIES\n";
|
||||||
|
|
||||||
printf "CHARS %u\n", $length;
|
printf "CHARS %u\n", $length + $unilen;
|
||||||
|
|
||||||
for my $i (0 .. $length - 1) {
|
for my $i (0 .. $length - 1) {
|
||||||
printf "STARTCHAR psf%03x\n", $i;
|
my @encodings = ($i);
|
||||||
if (@unicode && @{$unicode[$i]}) {
|
my $is_unicode = 0;
|
||||||
printf "ENCODING %u\n", $unicode[$i][0];
|
|
||||||
|
if(@unicode && @{$unicode[$i]}) {
|
||||||
|
@encodings = @{$unicode[$i]};
|
||||||
|
$is_unicode = 1;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
printf "ENCODING -1 %u\n", $i;
|
foreach my $e (@encodings) {
|
||||||
|
printf "STARTCHAR psf%03x-%04x\n", $i, $e;
|
||||||
|
if ($is_unicode) {
|
||||||
|
printf "ENCODING %u\n", $e;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
printf "ENCODING -1 %u\n", $e;
|
||||||
|
}
|
||||||
|
printf "SWIDTH %u 0\n", $width * 1000 / $height;
|
||||||
|
printf "DWIDTH %u 0\n", $width;
|
||||||
|
printf "BBX %u %u 0 0\n", $width, $height;
|
||||||
|
my $bw = (($width + 7) & ~7) >> 3;
|
||||||
|
printf "BITMAP\n%s\n", join "\n", map unpack('H*', $_), unpack "(a$bw)*", $glyphs[$i];
|
||||||
|
printf "ENDCHAR\n";
|
||||||
}
|
}
|
||||||
printf "SWIDTH %u 0\n", $width * 1000 / $height;
|
|
||||||
printf "DWIDTH %u 0\n", $width;
|
|
||||||
printf "BBX %u %u 0 0\n", $width, $height;
|
|
||||||
my $bw = (($width + 7) & ~7) >> 3;
|
|
||||||
printf "BITMAP\n%s\n", join "\n", map unpack('H*', $_), unpack "(a$bw)*", $glyphs[$i];
|
|
||||||
printf "ENDCHAR\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print "ENDFONT\n";
|
print "ENDFONT\n";
|
||||||
|
@ -53,7 +53,7 @@ import os
|
|||||||
xx = [
|
xx = [
|
||||||
"xterm",
|
"xterm",
|
||||||
# console font
|
# console font
|
||||||
"-fn", "lat9w-16",
|
"-fn", "eurlatgr",
|
||||||
"-fullscreen",
|
"-fullscreen",
|
||||||
# no scrollbar
|
# no scrollbar
|
||||||
"+sb",
|
"+sb",
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 10 17:58:04 UTC 2021 - okurz@suse.com
|
||||||
|
|
||||||
|
- Update to version 1.1:
|
||||||
|
* Bump version number in spec
|
||||||
|
* Handle glyphs without unicode mapping gracefully
|
||||||
|
* Fix generating psf2 fonts with multiple codepoints per glyph
|
||||||
|
* psf2bdf.pl: Support mapping multiple codepoints to a glyph
|
||||||
|
* Use eurlatgr as font
|
||||||
|
* Further cleanup of spec-file
|
||||||
|
* Cleanup spec-file (delete unused symbol; simplify)
|
||||||
|
* Delete old pre-SLE11 cruft
|
||||||
|
* Mark as noarch as there are only scripts
|
||||||
|
* Cleanup spec-file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 28 12:26:32 UTC 2020 - okurz@suse.com
|
Tue Jan 28 12:26:32 UTC 2020 - okurz@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package xterm-console
|
# spec file for package xterm-console
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: xterm-console
|
Name: xterm-console
|
||||||
Version: 1.0
|
Version: 1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Linux vt console look-alike xterm wrapper
|
Summary: A Linux vt console look-alike xterm wrapper
|
||||||
License: MIT
|
License: MIT
|
||||||
|
3
xterm_console-1.1.obscpio
Normal file
3
xterm_console-1.1.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:754be3cb16a7256bcbbcb658296c3db44d2bd8fce52c28ee7d44540ecf10b0fe
|
||||||
|
size 10762
|
@ -1,5 +1,5 @@
|
|||||||
name: xterm_console
|
name: xterm_console
|
||||||
version: 1.0
|
version: 1.1
|
||||||
mtime: 1580219585
|
mtime: 1623347434
|
||||||
commit: 580eaafe2972e1e642254c7fc64603a67637c388
|
commit: 2532f1418ee6df6f091c4c0e036a0852f7f4e0b4
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user