Jump to content

වික්ෂනරි:අක්ෂර ක්‍රම

Wiktionary වෙතින්
(වික්ෂනරි:Scripts වෙතින් යළි-යොමු කරන ලදි)
link={{{imglink}}} මෙය වික්ෂනරි ප්‍රතිපත්ති, මාර්ගෝපදේශ හෝ සාමාන්‍ය භාවිතා පිළිබඳ පිටුවක් වෙයි. නිල ප්‍රතිපත්තියක් නොවන මෙය, විධිමත් ප්‍රතිපත්තියක් ගොඩනැගීම සඳහා වන චින්තන තටාකයක් ලෙස ක්‍රියා කරන පිටුවකි.
ප්‍රතිපත්ති – යොමු: CFI - පිටු සැකසුම - NORM - NPOV - QUOTE - හරවා යැවීම් - මකා දැමීම. භාෂා: LT - AXX. වෙනත්: BLOCK - BOTS - VOTES.
This page is about writing systems. For information about programming in Lua, see Wiktionary:Scribunto.
For a list of all script codes, see Wiktionary:List of scripts.

Scripts, or writing systems, are groups of characters.

In Wiktionary, each script is recognized by a code and a name. The script codes are usually, but not always, ISO 15924 codes (appendix, unicode.org).

  • Arab: Arabic script
  • Cyrl: Cyrillic script
  • Latn: Latin script

Some Wiktionary script codes (used for particular languages' varieties of scripts) are named by combining an ISO script code and a Wiktionary language code.

  • fa-Arab: Arabic script (of Persian language)
  • ks-Arab: Arabic script (of Kashmiri language)
  • ota-Arab: Arabic script (of Ottoman Turkish language)
  • pa-Arab: Arabic script (of Punjabi language)
  • pjt-Latn: Latin script (of Pitjantjatjara language)
  • ur-Arab: Arabic script (of Urdu language)

There are also some exceptionally-named codes:

  • None: Meant for no formatting at all. This is used as a kind of "blank" or "unknown" script, by languages that don't have a script specified yet in Module:languages.
  • Latinx: Meant for characters in the Latin Extended-B Unicode block, including Old English letters.
  • polytonic: Meant for Ancient (as opposed to modern) Greek text, which uses polytonic diacritics.
  • musical: Meant for musical notation symbols.

These scripts serve a number of functions.

According to our CFI, Wiktionary—as a dictionary of all words in all languages—includes definitions for individual characters. We therefore need to know which scripts the characters are part of; this knowledge also helps us organize them by means of categorization and further explanation in appendices.

Scripts are defined in Module:scripts/data.

Additionally, pieces of text may be formatted according to which script they are in by HTML spans wrapped around them. In theory browsers should handle formatting automatically, but in practice they do not do a good job. Therefore, formatting (text-direction, font-family, or font-size formatting) is controlled by applying an HTML class attribute (which can be used to format the text using Wiktionary's central Cascading Style Sheet (CSS), a registered editor's user style sheet, or a web browser's user style sheet) or an inline style attribute.

Applying scripts to text

[සංස්කරණය]

For the purpose of formatting text, there is the {{lang}} template, which serves as a wrapper for predetermined formatting conventions. It is a "base" template that applies only the language and script-specific formatting, but does not do anything else. It can be used in situations when it is desirable to write non-Latin text in general. This template takes a required language code parameter, and the text to be wrapped. The optional |sc= parameter is used to override the autodetected script, if necessary. The |face= parameter can be used to apply a specific style to the text, and can be term, head, bold, or empty for normal text. This allows italic and bold effects to be implemented in a script-specific way, with formatting that is appropriate for the conventions of that script, as well as to enhance readability.

Most other templates that show non-English text also have a language parameter, and a |sc= parameter to override the autodetected script. This includes widely-used templates like {{l}}, {{m}}, {{t}}, {{head}} and {{form of}}:

  • {{lang|sh|sc=Cyrl|вријеме}}
  • {{m|sh|sc=Cyrl|вријеме}}
  • {{head|sh|noun|sc=Cyrl|g=n}}
  • {{t|sh|sc=Cyrl|вријеме|n}}

Most templates, including all of those listed above, perform automatic detection of scripts. They will look at the text that was provided, and try to judge which of the language's scripts (specified in the Module:languages data submodules) is being used. Therefore, the |sc= parameter is almost never needed. However, it is necessary to provide it if the text is written in a script that is not one of the recognised scripts for that language.

  • {{l|sh|vrijeme}} (the default script of Serbo-Croatian is "Latn"...)
  • {{l|sh|вријеме}} (...but the template will also recognise text written in any other possible scripts listed for Serbo-Croatian, which is Cyrillic in this case)
  • {{l|sh|β|sc=Grek}} (however, if you want to write Greek letters in Serbo-Croatian, you need to provide the script code, since Greek is not one of the normal scripts for Serbo-Croatian)

List of script codes

[සංස්කරණය]
Main article: Wiktionary:List of scripts

Wiktionary has incorporated all ISO 15924 codes (see Appendix:ISO 15924) except these: Blis, Cirt, Egyh, Hrkt, Latg, Moon, Nkgb, Qaaa, Qabx, Roro, Sara, Syre, Syrj, Syrn, Visp, Zinh, Zxxx. (The ISO also reserved several [spaces for] codes; these have not been incorporated.)

Wiktionary also uses several codes which are not listed in ISO 15924. These are included in the central list of scripts, and include codes for varieties of Arabic (fa-Arab, etc), varieties of Latin (Latinx, pjt-Latn), polytonic Greek (polytonic) and some other things (such as xzh-Tibt), as well as codes for musical notation (musical) and the IPA (IPAchar). The code None functions like a script code in some ways.

[සංස්කරණය]
"https://si.wiktionary.org/w/index.php?title=වික්ෂනරි:අක්ෂර_ක්‍රම&oldid=32721" වෙතින් සම්ප්‍රවේශනය කෙරිණි