Method: ConverterBase#insert_separator_for_selection
- Defined in:
- lib/converterbase.rb
#insert_separator_for_selection(str) ⇒ Object
Kindle端末で単語選択がしやすいように0幅スペースを挿入する
1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/converterbase.rb', line 1149 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 |