diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-27 12:04:23 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-27 12:04:36 +0100 |
| commit | 1de53730bce0bd3f9de89db1da7c19b7889b9a75 (patch) | |
| tree | e2746f4853a5a8e99f32e8c52d6e4b4f411c1933 /library/src/text | |
| parent | 13efa128c855637a7fe3351a4579383359d1be1b (diff) | |
Symbol values and modules
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/emoji.rs | 1355 | ||||
| -rw-r--r-- | library/src/text/mod.rs | 6 | ||||
| -rw-r--r-- | library/src/text/symbol.rs | 111 | ||||
| -rw-r--r-- | library/src/text/symbols.rs | 460 |
4 files changed, 1819 insertions, 113 deletions
diff --git a/library/src/text/emoji.rs b/library/src/text/emoji.rs new file mode 100644 index 00000000..f38f2738 --- /dev/null +++ b/library/src/text/emoji.rs @@ -0,0 +1,1355 @@ +use typst::model::{symbols, Module, Scope}; + +/// A module with all emoji. +pub fn emoji() -> Module { + let mut scope = Scope::new(); + define(&mut scope); + Module::new("emoji").with_scope(scope) +} + +symbols! { + define, + + abacus: '๐งฎ', + abc: '๐ค', + abcd: '๐ก', + ABCD: '๐ ', + accordion: '๐ช', + aesculapius: 'โ', + airplane: [ + 'โ', + "landing": '๐ฌ', + "small": '๐ฉ', + "takeoff": '๐ซ', + ], + alembic: 'โ', + alien: ['๐ฝ', "monster": '๐พ'], + ambulance: '๐', + amphora: '๐บ', + anchor: 'โ', + anger: '๐ข', + ant: '๐', + apple: ["green": '๐', "red": '๐'], + arm: ["mech": '๐ฆพ', "muscle": '๐ช', "selfie": '๐คณ'], + arrow: [ + "r.filled": 'โก', + "r.hook": 'โช', + "r.soon": '๐', + "l.filled": 'โฌ
', + "l.hook": 'โฉ', + "l.back": '๐', + "l.end": '๐', + "t.filled": 'โฌ', + "t.curve": 'โคด', + "t.top": '๐', + "b.filled": 'โฌ', + "b.curve": 'โคต', + "l.r": 'โ', + "l.r.on": '๐', + "t.b": 'โ', + "bl": 'โ', + "br": 'โ', + "tl": 'โ', + "tr": 'โ', + ], + arrows: ["cycle": '๐'], + ast: ['*', "box": 'โณ'], + atm: '๐ง', + atom: 'โ', + aubergine: '๐', + avocado: '๐ฅ', + axe: '๐ช', + baby: ['๐ถ', "angel": '๐ผ', "box": '๐ผ'], + babybottle: '๐ผ', + backpack: '๐', + bacon: '๐ฅ', + badger: '๐ฆก', + badminton: '๐ธ', + bagel: '๐ฅฏ', + baggageclaim: '๐', + baguette: '๐ฅ', + balloon: '๐', + ballot: ["check": 'โ'], + ballotbox: '๐ณ', + banana: '๐', + banjo: '๐ช', + bank: '๐ฆ', + barberpole: '๐', + baseball: 'โพ', + basecap: '๐งข', + basket: '๐งบ', + basketball: ['โน', "ball": '๐'], + bat: '๐ฆ', + bathtub: ['๐', "foam": '๐'], + battery: ['๐', "low": '๐ชซ'], + beach: ["palm": '๐', "umbrella": '๐'], + beads: '๐ฟ', + beans: '๐ซ', + bear: '๐ป', + beaver: '๐ฆซ', + bed: ['๐', "person": '๐'], + bee: '๐', + beer: ['๐บ', "clink": '๐ป'], + beetle: ['๐ชฒ', "lady": '๐'], + bell: ['๐', "ding": '๐', "not": '๐'], + bento: '๐ฑ', + bicyclist: ['๐ด', "mountain": '๐ต'], + bike: ['๐ฒ', "not": '๐ณ'], + bikini: '๐', + billiards: '๐ฑ', + bin: '๐', + biohazard: 'โฃ', + bird: '๐ฆ', + bison: '๐ฆฌ', + blood: '๐ฉธ', + blouse: '๐', + blowfish: '๐ก', + blueberries: '๐ซ', + boar: '๐', + boat: [ + "sail": 'โต', + "row": '๐ฃ', + "motor": '๐ฅ', + "speed": '๐ค', + "canoe": '๐ถ', + ], + bolt: '๐ฉ', + bomb: '๐ฃ', + bone: '๐ฆด', + book: [ + "red": '๐', + "blue": '๐', + "green": '๐', + "orange": '๐', + "spiral": '๐', + "open": '๐', + ], + bookmark: '๐', + books: '๐', + boomerang: '๐ช', + bordercontrol: '๐', + bouquet: '๐', + bow: '๐น', + bowl: ["spoon": '๐ฅฃ', "steam": '๐'], + bowling: '๐ณ', + boxing: '๐ฅ', + boy: '๐ฆ', + brain: '๐ง ', + bread: '๐', + brick: '๐งฑ', + bride: '๐ฐ', + bridge: ["fog": '๐', "night": '๐'], + briefcase: '๐ผ', + briefs: '๐ฉฒ', + brightness: ["high": '๐', "low": '๐
'], + broccoli: '๐ฅฆ', + broom: '๐งน', + brush: '๐', + bubble: [ + "speech.r": '๐ฌ', + "speech.l": '๐จ', + "thought": '๐ญ', + "anger.r": '๐ฏ', + ], + bubbles: '๐ซง', + bubbletea: '๐ง', + bucket: '๐ชฃ', + buffalo: ["water": '๐'], + bug: '๐', + builder: '๐ท', + burger: '๐', + burrito: '๐ฏ', + bus: [ + '๐', + "front": '๐', + "small": '๐', + "stop": '๐', + "trolley": '๐', + ], + butter: '๐ง', + butterfly: '๐ฆ', + button: ['๐ฒ', "alt": '๐ณ', "radio": '๐'], + cabinet: ["file": '๐'], + cablecar: ['๐ ', "small": '๐ก'], + cactus: '๐ต', + cake: [ + '๐', + "fish": '๐ฅ', + "moon": '๐ฅฎ', + "slice": '๐ฐ', + ], + calendar: ['๐
', "spiral": '๐', "tearoff": '๐'], + camel: ['๐ซ', "dromedar": '๐ช'], + camera: [ + '๐ท', + "flash": '๐ธ', + "movie": '๐ฅ', + "movie.box": '๐ฆ', + "video": '๐น', + ], + camping: '๐', + can: '๐ฅซ', + candle: '๐ฏ', + candy: '๐ฌ', + cane: '๐ฆฏ', + car: [ + '๐', + "front": '๐', + "pickup": '๐ป', + "police": '๐', + "police.front": '๐', + "racing": '๐', + "rickshaw": '๐บ', + "suv": '๐', + ], + card: ["credit": '๐ณ', "id": '๐ชช'], + cardindex: '๐', + carrot: '๐ฅ', + cart: '๐', + cassette: '๐ผ', + castle: ["eu": '๐ฐ', "jp": '๐ฏ'], + cat: [ + '๐', + "face": '๐ฑ', + "face.angry": '๐พ', + "face.cry": '๐ฟ', + "face.heart": '๐ป', + "face.joy": '๐น', + "face.kiss": '๐ฝ', + "face.laugh": '๐ธ', + "face.shock": '๐', + "face.smile": '๐บ', + "face.smirk": '๐ผ', + ], + chain: '๐', + chains: 'โ', + chair: '๐ช', + champagne: '๐พ', + chart: [ + "bar": '๐', + "up": '๐', + "down": '๐', + "yen.up": '๐น', + ], + checkmark: ["heavy": 'โ', "box": 'โ
'], + cheese: '๐ง', + cherries: '๐', + chess: 'โ', + chestnut: '๐ฐ', + chicken: [ + '๐', + "baby": '๐ฅ', + "baby.egg": '๐ฃ', + "baby.head": '๐ค', + "leg": '๐', + "male": '๐', + ], + child: '๐ง', + chipmunk: '๐ฟ', + chocolate: '๐ซ', + chopsticks: '๐ฅข', + church: ['โช', "love": '๐'], + cigarette: ['๐ฌ', "not": '๐ญ'], + circle: [ + "black": 'โซ', + "blue": '๐ต', + "brown": '๐ค', + "green": '๐ข', + "orange": '๐ ', + "purple": '๐ฃ', + "white": 'โช', + "red": '๐ด', + "yellow": '๐ก', + "stroked": 'โญ', + ], + circus: '๐ช', + city: [ + '๐', + "dusk": '๐', + "night": '๐', + "sunset": '๐', + ], + clamp: '๐', + clapperboard: '๐ฌ', + climbing: '๐ง', + clip: '๐', + clipboard: '๐', + clips: '๐', + clock: [ + "one": '๐', + "one.thirty": '๐', + "two": '๐', + "two.thirty": '๐', + "three": '๐', + "three.thirty": '๐', + "four": '๐', + "four.thirty": '๐', + "five": '๐', + "five.thirty": '๐ ', + "six": '๐', + "six.thirty": '๐ก', + "seven": '๐', + "seven.thirty": '๐ข', + "eight": '๐', + "eight.thirty": '๐ฃ', + "nine": '๐', + "nine.thirty": '๐ค', + "ten": '๐', + "ten.thirty": '๐ฅ', + "eleven": '๐', + "eleven.thirty": '๐ฆ', + "twelve": '๐', + "twelve.thirty": '๐ง', + "alarm": 'โฐ', + "old": '๐ฐ', + "timer": 'โฒ', + ], + cloud: [ + 'โ', + "dust": '๐จ', + "rain": '๐ง', + "snow": '๐จ', + "storm": 'โ', + "sun": 'โ
', + "sun.hidden": '๐ฅ', + "sun.rain": '๐ฆ', + "thunder": '๐ฉ', + ], + coat: ['๐งฅ', "lab": '๐ฅผ'], + cockroach: '๐ชณ', + cocktail: ["martini": '๐ธ', "tropical": '๐น'], + coconut: '๐ฅฅ', + coffee: 'โ', + coffin: 'โฐ', + coin: '๐ช', + comet: 'โ', + compass: '๐งญ', + computer: '๐ฅ', + computermouse: '๐ฑ', + confetti: '๐', + construction: '๐ง', + controller: '๐ฎ', + cookie: ['๐ช', "fortune": '๐ฅ '], + cooking: '๐ณ', + cool: '๐', + copyright: 'ยฉ', + coral: '๐ชธ', + corn: '๐ฝ', + couch: '๐', + couple: '๐', + cow: ['๐', "face": '๐ฎ'], + crab: '๐ฆ', + crane: '๐', + crayon: '๐', + cricket: '๐ฆ', + cricketbat: '๐', + crocodile: '๐', + croissant: '๐ฅ', + crossmark: ['โ', "box": 'โ'], + crown: '๐', + crutch: '๐ฉผ', + crystal: '๐ฎ', + cucumber: '๐ฅ', + cup: ["straw": '๐ฅค'], + cupcake: '๐ง', + curling: '๐ฅ', + curry: '๐', + custard: '๐ฎ', + customs: '๐', + cutlery: '๐ด', + cyclone: '๐', + dancing: ["man": '๐บ', "woman": '๐', "women.bunny": '๐ฏ'], + darts: '๐ฏ', + dash: ["wave.double": 'ใฐ'], + deer: '๐ฆ', + desert: '๐', + detective: '๐ต', + diamond: [ + "blue": '๐ท', + "blue.small": '๐น', + "orange": '๐ถ', + "orange.small": '๐ธ', + "dot": '๐ ', + ], + die: '๐ฒ', + dino: ["pod": '๐ฆ', "rex": '๐ฆ'], + disc: ["cd": '๐ฟ', "dvd": '๐', "mini": '๐ฝ'], + discoball: '๐ชฉ', + diving: '๐คฟ', + dodo: '๐ฆค', + dog: [ + '๐', + "face": '๐ถ', + "guide": '๐ฆฎ', + "poodle": '๐ฉ', + ], + dollar: '๐ฒ', + dolphin: '๐ฌ', + donut: '๐ฉ', + door: '๐ช', + dove: ["peace": '๐'], + dragon: ['๐', "face": '๐ฒ'], + dress: ['๐', "kimono": '๐', "sari": '๐ฅป'], + drop: '๐ง', + drops: '๐ฆ', + drum: ['๐ฅ', "big": '๐ช'], + duck: '๐ฆ', + dumpling: '๐ฅ', + eagle: '๐ฆ
', + ear: ['๐', "aid": '๐ฆป'], + egg: '๐ฅ', + eighteen: ["not": '๐'], + elephant: '๐', + elevator: '๐', + elf: '๐ง', + email: '๐ง', + excl: [ + 'โ', + "white": 'โ', + "double": 'โผ', + "quest": 'โ', + ], + explosion: '๐ฅ', + extinguisher: '๐งฏ', + eye: '๐', + eyes: '๐', + face: [ + "grin": '๐', + "angry": '๐ ', + "angry.red": '๐ก', + "anguish": '๐ง', + "astonish": '๐ฒ', + "bandage": '๐ค', + "beam": '๐', + "blank": '๐ถ', + "clown": '๐คก', + "cold": '๐ฅถ', + "concern": '๐ฆ', + "cool": '๐', + "cover": '๐คญ', + "cowboy": '๐ค ', + "cry": '๐ญ', + "devil.smile": '๐', + "devil.frown": '๐ฟ', + "diagonal": '๐ซค', + "disguise": '๐ฅธ', + "dizzy": '๐ต', + "dotted": '๐ซฅ', + "down": '๐', + "down.sweat": '๐', + "drool": '๐คค', + "explode": '๐คฏ', + "eyeroll": '๐', + "friendly": 'โบ', + "fear": '๐จ', + "fear.sweat": '๐ฐ', + "fever": '๐ค', + "flush": '๐ณ', + "frown": 'โน', + "frown.slight": '๐', + "frust": '๐ฃ', + "goofy": '๐คช', + "halo": '๐', + "happy": '๐', + "heart": '๐', + "hearts": '๐ฅฐ', + "heat": '๐ฅต', + "hug": '๐ค', + "inv": '๐', + "joy": '๐', + "kiss": '๐', + "kiss.smile": '๐', + "kiss.heart": '๐', + "kiss.blush": '๐', + "lick": '๐', + "lie": '๐คฅ', + "mask": '๐ท', + "meh": '๐', + "melt": '๐ซ ', + "money": '๐ค', + "monocle": '๐ง', + "nausea": '๐คข', + "nerd": '๐ค', + "neutral": '๐', + "open": '๐', + "party": '๐ฅณ', + "peek": '๐ซฃ', + "plead": '๐ฅบ', + "relief": '๐', + "rofl": '๐คฃ', + "sad": '๐', + "salute": '๐ซก', + "shock": '๐ฑ', + "shush": '๐คซ', + "skeptic": '๐คจ', + "sleep": '๐ด', + "sleepy": '๐ช', + "smile": '๐', + "smile.slight": '๐', + "smile.sweat": '๐
', + "smile.tear": '๐ฅฒ', + "smirk": '๐', + "sneeze": '๐คง', + "speak.not": '๐ซข', + "squint": '๐', + "stars": '๐คฉ', + "straight": '๐', + "suffer": '๐', + "surprise": '๐ฏ', + "symbols": '๐คฌ', + "tear": '๐ข', + "tear.relief": '๐ฅ', + "tear.withheld": '๐ฅน', + "teeth": '๐ฌ', + "think": '๐ค', + "tired": '๐ซ', + "tongue": '๐', + "tongue.squint": '๐', + "tongue.wink": '๐', + "triumph": '๐ค', + "unhappy": '๐', + "vomit": '๐คฎ', + "weary": '๐ฉ', + "wink": '๐', + "woozy": '๐ฅด', + "worry": '๐', + "wow": '๐ฎ', + "yawn": '๐ฅฑ', + "zip": '๐ค', + ], + factory: '๐ญ', + fairy: '๐ง', + faith: [ + "christ": 'โ', + "dharma": 'โธ', + "islam": 'โช', + "judaism": 'โก', + "menorah": '๐', + "om": '๐', + "orthodox": 'โฆ', + "peace": 'โฎ', + "star.dot": '๐ฏ', + "worship": '๐', + "yinyang": 'โฏ', + ], + falafel: '๐ง', + family: '๐ช', + fax: '๐ ', + feather: '๐ชถ', + feeding: ["breast": '๐คฑ'], + fencing: '๐คบ', + ferriswheel: '๐ก', + filebox: '๐', + filedividers: '๐', + film: '๐', + finger: [ + "r": '๐', + "l": '๐', + "t": '๐', + "t.alt": 'โ', + "b": '๐', + "front": '๐ซต', + "m": '๐', + ], + fingers: ["cross": '๐ค', "pinch": '๐ค', "snap": '๐ซฐ'], + fire: '๐ฅ', + firecracker: '๐งจ', + fireengine: '๐', + fireworks: '๐', + fish: ['๐', "tropical": '๐ '], + fishing: '๐ฃ', + fist: [ + "front": '๐', + "r": '๐ค', + "l": '๐ค', + "raised": 'โ', + ], + flag: [ + "black": '๐ด', + "white": '๐ณ', + "goal": '๐', + "golf": 'โณ', + "red": '๐ฉ', + ], + flags: ["jp.crossed": '๐'], + flamingo: '๐ฆฉ', + flashlight: '๐ฆ', + flatbread: '๐ซ', + fleur: 'โ', + floppy: '๐พ', + flower: [ + "hibiscus": '๐บ', + "lotus": '๐ชท', + "pink": '๐ธ', + "rose": '๐น', + "sun": '๐ป', + "tulip": '๐ท', + "white": '๐ฎ', + "wilted": '๐ฅ', + "yellow": '๐ผ', + ], + fly: '๐ชฐ', + fog: '๐ซ', + folder: ['๐', "open": '๐'], + fondue: '๐ซ', + foot: '๐ฆถ', + football: ['โฝ', "am": '๐'], + forex: '๐ฑ', + fountain: 'โฒ', + fox: '๐ฆ', + free: '๐', + fries: '๐', + frisbee: '๐ฅ', + frog: ["face": '๐ธ'], + fuelpump: 'โฝ', + garlic: '๐ง', + gear: 'โ', + gem: '๐', + genie: '๐ง', + ghost: '๐ป', + giraffe: '๐ฆ', + girl: '๐ง', + glass: [ + "clink": '๐ฅ', + "milk": '๐ฅ', + "pour": '๐ซ', + "tumbler": '๐ฅ', + ], + glasses: ['๐', "sun": '๐ถ'], + globe: [ + "am": '๐', + "as.au": '๐', + "eu.af": '๐', + "meridian": '๐', + ], + gloves: '๐งค', + goal: '๐ฅ
', + goat: '๐', + goggles: '๐ฅฝ', + golfing: '๐', + gorilla: '๐ฆ', + grapes: '๐', + guard: ["man": '๐'], + guitar: '๐ธ', + gymnastics: '๐คธ', + haircut: '๐', + hammer: ['๐จ', "pick": 'โ', "wrench": '๐ '], + hamsa: '๐ชฌ', + hamster: ["face": '๐น'], + hand: [ + "raised": 'โ', + "raised.alt": '๐ค', + "r": '๐ซฑ', + "l": '๐ซฒ', + "t": '๐ซด', + "b": '๐ซณ', + "ok": '๐', + "call": '๐ค', + "love": '๐ค', + "part": '๐', + "peace": 'โ', + "pinch": '๐ค', + "rock": '๐ค', + "splay": '๐', + "wave": '๐', + "write": 'โ', + ], + handbag: '๐', + handball: '๐คพ', + handholding: ["man.man": '๐ฌ', "woman.man": '๐ซ', "woman.woman": '๐ญ'], + hands: [ + "folded": '๐', + "palms": '๐คฒ', + "clap": '๐', + "heart": '๐ซถ', + "open": '๐', + "raised": '๐', + "shake": '๐ค', + ], + hash: '#', + hat: ["ribbon": '๐', "top": '๐ฉ'], + headphone: '๐ง', + heart: [ + 'โค', + "arrow": '๐', + "beat": '๐', + "black": '๐ค', + "blue": '๐', + "box": '๐', + "broken": '๐', + "brown": '๐ค', + "double": '๐', + "excl": 'โฃ', + "green": '๐', + "grow": '๐', + "orange": '๐งก', + "purple": '๐', + "real": '๐ซ', + "revolve": '๐', + "ribbon": '๐', + "spark": '๐', + "white": '๐ค', + "yellow": '๐', + ], + hedgehog: '๐ฆ', + helicopter: '๐', + helix: '๐งฌ', + helmet: ["cross": 'โ', "military": '๐ช'], + hippo: '๐ฆ', + hockey: '๐', + hole: '๐ณ', + honey: '๐ฏ', + hongbao: '๐งง', + hook: '๐ช', + horn: ["postal": '๐ฏ'], + horse: [ + '๐', + "carousel": '๐ ', + "face": '๐ด', + "race": '๐', + ], + hospital: '๐ฅ', + hotdog: '๐ญ', + hotel: ['๐จ', "love": '๐ฉ'], + hotspring: 'โจ', + hourglass: ['โ', "flow": 'โณ'], + house: [ + '๐ ', + "derelict": '๐', + "garden": '๐ก', + "multiple": '๐', + ], + hundred: '๐ฏ', + hut: '๐', + ice: '๐ง', + icecream: ['๐จ', "shaved": '๐ง', "soft": '๐ฆ'], + icehockey: '๐', + id: '๐', + info: 'โน', + izakaya: '๐ฎ', + jar: '๐ซ', + jeans: '๐', + jigsaw: '๐งฉ', + joystick: '๐น', + juggling: '๐คน', + juice: '๐ง', + kaaba: '๐', + kadomatsu: '๐', + kangaroo: '๐ฆ', + gachi: '๐ท', + go: '๐ด', + hi: 'ใ', + ka: '๐', + kachi: '๐น', + kara: '๐ณ', + kon: '๐ฒ', + man: '๐ต', + muryo: '๐', + shin: '๐ธ', + shuku: 'ใ', + toku: '๐', + yo: '๐บ', + yubi: '๐ฏ', + yuryo: '๐ถ', + koko: '๐', + sa: '๐', + kebab: '๐ฅ', + key: ['๐', "old": '๐'], + keyboard: 'โจ', + kiss: '๐', + kissmark: '๐', + kite: '๐ช', + kiwi: '๐ฅ', + knife: ['๐ช', "dagger": '๐ก'], + knot: '๐ชข', + koala: '๐จ', + koinobori: '๐', + label: '๐ท', + lacrosse: '๐ฅ', + ladder: '๐ช', + lamp: ["diya": '๐ช'], + laptop: '๐ป', + a: '๐
ฐ', + ab: '๐', + b: '๐
ฑ', + cl: '๐', + o: '๐
พ', + leaf: [ + "clover.three": 'โ', + "clover.four": '๐', + "fall": '๐', + "herb": '๐ฟ', + "maple": '๐', + "wind": '๐', + ], + leftluggage: '๐
', + leg: ['๐ฆต', "mech": '๐ฆฟ'], + lemon: '๐', + leopard: '๐', + letter: ["love": '๐'], + liberty: '๐ฝ', + lightbulb: '๐ก', + lightning: 'โก', + lion: '๐ฆ', + lipstick: '๐', + litter: ['๐ฎ', "not": '๐ฏ'], + lizard: '๐ฆ', + llama: '๐ฆ', + lobster: '๐ฆ', + lock: [ + '๐', + "key": '๐', + "open": '๐', + "pen": '๐', + ], + lollipop: '๐ญ', + lotion: '๐งด', + luggage: '๐งณ', + lungs: '๐ซ', + mage: '๐ง', + magnet: '๐งฒ', + magnify: ["r": '๐', "l": '๐'], + mahjong: ["dragon.red": '๐'], + mail: ['โ', "arrow": '๐ฉ'], + mailbox: [ + "closed.empty": '๐ช', + "closed.full": '๐ซ', + "open.empty": '๐ญ', + "open.full": '๐ฌ', + ], + mammoth: '๐ฆฃ', + man: [ + '๐จ', + "box": '๐น', + "crown": '๐คด', + "guapimao": '๐ฒ', + "levitate": '๐ด', + "old": '๐ด', + "pregnant": '๐ซ', + "turban": '๐ณ', + "tuxedo": '๐คต', + ], + mango: '๐ฅญ', + map: ["world": '๐บ', "jp": '๐พ'], + martialarts: '๐ฅ', + masks: '๐ญ', + mate: '๐ง', + matryoshka: '๐ช', + meat: ['๐ฅฉ', "bone": '๐'], + medal: [ + "first": '๐ฅ', + "second": '๐ฅ', + "third": '๐ฅ', + "sports": '๐
', + "military": '๐', + ], + megaphone: ['๐ข', "simple": '๐ฃ'], + melon: '๐', + merperson: '๐ง', + metro: 'โ', + microbe: '๐ฆ ', + microphone: ['๐ค', "studio": '๐'], + microscope: '๐ฌ', + milkyway: '๐', + mirror: '๐ช', + mixer: '๐', + money: [ + "bag": '๐ฐ', + "dollar": '๐ต', + "euro": '๐ถ', + "pound": '๐ท', + "yen": '๐ด', + "wings": '๐ธ', + ], + monkey: [ + '๐', + "face": '๐ต', + "hear.not": '๐', + "see.not": '๐', + "speak.not": '๐', + ], + moon: [ + "crescent": '๐', + "full": '๐', + "full.face": '๐', + "new": '๐', + "new.face": '๐', + "wane.one": '๐', + "wane.two": '๐', + "wane.three.face": '๐', + "wane.three": '๐', + "wax.one": '๐', + "wax.two": '๐', + "wax.two.face": '๐', + "wax.three": '๐', + ], + mortarboard: '๐', + mosque: '๐', + mosquito: '๐ฆ', + motorcycle: '๐', + motorway: '๐ฃ', + mountain: [ + 'โฐ', + "fuji": '๐ป', + "snow": '๐', + "sunrise": '๐', + ], + mouse: ['๐', "face": '๐ญ'], + mousetrap: '๐ชค', + mouth: ['๐', "bite": '๐ซฆ'], + moyai: '๐ฟ', + museum: '๐', + mushroom: '๐', + musicalscore: '๐ผ', + nails: ["polish": '๐
'], + namebadge: '๐', + nazar: '๐งฟ', + necktie: '๐', + needle: '๐ชก', + nest: ["empty": '๐ชน', "eggs": '๐ชบ'], + new: '๐', + newspaper: ['๐ฐ', "rolled": '๐'], + ng: '๐', + ningyo: '๐', + ninja: '๐ฅท', + noentry: 'โ', + nose: '๐', + notebook: ['๐', "deco": '๐'], + notepad: '๐', + notes: ['๐ต', "triple": '๐ถ'], + numbers: '๐ข', + octopus: '๐', + office: '๐ข', + oil: '๐ข', + ok: '๐', + olive: '๐ซ', + oni: '๐น', + onion: '๐ง
', + orangutan: '๐ฆง', + otter: '๐ฆฆ', + owl: '๐ฆ', + ox: '๐', + oyster: '๐ฆช', + package: '๐ฆ', + paella: '๐ฅ', + page: ['๐', "curl": '๐', "pencil": '๐'], + pager: '๐', + pages: ["tabs": '๐'], + painting: '๐ผ', + palette: '๐จ', + pancakes: '๐ฅ', + panda: '๐ผ', + parachute: '๐ช', + park: '๐', + parking: '๐
ฟ', + parrot: '๐ฆ', + partalteration: 'ใฝ', + party: '๐', + peach: '๐', + peacock: '๐ฆ', + peanuts: '๐ฅ', + pear: '๐', + pedestrian: ['๐ถ', "not": '๐ท'], + pen: ["ball": '๐', "fountain": '๐'], + pencil: 'โ', + penguin: '๐ง', + pepper: ['๐ซ', "hot": '๐ถ'], + person: [ + '๐ง', + "angry": '๐', + "beard": '๐ง', + "blonde": '๐ฑ', + "bow": '๐', + "crown": '๐ซ
', + "deaf": '๐ง', + "facepalm": '๐คฆ', + "frown": '๐', + "hijab": '๐ง', + "kneel": '๐ง', + "lotus": '๐ง', + "massage": '๐', + "no": '๐
', + "ok": '๐', + "old": '๐ง', + "pregnant": '๐ซ', + "raise": '๐', + "sassy": '๐', + "shrug": '๐คท', + "stand": '๐ง', + "steam": '๐ง', + ], + petri: '๐งซ', + phone: [ + '๐ฑ', + "arrow": '๐ฒ', + "classic": 'โ', + "not": '๐ต', + "off": '๐ด', + "receiver": '๐', + "signal": '๐ถ', + "vibrate": '๐ณ', + ], + piano: '๐น', + pick: 'โ', + pie: '๐ฅง', + pig: ['๐', "face": '๐ท', "node": '๐ฝ'], + pill: '๐', + pin: ['๐', "round": '๐'], + pinata: '๐ช
', + pineapple: '๐', + pingpong: '๐', + pistol: '๐ซ', + pizza: '๐', + placard: '๐ชง', + planet: '๐ช', + plant: '๐ชด', + plaster: '๐ฉน', + plate: ["cutlery": '๐ฝ'], + playback: [ + "down": 'โฌ', + "eject": 'โ', + "forward": 'โฉ', + "pause": 'โธ', + "record": 'โบ', + "repeat": '๐', + "repeat.once": '๐', + "repeat.v": '๐', + "restart": 'โฎ', + "rewind": 'โช', + "shuffle": '๐', + "skip": 'โญ', + "stop": 'โน', + "toggle": 'โฏ', + "up": 'โซ', + ], + playingcard: ["flower": '๐ด', "joker": '๐'], + plunger: '๐ช ', + policeofficer: '๐ฎ', + poo: '๐ฉ', + popcorn: '๐ฟ', + post: ["eu": '๐ค', "jp": '๐ฃ'], + postbox: '๐ฎ', + potato: ['๐ฅ', "sweet": '๐ '], + pouch: '๐', + powerplug: '๐', + present: '๐', + pretzel: '๐ฅจ', + printer: '๐จ', + prints: ["foot": '๐ฃ', "paw": '๐พ'], + prohibited: '๐ซ', + projector: '๐ฝ', + pumpkin: ["lantern": '๐'], + purse: '๐', + quest: ['โ', "white": 'โ'], + rabbit: ['๐', "face": '๐ฐ'], + raccoon: '๐ฆ', + radio: '๐ป', + radioactive: 'โข', + railway: '๐ค', + rainbow: '๐', + ram: '๐', + rat: '๐', + razor: '๐ช', + receipt: '๐งพ', + recycling: 'โป', + reg: 'ยฎ', + restroom: '๐ป', + rhino: '๐ฆ', + ribbon: ['๐', "remind": '๐'], + rice: [ + '๐', + "cracker": '๐', + "ear": '๐พ', + "onigiri": '๐', + ], + ring: '๐', + ringbuoy: '๐', + robot: '๐ค', + rock: '๐ชจ', + rocket: '๐', + rollercoaster: '๐ข', + rosette: '๐ต', + rugby: '๐', + ruler: ['๐', "triangle": '๐'], + running: '๐', + safetypin: '๐งท', + safetyvest: '๐ฆบ', + sake: '๐ถ', + salad: '๐ฅ', + salt: '๐ง', + sandwich: '๐ฅช', + santa: ["man": '๐
', "woman": '๐คถ'], + satdish: '๐ก', + satellite: '๐ฐ', + saw: '๐ช', + saxophone: '๐ท', + scales: 'โ', + scarf: '๐งฃ', + school: '๐ซ', + scissors: 'โ', + scooter: ['๐ด', "motor": '๐ต'], + scorpion: '๐ฆ', + screwdriver: '๐ช', + scroll: '๐', + seal: '๐ฆญ', + seat: '๐บ', + seedling: '๐ฑ', + shark: '๐ฆ', + sheep: '๐', + shell: ["spiral": '๐'], + shield: '๐ก', + ship: ['๐ข', "cruise": '๐ณ', "ferry": 'โด'], + shirt: ["sports": '๐ฝ', "t": '๐'], + shoe: [ + '๐', + "ballet": '๐ฉฐ', + "flat": '๐ฅฟ', + "heel": '๐ ', + "hike": '๐ฅพ', + "ice": 'โธ', + "roller": '๐ผ', + "sandal.heel": '๐ก', + "ski": '๐ฟ', + "sneaker": '๐', + "tall": '๐ข', + "thong": '๐ฉด', + ], + shopping: '๐', + shorts: '๐ฉณ', + shoshinsha: '๐ฐ', + shower: '๐ฟ', + shrimp: ['๐ฆ', "fried": '๐ค'], + shrine: 'โฉ', + sign: ["crossing": '๐ธ', "stop": '๐'], + silhouette: [ + '๐ค', + "double": '๐ฅ', + "hug": '๐ซ', + "speak": '๐ฃ', + ], + siren: '๐จ', + skateboard: '๐น', + skewer: ["dango": '๐ก', "oden": '๐ข'], + skiing: 'โท', + skull: ['๐', "bones": 'โ '], + skunk: '๐ฆจ', + sled: '๐ท', + slide: '๐', + slider: '๐', + sloth: '๐ฆฅ', + slots: '๐ฐ', + snail: '๐', + snake: '๐', + snowboarding: '๐', + snowflake: 'โ', + snowman: ['โ', "snow": 'โ'], + soap: '๐งผ', + socks: '๐งฆ', + softball: '๐ฅ', + sos: '๐', + soup: '๐ฒ', + spaghetti: '๐', + sparkle: ["box": 'โ'], + sparkler: '๐', + sparkles: 'โจ', + speaker: [ + '๐', + "not": '๐', + "wave": '๐', + "waves": '๐', + ], + spider: '๐ท', + spiderweb: '๐ธ', + spinach: '๐ฅฌ', + sponge: '๐งฝ', + spoon: '๐ฅ', + square: [ + "black": 'โฌ', + "black.tiny": 'โช', + "black.small": 'โพ', + "black.medium": 'โผ', + "white": 'โฌ', + "white.tiny": 'โซ', + "white.small": 'โฝ', + "white.medium": 'โป', + "blue": '๐ฆ', + "brown": '๐ซ', + "green": '๐ฉ', + "orange": '๐ง', + "purple": '๐ช', + "red": '๐ฅ', + "yellow": '๐จ', + ], + squid: '๐ฆ', + stadium: '๐', + star: [ + 'โญ', + "arc": '๐ซ', + "box": 'โด', + "glow": '๐', + "shoot": '๐ ', + ], + stethoscope: '๐ฉบ', + store: ["big": '๐ฌ', "small": '๐ช'], + strawberry: '๐', + suit: [ + "club": 'โฃ', + "diamond": 'โฆ', + "heart": 'โฅ', + "spade": 'โ ', + ], + sun: ['โ', "cloud": '๐ค', "face": '๐'], + sunrise: '๐
', + superhero: '๐ฆธ', + supervillain: '๐ฆน', + surfing: '๐', + sushi: '๐ฃ', + swan: '๐ฆข', + swimming: '๐', + swimsuit: '๐ฉฑ', + swords: 'โ', + symbols: '๐ฃ', + synagogue: '๐', + syringe: '๐', + taco: '๐ฎ', + takeout: '๐ฅก', + tamale: '๐ซ', + tanabata: '๐', + tangerine: '๐', + tap: ['๐ฐ', "not": '๐ฑ'], + taxi: ['๐', "front": '๐'], + teacup: '๐ต', + teapot: '๐ซ', + teddy: '๐งธ', + telescope: '๐ญ', + temple: '๐', + ten: '๐', + tengu: '๐บ', + tennis: '๐พ', + tent: 'โบ', + testtube: '๐งช', + thermometer: '๐ก', + thread: '๐งต', + thumb: ["up": '๐', "down": '๐'], + ticket: ["event": '๐', "travel": '๐ซ'], + tiger: ['๐
', "face": '๐ฏ'], + tm: 'โข', + toilet: '๐ฝ', + toiletpaper: '๐งป', + tomato: '๐
', + tombstone: '๐ชฆ', + tongue: '๐
', + toolbox: '๐งฐ', + tooth: '๐ฆท', + toothbrush: '๐ชฅ', + tornado: '๐ช', + tower: ["tokyo": '๐ผ'], + trackball: '๐ฒ', + tractor: '๐', + trafficlight: ["v": '๐ฆ', "h": '๐ฅ'], + train: [ + '๐', + "car": '๐', + "light": '๐', + "metro": '๐', + "mono": '๐', + "mountain": '๐', + "speed": '๐', + "speed.bullet": '๐
', + "steam": '๐', + "stop": '๐', + "suspend": '๐', + "tram": '๐', + "tram.car": '๐', + ], + transgender: 'โง', + tray: ["inbox": '๐ฅ', "mail": '๐จ', "outbox": '๐ค'], + tree: [ + "deciduous": '๐ณ', + "evergreen": '๐ฒ', + "palm": '๐ด', + "xmas": '๐', + ], + triangle: [ + "r": 'โถ', + "l": 'โ', + "t": '๐ผ', + "b": '๐ฝ', + "t.red": '๐บ', + "b.red": '๐ป', + ], + trident: '๐ฑ', + troll: '๐ง', + trophy: '๐', + truck: ['๐', "trailer": '๐'], + trumpet: '๐บ', + tsukimi: '๐', + turkey: '๐ฆ', + turtle: '๐ข', + tv: '๐บ', + ufo: '๐ธ', + umbrella: [ + "open": 'โ', + "closed": '๐', + "rain": 'โ', + "sun": 'โฑ', + ], + unicorn: '๐ฆ', + unknown: '๐ฆณ', + up: '๐', + urn: 'โฑ', + vampire: '๐ง', + violin: '๐ป', + volcano: '๐', + volleyball: '๐', + vs: '๐', + waffle: '๐ง', + wand: '๐ช', + warning: 'โ ', + watch: ['โ', "stop": 'โฑ'], + watermelon: '๐', + waterpolo: '๐คฝ', + wave: '๐', + wc: '๐พ', + weightlifting: '๐', + whale: ['๐', "spout": '๐ณ'], + wheel: '๐', + wheelchair: ['๐ฆฝ', "box": 'โฟ', "motor": '๐ฆผ'], + wind: '๐ฌ', + windchime: '๐', + window: '๐ช', + wine: '๐ท', + wolf: '๐บ', + woman: [ + '๐ฉ', + "box": '๐บ', + "crown": '๐ธ', + "old": '๐ต', + "pregnant": '๐คฐ', + ], + wood: '๐ชต', + worm: '๐ชฑ', + wrench: '๐ง', + wrestling: '๐คผ', + xray: '๐ฉป', + yarn: '๐งถ', + yoyo: '๐ช', + zebra: '๐ฆ', + zodiac: [ + "aquarius": 'โ', + "aries": 'โ', + "cancer": 'โ', + "capri": 'โ', + "gemini": 'โ', + "leo": 'โ', + "libra": 'โ', + "ophi": 'โ', + "pisces": 'โ', + "sagit": 'โ', + "scorpio": 'โ', + "taurus": 'โ', + "virgo": 'โ', + ], + zombie: '๐ง', + zzz: '๐ค', +} diff --git a/library/src/text/mod.rs b/library/src/text/mod.rs index 3424cce6..85e58ecd 100644 --- a/library/src/text/mod.rs +++ b/library/src/text/mod.rs @@ -1,20 +1,22 @@ //! Text handling. mod deco; +mod emoji; mod misc; mod quotes; mod raw; mod shaping; mod shift; -mod symbol; +mod symbols; pub use self::deco::*; +pub use self::emoji::*; pub use self::misc::*; pub use self::quotes::*; pub use self::raw::*; pub use self::shaping::*; pub use self::shift::*; -pub use self::symbol::*; +pub use self::symbols::*; use std::borrow::Cow; diff --git a/library/src/text/symbol.rs b/library/src/text/symbol.rs deleted file mode 100644 index 4a7c8ad3..00000000 --- a/library/src/text/symbol.rs +++ /dev/null @@ -1,111 +0,0 @@ -use crate::prelude::*; -use crate::text::TextNode; - -/// # Symbol -/// A symbol identified by symmie notation. -/// -/// Symmie is Typst's notation for Unicode symbols. It is based on the idea of -/// _modifiers._ Many symbols in Unicode are very similar. In symmie, such -/// groups of symbols share a common name. To distinguish between the symbols -/// within a group, we use one or multiple modifiers that are separated from the -/// name by colons. -/// -/// There is currently no easily viewable list of all names, but in the -/// meantime you can rely on the autocompletion in Typst's web editor. -/// -/// ## Syntax -/// This function also has dedicated syntax: In markup, you can enclose symmie -/// notation within colons to produce a symbol. And in math, you can just write -/// the notation directly. There, all letter sequence of length at least two are -/// automatically parsed as symbols (unless a variable of that name is defined). -/// -/// Additionally, some very common but hard to type symbols can be expressed with -/// dedicated shortcuts. These are: -/// -/// | Symmie | Shorthand | Result | -/// | ----------- | --------- | ------ | -/// | `dots:b` | `...` | โฆ | -/// | `dash:en` | `---` | โ | -/// | `dash:em` | `--` | โ | -/// | none yet | `-?` | A soft hyphen | -/// | none yet | `~` | A non breaking space | -/// -/// Within math mode, additional shorthands are available: -/// -/// | Symmie | Shorthand | Result | -/// | ------------------ | --------- | ------ | -/// | `arrow:r` | `->` | `โ` | -/// | `arrow:r:double` | `=>` | `โ` | -/// | `arrow:l` | `<-` | `โ` | -/// | `arrow:r:bar` | <code>|-></code> | `โฆ` | -/// | `arrow:l:r` | `<->` | `โ` | -/// | `arrow:l:r:double` | `<=>` | `โ` | -/// | `eq:not` | `!=` | `โ ` | -/// | `eq:gt` | `>=` | `โฅ` | -/// | `eq:lt` | `<=` | `โค` | -/// | `colon:eq` | `:=` | `โ` | -/// -/// ## Example -/// ``` -/// // In text, with colons. -/// :arrow:l: \ -/// :arrow:r: \ -/// :arrow:t: \ -/// :turtle: \ -/// :face:halo: \ -/// :woman:old: -/// -/// // In math, directly. -/// $f : NN -> RR$ \ -/// $A sub:eq B without C$ \ -/// $a times:div b eq:not c$ -/// ``` -/// -/// ## Parameters -/// - notation: EcoString (positional, required) -/// The symbol's symmie notation. -/// -/// Consists of a name, followed by a number colon-separated modifiers -/// in no particular order. -/// -/// ### Example -/// ``` -/// #symbol("NN") \ -/// #symbol("face:grin") -/// ``` -/// -/// ## Category -/// text -#[func] -#[capable(Show)] -#[derive(Debug, Hash)] -pub struct SymbolNode(pub EcoString); - -#[node] -impl SymbolNode { - fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { - Ok(Self(args.expect("notation")?).pack()) - } - - fn field(&self, name: &str) -> Option<Value> { - match name { - "notation" => Some(Value::Str(self.0.clone().into())), - _ => None, - } - } -} - -impl Show for SymbolNode { - fn show(&self, _: &mut Vt, this: &Content, _: StyleChain) -> SourceResult<Content> { - match symmie::get(&self.0) { - Some(c) => Ok(TextNode::packed(c)), - None => { - if let Some(span) = this.span() { - bail!(span, "unknown symbol"); - } - - Ok(Content::empty()) - } - } - } -} diff --git a/library/src/text/symbols.rs b/library/src/text/symbols.rs new file mode 100644 index 00000000..36e49849 --- /dev/null +++ b/library/src/text/symbols.rs @@ -0,0 +1,460 @@ +use typst::model::{symbols, Module, Scope}; + +/// A module with all symbols. +pub fn sym() -> Module { + let mut scope = Scope::new(); + define(&mut scope); + Module::new("sym").with_scope(scope) +} + +symbols! { + define, + + // Space and control. + space: [ + ' ', + "em": '\u{2003}', + "en": '\u{2002}', + "fig": '\u{2007}', + "hair": '\u{200A}', + "ideo": '\u{3000}', + "nobreak": '\u{A0}', + "punct": '\u{2008}', + "quarter": '\u{2005}', + "sixth": '\u{2006}', + "thin": '\u{2009}', + "third": '\u{2004}', + ], + wj: '\u{2060}', + zwj: '\u{200D}', + zwnj: '\u{200C}', + zws: '\u{200B}', + + // Punctuation. + dot: ['.', "c": 'ยท'], + dots: [ + "h": 'โฆ', + "h.c": 'โฏ', + "v": 'โฎ', + "down": 'โฑ', + "up": 'โฐ', + ], + colon: [ + ':', + "eq": 'โ', + "double.eq": 'โฉด', + ], + comma: ',', + semi: [';', "rev": 'โ'], + quest: ['?', "double": 'โ', "excl": 'โ', "inv": 'ยฟ'], + excl: ['!', "double": 'โผ', "inv": 'ยก', "quest": 'โ'], + interrobang: 'โฝ', + hash: '#', + at: '@', + section: 'ยง', + percent: '%', + permille: 'โฐ', + co: 'โ
', + pilcrow: ['ยถ', "rev": 'โ'], + dagger: ['โ ', "double": 'โก'], + slash: ['/', "double": 'โซฝ', "triple": 'โซป'], + backslash: ['\\', "circle": 'โฆธ', "not": 'โงท'], + ast: ['*', "low": 'โ', "double": 'โ', "triple": 'โ'], + amp: ['&', "inv": 'โ
'], + dash: [ + "en": 'โ', + "em": 'โ', + "fig": 'โ', + "wave": 'ใ', + "colon": 'โน', + "circle": 'โ', + "wave.double": 'ใฐ', + ], + hyph: [ + 'โ', + "minus": '\u{2D}', + "nobreak": '\u{2011}', + "point": 'โง', + "soft": '\u{ad}', + ], + prime: [ + 'โฒ', + "rev": 'โต', + "double": 'โณ', + "double.rev": 'โถ', + "triple": 'โด', + "triple.rev": 'โท', + "quad": 'โ', + ], + quote: [ + "double": '"', + "single": '\'', + "l.double": 'โ', + "l.single": 'โ', + "r.double": 'โ', + "r.single": 'โ', + "angle.l.double": 'ยซ', + "angle.l.single": 'โน', + "angle.r.double": 'ยป', + "angle.r.single": 'โบ', + "high.double": 'โ', + "high.single": 'โ', + "low.double": 'โ', + "low.single": 'โ', + ], + + // Delimiters. + paren: [ + "l": '(', + "r": ')', + "t": 'โ', + "b": 'โ', + ], + bracket: [ + "l": '[', + "r": ']', + "t": 'โด', + "b": 'โต', + ], + brace: [ + "l": '{', + "r": '}', + "t": 'โ', + "b": 'โ', + ], + turtle: [ + "l": 'ใ', + "r": 'ใ', + "t": 'โ ', + "b": 'โก', + ], + angled: ["l": 'โฉ', "r": 'โช'], + bar: [ + "v": '|', + "v.double": 'โ', + "v.triple": 'โฆ', + "v.broken": 'ยฆ', + "v.circle": 'โฆถ', + "h": 'โ', + ], + fence: [ + "l": 'โง', + "l.double": 'โง', + "r": 'โง', + "r.double": 'โง', + "dotted": 'โฆ', + ], + + // Accents. + acute: ['ยด', "double": 'ห'], + breve: 'ห', + caret: 'โธ', + caron: 'ห', + cedilla: 'ยธ', + circum: '^', + diaer: 'ยจ', + grave: '`', + macron: 'ยฏ', + tilde: '~', + overline: 'โพ', + + // Currency. + bitcoin: 'โฟ', + dollar: '$', + euro: 'โฌ', + franc: 'โฃ', + lira: 'โบ', + peso: 'โฑ', + pound: 'ยฃ', + ruble: 'โฝ', + rupee: 'โน', + won: 'โฉ', + yen: 'ยฅ', + + // Miscellaneous. + ballot: ['โ', "x": 'โ'], + checkmark: ['โ', "light": '๐ธ'], + copyright: ['ยฉ', "sound": 'โ'], + floral: ['โฆ', "l": 'โ', "r": 'โง'], + notes: ["up": '๐', "down": '๐'], + refmark: 'โป', + servicemark: 'โ ', + maltese: 'โ ', + suit: [ + "club": 'โฃ', + "diamond": 'โฆ', + "heart": 'โฅ', + "spade": 'โ ', + ], + + // Shapes. + circle: [ + "stroked": 'โ', + "stroked.tiny": 'โ', + "stroked.small": 'โฌ', + "stroked.big": 'โฏ', + "filled": 'โ', + "filled.tiny": 'โฆ', + "filled.small": 'โ', + "filled.big": 'โฌค', + "dotted": 'โ', + "nested": 'โ', + ], + square: [ + "stroked": 'โก', + "stroked.tiny": 'โซ', + "stroked.small": 'โฝ', + "stroked.medium": 'โป', + "stroked.big": 'โฌ', + "stroked.dotted": 'โฌ', + "stroked.rounded": 'โข', + "filled": 'โ ', + "filled.tiny": 'โช', + "filled.small": 'โพ', + "filled.medium": 'โผ', + "filled.big": 'โฌ', + ], + ellipse: [ + "stroked.h": 'โฌญ', + "stroked.v": 'โฌฏ', + "filled.h": 'โฌฌ', + "filled.v": 'โฌฎ', + ], + rect: [ + "stroked.h": 'โญ', + "stroked.v": 'โฏ', + "filled.h": 'โฌ', + "filled.v": 'โฎ', + ], + triangle: [ + "stroked.r": 'โท', + "stroked.l": 'โ', + "stroked.t": 'โณ', + "stroked.b": 'โฝ', + "stroked.bl": 'โบ', + "stroked.br": 'โฟ', + "stroked.tl": 'โธ', + "stroked.tr": 'โน', + "stroked.small.r": 'โน', + "stroked.small.b": 'โฟ', + "stroked.small.l": 'โ', + "stroked.small.t": 'โต', + "stroked.rounded": '๐', + "stroked.nested": 'โ', + "stroked.dot": 'โฌ', + "filled.r": 'โถ', + "filled.l": 'โ', + "filled.t": 'โฒ', + "filled.b": 'โผ', + "filled.bl": 'โฃ', + "filled.br": 'โข', + "filled.tl": 'โค', + "filled.tr": 'โฅ', + "filled.small.r": 'โธ', + "filled.small.b": 'โพ', + "filled.small.l": 'โ', + "filled.small.t": 'โด', + ], + diamond: [ + "stroked": 'โ', + "stroked.small": 'โ', + "stroked.medium": 'โฌฆ', + "stroked.dot": 'โ', + "filled": 'โ', + "filled.medium": 'โฌฅ', + "filled.small": 'โฌฉ', + ], + lozenge: [ + "stroked": 'โ', + "stroked.small": 'โฌซ', + "stroked.medium": 'โฌจ', + "filled": 'โงซ', + "filled.small": 'โฌช', + "filled.medium": 'โฌง', + ], + penta: ["stroked": 'โฌ ', "filled": 'โฌ'], + hexa: ["stroked": 'โฌก', "filled": 'โฌข'], + + // Arrows and harpoons. + arrow: [ + "r": 'โ', + "r.long.bar": 'โผ', + "r.bar": 'โฆ', + "r.curve": 'โคท', + "r.dashed": 'โข', + "r.dotted": 'โค', + "r.double": 'โ', + "r.double.bar": 'โค', + "r.double.long": 'โน', + "r.double.long.bar": 'โพ', + "r.double.not": 'โ', + "r.filled": 'โก', + "r.hook": 'โช', + "r.long": 'โถ', + "r.long.squiggly": 'โฟ', + "r.loop": 'โฌ', + "r.not": 'โ', + "r.quad": 'โญ', + "r.squiggly": 'โ', + "r.stop": 'โฅ', + "r.stroked": 'โจ', + "r.tail": 'โฃ', + "r.triple": 'โ', + "r.twohead.bar": 'โค
', + "r.twohead": 'โ ', + "r.wave": 'โ', + "l": 'โ', + "l.bar": 'โค', + "l.curve": 'โคถ', + "l.dashed": 'โ ', + "l.dotted": 'โฌธ', + "l.double": 'โ', + "l.double.bar": 'โค', + "l.double.long": 'โธ', + "l.double.long.bar": 'โฝ', + "l.double.not": 'โ', + "l.filled": 'โฌ
', + "l.hook": 'โฉ', + "l.long": 'โต', + "l.long.bar": 'โป', + "l.long.squiggly": 'โฌณ', + "l.loop": 'โซ', + "l.not": 'โ', + "l.quad": 'โญ
', + "l.squiggly": 'โ', + "l.stop": 'โค', + "l.stroked": 'โฆ', + "l.tail": 'โข', + "l.triple": 'โ', + "l.twohead.bar": 'โฌถ', + "l.twohead": 'โ', + "l.wave": 'โ', + "t": 'โ', + "t.bar": 'โฅ', + "t.curve": 'โคด', + "t.dashed": 'โก', + "t.double": 'โ', + "t.filled": 'โฌ', + "t.quad": 'โฐ', + "t.stop": 'โค', + "t.stroked": 'โง', + "t.triple": 'โค', + "t.twohead": 'โ', + "b": 'โ', + "b.bar": 'โง', + "b.curve": 'โคต', + "b.dashed": 'โฃ', + "b.double": 'โ', + "b.filled": 'โฌ', + "b.quad": 'โฑ', + "b.stop": 'โค', + "b.stroked": 'โฉ', + "b.triple": 'โค', + "b.twohead": 'โก', + "l.r": 'โ', + "l.r.double": 'โ', + "l.r.double.long": 'โบ', + "l.r.double.not": 'โ', + "l.r.filled": 'โฌ', + "l.r.long": 'โท', + "l.r.not": 'โฎ', + "l.r.stroked": 'โฌ', + "l.r.wave": 'โญ', + "t.b": 'โ', + "t.b.double": 'โ', + "t.b.filled": 'โฌ', + "t.b.stroked": 'โณ', + "tr": 'โ', + "tr.double": 'โ', + "tr.filled": 'โฌ', + "tr.hook": 'โคค', + "tr.stroked": 'โฌ', + "br": 'โ', + "br.double": 'โ', + "br.filled": 'โฌ', + "br.hook": 'โคฅ', + "br.stroked": 'โฌ', + "tl": 'โ', + "tl.double": 'โ', + "tl.filled": 'โฌ', + "tl.hook": 'โคฃ', + "tl.stroked": 'โฌ', + "bl": 'โ', + "bl.double": 'โ', + "bl.filled": 'โฌ', + "bl.hook": 'โคฆ', + "bl.stroked": 'โฌ', + "tl.br": 'โคก', + "tr.bl": 'โคข', + "ccw": 'โบ', + "ccw.half": 'โถ', + "cw": 'โป', + "cw.half": 'โท', + "zigzag": 'โฏ', + ], + arrows: [ + "rr": 'โ', + "ll": 'โ', + "tt": 'โ', + "bb": 'โ', + "lr": 'โ', + "lr.stop": 'โน', + "rl": 'โ', + "tb": 'โ
', + "bt": 'โต', + "rrr": 'โถ', + "lll": 'โฌฑ', + ], + arrowhead: [ + "t": 'โ', + "b": 'โ', + ], + harpoon: [ + "rt": 'โ', + "rt.bar": 'โฅ', + "rt.stop": 'โฅ', + "rb": 'โ', + "rb.bar": 'โฅ', + "rb.stop": 'โฅ', + "lt": 'โผ', + "lt.bar": 'โฅ', + "lt.stop": 'โฅ', + "lb": 'โฝ', + "lb.bar": 'โฅ', + "lb.stop": 'โฅ', + "tl": 'โฟ', + "tl.bar": 'โฅ ', + "tl.stop": 'โฅ', + "tr": 'โพ', + "tr.bar": 'โฅ', + "tr.stop": 'โฅ', + "bl": 'โ', + "bl.bar": 'โฅก', + "bl.stop": 'โฅ', + "br": 'โ', + "br.bar": 'โฅ', + "br.stop": 'โฅ', + "lt.rt": 'โฅ', + "lb.rb": 'โฅ', + "lb.rt": 'โฅ', + "lt.rb": 'โฅ', + "tl.bl": 'โฅ', + "tr.br": 'โฅ', + "tl.br": 'โฅ', + "tr.bl": 'โฅ', + ], + harpoons: [ + "rtrb": 'โฅค', + "blbr": 'โฅฅ', + "bltr": 'โฅฏ', + "lbrb": 'โฅง', + "ltlb": 'โฅข', + "ltrb": 'โ', + "ltrt": 'โฅฆ', + "rblb": 'โฅฉ', + "rtlb": 'โ', + "rtlt": 'โฅจ', + "tlbr": 'โฅฎ', + "tltr": 'โฅฃ', + ], +} |
