module SSMD

Constants

VERSION

Public Instance Methods

root_dir() click to toggle source
# File lib/ssmd.rb, line 30
def root_dir
  Gem::Specification.find_by_name("ssmd").gem_dir
end
strip_ssmd(ssmd, skip: []) click to toggle source

Returns the given string without any SSMD annotations. For instance for `hello world` would return `hello world`.

@param ssmd [String] The SSMD markup to strip from SSMD annotations. @param skip [Array<Symbol>] Formats (e.g. `:paragraph`, `:prosody`) to skip.

@return [String]

# File lib/ssmd.rb, line 26
def strip_ssmd(ssmd, skip: [])
  Converter.new(ssmd, skip: skip).strip
end
to_ssml(ssmd, skip: []) click to toggle source

Translates the given SSMD text to SSML.

@param ssmd [String] The SSMD markup to be converted to SSML @param skip [Array<Symbol>] Formats (e.g. `:paragraph`, `:prosody`) to skip.

@return [String] Resulting SSML

# File lib/ssmd.rb, line 14
def to_ssml(ssmd, skip: [])
  Converter.new(ssmd, skip: skip).convert
end