module Utils

Extended Modules

Defined in:

mod/utils.cr

Constant Summary

VERSION = "0.1.0"

Instance Method Summary

Instance Method Detail

def append_dir(base, dir) #

[View source]
def attrs_h(attrs) : Hash(String, String) #

[View source]
def category_as_path(cat : String) #

[View source]
def exit_error(msg, code = 1) #

[View source]
def export_norm_filtered(markers, outfilename, lemmas, filters : Hash(String, Tuple(String, String, Array(String))), filter_compare = Types::CompareFlags::Default, splitted = true, dirpath : Nil | String = nil) #

[View source]
def export_splitted(outfilename : String, sources : Array(LemmaSource), suffix : String, msg : String, t : Symbol = :source, dirpath : Nil | String = nil, verbose = false) #

[View source]
def export_teilexes(outfilename, teilexs, t : Symbol = :xml) #

[View source]
def insert_dir(filename, dir) #

[View source]
def levelize_word_filters(filters : Hash(String, Array(String))) #

[View source]
def open_source(file) #

[View source]
def print_error(msg) #

[View source]
def print_info(message, verbose) #

[View source]
def save_source(file : String, source : String, dirpath : Nil | String = nil, verbose = false) #

[View source]
def strings_includes(s, filters, flag) #

[View source]
def xmlhead(xmlstr) #

[View source]