#let rejstrik = ( IPv4: ( short: "IPv4", long: "Internet Protocol verze 4", description: "Historicky nejrozšířenější protokol třetí vrstvy, který využívá 32-bitový adresní prostor rozdělený do 4 oktetů.", group: "Směrování", ), IPv6: ( short: "IPv6", long: "Internet Protocol verze 6", description: "Moderní síťový protokol využívající 128-bitový adresní prostor zapisovaný v hexadecimální soustavě.", group: "Směrování", ), CIDR: ( short: "CIDR", long: "Classless Inter-Domain Routing", description: "Beztřídní směrování umožňující flexibilní alokaci IP adres pomocí definice délky síťového prefixu.", group: "Směrování", ), IETF: ( short: "IETF", long: "Internet Engineering Task Force", description: "Mezinárodní organizace zodpovědná za vývoj a standardizaci internetových protokolů.", group: "Organizace", ), ) // Inspired by the Chicago Manual of Style's index format #let gloss-theme = ( section: (title, body) => { set par(hanging-indent: 1em) if title != [] and title != "" and title != none { heading(level: 1, smallcaps(title)) } body }, group: (name, index, total, body) => { if name != "" and total > 1 { v(1em) text(weight: "medium", style: "italic", name) v(0.5em) } body }, entry: (entry, index, total) => { let short-display = text(weight: "regular", entry.short) let long-display = if entry.long == none { [] } else { [ — #entry.long] // Using em-dash for Chicago style } let description = if entry.description == none { [] } else { text(style: "italic", [: #entry.description]) } // Format the reference let reference = if entry.reference == none { [] } else { if entry.reference.supplement == none { text(style: "italic", [ #cite(label(entry.reference.key))]) } else { text(style: "italic", [ #cite( label(entry.reference.key), supplement: entry.reference.supplement, )]) } } block( below: 0.65em, text( size: 0.9em, { grid( columns: (1fr, auto), gutter: 1em, [#short-display#entry.label#long-display#description#reference], [#entry.pages.join(", ")], ) }, ), ) }, )