3.1.5.2.7 CorrectUnicodeWeight

This algorithm specifies the processing of the corrected Unicode weight for the specific character weight, and whether the locale is a Korean locale.

 COMMENT CorrectUnicodeWeight
 COMMENT
 COMMENT  On Entry:  CharacterWeight - Weights structure to get Unicode
 COMMENT                               weight of
 COMMENT             IsKoreanLocale  - True if this locale needs
 COMMENT                               adjustment for
 COMMENT                               Korean mapped scripts behavior.
 COMMENT
 COMMENT  On Exit:   UnicodeWeight   - Corrected Unicode Weight
 COMMENT
  
 PROCEDURE
         CorrectUnicodeWeight(IN CharacterWeight : CharacterWeightType,
                              IN IsKoreanLocale : boolean,
                              OUT UnicodeWeight : UnicodeWeightType)
  
 SET UnicodeWeight to CALL MakeUnicodeWeight WITH
         (CharacterWeight.ScriptMember, CharacterWeight.PrimaryWeight,
          IsKoreanLocale)
  
 RETURN UnicodeWeight