ഫലകം:ISO 15924 direction

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.
[തിരുത്തുക] [പുതുക്കുക] ഫലകത്തിന്റെ വിവരണം

Usage[തിരുത്തുക]

The template returns, for an ISO script code, the direction rtl, ltr, ttb, inh, mixed, or <blank>.

Options[തിരുത്തുക]

The output texts rtl, ltr, ttb, mixed, inh, or <blank> can be altered:

  • {{ISO 15924 direction|Mang|ltr=left-to-right|rtl=right-to-left|mixed=both directions|default=unknown}} → unknown
  • {{ISO 15924 direction|Zyyy|ltr=left-to-right|rtl=right-to-left|mixed=both directions|default=unknown}} → both directions

How is it determined[തിരുത്തുക]

The direction is determined as follows.

  • First, if a script is present in Unicode, Unicode Bidi-direction is derived for that Unicode script.

There are 94 scripts in Unicode (those ISO codes that have an alias). All regular scripts have a single "Strong" in Unicode direction. That is, all characters in a Unicode script that are "Strong", have the same directionality: either right-to-left (rtl) or left-to-right (ltr). Within a script there are no opposing directions present. There can be characters with "Weak" or "Neutral" direction (i.e., direction through context), but these do not alter other characters diretionality. One exception: script "Zyyy" conatains characters with either direction. Therefor, Zyyy has direction "mixed".

  • Second, all other scripts, that are not defined in Unicode, can have their direction set manually in this template.

How to add a script direction[തിരുത്തുക]

The Unicode scripts are determined as of version 6.0, and should be complete & correct. That (upper) part of the list should not be changed unless for errors. An script directionality can be added:

 | <!--
end of Unicode-determined -->
 | Abcd
 | Defg = {{{ltr|ltr}}
 | Pqrs
 | Tuvw = {{{rtl|rtl}}
 | #default={{{default|}}}

The parameters as shown keep the output text option available.

Background[തിരുത്തുക]

For scripts in Unicode, the direction is determined as follows. Each character in a script (say Hebr) has a single property bidi-type. The value of that bidi-type is from a list, and its usage is described in the Unicode Bidi Algorithm (UAX#9).

The bidi-type can determine the direction, which can be a Strong, Neutral or Weak one. Strong directions are independent, like for the Latin alphabet A-Z. Neutral and Weak directions are dependent on context (think nearby other characters), and are used e.g. with decimals, diacritics and punctuation marks.

Within the character set of a script (e.g. Hebr=Hebrew script has 133 characters in Unicode), there are Strong characters, all are right-to-left. Other characters are Neutral, and so have not direction by their own. This is true for all (but one) scripts in Unicode: withingn a script, all Strong directions are the same.

From there this templates is build: All scripts in Unicode (but one exception, see below) have a single Strong direction. That direction is used here in this template. The exception is: Zyyy, Common, which is a collection of various characters that can be of either direction.

See also[തിരുത്തുക]

General information on ISO 15924 templates[തിരുത്തുക]

Maintenance[തിരുത്തുക]

Maintenance of ISO 15924 templates
Item Publisher Details Example Definition in template Usage in page Note
code ISO 15924 alpha-4 Latn {{ISO 15924 code}} {{ISO 15924/footer}}, /doc
number ISO 15924 between 000–999 234 {{ISO 15924/code}}
name ISO 15924 Descriptive name ... {{ISO 15924/name}}
alias (Property Value Alias) ISO 15924* Script name as used in Unicode ... {{ISO 15924/alias}}
script direction Unicode Can vary per character, but all Unicode scripts (so far) have a single main direction ... {{ISO 15924 direction}}
wp-name en:Wikipedia WP content page name for the script ... {{ISO 15924/wp-name}}
wp-category en:Wikipedia WP category name for the script ... {{ISO 15924/wp-category}}
Script example character en:Wikipedia Example character in userboxes ... . 
Overview and relation ISO&ndashUnicode en:Wikipedia ... {{ISO 15924 script codes and Unicode}}

* Alias name is decided by Unicode consortium, but published in kindness by ISO 15224

ISO updates[തിരുത്തുക]

The ISO list is changed regularly, last years in June and December. Current list is completed As of 9 ഓഗസ്റ്റ് 2011. This list has 160 defined codes (code, number, script name).

Note: when resolving red links or wrong links, edit {{ISO 15924/wp-name}} or {{ISO 15924/wp-category}}. That is where the connection between ISO code and Wikipedia names is made.

We here at Wikipedia do not and can not decide over ISO 15924. End of story.

Sources[തിരുത്തുക]

See also[തിരുത്തുക]

References[തിരുത്തുക]

"https://ml.wikipedia.org/w/index.php?title=ഫലകം:ISO_15924_direction&oldid=1567686" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്