Add support for more symbols

This commit is contained in:
lelgenio 2023-02-20 16:00:37 -03:00
parent 19ece99761
commit f5b5413815
2 changed files with 7400 additions and 0 deletions

View file

@ -4,6 +4,8 @@ use arboard::SetExtLinux;
use clap::Parser; use clap::Parser;
use emoji::lookup_by_glyph::iter_emoji; use emoji::lookup_by_glyph::iter_emoji;
mod symbols;
/// Simple program to list all emojis /// Simple program to list all emojis
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
// #[command(author, version, about, long_about = None)] // #[command(author, version, about, long_about = None)]
@ -98,6 +100,10 @@ fn write_emojis_to_stdout(args: &Args, mut out: impl Write) {
writeln!(&mut out, "{}: {}", emoji.glyph, text).ok(); writeln!(&mut out, "{}: {}", emoji.glyph, text).ok();
} }
for (c, desc) in symbols::SYMBOLS {
writeln!(&mut out, "{}: {}", c, desc).ok();
}
} }
fn emoji_description(emoji: &emoji::Emoji, lang: &str) -> Option<String> { fn emoji_description(emoji: &emoji::Emoji, lang: &str) -> Option<String> {

7394
src/symbols.rs Normal file

File diff suppressed because it is too large Load diff