Template:ceb-badlit script/documentation

This template uses Module:ceb-badlit sc to convert Latin script spelling to Badlit.

Usage
Call this template using ceb-bad sc. This is intended to work with mention templates, link templates, and other templates that uses Module:ceb-headword such as ceb-noun and ceb-verb. Just enter ceb-bad sc in the headword's badlit (b) parameters. As much as possible, please input according to how the word is actually pronounced. For example: Geronimo should have the input "Heronimo" for Spanish pronunciation or "Jeronimo" for the English pronunciation. Otherwise the "G" will be written as the character  as in gamit. If fonts do not load, see Appendix:Baybayin script.

Parameters

 * 1
 * Indicates the word you want to convert to badlit.


 * disp, default = 0
 * If you want to use the template outside of link, mention, or other templates that use Module:tl-headword, you have to set disp to "1" to load badlit fonts and classes properly. Otherwise, keep this at.


 * pre, default = ""
 * Text to be appended before the baybayin text


 * trad, default = 0
 * When, the badlit conversion will use the historical pre-virama notation instead of the modern badlit.


 * diph, default = 0
 * When, the badlit conversion will consider diphthong sounds "y" and "w" as a vowel and will be replaced with "i" and "u" badlit characters.


 * r, default = 0
 * When, the badlit conversion will use the Modern invention "R" () character. Only available in modern badlit. Your installed font may or not support it.


 * tr, default = 0
 * When, the transliteration for the output badlit characters will be calculated.
 * When, the transliteration for the output badlit characters will be the input text.
 * Do note that  in ceb-badlit script is unnecessary when the transliteration is handled in the mention, link, or headword.

<!--

Abakada

 * a ba ka da e ga ha i la ma na nga o pa ra sa ta u wa ya

Vowels
A character can change its vowels depending on the mark added. A mark above changes the /a/ to an /i/. A mark below changes the /a/ to an /u/. A cross mark will remove the vowel altogether. Cross mark is only available on modern badlit.

Simply type the vowel after the consonant and the corresponding character will be written.


 * la : la,
 * li : li,
 * lu : ku,
 * la : l,

Sample Words

 * : badlit
 * Modern:
 * Historical:


 * : Sinugboanon
 * Modern:
 * Historical:


 * : kuha
 * Modern:
 * Historical:


 * : multo
 * Modern:
 * Historical:


 * : liog
 * Modern:
 * Historical:

Syllable end consonants
Consonants found after the vowel are not in Historical Baybayin but written with the cross mark in Modern Baybayin.


 * : bantay
 * Modern:
 * Historical:


 * : itlog
 * Modern:
 * Historical:

Single Characters
In Historical badlit, the characters are written as + "A".

You can put each letter in a separate template if that is desired.

pldt
 * P-L-D-T
 * Modern:
 * Historical:

You can also write them in one template, as long as there are no vowels.


 * P-L-D-T pldt
 * Modern:
 * Historical:

You can also split each character with a dot.


 * B-A-T-O b.a.t.o
 * Modern:
 * Historical:

D/R Characters
The letters ⟨d⟩ and ⟨r⟩ uses the same badlit characters, and may be transliterated differently. Use  to use your input text as the transliteration.


 * : alakdan
 * Modern:
 * Historical:


 * : tuldok
 * Modern:
 * Historical:

If, ⟨r⟩ will use its Unicode designated character instead of being the same with ⟨d⟩. Only available for Modern Baybayin.


 * : lugar
 * Modern:
 * Historical:

Special word
is written as "manga".


 * : mga
 * Modern:
 * Historical:

Diphthongs
The sound for ⟨w⟩ and ⟨y⟩ are treated as consonants and will not be written in historical Baybayin if after a vowel in a syllable.


 * : ibabaw
 * Modern:
 * Historical:


 * : bantay
 * Modern:
 * Historical:

If, ⟨w⟩ and ⟨y⟩ used as a diphthong are treated as vowels and will be written regardless. If used as a consonant, the ⟨w⟩ and ⟨y⟩ will use their corresponding Baybayin characters.


 * : balay
 * Modern:
 * Historical:

Initial Consonant Clusters in Syllables
In Historical badlit, if there is a consonant cluster  + , where   does not have the sound of ⟨w⟩ nor ⟨y⟩,   will follow the vowel of. In modern badlit,  will have its cross mark form and will have no vowels.


 * : buha
 * Modern:
 * Historical:


 * : grupo
 * Modern:
 * Historical:


 * : klase
 * Modern:
 * Historical:

