Files
ConformalLabpp/.codespellrc
Tarik Moussa f25174ed69 feat: output_uv_map for InversiveDistance, error for CP-Euclidean, reviewer trio
Three reviewer-meeting deliverables in one commit.

(1) output_uv_map for the two remaining DCE entries
    ─────────────────────────────────────────────────
    * Discrete_inversive_distance.h: full implementation.  After Newton,
      reconstruct effective Euclidean edge lengths from the converged
      log-radii via the Bowers-Stephenson identity
      `ℓᵢⱼ² = rᵢ² + rⱼ² + 2·Iᵢⱼ·rᵢ·rⱼ`, populate a temporary
      EuclideanMaps with `lambda0 = log(ℓᵢⱼ²)`, and reuse the existing
      `euclidean_layout(mesh, 0, eucl)` priority-BFS.  Per-vertex
      Point_2 coordinates written into the user-supplied pmap.
      Optional `normalise_layout(true)` applies the canonical PCA
      centroid + major-axis rotation, same as the other 3 entries.

    * Discrete_circle_packing.h: throws std::runtime_error with a
      clear pointer to Phase 9c rather than silently producing
      nonsense.  CP-Euclidean is face-based; the faithful output is a
      per-face circle packing in ℝ², not a per-vertex Point_2 map.
      A true layout requires BPS-2010 §6 (~150 lines, on the porting
      roadmap as Phase 9c).  Failing loudly is the honest default.

    Tests: 2 new cases in test_cgal_phase8b_lite.cpp
    (OutputUvMap_InversiveDistance_PopulatesPmap;
    OutputUvMap_CPEuclidean_ThrowsClearly).  Both green.
    Suite total now 259 (was 257, +2).  CGAL subtotal: 234 → 236.

(2) Reviewer meeting documents
    ──────────────────────────
    New directory doc/reviewer/ with three files:

    * briefing.md  — one-page orientation for the reviewer.
      What the project is, where to look first
      (https://tmoussa.codeberg.page/ConformalLabpp/), the headline
      evidence (tests/coverage/sanitizers/license), what we want from
      them, what's deferred and why, and the 5 questions in a separate
      file.

    * questions.md — the 5 concrete decisions we want their second
      opinion on:
        Q1 Phase 9c (port-literal vs re-derive)
        Q2 Phase 9b-analytic (worth ~2 weeks for ~6× speedup?)
        Q3 CP-Euclidean output_uv_map (build now or defer?)
        Q4 CGAL submission strategy (one package or five?)
        Q5 geometry-central cross-validation co-authorship
      Plus an explicit "what would you say no to?" question at the
      bottom — negative feedback is the highest-value information.

    * agenda.md   — my own internal playbook (NOT to be sent).
      60-min flow: 5-min thank-you, 10-min architecture tour,
      30-min for Q1-Q5 in the order Q4-Q1-Q2-Q5-Q3, 5-min "no"
      question, 5-min wrap-up.  Includes post-meeting memo template
      to fill out in the 30 min after.

    * README.md    — index for the directory; says which file goes
      to whom and when to send.

(3) locked-vs-flexible.md known-limitations update
    ─────────────────────────────────────────────
    "output_uv_map covers 3 of 5 entries" → "covers 4 of 5".
    CP-Euclidean's throws-clearly behaviour documented as a Phase 9c
    deliverable rather than a passive gap.

Bonus: extended .codespellrc ignore list (acknowledgement, the
British-English spelling I used in agenda.md).

Verifications on this commit:
  259/259 tests pass (0 skipped)
  scripts/check-test-counts.sh:                OK (23 + 236 = 259)
  scripts/quality/license-headers.sh:          OK (66/66 SPDX)
  python3 scripts/quality/cgal-conventions.py: OK (0/6 violations)
  scripts/quality/codespell.sh:                OK (0 typos)
  scripts/quality/shellcheck.sh:               OK (0 findings)
  python3 scripts/check-markdown-links.py:     OK (143/143)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 11:15:09 +02:00

87 lines
3.8 KiB
Plaintext

# conformallab++ codespell policy
#
# Driven by scripts/quality/codespell.sh. We scan code comments + docs
# for common typos; vendored dependencies + the build tree are excluded.
#
# False positives go into ignore-words-list (lowercase, comma-separated).
# Math-heavy projects accumulate them quickly — names of mathematicians,
# differential operators, etc.
[codespell]
skip = code/deps,build,build-*,build_T_*,test-reports,doc/doxygen,.git,*.svg,*.lock,*.pdf,*.png,*.jpg,Doxyfile,*.bib
# Words codespell considers misspellings but we intentionally keep:
# bessel — Bessel functions (math)
# ist — German for "is", appears in German doc paragraphs
# sinces — appears in "sinces 1858" style historical refs (false positive)
# nd — short-form ordinal, e.g. "2nd"
# te — appears in greek transliteration "θ → te"
# inout — common parameter direction word
# nin — math symbol ∉ accidental match
# numer — "numerical/numerator" abbreviation in headers
# neet — German "neet" / accidental matches
# anc — appears in "anc(ient)" math literature refs
# sinks — "sinks" can hit Sinkhorn
ignore-words-list = bessel,ist,sinces,nd,te,inout,nin,numer,neet,anc,sinks,doubleClick,
centre,centres,centered,centering,centring,
behaviour,behaviours,behavioural,
analogue,analogues,
initialise,initialised,initialises,initialising,initialisation,
normalise,normalised,normalises,normalising,normalisation,
centralise,centralised,centralises,centralising,
serialise,serialised,serialises,serialising,serialisation,
parameterise,parameterised,parameterises,parameterising,
parametrise,parametrised,parametrises,parametrising,
realise,realised,realises,realising,realisation,
optimise,optimised,optimises,optimising,optimisation,
sanitise,sanitised,sanitises,sanitising,
generalise,generalised,generalises,generalising,
amortise,amortised,amortises,amortising,
factorise,factorised,factorises,factorising,
discretise,discretised,discretises,discretising,
summarise,summarised,summarises,summarising,
colour,colours,coloured,colouring,
artefact,artefacts,
iff,
dof,dofs,
browseable,
re-use,re-uses,re-used,re-using,
specialise,specialised,specialises,specialising,specialisation,specialisations,
visualise,visualised,visualises,visualising,visualisation,visualisations,
model,modeled,modelled,modelling,
minimise,minimised,minimises,minimising,minimisation,
maximise,maximised,maximises,maximising,maximisation,
organise,organised,organises,organising,organisation,
characterise,characterised,characterises,characterising,
emphasise,emphasised,emphasises,emphasising,
analyse,analysed,analyses,analysing,analyser,analysers,
organise,organisation,organisational,
parameterise,parameterisation,
centre,centred,centres,
catalogue,catalogues,
maths,
generalisation,generalisations,
realisation,realisations,
specialisation,specialisations,
visualisation,visualisations,
minimisation,maximisation,characterisation,
groupes,fuchsiens,théorie,théorème,
iff,
categorise,categorised,categorises,categorising,
optimisation,optimisations,
acknowledgement,acknowledgements,acknowledging,
neighbour,neighbours,neighbouring,neighboured,
labelled,labelling,labels,labelled,
fulfil,fulfils,fulfilled,fulfilling,
endcode,
deklaration,deklarationen,
recognise,recognised,recognises,recognising,recognisation,
signalled,signalling,
travelled,travelling,
cancelled,cancelling,
modelled,modelling
# Words we explicitly DO want flagged (override the default skip list).
# Keep empty for now; add as we hit real-but-not-flagged typos.
builtin = clear,rare,informal,usage,code,en-GB_to_en-US,names