Method: ConverterBase#insert_separator_for_selection
- Defined in:
- lib/converterbase.rb
#insert_separator_for_selection(str) ⇒ Object
Kindle端末で単語選択がしやすいように0幅スペースを挿入する
1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 |
# File 'lib/converterbase.rb', line 1174 def insert_separator_for_selection(str) return str unless @device && @device.kindle? return str if @text_type != "body" && @text_type != "textfile" if @setting.enable_insert_word_separator insert_word_separator(str) elsif @setting.enable_insert_char_separator insert_char_separator(str) else str end end |