Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.
convert_string(item)private
some of these patterns are taken from SmartyPants…
# File lib/rdoc/markup/to_latex.rb, line 223
def convert_string(item)
escape(item).
# convert ... to elipsis (and make sure .... becomes .<elipsis>)
gsub(/\.\.\.\./, '.\ldots{}').gsub(/\.\.\./, '\ldots{}').
# convert single closing quote
gsub(%{([^ \t\r\n\[\{\(])\'}, '\1\').
gsub(%{\'(?=\W|s\b)}, "'" ).
# convert single opening quote
gsub(/'/, '`').
# convert double closing quote
gsub(%{([^ \t\r\n\[\{\(])\"(?=\W)}, "\\1''").
# convert double opening quote
gsub(/"/, "``").
# convert copyright
gsub(/\(c\)/, '\copyright{}')
end Related methods
- Instance methods
- accept_blank_line
- accept_heading
- accept_list_end
- accept_list_item
- accept_list_start
- accept_paragraph
- accept_rule
- accept_verbatim
- add_tag
- end_accepting
- escape
- init_tags
- l
- start_accepting
- wrap
- Class methods
- l
- new
- Private methods
-
convert_flow -
convert_heading -
convert_special -
convert_string -
list_end_for -
list_item_start -
list_name -
off_tags -
on_tags