Template:tl-baybayin script/documentation

This template uses Module:tl-bay sc to convert Latin script spelling to Baybayin.

Usage
Call this template using tl-bay sc. This is intended to work with mention templates, link templates, and other templates that uses Module:tl-headword such as tl-noun and tl-verb. Just enter tl-bay sc in the headword's Baybayin (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 Baybayin.


 * 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 Baybayin fonts and classes properly. Otherwise, keep this at.


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


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


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


 * tr, default = 0
 * When, the transliteration for the output Baybayin characters will be calculated.
 * When, the transliteration for the output Baybayin characters will be the input text.
 * Do note that  in tl-baybayin 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 to an. A mark below changes the to an. A cross mark will remove the vowel altogether. Cross mark is only available on Modern Baybayin.

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


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

Sample Words

 * : baybayin
 * Modern:
 * Historical:


 * : tagalog
 * Modern:
 * Historical:


 * : kuha
 * Modern:
 * Historical:


 * : multo
 * Modern:
 * Historical:


 * : ngiti
 * Modern:
 * Historical:


 * : leeg
 * Modern:
 * Historical:

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


 * : bundok
 * Modern:
 * Historical:


 * : itlog
 * Modern:
 * Historical:


 * : halimbawa
 * Modern:
 * Historical:

Single Characters
In Historical Baybayin, 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:

To write the character, you have to write the velar nasal character ⟨ŋ⟩. There is a word "ng" which is tackled below under Special Words.


 * NG ŋ
 * Modern:
 * Historical:

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


 * : alakdan
 * Modern:
 * Historical:


 * : bapor
 * Modern:
 * Historical:


 * : damdamin
 * Modern:
 * Historical:


 * : diri
 * Modern:
 * Historical:


 * : kadugo
 * Modern:
 * Historical:


 * : padre
 * 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.


 * : pandaraya
 * Modern:
 * Historical:


 * : ruweda
 * Modern:
 * Historical:


 * : lugar
 * Modern:
 * Historical:

Special Words
and are written as "nang" and "manga" respectively.


 * : ng
 * Modern:
 * Historical:


 * : 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:


 * : nanay
 * Modern:
 * Historical:

Initial Consonant Clusters in Syllables
In Historical Baybayin, if there is a consonant cluster  + , where   does not have the sound of $⟨w⟩$ nor $⟨y⟩$,   will follow the vowel of. In Modern Baybayin,  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.


 * bwaya : bwaya
 * Modern:
 * Historical:


 * kwago : kwago
 * 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:

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, no dot is needed.


 * : Pampan.ga
 * Modern:
 * Historical:


 * : blanca
 * Modern:
 * Historical:

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, is silent as it is not pronounced. In historical Baybayin, it is pronounced with a vowel similar to the preceding vowel.


 * : fahm
 * Modern:
 * Historical:


 * : Allah
 * Modern:
 * Historical:

Foreign sounds
⟨c⟩ is written with "K" character when not following an, or 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:

Loanwords with two consecutive vowels starting with ⟨e⟩/⟨i⟩ or ⟨o⟩/⟨u⟩ pronounced without a glottal stop in between, insert "y" for words starting with ⟨e⟩/⟨i⟩, and "w" for words starting with ⟨o⟩/⟨u⟩ in the input or the Baybayin will be interpreted with glottal stop in between.


 * : mateyo
 * Modern:
 * Historical:


 * : reyalidad
 * Modern:
 * Historical:


 * : nowe
 * 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. Historical Baybayin has no spaces.


 * KKK : Kataastaasan Kagalang-galang na Katipunan ng mga Anak ng Bayan
 * Modern:
 * Historical:

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:

Ama Namin
As found in Doctrina Christiana

Ama Namin/ Nasa langit ka//
 * Modern:
 * Historical:

Ipasamba mo/ ang ngalan mo//
 * Modern:
 * Historical:

Muwi sa amin/ ang pagkahari mo//
 * Modern:
 * Historical:

Ipasunod mo/ ang loob mo/ dito sa lupa/ parang sa langit//
 * Modern:
 * Historical:

Bigyan mo kami/ ngay-on/ ng aming kakanin/ para nang sa araw-araw//
 * Modern:
 * Historical:

At pakawal-in mo/ ang aming kasalanan//
 * Modern:
 * Historical:

Yayang winawalang bahala namin sa loob/ ang kasalanan/ ng nagkasasala sa amin//
 * Modern:
 * Historical:

Huwag mo kaming iwan/ nang di kami matalo ng tukso//
 * Modern:
 * Historical:

Datapuwa't/ iadya mo kami/ sa dilang masama//
 * Modern:
 * Historical:

Amen Sisus//
 * Modern:
 * Historical: