From 4213ec8371d27fa2f8be49d9ea8d803179e4523d Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 11 Oct 2008 09:33:47 +0000 Subject: [PATCH] unicode: remove obsolete $width parameter to table() Ever since v1.1-42-gef10481 [unicode: table improvements] (2008-09-16) the width is determined automatically. Remove these unused arguments. --- unicode.plp | 84 ++++++++++++++++++++++++++--------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/unicode.plp b/unicode.plp index d5e0145..15651eb 100644 --- a/unicode.plp +++ b/unicode.plp @@ -40,8 +40,8 @@ sub quote { return $_; } -sub table { - my ($width, $digraphs, $rowheads, $colheads) = @_; +sub glyph_table { + my ($digraphs, $rowheads, $colheads) = @_; my @rows; @@ -106,65 +106,65 @@ sub table { } print "
\n", "

Popular

\n\n"; -print table(@$_) for ( - [ 3 => [qw{. « » . ‹ › . ‘ ’ . “ ” . „ ‚}]], - [ 3 => [qw{. † ‡ • . § ¶ # . © ® ™ . − × ÷ . ± ² √}]], - [ 3 => [qw{. å ä ö ü ß . Å æ ø ű ſ}]], - [ 3 => [qw{. ¿ ç ñ é ê è}]], +print glyph_table(@$_) for ( + [ [qw{. « » . ‹ › . ‘ ’ . “ ” . „ ‚}]], + [ [qw{. † ‡ • . § ¶ # . © ® ™ . − × ÷ . ± ² √}]], + [ [qw{. å ä ö ü ß . Å æ ø ű ſ}]], + [ [qw{. ¿ ç ñ é ê è}]], ); print "
\n\n"; print "
\n", "

Arrows

\n\n"; -print table(@$_) for ( - [ 4 => [qw{. ↖ ↑ ↗ ↔ . ← - → ↕ . ↙ ↓ ↘ -}]], - [ 4 => [qw{. ⇖ ⇑ ⇗ ⇔ . ⇐ - ⇒ ⇕ . ⇙ ⇓ ⇘ -}]], - [ 3 => [qw{. ◤ ▲ ◥ . ◀ ◆ ▶ . ◣ ▼ ◢}]], - [ 3 => [qw{. ◸ △ ◹ . ◁ ◇ ▷ . ◺ ▽ ◿}]], +print glyph_table(@$_) for ( + [ [qw{. ↖ ↑ ↗ ↔ . ← - → ↕ . ↙ ↓ ↘ -}]], + [ [qw{. ⇖ ⇑ ⇗ ⇔ . ⇐ - ⇒ ⇕ . ⇙ ⇓ ⇘ -}]], + [ [qw{. ◤ ▲ ◥ . ◀ ◆ ▶ . ◣ ▼ ◢}]], + [ [qw{. ◸ △ ◹ . ◁ ◇ ▷ . ◺ ▽ ◿}]], ); print "
\n\n"; print "
\n", "

Line drawing

\n\n"; -print table(@$_) for ( - [ 4 => [qw{. ┌ ┬ ┐ . ├ ┼ ┤ . └ ┴ ┘}]], - [ 4 => [qw{. ┏ ┳ ┓ . ┣ ╋ ┫ . ┗ ┻ ┛}]], - [ 3 => [qw{. ┍ ┯ ┑ . ┝ ┿ ┥ . ┕ ┷ ┙}]], - [ 3 => [qw{. ┎ ┰ ┒ . ┠ ╂ ┨ . ┖ ┸ ┚}]], - [ 4 => [qw{ +print glyph_table(@$_) for ( + [ [qw{. ┌ ┬ ┐ . ├ ┼ ┤ . └ ┴ ┘}]], + [ [qw{. ┏ ┳ ┓ . ┣ ╋ ┫ . ┗ ┻ ┛}]], + [ [qw{. ┍ ┯ ┑ . ┝ ┿ ┥ . ┕ ┷ ┙}]], + [ [qw{. ┎ ┰ ┒ . ┠ ╂ ┨ . ┖ ┸ ┚}]], + [ [qw{ . ╴ ─ ╌ ┄ ┈ ╶ ╾ . ╸ ━ ╍ ┅ ┉ ╺ ╼ . ╵ │ ╎ ┆ ┊ ╷ ╿ . ╹ ┃ ╏ ┇ ┋ ╻ ╽ }]], - [ 1 => [qw{. ╱ ╳ ╲ }]], - [ 4 => [qw{. ╔ ╦ ╗ ═ . ╠ ╬ ╣ ║ . ╚ ╩ ╝ - }]], - [ 3 => [qw{. ╒ ╤ ╕ . ╞ ╪ ╡ . ╘ ╧ ╛ }]], - [ 3 => [qw{. ╓ ╥ ╖ . ╟ ╫ ╢ . ╙ ╨ ╜ }]], + [ [qw{. ╱ ╳ ╲ }]], + [ [qw{. ╔ ╦ ╗ ═ . ╠ ╬ ╣ ║ . ╚ ╩ ╝ - }]], + [ [qw{. ╒ ╤ ╕ . ╞ ╪ ╡ . ╘ ╧ ╛ }]], + [ [qw{. ╓ ╥ ╖ . ╟ ╫ ╢ . ╙ ╨ ╜ }]], ); print "
\n\n"; print "
\n", "

Blocks

\n\n"; -print table(@$_) for ( - [ 3 => [qw{. ▘ ▀ ▝ . ▌ █ ▐ . ▖ ▄ ▗ }]], - [ 3 => [qw{. ░ . ▒ . ▓ }]], - [ 2 => [qw{. ▛ ▚ ▟ . ▙ ▞ ▜ }]], - [ 2 => [qw{. ▁ ▂ ▃ ▄ ▅ ▆ ▇ ▔ . ▏ ▎ ▍ ▌ ▋ ▊ ▉ ▕ }]], - [ 3 => [qw{. □ ▣ ■ . ▤ ▦ ▥ . ▧ ▩ ▨}]], +print glyph_table(@$_) for ( + [ [qw{. ▘ ▀ ▝ . ▌ █ ▐ . ▖ ▄ ▗ }]], + [ [qw{. ░ . ▒ . ▓ }]], + [ [qw{. ▛ ▚ ▟ . ▙ ▞ ▜ }]], + [ [qw{. ▁ ▂ ▃ ▄ ▅ ▆ ▇ ▔ . ▏ ▎ ▍ ▌ ▋ ▊ ▉ ▕ }]], + [ [qw{. □ ▣ ■ . ▤ ▦ ▥ . ▧ ▩ ▨}]], ); print "
\n\n"; print "
\n", "

Signs

\n\n"; -print table(@$_) for ( - [ 8 => [qw{. ¤ ¢ ₥ € £ ₨ $ ¥ . ₫ ₭ ₦ ₱ ₧ ₮ ₩ ₪}]], - [ 4 => [qw{. ♠ ♡ ♢ ♣ . ♤ ♥ ♦ ♧}]], - [ 5 => [qw{. ☉ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇}]], # solar - [12 => [qw{. ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓}]], # zodiac +print glyph_table(@$_) for ( + [ [qw{. ¤ ¢ ₥ € £ ₨ $ ¥ . ₫ ₭ ₦ ₱ ₧ ₮ ₩ ₪}]], + [ [qw{. ♠ ♡ ♢ ♣ . ♤ ♥ ♦ ♧}]], + [ [qw{. ☉ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇}]], # solar + [ [qw{. ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓}]], # zodiac ); print "
\n\n"; print "
\n", "

IPA

\n\n"; -print table(@$_) for ( +print glyph_table(@$_) for ( [ - 12 => [qw{ + [qw{ . p p̪ > > t ʈ c k q = ʡ ʔ . b b̪ > > d ɖ ɟ ɡ ɢ = - = . m ɱ > > n ɳ ɲ ŋ ɴ = = = @@ -199,7 +199,7 @@ print table(@$_) for ( ], ], [ - 6 => [qw{ + [qw{ . i y ɨ ʉ ɯ u . - ɪ ʏ - ʊ - . e ø ɘ ɵ ɤ o @@ -215,7 +215,7 @@ print table(@$_) for ( print "
\n\n"; print "
\n", "

Alphabetics

\n\n"; -print table(1, +print glyph_table( [ map { ('.', split //, $_->[1]) } @$_ ], [ map { $_->[0] } @$_ ], ) for [ @@ -227,9 +227,9 @@ print table(1, print "
\n\n"; print "
\n", "

Japanese

\n\n"; -print table(@$_) for ( +print glyph_table(@$_) for ( [ - 1 => [qw{ + [qw{ . あ い う え お = . か き く け こ = . さ し す せ そ = @@ -245,7 +245,7 @@ print table(@$_) for ( [qw{A I U E O}, ''], ], [ - 1 => [qw{ + [qw{ . が ぎ ぐ げ ご . ざ じ ず ぜ ぞ . だ ぢ づ で ど @@ -256,7 +256,7 @@ print table(@$_) for ( [qw{A I U E O}], ], [ - 1 => [qw{ + [qw{ . ア イ ウ エ オ ー . カ キ ク ケ コ = . サ シ ス セ ソ = @@ -272,7 +272,7 @@ print table(@$_) for ( [qw{A I U E O}, ''], ], [ - 1 => [qw{ + [qw{ . ガ ギ グ ゲ ゴ . ザ ジ ズ ゼ ゾ . ダ ヂ ヅ デ ド -- 2.30.0