From ff1edfc24c6286fd48c3c5c5628968f78b79b3a0 Mon Sep 17 00:00:00 2001 From: be5invis Date: Thu, 9 Mar 2023 23:20:10 -0800 Subject: [PATCH] Fixups --- changes/20.0.1.md | 15 ---------- changes/20.1.0.md | 37 ++++++++++++++++++++++++ font-src/glyphs/letter/latin/lower-d.ptl | 5 ++-- font-src/glyphs/letter/latin/lower-h.ptl | 8 ++--- font-src/glyphs/letter/latin/lower-n.ptl | 9 ++---- font-src/glyphs/letter/latin/s.ptl | 10 +++---- utility/copy-char-name-to-markdown.mjs | 8 +++-- 7 files changed, 53 insertions(+), 39 deletions(-) delete mode 100644 changes/20.0.1.md create mode 100644 changes/20.1.0.md diff --git a/changes/20.0.1.md b/changes/20.0.1.md deleted file mode 100644 index 34e117665..000000000 --- a/changes/20.0.1.md +++ /dev/null @@ -1,15 +0,0 @@ -* Make ASCII marks (grave, caret, tilde) more significant (#1576). -* Optimize shape for Italic long-dotted-oval zero (#1577). -* Fix ear-cuts of capital Y under Italics (#1578). -* Fix disconnected Cedillas for serifed italic glyphs on heavier weights (#1579). -* Fix disconnected underbars for Abkhasian Che (#1579). -* Fix shape of heavy-weight serifed Latin C With Hook, Epsilons (#1580). -* Fix heavy-weight ampersand's top arc alignment (#1581). -* Fix shape of heavy-weight lowercase r (#1582). -* Optimize shape for Sulzbacher Eszet (#1583). -* Fix missing serifs of Cyrillic Koppa (#1584). -* Fix shape of heavy-weight Rs (#1585). -* Fix shape of Latin Small Letter Y with Hook under heavy weights (#1588, #1589). -* Fix shape of Bashkir Ka under heavy weights (#1590). -* Fix artifacts of certain K-related letters (#1591). -* Optimize shape of small S (#1592). diff --git a/changes/20.1.0.md b/changes/20.1.0.md new file mode 100644 index 000000000..5fe5d061a --- /dev/null +++ b/changes/20.1.0.md @@ -0,0 +1,37 @@ +* Add characters: + - MEDIUM MATHEMATICAL SPACE (`U+205F`). + - SQUARE LOZENGE (`U+2311`). + - TURNED NOT SIGN (`U+2319`). + - SOFTWARE-FUNCTION SYMBOL (`U+2394`). + - PLUS SIGN WITH DOT BELOW (`U+2A25`). + - MINUS SIGN WITH DOT BELOW (`U+2A2A`). + - EQUALS SIGN WITH DOT BELOW (`U+2A66`). + - LATIN CAPITAL LETTER H WITH DESCENDER (`U+2C67`) (#1572). + - LATIN SMALL LETTER H WITH DESCENDER (`U+2C68`) (#1572). + - RING POINT (`U+2E30`). + - WORD SEPARATOR MIDDLE DOT (`U+2E31`). + - LATIN LETTER SINOLOGICAL DOT (`U+A78F`). + - LATIN CAPITAL LETTER N WITH DESCENDER (`U+A790`) (#1572). + - LATIN SMALL LETTER N WITH DESCENDER (`U+A791`) (#1572). + - LATIN CAPITAL LETTER OMEGA (`U+A7B6`) (#1572). + - LATIN SMALL LETTER OMEGA (`U+A7B7`) (#1572). + - LATIN CAPITAL LETTER D WITH SHORT STROKE OVERLAY (`U+A7C7`) (#1572). + - LATIN SMALL LETTER D WITH SHORT STROKE OVERLAY (`U+A7C8`) (#1572). + - LATIN CAPITAL LETTER S WITH SHORT STROKE OVERLAY (`U+A7C9`) (#1572). + - LATIN SMALL LETTER S WITH SHORT STROKE OVERLAY (`U+A7CA`) (#1572). + - LATIN SMALL LETTER OPEN O WITH STROKE (`U+AB3F`) (#1572). +* Make ASCII marks (grave, caret, tilde) more significant (#1576). +* Optimize shape for Italic long-dotted-oval zero (#1577). +* Fix ear-cuts of capital Y under Italics (#1578). +* Fix disconnected Cedillas for serifed italic glyphs on heavier weights (#1579). +* Fix disconnected underbars for Abkhasian Che (#1579). +* Fix shape of heavy-weight serifed Latin C With Hook, Epsilons (#1580). +* Fix heavy-weight ampersand's top arc alignment (#1581). +* Fix shape of heavy-weight lowercase r (#1582). +* Optimize shape for Sulzbacher Eszet (#1583). +* Fix missing serifs of Cyrillic Koppa (#1584). +* Fix shape of heavy-weight Rs (#1585). +* Fix shape of Latin Small Letter Y with Hook under heavy weights (#1588, #1589). +* Fix shape of Bashkir Ka under heavy weights (#1590). +* Fix artifacts of certain K-related letters (#1591). +* Optimize shape of small S (#1592). diff --git a/font-src/glyphs/letter/latin/lower-d.ptl b/font-src/glyphs/letter/latin/lower-d.ptl index 25c490d91..3fbace2a7 100644 --- a/font-src/glyphs/letter/latin/lower-d.ptl +++ b/font-src/glyphs/letter/latin/lower-d.ptl @@ -167,9 +167,8 @@ glyph-block Letter-Latin-Lower-D : begin include : Translate (Width - HalfStroke) 0 include [refer-glyph base] AS_BASE - create-glyph 'dbar' 0xA7C8 : glyph-proc - include [refer-glyph 'd'] AS_BASE - include : HBar.m (SB + OX + 1) (RightSB - OX - 1) (XH * 0.5) OverlayStroke + derive-composites 'dBar' 0xA7C8 'd' + HBar.m (SB - OX) (RightSB + OX) (XH * 0.5) OverlayStroke glyph-block-import Letter-Blackboard : BBS BBD BBBarRight create-glyph 'mathbb/d' 0x1D555 : glyph-proc diff --git a/font-src/glyphs/letter/latin/lower-h.ptl b/font-src/glyphs/letter/latin/lower-h.ptl index a5889da5d..6975e03ec 100644 --- a/font-src/glyphs/letter/latin/lower-h.ptl +++ b/font-src/glyphs/letter/latin/lower-h.ptl @@ -97,7 +97,6 @@ glyph-block Letter-Latin-Lower-H : begin turned 'turnh' 0x265 'h' Middle (XH / 2) [MarkSet.p] select-variant 'hBar' 0x127 (follow -- 'h') - derive-composites 'hDescender' 0x2C68 'h' [CyrDescender.rSideJut RightSB 0] select-variant 'cyrl/shha' 0x4BB (shapeFrom -- 'h') derive-composites 'cyrl/shhaDescender' 0x527 'cyrl/shha' [CyrDescender.rSideJut RightSB 0] @@ -107,11 +106,8 @@ glyph-block Letter-Latin-Lower-H : begin select-variant 'heng' 0xA727 select-variant 'cyrl/dje' 0x452 (follow -- 'heng') (shapeFrom -- 'hengBar') - derive-composites 'hPalatalHook' 0xA795 'h/descBase' - PalatalHook.r - xLink -- RightSB - x -- RightSB + SideJut - y -- 0 + derive-composites 'hPalatalHook' 0xA795 'h/descBase' [PalatalHook.rSideJut RightSB 0] + derive-composites 'hDescender' 0x2C68 'h/descBase' [CyrDescender.rSideJut RightSB 0] create-glyph 'hookturnh' 0x2AE : glyph-proc include : nShoulder diff --git a/font-src/glyphs/letter/latin/lower-n.ptl b/font-src/glyphs/letter/latin/lower-n.ptl index be159492b..feb5970f3 100644 --- a/font-src/glyphs/letter/latin/lower-n.ptl +++ b/font-src/glyphs/letter/latin/lower-n.ptl @@ -155,14 +155,9 @@ glyph-block Letter-Latin-Lower-N : begin CreateAccentedComposition 'nTildeOver' 0x1D70 'n' 'tildeOverWide' - derive-composites 'nDescender' 0xA791 'n' [CyrDescender.rSideJut RightSB 0] - + derive-composites 'nDescender' 0xA791 'n/descBase' [CyrDescender.rSideJut RightSB 0] + derive-composites 'nPalatalHook' 0x1D87 'n/descBase' [PalatalHook.rSideJut RightSB 0] derive-composites 'cyrl/peDescender.italic' null 'cyrl/peItalicDescBase' [CyrDescender.rSideJut RightSB 0] - derive-composites 'nPalatalHook' 0x1D87 'n/descBase' - PalatalHook.r - xLink -- RightSB - x -- RightSB + SideJut - y -- 0 do "n with Apostrophe" derive-glyphs 'nApostrophe/comma' null 'commaAbove/asPunctuation' : function [src gr] : glyph-proc diff --git a/font-src/glyphs/letter/latin/s.ptl b/font-src/glyphs/letter/latin/s.ptl index b9826d08b..f3d1bcb4c 100644 --- a/font-src/glyphs/letter/latin/s.ptl +++ b/font-src/glyphs/letter/latin/s.ptl @@ -359,13 +359,11 @@ glyph-block Letter-Latin-S : begin derive-composites 'SCedilla' 0x15E 'S' 'cedillaExtShapeBelowOArc' derive-composites 'sCedilla' 0x15F 's' 'cedillaExtShapeBelowSOArc' - create-glyph 'Sbar' 0xA7C9 : glyph-proc - include [refer-glyph 'S'] AS_BASE - include : HBar.m (SB + OX + 1) (RightSB - OX - 1) (CAP * 0.5) OverlayStroke + derive-composites 'SBar' 0xA7C9 'S' + HBar.m SB RightSB (CAP * 0.5) OverlayStroke - create-glyph 'sbar' 0xA7CA : glyph-proc - include [refer-glyph 's'] AS_BASE - include : HBar.m (SB + OX + 1) (RightSB - OX - 1) (XH * 0.5) OverlayStroke + derive-composites 'sBar' 0xA7CA 's' + HBar.m SB RightSB (XH * 0.5) OverlayStroke create-glyph 'mathbb/S' 0x1D54A : glyph-proc include : MarkSet.capital diff --git a/utility/copy-char-name-to-markdown.mjs b/utility/copy-char-name-to-markdown.mjs index 3f4617711..6283a2bcb 100644 --- a/utility/copy-char-name-to-markdown.mjs +++ b/utility/copy-char-name-to-markdown.mjs @@ -1,7 +1,11 @@ import ucdNames from "@unicode/unicode-15.0.0/Names/index.js"; -for (let i = 2; i < process.argv.length; i++) { - const lch = parseInt(process.argv[i], 16); +const codes = process.argv + .slice(2) + .map(x => parseInt(x, 16)) + .sort((a, b) => a - b); + +for (const lch of codes) { const name = ucdNames.get(lch); console.log(" -", name, `(\`U+${lch.toString(16).toUpperCase().padStart(4, "0")}\`).`); }