Without adding an "i" after, if   has the sound of ⟨y⟩,   will have the vowel "i" and will not follow the vowel of. In Modern Baybayin,  will still be in its cross mark form.


 * : byahe
 * Modern:
 * Historical:


 * dyamante : dyamante
 * Modern:
 * Historical:


 * : diksyonaryo
 * Modern:
 * Historical:


 * pyesa : pyesa
 * Modern:
 * Historical:

Without adding a "u" after, if   has the sound of ⟨w⟩,   will have the vowel "u" and will not follow the vowel of. In Modern Baybayin,  will still be in its cross mark form.


 * bwelta : bwelta
 * Modern:
 * Historical:


 * pwersa : pwersa
 * Modern:
 * Historical:


 * twalya : twalya
 * Modern:
 * Historical:

⟨ch⟩/⟨ts⟩ is treated as "ts" in Modern Baybayin, while "s" in historical Baybayin.


 * : tsaa
 * Modern:
 * Historical:


 * : letson
 * Modern:
 * Historical:

⟨sh⟩ is treated the same as the cluster "sy".


 * : shokoy
 * Modern:
 * Historical:


 * : shampu
 * Modern:
 * Historical:

⟨dj⟩/⟨j⟩ is treated the same as the cluster "dy".


 * : Badjaw
 * Modern:
 * Historical:


 * : jihad
 * Modern:
 * Historical:


 * : gaja
 * Modern:
 * Historical:

Sometimes, if a preceding syllable does not have an final consonant, and has a cluster on the current syllable, is moved to the preceding syllable as the final consonant.


 * : aswang
 * Modern:
 * Historical:


 * : eksena
 * Modern:
 * Historical:


 * : sadya
 * Modern:
 * Historical:


 * : teorya
 * Modern:
 * Historical:

Sometimes you have to specify where the syllable breaks to keep a cluster together or separate.


 * : magta.trabaho
 * Modern:
 * Historical:


 * : tat.sulok
 * Modern:
 * Historical:

Final Consonant Clusters in Syllables
In Modern Baybayin, each consonant in the cluster is written with the cross mark form. In Historical Baybayin, since final consonants are not written, all consonants in the cluster are also not written.


 * : rits
 * Modern:
 * Historical:


 * : bageyds
 * Modern:
 * Historical:

⟨sh⟩ is treated the same as "s" when as a final sound.


 * : ambush
 * Modern:
 * Historical:

More "ng" combinations
Separate with a dot if the "ng" is meant to be pronounced "ng" + "g". For /k/, no dot is needed.


 * : Pampan.ga
 * Modern:
 * Historical:


 * : blanca
 * Modern:
 * Historical:

/h/ sound
If alone at the initial consonant, it will be written.


 * : hangin
 * Modern:
 * Historical:

Otherwise, check below.

This rule applies more on borrowed words. In Modern Baybayin, /h/ is silent as it is not pronounced. In historical Baybayin, it is pronounced with a vowel similar to the preceding vowel.


 * : fahm
 * Modern:
 * Historical:


 * : pharmacia
 * Modern:
 * Historical:


 * : Allah
 * Modern:
 * Historical:

Foreign sounds
⟨c⟩ is written with "K" character when not following an /e/, or /i/ sound, written with "S" character otherwise.


 * : circulo
 * Modern:
 * Historical:

⟨f⟩ is written with "P" character.


 * : Francisco
 * Modern:
 * Historical:

⟨ñ⟩ is treated the same as an "ny" cluster.


 * : piña
 * Modern:
 * Historical:

⟨q⟩/⟨qu⟩ is written with "K" character. ⟨z⟩ is written with "S" character.


 * : Quezon
 * Modern:
 * Historical:

Reduplication
Hyphens can separate a vowel from the previous syllable's consonant.


 * : araw-araw
 * Modern:
 * Historical:


 * : pag-ibig
 * Modern:
 * Historical:


 * : gab-i
 * Modern:
 * Historical:

Multiple Words
Multiple words are supported for this template.

Punctuation
Only two punctuation marks called bantasan are supported in Baybayin. To write this, write a single slash "/" to mean a pause similar to a comma, while a double slash "//" to mean a stop, similar to a period. In historical Baybayin, single slashes are not found, and the double slashes can mean any punctuation (including question marks).


 * "Ako, ikaw, at siya ang kasama." : ako/ ikaw/ at siya ang kasama//
 * Modern:
 * Historical:

Final examples
-->