MARC::...t::Code(3pm)

πŸ“¦
version 1.35 Β· 2 versions
  • 1.35 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.35 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

MARC::Charset::Code β€” bestie, this lil object is a MARC-8/UTF-8 mapping. That's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

Not a single line, bestie. The synopsis said nothing. She's mysterious like that. Periodt. ✨


πŸ’– DESCRIPTION πŸ’–

Okay so picture this: every single mapping from a MARC-8 value to a UTF-8 value gets its own MARC::Charset::Code object, and all those objects chill together inside a MARC::Charset::Table. That's it. That's the whole concept. Each code point is a lil main character living in the table. πŸŽ€


🌸 METHODS 🌸

new()

The constructor. She builds the object. That's her job, and she ate. πŸ”₯

name()

A descriptive name for the code point. Like a lil name tag at a party. 🫢

marc()

A string representing the MARC-8 bytes codes.

ucs()

A string representing the UCS code point in hex. Hex girlie representation, slay. ✨

charset_code()

The MARC-8 character set code.

is_combining()

Returns true/false to tell you if the character is a combining character. Vibe check: combining or not combining. πŸ’€

marc_left_half()

If the character is the right half of a "double diacritic", this returns a hex string representing the MARC-8 value of the left half. So she goes and fetches her other half. Not me crying over diacritics. 😭

marc_right_half()

If the character is the left half of a "double diacritic", this returns a hex string representing the MARC-8 value of the right half. Matching set, no cap. πŸ’–

to_string()

A stringified version of the object suitable for pretty printing. She's giving presentation-ready. πŸ‘‘

char_value()

Returns the unicode character. Essentially just a helper around ucs() β€” like, it's ucs()'s lil sidekick, but make it fashion. 🧚

g0_marc_value()

The string representing the MARC-8 encoding for lookup.

marc_value()

The string representing the MARC-8 encoding for output.

charset_name()

Returns the name of the character set, instead of the code. Name over numbers, always. πŸ’œ

to_string()

Returns a stringified version of the object. (Yes, bestie, she showed up on the list twice. Iconic behaviour, honestly. 🌈)

marc8_hash_code()

Returns a hash code for this Code object so you can look the object up using MARC8. First portion is the character set code and the second is the MARC-8 value. Two-part banger. 🎀

utf8_hash_code()

Returns a hash code for uniquely identifying a Code by it's UCS value. Unique queen behaviour. πŸ‘‘

default_charset_group

Returns 'G0' or 'G1', indicating where the character is typically used in the MARC-8 environment. Pick a lane, bestie β€” G0 or G1. ✨

get_marc8_escape

Returns an escape sequence to move to the Code from another marc-8 character set. Exit sequence acquired, we're leaving. πŸƒβ€β™€οΈπŸ’¨

charset_value

Returns the charset value, not the hex sequence. Value, not hex. Read it again if you have to, bestie. πŸ“


Reminder for the girlies: this page is the MARC::Charset::Code manual, 3pm section, from the User Contributed Perl Documentation. Don't @ me. 🌟

Okay that's the whole page, love u, mwah! πŸ’– This was perl v5.34.0, dated 2022-08-02, and she's still serving. Byeeee! πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from