text: use a different invisible character for text embedding
Contributes to the work of @temetherian in #170
This commit is contained in:
@@ -86,7 +86,7 @@ module Squib
|
||||
spacing = rule[:box].width[@index] * Pango::SCALE
|
||||
kindex = clean_str.index(key)
|
||||
kindex = clean_str[0..kindex].bytesize # byte index (bug #57)
|
||||
str = str.sub(key, "\u0091<span letter_spacing=\"#{spacing.to_i}\">\u0091</span>\u0091")
|
||||
str = str.sub(key, "\u2062<span letter_spacing=\"#{spacing.to_i}\">\u2062</span>\u2062")
|
||||
layout.markup = str
|
||||
clean_str = layout.text
|
||||
searches << { index: kindex, rule: rule }
|
||||
|
||||
Reference in New Issue
Block a user