mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:32:46 +00:00 
			
		
		
		
	LibUnicode: Fix Hangul syllable composition for specific cases
This fixes `combine_hangul_code_points` which would try to combine a LVT syllable with a trailing consonant, resulting in a wrong character. Also added a test for this specific case.
This commit is contained in:
		
							parent
							
								
									ce0e4b71a3
								
							
						
					
					
						commit
						104b51b912
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -63,6 +63,7 @@ TEST_CASE(normalize_nfc) | |||
| 
 | ||||
|     EXPECT_EQ(normalize("\u1103\u1161\u11B0"sv, NormalizationForm::NFC), "닭"sv); | ||||
|     EXPECT_EQ(normalize("\u1100\uAC00\u11A8"sv, NormalizationForm::NFC), "\u1100\uAC01"sv); | ||||
|     EXPECT_EQ(normalize("\u1103\u1161\u11B0\u11B0"sv, NormalizationForm::NFC), "닭\u11B0"); | ||||
| } | ||||
| 
 | ||||
| TEST_CASE(normalize_nfkd) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 matcool
						matcool