User:Catsidhe

Definition from Wiktionary, the free dictionary
Jump to: navigation, search
Languages
en This user is a native speaker of English.
enm-2 þes user haþ a forþgon knowleche of Englisch.
ang-2 Þes nēotend cann hine seolf mid middelre mǣþe Englisces ferian.
ga-2 Tá leibhéal meánach na Gaeilge ag an úsáideoir seo.
la-1 Hic usuarius simplice latinitate contribuere potest.
sga-1 Attá foglaimm bunaid inna Sen-Goídilce ocin scríbnid se.
fr-1 Cet utilisateur peut contribuer avec un niveau élémentaire de français.
{{t}}-4 This user can write and understand very complex wiki template code.
Search user languages or scripts
Scripts
A
Latn
This user's native script is the Latin alphabet.
ʑ
IPA-2
This user has an intermediate understanding of the International Phonetic Alphabet.

Runr-2
This user has an intermediate understanding of the Runic alphabet.

Ogam-2
This user has an intermediate understanding of Ogham.
Ω
Grek-1
This user has a basic understanding of the Greek alphabet.
Я
Cyrl-1
This user has a basic understanding of the Cyrillic alphabet.
ש
Hebr-1
This user has a basic understanding of the Hebrew script.
ض
Arab-1
This user has a basic understanding of the Arabic abjad.
Search user languages or scripts

Template writing[edit]

{{str index}}[edit]

The way the {{str index}} template works is actually very clever: give it a string and a number n, and it takes the first n (1) and the first n-1 (2) characters in blocks, and then does a switch: statement, checking the n-long block (1) against (2)a, (2)b, (2)c, (2)d, ... (2)á ... and so on. Only the first part of the supplied text is required, which is good, because {{str left}} relies on padleft: which can choose the first characters from the left side of a string, but padright: does not do the same from the right side. So there may not be a non-expensive way to take the rightmost n characters... which kills automatic initial mutation stone dead on the spot.

{{str right}}[edit]

This is not nearly so elegant. The function which does the work goes through the string from the nth character on (up to the number of characters it checks), and does a {{str index}} for each letter, and returns the concatenation of the whole messy lot.

Yuck.

What's disturbing is that there may not be any better way to do it.

Old Irish[edit]

Old Irish Nouns and proposed tables

Mutations[edit]

User:Catsidhe/sga-nasal[edit]

Takes two arguments, but the second one is not needed (but possible for compatibility with the lenition template, and for future expansion of the concept) So it can be called as either {{/sga-nasal|word}}, {{/sga-nasal|w|ord}}, or {{/sga-nasal|w}}ord: makes no difference to the result.

  • Aes = nAes
  • ball = a mball
  • daltae = ndaltae
  • gásur = ngásur
  • óen = n-óen
  • triall = triall

User:Catsidhe/sga-lenite[edit]

Owing to some frankly ridiculous restrictions in the programming environment for string manipulation, this requires the first letter to be split off. It does not check for a string longer than 1 character. An initial consonant of longer than one character isn't an issue in Irish, but can come in to play for, eg., Breton.

Must be supplied with the first letter split off from the rest. The rest of the word should be the second variable: {{sga-lenite|w|ord}}. Do not put it outside the template as {{sga-lenite|w}}ord, as lenition is suppressed for [s] followed by [c], [m], [p] or [t]. If the rest of the word is extracted, then this case cannot be detected.

  • cathóir = a chathóir
  • fer = a ḟer
  • scian = a ṡcian
  • snam = ṡnam
  • dúnta = dúnta

Templates[edit]

Subpages[edit]

Catsidhe/Old Irish Catsidhe/Old Irish Nouns Catsidhe/Old Irish Nouns/sga-noun-f
Catsidhe/Old Irish Nouns/sga-noun-f2 Catsidhe/Old Irish Nouns/sga-noun-m Catsidhe/Old Irish Nouns/sga-noun-m2
Catsidhe/Old Irish Nouns/sga-noun-n Catsidhe/sandbox Catsidhe/sga-lenite
Catsidhe/sga-nasal