# frozen_string_literal: true SECTION_ALIASES = { "article" => "articles", "articles" => "articles", "grammaire" => "grammaire", "signe" => "signes", "signes" => "signes", "texte" => "textes", "textes" => "textes", "vocabulaire" => "vocabulaire" }.freeze VOCABULARY_FIELDS = { "nom" => %w[meaning logograms gender bound plural], "adjectif" => %w[meaning logograms bound feminine masculine_plural feminine_plural predicative], "verbe" => %w[meaning logograms root stem verb_class vowel_class preterite durative perfect imperative participle verbal_adjective], "pronom" => %w[meaning logograms pronoun_type person gender number], "préposition" => %w[meaning logograms governs], "adverbe" => %w[meaning logograms function], "conjonction" => %w[meaning logograms function], "particule" => %w[meaning logograms function], "numéral" => %w[meaning logograms numeral_type value gender feminine] }.freeze SECTION_FIELDS = { "articles" => { "extra" => %w[banner banner_alt banner_credit] }, "grammaire" => { "taxonomies" => %w[themes] }, "signes" => { "extra" => %w[sign mzl], "taxonomies" => %w[lectures] }, "textes" => { "taxonomies" => %w[genres] } }.freeze LIST_FIELDS = %w[logograms lectures themes genres].freeze CONTENT_SECTIONS = (SECTION_FIELDS.keys + ["vocabulaire"]).freeze UPDATED_RE = /^(?:#\s*)?updated\s*=.*$/