class-Com.Tecnick.Unicode.Bidi.StepW

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Class StepW

Com\Tecnick\Unicode\Bidi\StepW

Com\Tecnick\Unicode\Bidi\StepBase
Extended by Com\Tecnick\Unicode\Bidi\StepW
Namespace: Com\Tecnick\Unicode\Bidi
Package: Unicode
Category: Library
Copyright: 2011-2015 Nicola Asuni - Tecnick.com LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni info@tecnick.com
Since: 2015-07-13
Link: https://github.com/tecnickcom/tc-lib-unicode
Located at Bidi/StepW.php
Methods summary
protected
# process( )

Process W steps Resolving Weak Types

protected
# processW1( integer $idx )

W1. Examine each nonspacing mark (NSM) in the isolating run sequence, and change the type of the NSM to Other Neutral if the previous character is an isolate initiator or PDI, and to the type of the previous character otherwise. If the NSM is at the start of the isolating run sequence, it will get the type of sos. (Note that in an isolating run sequence, an isolate initiator followed by an NSM or any type other than PDI must be an overflow isolate initiator.)

protected
# processW2( integer $idx )

W2. Search backward from each instance of a European number until the first strong type (R, L, AL, or sos) is found. If an AL is found, change the type of the European number to Arabic number.

protected
# processW3( integer $idx )

W3. Change all ALs to R.

protected
# processW4( integer $idx )

W4. A single European separator between two European numbers changes to a European number. A single common separator between two numbers of the same type changes to that type.

protected
# processW5( integer $idx )

W5. A sequence of European terminators adjacent to European numbers changes to all European numbers.

protected
# processW5a( integer $idx )

W5a

protected
# processW5b( integer $idx )

W5b

protected
# processW6( integer $idx )

W6. Otherwise, separators and terminators change to Other Neutral.

protected
# processW7( integer $idx )

W7. Search backward from each instance of a European number until the first strong type (R, L, or sos) is found. If an L is found, then change the type of the European number to L.

Methods inherited from Com\Tecnick\Unicode\Bidi\StepBase
__construct(), getSequence(), processStep()
Properties inherited from Com\Tecnick\Unicode\Bidi\StepBase
$seq
 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy