Repository navigation
Conversation
…paused) Work in progress, not yet compiled or run against fixtures. Adds the new crates/makeindex crate: a port of makeindex 2.18 (scanid.c, sortid.c + qsort.c, genind.c, scanst.c) with the .ilg transcript, the ctype locale model for headings, an in-process Job/run API, IndexSession, the oracle fixture generator (tools/gen_fixtures.py, ~90 cases) and the byte-comparison test harness. writer.rs and theindex.rs are stubs. Implementation-Agent: Claude Opus 5 (subagent kabir-claude KC-109, mac-m5pro-kabir) Commit-Executor: Claude Code direct Git Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
Contributor
Author
|
Closing as a stale paused draft. Its own description says "Paused for usage pacing... not compiled yet, and no oracle fixtures have been generated or run"; last touched 2026-09-13, no comments, no dependents, and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paused for usage pacing. This is work in progress: not compiled yet, and no oracle fixtures have been generated or run.
Overlap check
No overlap found. There is no makeindex, imakeidx, glossary or xindy code or branch on origin, and no assignment mentions
\makeindex,theindexor\printindex.crates/project-indexis the IDE citation index, which is unrelated. The compiler only listsindexincrates/compiler/src/vocabulary.rs. The earlieragent/kabir-claude/makeindexattempt had pushed nothing.Done (commit b8dc94c, only
crates/makeindex/**)engine.rs: line-by-line port of makeindex 2.18. Coversscanid.c(.idxscanning, keys, pages, error texts),sortid.candqsort.c(exactqqsort, so duplicate marking and the "N comparisons" count in the.ilgmatch), andgenind.c(items, ranges, merging, wrapping, headings, warnings,-p).style.rs: every.istattribute with itsscanst.hdefault, plus thescan_styandprocess_precedenceport including style error messages.ctype.rs: models how headings depend on the locale, which I checked against MacTeX with probes. Sorting and the first heading use the C ctype. Later headings use the environment ctype:DarwinUtf8treats bytes as Latin-1 (0xFF uppercases to 0x78, 0xB5 to 0x9C).lib.rs: theJob/runAPI, aCommandLineparser andFatalerrors.session.rsaddsIndexSession, which caches the style scan, skips re-runs when the.idxis unchanged, and reportsind_changed.tools/gen_fixtures.py: generates about 70 hand-written cases plus about 25 from TeX Livetexk/makeindexk/tests. Cases cover syntax, quote and escape, sorting with-l,-g, numbers, symbols, case and UTF-8/Latin-1, ranges,-r, encaps, composite and roman pages, many.iststyles,-pmodes, errors, multiple files, CRLF and random stress.tests/oracle.rscompares.indand.ilgbyte for byte and never runs TeX.Not done
writer.rs:.idxwriter semantics fromlatex.ltxlines 17710-17724 (\@wrindex,\@sanitizeat line 1778,\protected@writeat line 9547) and imakeidx\index[name]. Needs at least 10 pdflatex documents as fixtures.theindex.rs: data for article/report/booktheindex(\@idxitemhangindent 40pt, subitem 20pt, subsubitem 30pt,\indexspace10pt plus 5pt minus 3pt, columnsep 35pt) and the imakeidx multicols prologue.CONTRACT.md.Oracle status
0 of N. Nothing has run yet.
Resume steps
cd crates/makeindex && export CARGO_BUILD_JOBS=3 && cargo build, then fix compile errors.texk/makeindexk/tests/*from the TeX-Live/texlive-source trunk into a temp dir (the list is inTLin the generator).python3 tools/gen_fixtures.py --texlive-tests <dir>, which runs MacTeXmakeindexwithLC_ALL=en_US.UTF-8orC.cargo test --test oracle, then iterate until all fixtures match byte for byte.writer.rswith its pdflatex fixtures, thentheindex.rsandCONTRACT.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu