Skip to content

Commit f7d39a0

Browse files
imnasnainaecclaude
andcommitted
Make PIA's fullest gloss language the one the WebView shows
Importing PIA looked like it produced no glosses. It had produced them - six records carried an es gloss - but the platform scans interlinear files in ordinal path order, that order becomes the project's analysisLanguages, and the WebView renders only analysisLanguages[0]. Interlinear_en sorted ahead of Interlinear_es, so the language on screen was the deliberately thin one: two glossed records, both in verse 1, and nothing at all in verses 2 and 3. PIA's second gloss language is now fr, so Interlinear_es sorts first and the es glosses are what the view shows. The thin file keeps its job - it still overlaps es on two tokens so their records merge, and still reads "daxes" as a single stem where es reads stem plus suffix, so the parses still conflict. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent b0f5f2e commit f7d39a0

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

test-data/pt9-projects/PIA/InterlinearSetup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RelatedLanguages>false</RelatedLanguages>
77
<ExportOnApprove>false</ExportOnApprove>
88
</InterlinearSetup>
9-
<InterlinearSetup type="Glossing" language="en">
9+
<InterlinearSetup type="Glossing" language="fr">
1010
<FontSize>12</FontSize>
1111
<RightToLeft>false</RightToLeft>
1212
<RelatedLanguages>false</RelatedLanguages>

test-data/pt9-projects/PIA/Interlinear_en/Interlinear_en_PHP.xml renamed to test-data/pt9-projects/PIA/Interlinear_fr/Interlinear_fr_PHP.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<InterlinearData GlossLanguage="en" BookId="PHP">
2+
<InterlinearData GlossLanguage="fr" BookId="PHP">
33
<Verses>
44
<item>
55
<string>PHP 1:1</string>
66
<VerseData>
77
<Cluster><Range Index="0" Length="3" /><Lexeme Id="Word:wug" GlossId="s-wug1" /></Cluster>
8-
<Cluster><Range Index="4" Length="7" /><Lexeme Id="Word:blicket" GlossId="s-blicket-en" /></Cluster>
8+
<Cluster><Range Index="4" Length="7" /><Lexeme Id="Word:blicket" GlossId="s-blicket-fr" /></Cluster>
99
</VerseData>
1010
</item>
1111
<item>

test-data/pt9-projects/PIA/Lexicon.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<Entry>
1919
<Sense Id="s-wug1">
2020
<Gloss Language="es">uno</Gloss>
21-
<Gloss Language="en">one</Gloss>
21+
<Gloss Language="fr">un</Gloss>
2222
</Sense>
2323
<Sense Id="s-wug2">
2424
<Gloss Language="es">primero</Gloss>
@@ -31,8 +31,8 @@
3131
<Sense Id="s-blicket">
3232
<Gloss Language="es">dos</Gloss>
3333
</Sense>
34-
<Sense Id="s-blicket-en">
35-
<Gloss Language="en">two</Gloss>
34+
<Sense Id="s-blicket-fr">
35+
<Gloss Language="fr">deux</Gloss>
3636
</Sense>
3737
</Entry>
3838
</item>

test-data/pt9-projects/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ it.
4343

4444
| Project | Purpose | Key features |
4545
| ------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
46-
| `PIA` | Happy path | Two gloss languages (`es`, `en`) over one book, so records merge across languages and one token's parses conflict; a phrase cluster; word parses; a word and a parse cluster sharing one range; an approved verse hash; an excluded cluster; a punctuation entry; a repeated surface form, for an ambiguous anchor; every sense-resolution outcome; every bare-word-analysis outcome |
46+
| `PIA` | Happy path | Two gloss languages (`es`, `fr`) over one book, so records merge across languages and one token's parses conflict; a phrase cluster; word parses; a word and a parse cluster sharing one range; an approved verse hash; an excluded cluster; a punctuation entry; a repeated surface form, for an ambiguous anchor; every sense-resolution outcome; every bare-word-analysis outcome |
4747
| `PIB` | Cluster drops | All five `clusterDrops` reasons (`formMismatch`, `duplicateCluster`, `lemmaOrOther`, `unparseableLexemeId`, `verseNotFound`), plus an `Interlinear_es_JAS.xml` for a book the project has no text for, which reports `bookFound: false` |
4848
| `PIC` | File identity | A canonical book file beside a non-canonical twin of it (`booksDroppedAsDuplicates`, and the canonical file's data is the data that must survive); one file with no `GlossLanguage` and one with no `BookId` (`booksMissingIdentity`); `GlossLanguage="English"` (`tagIsFallback`); `es-MX` and `es-mx`, which stay separate language groups but resolve onto one tag (`sameTagCollisions`) |
4949
| `PID` | Lexicon only | A `Lexicon.xml` and `WordAnalyses.xml` with no interlinear book file at all: the manifest is non-empty, so the import is offered and succeeds, but the conversion has no book to report on and `report.languages` comes back empty |

0 commit comments

Comments
 (0)