Data-IconText
view release on metacpan or search on metacpan
v0.03 2025-06-01Z
- Support for flags
- Support no_defaults in constructor
- Added basic freedesktop-icon-name entries
v0.02 2025-04-27Z
- Added support for "from"
- Added protection against deep recursion
- Updated POD
- Added a few more icon texts for well known subjects
v0.01 2025-04-16Z
- Initial release
- Basic API
lib/Data/IconText.pm view on Meta::CPAN
use strict;
use warnings;
use Carp;
use Scalar::Util qw(looks_like_number weaken);
use Data::Identifier v0.12;
use constant {
WK_UNICODE_CP => Data::Identifier->new(uuid => '5f167223-cc9c-4b2f-9928-9fe1b253b560')->register, # unicode-code-point
WK_ASCII_CP => Data::Identifier->new(uuid => 'f4b073ff-0b53-4034-b4e4-4affe5caf72c')->register, # ascii-code-point
WK_FREEDESKTOP_ICON_NAME => Data::Identifier->new(uuid => '560906df-ebd1-41f6-b510-038b30522051')->register, # freedesktop-icon-name
};
use overload '""' => sub {$_[0]->as_string};
our $VERSION = v0.03;
my %_types = (
db => 'Data::TagDB',
extractor => 'Data::URIID',
fii => 'File::Information',
lib/Data/IconText.pm view on Meta::CPAN
'3c4b6cdf-f5a8-50d6-8a3a-b0c0975f7e69' => 0x2640,
'db9b0db1-a451-59e8-aa3b-9994e683ded3' => 0x2640,
'310f2b49-73a8-5f27-aeaf-5f34bc8e583f' => 0x26A5,
'036c0fe8-5189-5134-99ec-0b1b05c7bbf4' => 0x26A5,
},
},
},
v0.03 => {
parent => v0.02,
identifier => {
'560906df-ebd1-41f6-b510-038b30522051' => { # freedesktop-icon-name
# 'address-book-new' => 0x0,
# 'application-exit' => 0x0,
# 'appointment-new' => 0x0,
# 'call-start' => 0x0,
# 'call-stop' => 0x0,
# 'contact-new' => 0x0,
# 'document-new' => 0x0,
# 'document-open' => 0x0,
# 'document-open-recent' => 0x0,
# 'document-page-setup' => 0x0,
lib/Data/IconText.pm view on Meta::CPAN
# 'zoom-original' => 0x0,
# 'zoom-out' => 0x0,
# 'process-working' => 0x0,
'accessories-calculator' => 0x1F5A9,
# 'accessories-character-map' => 0x0,
# 'accessories-dictionary' => 0x0,
# 'accessories-screenshot-tool' => 0x0,
# 'accessories-text-editor' => 0x0,
# 'help-browser' => 0x0,
'multimedia-volume-control' => 0x1F39B,
# 'preferences-desktop-accessibility' => 0x0,
# 'preferences-desktop-font' => 0x0,
# 'preferences-desktop-keyboard' => 0x0,
# 'preferences-desktop-locale' => 0x0,
# 'preferences-desktop-multimedia' => 0x0,
# 'preferences-desktop-screensaver' => 0x0,
# 'preferences-desktop-theme' => 0x0,
# 'preferences-desktop-wallpaper' => 0x0,
# 'system-file-manager' => 0x0,
# 'system-software-install' => 0x0,
# 'system-software-update' => 0x0,
# 'utilities-system-monitor' => 0x0,
# 'utilities-terminal' => 0x0,
# 'applications-accessories' => 0x0,
# 'applications-development' => 0x0,
# 'applications-engineering' => 0x0,
# 'applications-games' => 0x0,
# 'applications-graphics' => 0x0,
# 'applications-internet' => 0x0,
# 'applications-multimedia' => 0x0,
# 'applications-office' => 0x0,
# 'applications-other' => 0x0,
# 'applications-science' => 0x0,
# 'applications-system' => 0x0,
# 'applications-utilities' => 0x0,
# 'preferences-desktop' => 0x0,
# 'preferences-desktop-peripherals' => 0x0,
# 'preferences-desktop-personal' => 0x0,
# 'preferences-other' => 0x0,
# 'preferences-system' => 0x0,
# 'preferences-system-network' => 0x0,
# 'system-help' => 0x0,
# 'audio-card' => 0x0,
'audio-input-microphone' => 0x1F399,
# 'battery' => 0x0,
'camera-photo' => 0x1F4F7,
'camera-video' => 0x1F4F9,
# 'camera-web' => 0x0,
lib/Data/IconText.pm view on Meta::CPAN
# 'x-office-calendar' => 0x0,
# 'x-office-document' => 0x0,
# 'x-office-presentation' => 0x0,
# 'x-office-spreadsheet' => 0x0,
'folder' => 0x1F4C1,
# 'folder-remote' => 0x0,
# 'network-server' => 0x0,
# 'network-workgroup' => 0x0,
# 'start-here' => 0x0,
# 'user-bookmarks' => 0x0,
# 'user-desktop' => 0x0,
# 'user-home' => 0x0,
'user-trash' => 0x1F5D1,
# 'appointment-missed' => 0x0,
# 'appointment-soon' => 0x0,
'audio-volume-high' => 0x1F50A,
'audio-volume-low' => 0x1F508,
'audio-volume-medium' => 0x1F509,
'audio-volume-muted' => 0x1F507,
# 'battery-caution' => 0x0,
'battery-low' => 0x1FAAB,
( run in 0.233 second using v1.01-cache-2.11-cpan-299005ec8e3 )