Skip to content

Commit

Permalink
2.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed May 22, 2016
1 parent ac4b300 commit 6347f8b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/appinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#define MAJOR_VERSION 2
#define MINOR_VERSION 3
#define PATCH_NUMBER 6
#define PATCH_NUMBER 7
#define BUILD_NUMBER 0

// needed for res.rc
Expand Down
36 changes: 36 additions & 0 deletions src/mkbidiclasses
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#! /bin/sh

unidata=etc/UnicodeData.txt

(
cat <<\/EOS
first=
item () {
if [ -z "$first" ]
then first=$1
val=$2
fi
last=$1
}
range () {
echo " {0x$first, 0x$last, $val},"
first=
}
/EOS
sed -e "s,^\([^;]*\);[^;]*;[^;]*;[^;]*;\([^;]*\);.*,\1 \2," "$unidata" |
uniq -f1 --group=append | sed -e "s,^$,range," -e t -e "s,^,item ,"
) | sh | grep -v ", ON}"

exit

According to minibidi.c, this should have worked:
perl -ne 'split ";"; $num = hex $_[0]; $type = $_[4];' \
-e '$fl = ($_[1] =~ /First/ ? 1 : $_[1] =~ /Last/ ? 2 : 0);' \
-e 'if ($type eq $runtype and ($runend == $num-1 or ' \
-e ' ($fl==2 and $pfl==1))) {$runend = $num;} else { &reset; }' \
-e '$pfl=$fl; END { &reset }; sub reset {' \
-e 'printf" {0x%04x, 0x%04x, %s},\n",$runstart,$runend,$runtype' \
-e ' if defined $runstart and $runtype ne "ON";' \
-e '$runstart=$runend=$num; $runtype=$type;}' \
UnicodeData.txt

2 changes: 2 additions & 0 deletions wiki/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
### 2.3.7 (22 May 2016) ###

Text display:
* Fixed double-width line display (#551).
* Enabled non-BMP right-to-left display.
Expand Down

0 comments on commit 6347f8b

Please sign in to comment.