Skip to content

Commit bea9bf1

Browse files
committed
fix(pages): rename _shared.lua -> shared.lua so GitHub Pages serves it
Irish transcription was returning 404 in production for wiktionary_pron/lua_modules/ga-passes/_shared.lua, breaking the language entirely — all 17 passes plus the engine require that module, so the first fetch failed and nothing transcribed. Cause: the Pages build runs actions/jekyll-build-pages, and Jekyll excludes any path whose basename starts with an underscore. Proven in production: in the same directory and commit, 01_polarity.lua and init.lua return 200 while _shared.lua returns 404. The previous attempt (9c20c06) added _config.yml with an `include:` entry for the path. That did NOT work — the deploy ran on that commit and succeeded, and the file was still 404, because jekyll-build-pages runs in safe mode with GitHub's own config overrides and ignores a repo _config.yml. (.nojekyll is likewise irrelevant: it only bypasses the legacy Pages pipeline, not an explicit build action.) That file is removed here. Renaming is the fix that actually holds: no underscore, nothing for Jekyll to strip. Mechanical change — one require form, `require("ga-passes._shared")` -> `require("ga-passes.shared")`, across 19 files. The internal `local _shared` variable is untouched; it is just an identifier. Note for future syncs: the source repo (wiktionary_ipa_phoneme_lexicons/irish/passes/) still names the module _shared.lua, since it never goes through Jekyll. Syncing is therefore no longer a pure `passes.` -> `ga-passes.` rewrite — it must also map `_shared` -> `shared`. Verified locally: golden 81 pass, transcription e2e 13/13 pass. Production verification requires a redeploy.
1 parent 9c20c06 commit bea9bf1

21 files changed

Lines changed: 19 additions & 35 deletions

_config.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

wiktionary_pron/lua_modules/ga-irish_engine.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- Replaces the monolith irish_engine.lua + irish_rules.lua.
33
-- Loads passes from passes/ directory and orchestrates them.
44

5-
local S = require("ga-passes._shared")
5+
local S = require("ga-passes.shared")
66
local passes = require("ga-passes.init")
77
local ustring = require("ustring.ustring")
88
local ulen = ustring.len

wiktionary_pron/lua_modules/ga-passes/01_polarity.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-- References: Hickey II.1.1 (polarity system), III.2.3.2 (lenition mutation outcomes),
44
-- FG Ch.5 (Connacht consonant inventory)
55

6-
local S = require("ga-passes._shared")
6+
local S = require("ga-passes.shared")
77

88
return {
99
name = "polarity",

wiktionary_pron/lua_modules/ga-passes/02_stress.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-- Runs early so vocalization (pass #6) and reduction (pass #11) are stress-aware.
44
-- References: Hickey II.3 (stress), FG Ch.5 (Connacht stress patterns)
55

6-
local S = require("ga-passes._shared")
6+
local S = require("ga-passes.shared")
77

88
local MONOSYLLABIC_STRESS = {
99
["ailm"]=true,["airg"]=true,["aoibh"]=true,["aoir"]=true,

wiktionary_pron/lua_modules/ga-passes/03_eclipsis.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-- so multi-word eclipsis (i bhfad, i dtosach) works.
88
-- References: Hickey III.2.3.1 (nasalisation / eclipsis), Hickey III.2.2.2 (T-prefix), FG Ch.7 (mutation mapping)
99

10-
local S = require("ga-passes._shared")
10+
local S = require("ga-passes.shared")
1111

1212
local ECLIPSIS_PAIRS = { mb = true, gc = true, dt = true, bp = true, nd = true, nn = true, bhf = true }
1313

wiktionary_pron/lua_modules/ga-passes/04_cluster_simplify.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-- ortho is what the fricative rules see.
44
-- References: Hickey II.2.2 (cluster simplification), II.2.1 (permissible clusters)
55

6-
local S = require("ga-passes._shared")
6+
local S = require("ga-passes.shared")
77

88
return {
99
name = "cluster_simplify",

wiktionary_pron/lua_modules/ga-passes/05_mutated_fricatives.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-- References: Hickey II.1.7.2 (lenited fricatives — dependent phonemes),
66
-- Hickey III.2.3.2 (lenition — grammatical mutation), FG Ch.7 (mutation outcomes per dialect)
77

8-
local S = require("ga-passes._shared")
8+
local S = require("ga-passes.shared")
99

1010
return {
1111
name = "mutated_fricatives",

wiktionary_pron/lua_modules/ga-passes/06_vocalization.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-- after consonants have been resolved by pass #9.
66
-- References: Hickey II.1.9.9.1 (vocalisation of fricatives), II.1.9.4 (vowel gradation)
77

8-
local S = require("ga-passes._shared")
8+
local S = require("ga-passes.shared")
99

1010
return {
1111
name = "vocalization",

wiktionary_pron/lua_modules/ga-passes/06d_anticipatory_raising.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-- Runs after r_lowering (#6c), before labial_vocalization (#6e).
77
-- Uses orthography to check, since vowel resolution hasn't run yet.
88

9-
local S = require("ga-passes._shared")
9+
local S = require("ga-passes.shared")
1010

1111
return {
1212
name = "anticipatory_raising",

wiktionary_pron/lua_modules/ga-passes/07_nasalization.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- Runs after vocalization so vocalized forms aren't re-nasalized.
55
-- References: Hickey II.1.9.4 (vowel gradation — nasal raising before geminate sonorants)
66

7-
local S = require("ga-passes._shared")
7+
local S = require("ga-passes.shared")
88

99
return {
1010
name = "nasalization",

0 commit comments

Comments
 (0)