Skip to content

Commit

Permalink
Add belarus letter pairs "Ўў/Уу" to diacritic handler (dictionaries r…
Browse files Browse the repository at this point in the history
…eindexing will follow)
  • Loading branch information
Abs62 committed Feb 23, 2024
1 parent 14978df commit 1e737ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion folding.hh
Expand Up @@ -24,7 +24,7 @@ using gd::wchar;
/// The algorithm's version.
enum
{
Version = 5
Version = 6
};

/// Applies the folding algorithm to each character in the given string,
Expand Down
2 changes: 1 addition & 1 deletion ftshelpers.hh
Expand Up @@ -22,7 +22,7 @@ namespace FtsHelpers
enum
{
FtsSignature = 0x58535446, // FTSX on little-endian, XSTF on big-endian
CurrentFtsFormatVersion = 2 + BtreeIndexing::FormatVersion,
CurrentFtsFormatVersion = 2 + BtreeIndexing::FormatVersion + Folding::Version,
};

#pragma pack(push,1)
Expand Down
2 changes: 2 additions & 0 deletions generators/DiacriticFolding.txt
Expand Up @@ -3,6 +3,8 @@

0401; 0415 # CYRILLIC CAPITAL LETTER IO -> CYRILLIC CAPITAL LETTER IE
0451; 0435 # CYRILLIC SMALL LETTER IO -> CYRILLIC SMALL LETTER IE
040E; 0423 # CYRILLIC CAPITAL LETTER SHORT U -> CYRILLIC CAPITAL LETTER U
045E; 0443 # CYRILLIC SMALL LETTER SHORT U -> CYRILLIC SMALL LETTER U

# DiacriticFolding.txt
# DRAFT 1 - 2004-07-14 John Cowan
Expand Down
4 changes: 4 additions & 0 deletions inc_diacritic_folding.hh
Expand Up @@ -3134,6 +3134,8 @@ wchar foldDiacritic( wchar const * in, size_t size, size_t & consumed )
consumed = 1; return 0x415;
case 0x40d:
consumed = 1; return 0x418;
case 0x40e:
consumed = 1; return 0x423;
case 0x410:
if ( size > 1 )
{
Expand Down Expand Up @@ -3368,6 +3370,8 @@ wchar foldDiacritic( wchar const * in, size_t size, size_t & consumed )
consumed = 1; return 0x435;
case 0x45d:
consumed = 1; return 0x438;
case 0x45e:
consumed = 1; return 0x443;
case 0x474:
if ( size > 1 )
{
Expand Down

0 comments on commit 1e737ab

Please sign in to comment.