Commit a359ebdf authored by Ilya Kirillov's avatar Ilya Kirillov

The hyphen with the code U+2014 is now a word-breaker.

parent dd579682
...@@ -233,7 +233,7 @@ function ParaText(value) ...@@ -233,7 +233,7 @@ function ParaText(value)
this.WidthVisible = 0x00000000 | 0; this.WidthVisible = 0x00000000 | 0;
this.Flags = 0x00000000 | 0; this.Flags = 0x00000000 | 0;
this.Set_SpaceAfter(45 === this.Value); // charCode символа "-" this.Set_SpaceAfter(this.private_IsSpaceAfter());
} }
ParaText.prototype = ParaText.prototype =
...@@ -248,7 +248,7 @@ ParaText.prototype = ...@@ -248,7 +248,7 @@ ParaText.prototype =
Set_CharCode : function(CharCode) Set_CharCode : function(CharCode)
{ {
this.Value = CharCode; this.Value = CharCode;
this.Set_SpaceAfter(45 === this.Value); // charCode символа "-" this.Set_SpaceAfter(this.private_IsSpaceAfter());
}, },
Draw : function(X, Y, Context) Draw : function(X, Y, Context)
...@@ -445,9 +445,17 @@ ParaText.prototype = ...@@ -445,9 +445,17 @@ ParaText.prototype =
Read_FromBinary : function(Reader) Read_FromBinary : function(Reader)
{ {
this.Value = Reader.GetLong(); this.Value = Reader.GetLong();
this.Set_SpaceAfter(45 === this.Value); this.Set_SpaceAfter(this.private_IsSpaceAfter());
} }
}; };
ParaText.prototype.private_IsSpaceAfter = function()
{
if (0x002D === this.Value
|| 0x2014 === this.Value)
return true;
return false;
};
// Класс ParaSpace // Класс ParaSpace
function ParaSpace() function ParaSpace()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment