Template:he-dagesh-kal

Definition from Wiktionary, the free dictionary
Jump to: navigation, search

The following documentation is located at Template:he-dagesh-kal/documentation. [edit]

Usage[edit]

This template is fairly simple to use: pass it a letter, and it will return the same letter, adding a dagesh (dot in the middle) if the letter is a letter that accepts d'gashím kalím (soft dageshes). The template is included in various conjugation templates; it allows the same template to be used for, say, מכר (makhár) and גנב (ganáv) (which are conjugated the same way except for using d'gashím kalím in different places).

The template has some limitations; to wit:

  • The parameter must be the actual Hebrew letter in Unicode, not an (X)HTML numeric character reference. (So, something like ב, not something like ב.)
  • The parameter must be just the letter; it must not contain any vowels or whatnot. Any vowels should be added to the result of the template, not its parameter.

(If either of these constraints is violated, the template simply evaluates to the value of its parameter. This is because the template works by simply comparing its parameter to each element of {ב,ג,ד,כ,פ,ת}, appending a dagesh if and only if one of the comparisons is a match, and evaluating to the result.)

See also[edit]