Skip to content

Commit

Permalink
TextLang: Russian: loosen curly quotes handling (#577)
Browse files Browse the repository at this point in the history
Many Russian texts are using quotes from Word (“”), so
this rule leads to incorrect line breaks. It also isn't correct
for Russian_En-US and Russian_En-GB variants.
  • Loading branch information
dmalinovsky authored Jul 21, 2024
1 parent 3410e24 commit 3111729
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crengine/src/textlang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,9 @@ TextLangCfg::TextLangCfg( lString32 lang_tag ) {
*/
}
else if ( LANG_STARTS_WITH(("ru")) ) { // Russian
has_left_double_quotation_mark_closing = true;
// The following rule is disabled because Russian texts often
// use quotation marks from Word (“”)
// has_left_double_quotation_mark_closing = true;
has_left_double_angle_quotation_mark_opening = true;
has_right_double_angle_quotation_mark_closing = true;
}
Expand Down

0 comments on commit 3111729

Please sign in to comment.