From: Mischa POSLAWSKY Date: Tue, 3 Mar 2015 18:05:01 +0000 (+0100) Subject: latin: reformat tap codes to superimposed dots X-Git-Tag: v1.7~69 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/2e79f6a6a8fba18bcc39b5c866c3d1a84486f7d3 latin: reformat tap codes to superimposed dots --- diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl index f763d35..62ab2b2 100644 --- a/writing-latn.inc.pl +++ b/writing-latn.inc.pl @@ -4,8 +4,9 @@ sub disptap { map { m/\A(-?)(\d)(\d)/; $1 . '\\' # escape dot - . chr($2 > 3 ? 0x2070 + $2 : $2 == 1 ? 0xB9 : 0xB0 + $2) # superscript - . chr(0x2080 + $3) # subscript digit + . ('.̇' x ($2 < $3 ? $2 : $3)) # min($2,$3) without losing captures + . ('.' x ($3 - $2)) + . (' ̇' x ($2 - $3)) } @_ }