• Trang chính
  • Ngẫu nhiên
  • Đăng nhập
  • Tùy chọn
Donate Now If this site has been useful to you, please give today.
  • Giới thiệu Wiktionary
  • Lời phủ nhận
Wiktionary

Bản mẫu:VieIPA

  • Ngôn ngữ
  • Theo dõi
  • Xem mã nguồn
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]
Đây là một trang con tài liệu sử dụng bản mẫu dành cho Bản mẫu:VieIPA. [edit]
Nó gồm có các thông tin hướng dẫn sử dụng, thể loại, liên kết wiki các nội dung khác không thuộc về phần trang gốc của bản mẫu.
Bản mẫu này đang được thay thế bằng {{vie-pron}}. Lưu ý rằng bản mẫu đó được sử dụng một cách khác biệt, tại vì nó chỉ được nhúng vào một lần cho cả cụm từ.

This template receives a "de-composed" vietnamese non-compound word and gives the IPA code for it.

Cách sử dụng

Usage: {{VieIPA|c1|c2|c3|...}}, where cn is the character number n in the word, give the IPA if the word is a valid Vietnamese word and strange result otherwise.

This template does not sandwich the IPA code between "/" and "/"; this makes the template more robust (usable for compound word, for example).

Ví dụ

The code

Thích Nhất Hạnh /{{IPA|{{VieIPA|T|h|í|c|h}} {{VieIPA|N|h|ấ|t}} {{VieIPA|H|ạ|n|h}}}}/

gives:

Thích Nhất Hạnh /tʰik35 ɲɜt35 hɐ̰ːʲŋ31/

Nó hoạt động làm sao?

This template will break a Vietnamese word into 3 parts plus the tonal part: (C1) + [ (w) + V + (G) ] + (C2) + T, according to this article.

Then the IPA code is returned for C1 by Template:VieC1, for [(w) + V + (G)] by Template:VieWVG, for C2 by Template:VieC2 and for T by Template:VieTn.

This template also uses Template:VieV and Template:VieC to detect Vietnamese consonants and vowels, inside its logical flow.

The logical flow is follow:

  1. If the 1st character is a vowel, there is no C1, and the (w)+V+(G) part is selected from 3 first characters, C2 part is selected from 4 last characters, T part is found from 3 first characters.
  2. Otherwise there is a C1 (we assume the 1st character is a consonant for valid Vietnamese word).
    1. If the 1st character is g (or G)
      1. If the 2nd character is i (or ì, í, ỉ, ị, ĩ)
        1. If there is a 3rd character then C1 is /z/ and (w)+V+(G) + (C2) + T found from the 3rd character onward (we assume here that the second character is actually "i" for valid Vietnamese word).
        2. If there is no 3rd character then we have C1 /z/ and (w)+V+(G) + T found from the 2nd character.
      2. If the 2nd character is h then C1 is /ɣ/ and (w)+V+(G) + (C2) + T is found from the 3rd character onward.
      3. otherwise C1 is /ɣ/ and (w)+V+(G) + (C2) + T is found from the 2nd character onward (we assume 2nd character is a vowel for valid Vietnamese word).
    2. If the 1st character is q (or Q) then C1 is /kw/ and (w)+V+(G) + (C2) + T is found from the 3rd character onward (we assume 2nd character is "u" for valid Vietnamese word).
    3. Otherwise
      1. If 2nd character is a consonant
        1. If 3rd character is a consonant then C1 is /ŋ/ and (w)+V+(G) + (C2) + T is found from the 4th character onward (we assume the 3 first characters are "ngh" the only Vietnamese valid case for this).
        2. Otherwise C1 is found from 2 first characters and (w)+V+(G) + (C2) + T is found from the 3rd character onward (we assume the 3rd character is a vowel for valid Vietnamese word).
      2. Otherwise C1 is found from 1st character and (w)+V+(G) + (C2) + T is found from the 2nd character onward (we assume the 2nd character is a vowel for valid Vietnamese word).

Xem thêm

Tài liệu bên trên được truyền tải từ Bản mẫu:VieIPA/doc. (sửa | lịch sử)
Biên tập viên sửa đổi có thể thử nghiệm trong các trang chỗ thử (tạo | sao) và trường hợp kiểm thử (tạo) của bản mẫu này.
Thêm thể loại vào trang con /doc. Trang con của bản mẫu này.
Lấy từ “https://vi.wiktionary.org/w/index.php?title=Bản_mẫu:VieIPA&oldid=1293111”
Sửa đổi lần cuối lúc 18:59 vào ngày 14 tháng 8 năm 2011

Ngôn ngữ

      Trang này không có sẵn trong ngôn ngữ khác.

      Wiktionary
      • Wikimedia Foundation
      • Powered by MediaWiki
      • Trang này được sửa đổi lần cuối vào ngày 14 tháng 8 năm 2011, 18:59.
      • Page was rendered with Parsoid.
      • Nội dung được phát hành theo CC BY-SA 4.0, ngoại trừ khi có ghi chú khác.
      • Quy định quyền riêng tư
      • Giới thiệu Wiktionary
      • Lời phủ nhận
      • Bộ Quy tắc Ứng xử Chung
      • Lập trình viên
      • Thống kê
      • Tuyên bố về cookie
      • Điều khoản sử dụng
      • Phiên bản máy tính