Skip to content

Commit cdfe8f2

Browse files
committed
autotranslate/CodeGlossary: w10-extends placeholder type-names (10.1.26/28/30)
Inline-\code placeholder identifiers in the lect-w10-extends type/inheritance lecture that the mirror left Swedish (not in the glossary). Scoped via perFileId to lect-w10-extends — NOT global — because `Typ` is a common token that would otherwise bleed into e.g. lect-wjava's \code{Klassnamn<Typ>} (mixed). Pending BR ratification: EnVissTyp -> SomeType (10.1.28, isInstanceOf[..]/asInstanceOf[..]) Typ -> Type (10.1.30, isInstanceOf[Typ]) KlassensNamn -> ClassName (10.1.26, code-file name for a single public class) bastypensNamn -> baseTypeName (10.1.26, lowercase-initial multi-content file name) Verified via renderCodeIds: all four translate under the lect-w10-extends path, and `Typ` stays Swedish under the lect-wjava path (scoping holds).
1 parent 095e1fd commit cdfe8f2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

autotranslate/CodeGlossary.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@ object CodeGlossary:
203203
"Djur" -> "Animal", "Ko" -> "Cow", "Gris" -> "Pig", "Häst" -> "Horse",
204204
"väsnas" -> "makeNoise", "skapaDjur" -> "createAnimal", "bondgård" -> "farm",
205205
),
206+
// lect-w10-extends type-casting section (10.1.28/10.1.30): placeholder type-names in the inline
207+
// \code{isInstanceOf[..]} / \code{asInstanceOf[..]} examples. Scoped here (NOT global) because `Typ` is a
208+
// common token — a global Typ->Type would bleed into e.g. lect-wjava's \code{Klassnamn<Typ>} (mixed).
209+
// BR-ratified 2026-07-24: EnVissTyp ("en viss typ") -> SomeType; Typ -> Type.
210+
"lect-w10-extends" -> Map(
211+
"EnVissTyp" -> "SomeType", "Typ" -> "Type",
212+
// placeholder code-file names (10.1.26): KlassensNamn (capitalised, = the public class's name) ->
213+
// ClassName; bastypensNamn (lowercase initial per the "multi-content file -> lowercase" rule) -> baseTypeName.
214+
"KlassensNamn" -> "ClassName", "bastypensNamn" -> "baseTypeName",
215+
),
206216
)
207217
// Mirror-relative path substrings whose inline Scala-code envs SKIP the renderCodeIds pass entirely.
208218
val optOut: Set[String] = Set()

0 commit comments

Comments
 (0)