fe2o3_text/src/csl/style.rs
11 operations, oldest first
created by r1870400018:72722, which is this file's identity for as long as the history lasts, whatever it is later renamed to
read the file · who wrote it · compare two states
An operation carries no clock of its own. Each row is therefore dated by the first mark written after it by the same replica, which is one copy of the repository, and that mark is where the command that wrote the operation ended.
+ signed and verified, ? signed by a key this forge does not carry, - unsigned
| Operation | Author | What | When | |
|---|---|---|---|---|
| + | r1870400018:72722 | replica 1870400018 | created fe2o3_text/src/csl/style.rs | 40 days ago under "fe2o3_text csl: the CSL 1.0.2 style and locale model and its parser (FIRE-B B1) -- a new `csl` module behind feature `csl`, read through the crate's own XML reader. `Style::parse` takes an independent style into a typed tree: every rendering element (text, number, label, names with name/name-part/et-al/label/substitute, date with date-part, group, choose with all seven conditions and the three match modes), macros, citation and bibliography options (disambiguation, collapse, cite-group and year-suffix delimiters, second-field-align, hanging-indent, spacing, subsequent-author-substitute and its rule), sort keys, the style-level options, and the inheritable name options with `NameOpts::over` for the style, context and element levels. A dependent style is refused by name with its parent's id. `Locale::parse` reads a locale file or an in-style locale (terms with forms, genders, ordinal match, single and multiple; localised dates; style options). `Locales::chain` builds the lookup order hayagriva 0.10.1 uses, which Typst 0.15.1 shows: in-style requested code, in-style base language, in-style without xml:lang, then the file of the requested code, the primary dialect of its language (citationberg's table, so `de` reaches de-DE and `zh` zh-CN), then en-US; term forms fall back only once the whole chain lacks the asked form. `Locales::wanted` names the files a host must supply. tests/csl.rs parses the 65 distinct styles of the Austenite parity corpus (tests/data/csl/corpus, unmodified, sources listed; one GPL-3.0 style left out) and round-trips each style's macro count and its count of every rendering element; one corpus style is dependent and is refused as one. Four locale and dependent-style cases." |
| + | r1870400018:72723 | replica 1870400018 | inserted 31.1 KiB | 40 days ago under "fe2o3_text csl: the CSL 1.0.2 style and locale model and its parser (FIRE-B B1) -- a new `csl` module behind feature `csl`, read through the crate's own XML reader. `Style::parse` takes an independent style into a typed tree: every rendering element (text, number, label, names with name/name-part/et-al/label/substitute, date with date-part, group, choose with all seven conditions and the three match modes), macros, citation and bibliography options (disambiguation, collapse, cite-group and year-suffix delimiters, second-field-align, hanging-indent, spacing, subsequent-author-substitute and its rule), sort keys, the style-level options, and the inheritable name options with `NameOpts::over` for the style, context and element levels. A dependent style is refused by name with its parent's id. `Locale::parse` reads a locale file or an in-style locale (terms with forms, genders, ordinal match, single and multiple; localised dates; style options). `Locales::chain` builds the lookup order hayagriva 0.10.1 uses, which Typst 0.15.1 shows: in-style requested code, in-style base language, in-style without xml:lang, then the file of the requested code, the primary dialect of its language (citationberg's table, so `de` reaches de-DE and `zh` zh-CN), then en-US; term forms fall back only once the whole chain lacks the asked form. `Locales::wanted` names the files a host must supply. tests/csl.rs parses the 65 distinct styles of the Austenite parity corpus (tests/data/csl/corpus, unmodified, sources listed; one GPL-3.0 style left out) and round-trips each style's macro count and its count of every rendering element; one corpus style is dependent and is refused as one. Four locale and dependent-style cases." |
| + | r1870400018:73686 | replica 1870400018 | replaced 10 bytes with 71 bytes | 40 days ago under "fe2o3_text csl: n1-n6 scored, 40 of 40 against Typst (FIRE-B B2b, part 3) -- tests/csl_render.rs's `Fx` gains people, the issued date, typed pages, volume-title and a second CSL type, and renders n1-n6 with `Cite { first: true }`: particles, a suffix (no comma, as hayagriva sets for every BibTeX name), an institution, 8 and 21 authors, a full date, a month, a range (its end date) and a circa year. n4 is paper-conference with the book title as container-title and volume-title; n5, an @misc with a URL, matches webpage and document. ieee, apa, chicago-author-date and american-medical-association each match Typst 0.15.1 on 10 of 10. One fix: `names_info` now counts a `names` with children but no `name` as empty, as hayagriva's `will_have_info` does, so AMA's `<names variable=\"editor\"><label/></names>` prints nothing (checked with Typst on the style with and without a `<name/>`)" |
| + | r1870400018:73687 | replica 1870400018 | replaced 3 bytes with 17 bytes | 40 days ago under "fe2o3_text csl: n1-n6 scored, 40 of 40 against Typst (FIRE-B B2b, part 3) -- tests/csl_render.rs's `Fx` gains people, the issued date, typed pages, volume-title and a second CSL type, and renders n1-n6 with `Cite { first: true }`: particles, a suffix (no comma, as hayagriva sets for every BibTeX name), an institution, 8 and 21 authors, a full date, a month, a range (its end date) and a circa year. n4 is paper-conference with the book title as container-title and volume-title; n5, an @misc with a URL, matches webpage and document. ieee, apa, chicago-author-date and american-medical-association each match Typst 0.15.1 on 10 of 10. One fix: `names_info` now counts a `names` with children but no `name` as empty, as hayagriva's `will_have_info` does, so AMA's `<names variable=\"editor\"><label/></names>` prints nothing (checked with Typst on the style with and without a `<name/>`)" |
| + | r1870400018:73688 | replica 1870400018 | replaced 3 bytes with 9 bytes | 40 days ago under "fe2o3_text csl: n1-n6 scored, 40 of 40 against Typst (FIRE-B B2b, part 3) -- tests/csl_render.rs's `Fx` gains people, the issued date, typed pages, volume-title and a second CSL type, and renders n1-n6 with `Cite { first: true }`: particles, a suffix (no comma, as hayagriva sets for every BibTeX name), an institution, 8 and 21 authors, a full date, a month, a range (its end date) and a circa year. n4 is paper-conference with the book title as container-title and volume-title; n5, an @misc with a URL, matches webpage and document. ieee, apa, chicago-author-date and american-medical-association each match Typst 0.15.1 on 10 of 10. One fix: `names_info` now counts a `names` with children but no `name` as empty, as hayagriva's `will_have_info` does, so AMA's `<names variable=\"editor\"><label/></names>` prints nothing (checked with Typst on the style with and without a `<name/>`)" |
| + | r1870400018:73689 | replica 1870400018 | inserted 1 byte | 40 days ago under "fe2o3_text csl: n1-n6 scored, 40 of 40 against Typst (FIRE-B B2b, part 3) -- tests/csl_render.rs's `Fx` gains people, the issued date, typed pages, volume-title and a second CSL type, and renders n1-n6 with `Cite { first: true }`: particles, a suffix (no comma, as hayagriva sets for every BibTeX name), an institution, 8 and 21 authors, a full date, a month, a range (its end date) and a circa year. n4 is paper-conference with the book title as container-title and volume-title; n5, an @misc with a URL, matches webpage and document. ieee, apa, chicago-author-date and american-medical-association each match Typst 0.15.1 on 10 of 10. One fix: `names_info` now counts a `names` with children but no `name` as empty, as hayagriva's `will_have_info` does, so AMA's `<names variable=\"editor\"><label/></names>` prints nothing (checked with Typst on the style with and without a `<name/>`)" |
| + | r1870400018:73690 | replica 1870400018 | inserted 5 bytes | 40 days ago under "fe2o3_text csl: n1-n6 scored, 40 of 40 against Typst (FIRE-B B2b, part 3) -- tests/csl_render.rs's `Fx` gains people, the issued date, typed pages, volume-title and a second CSL type, and renders n1-n6 with `Cite { first: true }`: particles, a suffix (no comma, as hayagriva sets for every BibTeX name), an institution, 8 and 21 authors, a full date, a month, a range (its end date) and a circa year. n4 is paper-conference with the book title as container-title and volume-title; n5, an @misc with a URL, matches webpage and document. ieee, apa, chicago-author-date and american-medical-association each match Typst 0.15.1 on 10 of 10. One fix: `names_info` now counts a `names` with children but no `name` as empty, as hayagriva's `will_have_info` does, so AMA's `<names variable=\"editor\"><label/></names>` prints nothing (checked with Typst on the style with and without a `<name/>`)" |
| + | r1870400018:73691 | replica 1870400018 | inserted 1 byte | 40 days ago under "fe2o3_text csl: n1-n6 scored, 40 of 40 against Typst (FIRE-B B2b, part 3) -- tests/csl_render.rs's `Fx` gains people, the issued date, typed pages, volume-title and a second CSL type, and renders n1-n6 with `Cite { first: true }`: particles, a suffix (no comma, as hayagriva sets for every BibTeX name), an institution, 8 and 21 authors, a full date, a month, a range (its end date) and a circa year. n4 is paper-conference with the book title as container-title and volume-title; n5, an @misc with a URL, matches webpage and document. ieee, apa, chicago-author-date and american-medical-association each match Typst 0.15.1 on 10 of 10. One fix: `names_info` now counts a `names` with children but no `name` as empty, as hayagriva's `will_have_info` does, so AMA's `<names variable=\"editor\"><label/></names>` prints nothing (checked with Typst on the style with and without a `<name/>`)" |
| + | r1870400018:73692 | replica 1870400018 | replaced 15 bytes with 21 bytes | 40 days ago under "fe2o3_text csl: n1-n6 scored, 40 of 40 against Typst (FIRE-B B2b, part 3) -- tests/csl_render.rs's `Fx` gains people, the issued date, typed pages, volume-title and a second CSL type, and renders n1-n6 with `Cite { first: true }`: particles, a suffix (no comma, as hayagriva sets for every BibTeX name), an institution, 8 and 21 authors, a full date, a month, a range (its end date) and a circa year. n4 is paper-conference with the book title as container-title and volume-title; n5, an @misc with a URL, matches webpage and document. ieee, apa, chicago-author-date and american-medical-association each match Typst 0.15.1 on 10 of 10. One fix: `names_info` now counts a `names` with children but no `name` as empty, as hayagriva's `will_have_info` does, so AMA's `<names variable=\"editor\"><label/></names>` prints nothing (checked with Typst on the style with and without a `<name/>`)" |
| + | r1870400018:73879 | replica 1870400018 | inserted 72 bytes | 40 days ago under "fe2o3_text csl: sorting, citation numbers and the bibliography driver (FIRE-B B3, part 1) -- new `csl::cite` holds the document-wide `CiteState` (each cited entry once, in first-cite order, sorted by the bibliography's keys, numbered from 1) and `render_bibliography(style, chain, lang, items, &state) -> Vec<(Option<Node>, Vec<Node>)>`, whose prefix is second-field-align's first field taken out as hayagriva's `remove_any_meta` does (the test no longer applies it by hand). Sorting ports hayagriva 0.10.1's `sort.rs`: variable keys (text, number, page, date, names by `Person::sort_cmp`), macro keys rendered by a sorting `Ctx` with the key's names-min/-use-first/-use-last over the style's options, the empty-value reversal, and `collate`, a primary-strength stand-in for ICU's root order. A sorting `Ctx` reverses every long name, strips an institution's leading article, demotes particles under sort-only, skips labels and et al., and writes dates as citeproc's `P000002020MMDD` keys. The et-al fix: a `names` element's own inheritable name options now sit between the name's and the inherited ones. tests/csl_render.rs now compares each style's whole bibliography, in order, with Typst 0.15.1's `full: true` output: ieee, apa, chicago-author-date and american-medical-association each 10 of 10 in place" |
| + | r1870400018:73880 | replica 1870400018 | inserted 35 bytes | 40 days ago under "fe2o3_text csl: sorting, citation numbers and the bibliography driver (FIRE-B B3, part 1) -- new `csl::cite` holds the document-wide `CiteState` (each cited entry once, in first-cite order, sorted by the bibliography's keys, numbered from 1) and `render_bibliography(style, chain, lang, items, &state) -> Vec<(Option<Node>, Vec<Node>)>`, whose prefix is second-field-align's first field taken out as hayagriva's `remove_any_meta` does (the test no longer applies it by hand). Sorting ports hayagriva 0.10.1's `sort.rs`: variable keys (text, number, page, date, names by `Person::sort_cmp`), macro keys rendered by a sorting `Ctx` with the key's names-min/-use-first/-use-last over the style's options, the empty-value reversal, and `collate`, a primary-strength stand-in for ICU's root order. A sorting `Ctx` reverses every long name, strips an institution's leading article, demotes particles under sort-only, skips labels and et al., and writes dates as citeproc's `P000002020MMDD` keys. The et-al fix: a `names` element's own inheritable name options now sit between the name's and the inherited ones. tests/csl_render.rs now compares each style's whole bibliography, in order, with Typst 0.15.1's `full: true` output: ieee, apa, chicago-author-date and american-medical-association each 10 of 10 in place" |