mirror of
https://github.com/core-hn/pseudobsidian-ization.git
synced 2026-07-22 06:57:06 +00:00
chore: bump to 0.1.6
This commit is contained in:
parent
b6fdbbfe67
commit
330c3258cb
7 changed files with 122 additions and 9 deletions
|
|
@ -1,5 +1,57 @@
|
|||
# Changelog
|
||||
|
||||
## [prod] v0.1.6 — 17 mai 2026
|
||||
|
||||
### Nouvelles fonctionnalités
|
||||
|
||||
**Onglet Corpus**
|
||||
- Nouvel onglet **Corpus** (dernier dans le panneau) — transcriptions par classe, badges statut : règles, version pseudo, format d'export final
|
||||
- **Gestion des classes** : créer, supprimer (déplace les fichiers à la racine)
|
||||
- **Déplacer des fichiers entre classes** : dropdown par fichier — déplace `.md` + `.mapping.json` + `.words.json` + audio + fichiers source en miroir
|
||||
- **Paramètres de destination des exports finaux** (inline dans l'onglet) : dossier vault (avec option miroir de classes), à côté du fichier source, ou dossier externe ; `FolderSuggest` autocomplete sur tous les champs de dossier
|
||||
- Composant `FolderSuggest` — autocomplete dossiers vault dans les Paramètres et le wizard
|
||||
|
||||
**Modale de scan — candidats par occurrence**
|
||||
- `MappingScanReviewModal` : colonne occurrences cliquable (`N / total` si exceptions)
|
||||
- `OccurrencesContextModal` : cartes par occurrence (✓ / ✗ / ⚠) avec contexte, callback "Confirmer la sélection", sans application immédiate
|
||||
- **Bouton "Enregistrer les exceptions"** : persiste les décisions ignorées dans `mapping.json` sans pseudonymiser
|
||||
- Pré-remplit les décisions depuis `ignoredOccurrences` existantes à la réouverture
|
||||
|
||||
**Exceptions**
|
||||
- `IgnoredOccurrence {text, contextBefore, contextAfter}` sur `MappingRule.ignoredOccurrences`
|
||||
- Persistance dans `mapping.json`, chargée au démarrage — rouge sans re-scan
|
||||
- Surlignage rouge : positionnel, par contexte (`findByContext`) — seulement l'occurrence précise est rouge
|
||||
- `findSpansForRule()` exclut les occurrences ignorées du remplacement à l'export
|
||||
- Clic droit "Déclarer une exception ici" sur les termes orange (contexte 30 caractères)
|
||||
- Section Exceptions dans l'onglet Mappings avec cartes contextuelles et suppression
|
||||
|
||||
**Exports**
|
||||
- `markdownToSrt()` et `markdownToCha()` — re-export du Markdown pseudonymisé en SRT/CHAT
|
||||
- `resolveExportPath()` — miroir de classes depuis le dossier mapping quand le fichier est dans exports
|
||||
- `writeExport()` — vault, à côté du source, ou externe (Node.js fs)
|
||||
- Onglet Exports : bouton adapté selon source ou pseudonymisé ; masque pseudonymiser pour les fichiers déjà exportés
|
||||
|
||||
**Avertissement nom de fichier**
|
||||
- Bannière au-dessus des onglets si le nom contient un terme pseudonymisable
|
||||
- Deux boutons : ✏ renommage manuel · ✨ suggestion neutre (`transcript_N`)
|
||||
- Statuts clarifiés : "Actif / Partiel / Ignoré / Suggéré"
|
||||
- `getValidatedFor()` inclut `partial` comme état actif
|
||||
|
||||
**Cascade de renommage**
|
||||
- Écouteur `vault.on('rename')` — cascade automatique au renommage natif Obsidian
|
||||
- `cascadeRelatedRename()` — met à jour : frontmatter (`processFrontMatter`), `.mapping.json` (scope store + règles), `.words.json`, exports pseudonymisés, audio (même basename + référence `pseudobs-audio`), fichiers source (.srt/.vtt/.cha/.html/.yml)
|
||||
- `moveFileToClass()` déplace aussi l'audio et met à jour les deux niveaux de scope
|
||||
- Guard `_renamingRelated` prévient les boucles
|
||||
|
||||
### Corrections
|
||||
- `renameFileAndRelated` : `oldFilePath` capturé avant `vault.rename()` (TFile muté in-place)
|
||||
- Renommage audio : `oldAudioName` capturé avant rename (même problème de mutation)
|
||||
- `processFrontMatter` pour toutes les modifications de frontmatter (regex peu fiable)
|
||||
- Scope store ET scope des règles mis à jour lors du déplacement/renommage
|
||||
- `esbuild` : `copyStylesPlugin` copie `styles.css` dans le vault de test à chaque rebuild dev
|
||||
|
||||
---
|
||||
|
||||
## [prod] v0.1.5 — 17 mai 2026
|
||||
|
||||
### Nouvelles fonctionnalités
|
||||
|
|
|
|||
55
CHANGELOG.md
55
CHANGELOG.md
|
|
@ -2,6 +2,61 @@
|
|||
|
||||
> Previous entries in French: [CHANGELOG.fr.md](CHANGELOG.fr.md)
|
||||
|
||||
## [prod] v0.1.6 — 17 May 2026
|
||||
|
||||
### New features
|
||||
|
||||
**Corpus tab**
|
||||
- New **Corpus** tab (last in the panel) — transcription files organized by class with status badges: rule count, pseudonymized version, final export format
|
||||
- **Class management**: create, rename (coming), delete classes (moves files to root)
|
||||
- **Move files between classes**: dropdown per file — moves `.md` + `.mapping.json` + `.words.json` + audio + source files in sync
|
||||
- **Export destination settings** (inline in the tab): vault folder (with optional class-structure mirroring), next to source, or external folder; `FolderSuggest` autocomplete on all folder fields
|
||||
- `FolderSuggest` component — folder autocomplete in Settings and Onboarding wizard
|
||||
|
||||
**Scan modal — per-occurrence candidates**
|
||||
- `MappingScanReviewModal`: occurrence count column is now a clickable button showing `N / total` when some are ignored
|
||||
- `OccurrencesContextModal`: per-occurrence cards (✓ / ✗ / ⚠) with context, "Confirm selection" callback, no immediate application
|
||||
- **"Save exceptions" button**: persists ignored decisions in `mapping.json` without pseudonymizing
|
||||
- Pre-fills decisions from existing `ignoredOccurrences` on re-open
|
||||
- `MappingRuleResult` now carries `occurrences: Occurrence[]`
|
||||
|
||||
**Exceptions**
|
||||
- `IgnoredOccurrence {text, contextBefore, contextAfter}` on `MappingRule.ignoredOccurrences`
|
||||
- Persisted in `mapping.json`, loaded at startup — red highlighting without re-scanning
|
||||
- Red highlighting: context-aware, position-based via `findByContext()` — only the specific ignored occurrence is red, not all occurrences of the word
|
||||
- `findSpansForRule()` skips ignored occurrences — they are not pseudonymized on export
|
||||
- Right-click "Declare as exception here" on orange terms (captures 30-char context)
|
||||
- Exceptions section in Mappings tab with context cards and delete button
|
||||
|
||||
**Exports**
|
||||
- `markdownToSrt()` and `markdownToCha()` — re-export pseudonymized Markdown back to SRT/CHAT
|
||||
- `resolveExportPath()` — mirroring class structure from mapping folder when file is in exports
|
||||
- `writeExport()` — vault, next-to-source, or external (Node.js fs); ensures parent folder
|
||||
- Exports tab: button adapts based on whether active file is source or pseudonymized export; hides pseudonymize button for files already in exports folder
|
||||
|
||||
**Filename warning**
|
||||
- Banner above the tab bar when active file's name contains a pseudonymizable term
|
||||
- Two buttons: ✏ manual rename prompt · ✨ apply neutral suggestion (`transcript_N`)
|
||||
- `suggestCorrectedFilename()` — neutral naming, auto-incremented, no replacement leak
|
||||
- Status labels clarified: "Active / Partial / Ignored / Suggested"
|
||||
- `getValidatedFor()` includes `partial` as active
|
||||
|
||||
**Rename cascade**
|
||||
- `vault.on('rename')` listener — automatic cascade when user renames via Obsidian explorer
|
||||
- `cascadeRelatedRename()` — updates: frontmatter (`app.fileManager.processFrontMatter`), `.mapping.json` (store scope + rule scopes), `.words.json`, pseudonymized exports, audio (same basename + `pseudobs-audio` reference), source files (.srt/.vtt/.cha/.html/.yml)
|
||||
- Audio strategy: renames audio with same basename AND audio referenced by `pseudobs-audio` (noScribe, different basename)
|
||||
- Guard flag `_renamingRelated` prevents cascade loops
|
||||
- `moveFileToClass()` also moves audio and updates both store-level and rule-level scope paths
|
||||
|
||||
### Fixes
|
||||
- `renameFileAndRelated`: capture `oldFilePath` before `vault.rename()` (TFile mutated in-place)
|
||||
- Audio rename: capture `oldAudioName` before rename (same mutation issue)
|
||||
- `processFrontMatter` for all frontmatter updates (regex was unreliable)
|
||||
- Both store-level `scope.path` and individual rule `scope.path` updated on move/rename
|
||||
- `esbuild`: `copyStylesPlugin` copies `styles.css` to test vault on each dev rebuild
|
||||
|
||||
---
|
||||
|
||||
## [prod] v0.1.5 — 17 May 2026
|
||||
|
||||
### New features
|
||||
|
|
|
|||
|
|
@ -108,10 +108,11 @@ Accessible via the ribbon icon or `Ctrl+P → Pseudonymization: open panel`.
|
|||
|
||||
| Tab | Content |
|
||||
|---|---|
|
||||
| **Mappings** | Active rules · Edit · Delete · Add · Scan file · **Exceptions section** |
|
||||
| **Mappings** | Active rules · Edit · Delete · Add · Scan file · Exceptions section |
|
||||
| **Dictionaries** | Mini cards · Dictionary scan · Local import |
|
||||
| **Exports** | Pseudonymize and export · Export correspondence table · **Export as VTT** |
|
||||
| **Exports** | Create pseudonymized version · Export correspondence table · Re-export as VTT/SRT/CHAT |
|
||||
| **NER** | Visible if NER enabled · Identify candidates · Confidence threshold · Function words |
|
||||
| **Corpus** | Files by class · Class management · Move files · **Final export destination** |
|
||||
|
||||
### Highlighting and markers
|
||||
|
||||
|
|
@ -122,7 +123,7 @@ Highlighting is active in all open files, including `.pseudonymized.*` export fi
|
|||
| 🟠 Orange + outline | Source term still present — to be pseudonymized |
|
||||
| 🟢 Green + underline | Pseudonym applied directly in the file |
|
||||
| 🔵 Blue + outline | NER candidate — no rule yet |
|
||||
| 🔴 Red + underline | **Exception** — occurrence explicitly ignored during scan (case-sensitive; persisted in mapping) |
|
||||
| 🔴 Red + underline | **Exception** — specific occurrence explicitly ignored (context-aware; persisted in mapping) |
|
||||
|
||||
In exported files, pseudonyms are wrapped in `{{Pierre}}` markers to distinguish them from raw data (enabled by default, configurable in settings).
|
||||
|
||||
|
|
@ -212,7 +213,7 @@ src/
|
|||
| 7 — Coulmont | ✅ | Equivalent first name suggestions · JSON/CSV import |
|
||||
| 8 — Side panel | ✅ | 3 tabs · Embedded NER · Wizard · Cancellation · Export highlighting |
|
||||
| 9 — Structured dictionaries | ✅ | Format v1.1 · DictionaryLoader · Dictionary scan · Review modal · French communes |
|
||||
| 10 — Refinement & noScribe | 🔄 | i18n · Corpus org · noScribe HTML/VTT import · per-occurrence scan · exceptions · VTT re-export |
|
||||
| 10 — Refinement & noScribe | 🔄 | i18n · Corpus UI · noScribe import · per-occurrence scan · exceptions · rename cascade · export destination |
|
||||
| 11 — EMCA functions | ⏳ | Turn navigation · Jefferson/ICOR correction · ELAN export |
|
||||
|
||||
See [ROADMAP.md](ROADMAP.md) for the full phase breakdown and planned features.
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ Architectural decision (May 2026): **identifying entity detection** is handled b
|
|||
✅ Phases 0–8 Parsers · Engine · UI · Scopes · Highlighting · Validation · Coulmont · Panel · NER · Wizard
|
||||
✅ Phase 9 Structured dictionaries · DictionaryLoader · Review modals · French communes
|
||||
🔄 Phase 10 Refinement & noScribe integration (v0.1.x → v0.2.0)
|
||||
✅ i18n · Corpus org · noScribe HTML/VTT/audio · Scan candidates · Exceptions · VTT re-export
|
||||
✅ i18n · Corpus UI · noScribe import · scan candidats · exceptions · rename cascade · exports
|
||||
⏳ Test coverage · Jefferson/ICOR checker · Audio redaction · Timestamp UI
|
||||
⏳ Phase 11 Interactional analysis functions (v1.0.0)
|
||||
```
|
||||
|
|
@ -223,7 +223,11 @@ Goal: consolidate all existing features and add the EMCA-specific functions that
|
|||
- [x] **Mappings tab grouped by scope** — File / Folder / Vault sections with active-file filter
|
||||
- [x] **Status labels clarified** — "Active / Partial / Ignored / Suggested" instead of ✓/◑/✗/?; `getValidatedFor()` includes `partial`
|
||||
- [x] **Scan modal — per-occurrence candidates** — `MappingScanReviewModal` count column opens `OccurrencesContextModal` (✓/✗/⚠ per occurrence, "Save exceptions" button)
|
||||
- [x] **Exceptions** — `IgnoredOccurrence` on `MappingRule`, persisted in mapping.json, red highlighting (`pseudobs-exception`, case-sensitive, priority 0), Exceptions section in Mappings tab
|
||||
- [x] **Exceptions** — `IgnoredOccurrence` on `MappingRule`, persisted in mapping.json, red highlighting (`pseudobs-exception`, context-aware position, priority 0), Exceptions section in Mappings tab
|
||||
- [x] **Corpus tab** — file list by class, class management, move files (cascade: .md + mapping + audio + source), final export destination (vault/next-to-source/external, optional class mirroring), `FolderSuggest` autocomplete
|
||||
- [x] **Rename cascade** — `vault.on('rename')` listener, `cascadeRelatedRename()` updates frontmatter (processFrontMatter), mapping scopes, words.json, exports, audio (same basename + pseudobs-audio ref), source files
|
||||
- [x] **Filename warning** — banner above tabs when name contains pseudonymizable term; ✏ manual rename · ✨ neutral suggestion (transcript_N)
|
||||
- [x] **Exports in original format** — `markdownToSrt()`, `markdownToCha()`, `resolveExportPath()` with class mirroring, Exports tab adapts based on file type
|
||||
- [ ] Unit test coverage ≥ 80% for parsers, engine, NER scanner, DictionaryLoader
|
||||
- [ ] Jefferson / ICOR convention checker: hover suggestions, editor highlighting
|
||||
- [ ] EMCA publication exports (PNG)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "pseudonymizer-tool",
|
||||
"name": "Pseudonymizer Tool",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"minAppVersion": "1.7.2",
|
||||
"description": "Pseudonymize and correct interactional transcripts (Jefferson, ICOR, SRT, CHAT/CHA). Designed for qualitative researchers in linguistics and conversation analysis.",
|
||||
"author": "Axelle Abbadie",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "pseudonymizer-tool",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"description": "Obsidian plugin for pseudonymizing and correcting interactional transcripts (Jefferson, ICOR, SRT, CHAT/CHA).",
|
||||
"author": "Axelle Abbadie",
|
||||
"homepage": "https://cv.hal.science/axelle-abbadie/",
|
||||
|
|
|
|||
|
|
@ -10,5 +10,6 @@
|
|||
"0.1.2": "1.7.2",
|
||||
"0.1.3": "1.7.2",
|
||||
"0.1.4": "1.7.2",
|
||||
"0.1.5": "1.7.2"
|
||||
"0.1.5": "1.7.2",
|
||||
"0.1.6": "1.7.2"
|
||||
}
|
||||
Loading…
Reference in a new issue