Move registered trademark symbol (U+00A9, ®) to superscript (#679).

This commit is contained in:
be5invis 2020-08-26 20:34:26 -07:00
parent 2fb9bef84a
commit bb44b4d867
5 changed files with 38 additions and 20 deletions

View file

@ -1 +1,2 @@
* Increase size of bullet characters (#678). * Increase size of bullet characters (#678).
* Move registered trademark symbol (U+00A9, ®) to superscript (#679).

View file

@ -132,6 +132,7 @@ export all : define [buildGlyphs para recursive recursiveCodes] : begin
run-glyph-module '../glyphs/symbol/punctuation.js' run-glyph-module '../glyphs/symbol/punctuation.js'
run-glyph-module '../glyphs/symbol/arrow.js' run-glyph-module '../glyphs/symbol/arrow.js'
run-glyph-module '../glyphs/symbol/geometric.js' run-glyph-module '../glyphs/symbol/geometric.js'
run-glyph-module '../glyphs/symbol/enclosure.js'
run-glyph-module '../glyphs/symbol/math.js' run-glyph-module '../glyphs/symbol/math.js'
run-glyph-module '../glyphs/symbol/letter.js' run-glyph-module '../glyphs/symbol/letter.js'
run-glyph-module '../glyphs/symbol/braille.js' run-glyph-module '../glyphs/symbol/braille.js'

View file

@ -429,7 +429,6 @@ glyph-block AutoBuild-Enclosure : begin
local compositions : list local compositions : list
list 0xA9 {'C'} WideWidth2 list 0xA9 {'C'} WideWidth2
list 0x1F12F {'turnC'} WideWidth2 list 0x1F12F {'turnC'} WideWidth2
list 0xAE {'R'} WideWidth2
list 0x2117 {'P'} WideWidth2 list 0x2117 {'P'} WideWidth2
list 0x24EA {'zero.lnum'} WideWidth1 list 0x24EA {'zero.lnum'} WideWidth1
foreach [j : range 1 till 9] : compositions.push : list foreach [j : range 1 till 9] : compositions.push : list
@ -601,7 +600,7 @@ glyph-block AutoBuild-Enclosure : begin
begin WideWidth1 begin WideWidth1
createDottedGlyphs 2 'period' compositions createDottedGlyphs 2 'period' compositions
glyph-block Autobuild-Fractions : begin glyph-block Autobuild-Fractions : if [not recursive] : begin
glyph-block-import CommonShapes glyph-block-import CommonShapes
glyph-block-import Common-Derivatives glyph-block-import Common-Derivatives
glyph-block-import Recursive-Build : Miniature Thinner glyph-block-import Recursive-Build : Miniature Thinner
@ -670,7 +669,7 @@ glyph-block Autobuild-Fractions : begin
define [createFractions records] : createFracImpl 'frac' records [adviceBlackness 3] 0.55 0.05 define [createFractions records] : createFracImpl 'frac' records [adviceBlackness 3] 0.55 0.05
define [createPowerlineStacks records] : createFracImpl 'pwlStack' records 0 0.6 0.15 define [createPowerlineStacks records] : createFracImpl 'pwlStack' records 0 0.6 0.15
if [not recursive] : createFractions : list createFractions : list
list 0x00BC { 'one.lnum' 'four.lnum' } list 0x00BC { 'one.lnum' 'four.lnum' }
list 0x00BD { 'one.lnum' 'two.lnum' } list 0x00BD { 'one.lnum' 'two.lnum' }
list 0x00BE { 'three.lnum' 'four.lnum' } list 0x00BE { 'three.lnum' 'four.lnum' }
@ -697,12 +696,12 @@ glyph-block Autobuild-Fractions : begin
list 0x2105 { 'C' 'O' } list 0x2105 { 'C' 'O' }
list 0x2106 { 'C' 'U' } list 0x2106 { 'C' 'U' }
if [not recursive] : createPowerlineStacks : list createPowerlineStacks : list
# Powerline LN symbol # Powerline LN symbol
list 0xE0A1 { 'L' 'N' } list 0xE0A1 { 'L' 'N' }
list 0xE0A3 { 'C' 'N' } list 0xE0A3 { 'C' 'N' }
glyph-block AutoBuild-Accented-Equal : begin glyph-block AutoBuild-Accented-Equal : if [not recursive] : begin
glyph-block-import CommonShapes glyph-block-import CommonShapes
glyph-block-import Common-Derivatives glyph-block-import Common-Derivatives
glyph-block-import Recursive-Build : Miniature Thinner glyph-block-import Recursive-Build : Miniature Thinner
@ -757,30 +756,32 @@ glyph-block AutoBuild-Accented-Equal : begin
applyRelations jobs.relApplications applyRelations jobs.relApplications
if [not recursive] : createAccentedOp 'equal' 7 0.4 0 aboveMarkBot : list createAccentedOp 'equal' 7 0.4 0 aboveMarkBot : list
list 0x2257 {"o"} list 0x2257 {"o"}
list 0x225e {"m"} list 0x225e {"m"}
list 0x225F {"question"} list 0x225F {"question"}
if [not recursive] : createAccentedOp 'equal' 5 0.8 0 aboveMarkBot : list createAccentedOp 'equal' 5 0.8 0 aboveMarkBot : list
list 0x2258 {"symbolMidTie"} list 0x2258 {"symbolMidTie"}
if [not recursive] : createAccentedOp 'equal' 7 0.5 0 (aboveMarkBot - (SymbolMid - XH / 2)) : list createAccentedOp 'equal' 7 0.5 0 (aboveMarkBot - (SymbolMid - XH / 2)) : list
list 0x2259 {"triangularWedge.NWID"} list 0x2259 {"triangularWedge.NWID"}
list 0x225a {"triangularVee.NWID"} list 0x225a {"triangularVee.NWID"}
list 0x225b {"asterisk.low"} list 0x225b {"asterisk.low"}
list 0x225c {"whitetriangleup.NWID"} list 0x225c {"whitetriangleup.NWID"}
if [not recursive] : createAccentedOp 'sqrt' 5 0.5 (-Width / 4) [mix OperBot OperTop 0.6] : list createAccentedOp 'sqrt' 5 0.5 (-Width / 4) [mix OperBot OperTop 0.6] : list
list 0x221b {"three.lnum"} list 0x221b {"three.lnum"}
list 0x221c {"four.lnum"} list 0x221c {"four.lnum"}
if [not recursive] : createAccentedOp 'equal' 8 0.3 0 aboveMarkBot : list createAccentedOp 'equal' 8 0.3 0 aboveMarkBot : list
list 0x225d {"d" "e" "f"} list 0x225d {"d" "e" "f"}
if [not recursive] : createAccentedOp 'markDemoBaseSpace' 6 0.45 0 (aboveMarkBot - (CAP / 2 - XH / 2)) : list createAccentedOp 'markDemoBaseSpace' 6 0.40 0 (aboveMarkBot - (CAP * 0.40 - XH * 0.40)) : list
list 0xAE {"R" "combRingCapDiv1"}
createAccentedOp 'markDemoBaseSpace' 6 0.45 0 (aboveMarkBot - (CAP * 0.45 - XH * 0.45)) : list
list 0x2122 {"T" "M"} list 0x2122 {"T" "M"}
list 0x2120 {"S" "M"} list 0x2120 {"S" "M"}
list 0x1F16A {"M" "C"} list 0x1F16A {"M" "C"}
list 0x1F16B {"M" "D"} list 0x1F16B {"M" "D"}
list 0x1F16C {"M" "R"} list 0x1F16C {"M" "R"}
glyph-block Autobuild-Ligatures : begin glyph-block Autobuild-Ligatures : if [not recursive] : begin
glyph-block-import CommonShapes glyph-block-import CommonShapes
glyph-block-import Common-Derivatives glyph-block-import Common-Derivatives
glyph-block-import Recursive-Build : Miniature Thinner glyph-block-import Recursive-Build : Miniature Thinner
@ -854,7 +855,7 @@ glyph-block Autobuild-Ligatures : begin
applyRelations jobs.relApplications applyRelations jobs.relApplications
define stdShrink : clamp 0.75 0.9 : linreg 72 0.75 108 0.9 Stroke define stdShrink : clamp 0.75 0.9 : linreg 72 0.75 108 0.9 Stroke
if [not recursive] : createLigatures 'compatLigature1' stdShrink stdShrink 1 1 : list createLigatures 'compatLigature1' stdShrink stdShrink 1 1 : list
list 0x1C4 { 'D' 'Zcaron' } list 0x1C4 { 'D' 'Zcaron' }
list 0x1C5 { 'D' 'zcaron' } list 0x1C5 { 'D' 'zcaron' }
list 0x1C6 { 'd' 'zcaron' } list 0x1C6 { 'd' 'zcaron' }
@ -876,11 +877,11 @@ glyph-block Autobuild-Ligatures : begin
list 0x2048 { 'question' 'exclam' } list 0x2048 { 'question' 'exclam' }
list 0x2049 { 'exclam' 'question' } list 0x2049 { 'exclam' 'question' }
list 0x1F190 { 'D' 'J' } WideWidth1 list 0x1F190 { 'D' 'J' } WideWidth1
if [not recursive] : createLigatures 'temperature' 0.7 0.8 0.75 0.9 : list createLigatures 'temperature' 0.7 0.8 0.75 0.9 : list
list 0x2103 { 'degree' 'C' } list 0x2103 { 'degree' 'C' }
list 0x2109 { 'degree' 'F' } list 0x2109 { 'degree' 'F' }
glyph-block Autobuild-Pnonetic-Ligatures : begin glyph-block Autobuild-Pnonetic-Ligatures : if [not recursive] : begin
glyph-block-import CommonShapes glyph-block-import CommonShapes
glyph-block-import Common-Derivatives glyph-block-import Common-Derivatives
glyph-block-import Recursive-Build : Miniature Thinner glyph-block-import Recursive-Build : Miniature Thinner
@ -941,7 +942,7 @@ glyph-block Autobuild-Pnonetic-Ligatures : begin
include : Italify include : Italify
define stdShrink : clamp 0.75 0.9 : linreg 72 0.75 108 0.9 Stroke define stdShrink : clamp 0.75 0.9 : linreg 72 0.75 108 0.9 Stroke
if [not recursive] : createPhoneticLigatures stdShrink stdShrink 1 1 : list createPhoneticLigatures stdShrink stdShrink 1 1 : list
list 0x02A3 'd' 'z' list 0x02A3 'd' 'z'
list 0x02A4 'd' 'ezh' list 0x02A4 'd' 'ezh'
list 0x02A5 'd' 'zcurlytail' list 0x02A5 'd' 'zcurlytail'
@ -954,7 +955,7 @@ glyph-block Autobuild-Pnonetic-Ligatures : begin
list 0xAB66 'd' 'zrtailBR' list 0xAB66 'd' 'zrtailBR'
list 0xAB67 't.phoneticLeft' 'srtail' list 0xAB67 't.phoneticLeft' 'srtail'
glyph-block Autobuild-Grouped-Digits : begin glyph-block Autobuild-Grouped-Digits : if [not recursive] : begin
glyph-block-import CommonShapes glyph-block-import CommonShapes
glyph-block-import Common-Derivatives glyph-block-import Common-Derivatives
@ -977,7 +978,7 @@ glyph-block Autobuild-Grouped-Digits : begin
: else : begin : else : begin
CvDecompose.set currentGlyph { gid } CvDecompose.set currentGlyph { gid }
if [not recursive] : createGroupedDigits 0.9 3.0 { createGroupedDigits 0.9 3.0 {
'zero.lnum' 'one.lnum' 'two.lnum' 'three.lnum' 'four.lnum' 'zero.lnum' 'one.lnum' 'two.lnum' 'three.lnum' 'four.lnum'
'five.lnum' 'six.lnum' 'seven.lnum' 'eight.lnum' 'nine.lnum' 'five.lnum' 'six.lnum' 'seven.lnum' 'eight.lnum' 'nine.lnum'
} }

View file

@ -0,0 +1,16 @@
$$include '../../meta/macros.ptl'
import [mix linreg clamp fallback] from '../../support/utils'
import [designParameters] from '../../meta/aesthetics'
glyph-module
glyph-block Symbol-Combining-Enclosure : begin
glyph-block-import CommonShapes
glyph-block-import Common-Derivatives
create-glyph 'combRingCapDiv1' : glyph-proc
set-width 0
define innerRad : CAP / 2 + CAP / 8
include : RingStrokeAt (-Width / 2) (CAP / 2) (innerRad + Stroke) Stroke

View file

@ -1,4 +1,3 @@
###### GEOMETRIC SHAPES
$$include '../../meta/macros.ptl' $$include '../../meta/macros.ptl'
import [mix linreg clamp fallback] from '../../support/utils' import [mix linreg clamp fallback] from '../../support/utils'