[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/languages/classes/ -> LanguageEo.php (summary)

Esperanto (Esperanto) specific code. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Brion Vibber <[email protected]>
File Size: 121 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LanguageEo:: (4 methods):
  iconv()
  strrtuxCallback()
  strrtxuCallback()
  initEncoding()


Class: LanguageEo  - X-Ref

Esperanto (Esperanto)

iconv( $in, $out, $string )   X-Ref
Wrapper for charset conversions.

In most languages, this calls through to standard system iconv(), but
for Esperanto we're also adding a special pseudo-charset to convert
accented characters to/from the ASCII-friendly "X" surrogate coding:

cx = ĉ     cxx = cx
gx = ĝ     gxx = gx
hx = ĥ     hxx = hx
jx = ĵ     jxx = jx
sx = ŝ     sxx = sx
ux = ŭ     uxx = ux
xx = x

http://en.wikipedia.org/wiki/Esperanto_orthography#X-system
http://eo.wikipedia.org/wiki/X-sistemo

X-conversion is applied, in either direction, between "utf-8" and "x" charsets;
this comes into effect when input is run through $wgRequest->getText() and the
$wgEditEncoding is set to 'x'.

In the long run, this should be moved out of here and into the client-side
editor behavior; the original server-side translation system dates to 2002-2003
when many browsers with really bad Unicode support were still in use.

param: string $in Input character set
param: string $out Output character set
param: string $string Text to be converted
return: string

strrtuxCallback( $matches )   X-Ref

param: array $matches
return: string

strrtxuCallback( $matches )   X-Ref

param: array $matches
return: string

initEncoding()   X-Ref
No description



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1