class SiSU_Translate::Source
Public Class Methods
new(md,doc_lang,trans_str='')
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 59 def initialize(md,doc_lang,trans_str='') @md,@doc_lang,@trans_str=md,doc_lang,trans_str @lang_class=case @doc_lang when /American/i then English.new(md,doc_lang,trans_str) # tag depreciated, see iso 639-2 when /English/i then English.new(md,doc_lang,trans_str) when /French/i then French.new(md,doc_lang,trans_str) when /German/i then German.new(md,doc_lang,trans_str) when /Italian/i then Italian.new(md,doc_lang,trans_str) when /Spanish/i then Spanish.new(md,doc_lang,trans_str) when /Portuguese Brazil|Brazilian(?: Portuguese)?/i Portuguese.new(md,doc_lang,trans_str) # tag depreciated, see iso 639-2 when /Portuguese/i then Portuguese.new(md,doc_lang,trans_str) when /Swedish/i then Swedish.new(md,doc_lang,trans_str) when /Danish/i then Danish.new(md,doc_lang,trans_str) when /Finnish/i then Finnish.new(md,doc_lang,trans_str) when /Norwegian/i then Norwegian.new(md,doc_lang,trans_str) when /Icelandic/i then Icelandic.new(md,doc_lang,trans_str) when /Dutch/i then Dutch.new(md,doc_lang,trans_str) when /Estonian/i then Estonian.new(md,doc_lang,trans_str) when /Hungarian/i then Hungarian.new(md,doc_lang,trans_str) when /Polish/i then Polish.new(md,doc_lang,trans_str) when /Romanian/i then Romanian.new(md,doc_lang,trans_str) when /Russian/i then Russian.new(md,doc_lang,trans_str) when /Greek/i then Greek.new(md,doc_lang,trans_str) when /Ukranian/i then Ukranian.new(md,doc_lang,trans_str) when /Turkish/i then Turkish.new(md,doc_lang,trans_str) when /Slovenian/i then Slovenian.new(md,doc_lang,trans_str) when /Croatian/i then Croatian.new(md,doc_lang,trans_str) when /Slovak(?:ian)?/i then Slovak.new(md,doc_lang,trans_str) when /Czech/i then Czech.new(md,doc_lang,trans_str) when /Bulgarian/i then Bulgarian.new(md,doc_lang,trans_str) else English.new(md,doc_lang,trans_str) end end
Public Instance Methods
abstract()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 150 def abstract @lang_class.abstract end
cls_dewey()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 207 def cls_dewey @lang_class.cls_dewey end
cls_gutenberg()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 213 def cls_gutenberg @lang_class.cls_gutenberg end
cls_isbn()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 216 def cls_isbn @lang_class.cls_isbn end
cls_loc()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 204 def cls_loc @lang_class.cls_loc end
cls_oclc()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 210 def cls_oclc @lang_class.cls_oclc end
comments()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 201 def comments @lang_class.comments end
contents()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 141 def contents @lang_class.contents end
contributor()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 123 def contributor @lang_class.contributor end
coverage()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 195 def coverage @lang_class.coverage end
date()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 159 def date @lang_class.date end
date_available()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 165 def date_available @lang_class.date_available end
date_created()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 162 def date_created @lang_class.date_created end
date_issued()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 174 def date_issued @lang_class.date_issued end
date_modified()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 171 def date_modified @lang_class.date_modified end
date_valid()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 168 def date_valid @lang_class.date_valid end
description()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 147 def description #dc (watch) @lang_class.description end
dgst()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 234 def dgst @lang_class.dgst end
digitized_by()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 138 def digitized_by @lang_class.digitized_by end
file_size()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 102 def file_size @lang_class.file_size end
filename()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 93 def filename @lang_class.filename end
filetype_description()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 99 def filetype_description @lang_class.filetype_description end
fns()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 228 def fns @lang_class.fns end
format()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 183 def format @lang_class.format end
full_title()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 111 def full_title #dc @lang_class.full_title end
identifier()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 186 def identifier @lang_class.identifier end
illustrator()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 129 def illustrator @lang_class.illustrator end
keywords()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 198 def keywords @lang_class.keywords end
language()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 177 def language @lang_class.language end
language_list()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 273 def language_list case @trans_str when /American/i then 'American English' # tag depreciated, see iso 639-2 when /English/i then 'English' when /French/i then 'français' when /German/i then 'Deutsch' when /Italian/i then 'Italiano' when /Spanish/i then 'español' when /Portuguese Brazil|Brazilian(?: Portuguese)?/i 'Brazilian Português' # tag depreciated, see iso 639-2 when /Portuguese/i then 'Português' when /Swedish/i then 'svenska' when /Danish/i then 'dansk' when /Finnish/i then 'suomi' when /Norwegian/i then 'norsk' when /Icelandic/i then 'Icelandic' when /Dutch/i then 'Nederlands' when /Estonian/i then 'Estonian' when /Hungarian/i then 'Hungarian' when /Polish/i then 'polski' when /Romanian/i then 'română' when /Russian/i then 'Русский (Russkij)' when /Greek/i then 'Ελληνικά (Ellinika)' when /Ukranian/i then 'українська (ukrajins\'ka)' when /Turkish/i then 'Türkçe' when /Slovenian/i then 'Slovenian' when /Croatian/i then 'Croatian' when /Slovak(?:ian)?/i then 'slovensky' #slovensky ? when /Czech/i then 'česky' when /Bulgarian/i then 'Български (Bəlgarski)' when /Japanese/i then '日本語 (Nihongo)' when /Korean/i then '한국어 (Hangul)' #when /Catalan/i then 'català' else 'English' end #check on 中文 and عربي end
language_list_translated()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 270 def language_list_translated @lang_class.language_list end
language_original()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 180 def language_original @lang_class.language_original end
language_version_list()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 255 def language_version_list @lang_class.language_version_list end
last_generated()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 243 def last_generated @lang_class.last_generated end
manifest_description()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 261 def manifest_description @lang_class.manifest_description end
manifest_description_metadata()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 267 def manifest_description_metadata @lang_class.manifest_description_metadata end
manifest_description_output()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 264 def manifest_description_output @lang_class.manifest_description_output end
metadata()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 96 def metadata @lang_class.metadata end
prefix_a()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 219 def prefix_a @lang_class.prefix_a end
prefix_b()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 222 def prefix_b @lang_class.prefix_b end
prepared_by()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 135 def prepared_by @lang_class.prepared_by end
publisher()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 132 def publisher @lang_class.publisher end
relation()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 192 def relation @lang_class.relation end
rights()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 156 def rights @lang_class.rights end
ruby_version()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 249 def ruby_version @lang_class.ruby_version end
sc_date()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 240 def sc_date @lang_class.sc_date end
sc_number()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 237 def sc_number @lang_class.sc_number end
sisu_version()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 246 def sisu_version @lang_class.sisu_version end
source()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 189 def source @lang_class.source end
sourcefile()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 105 def sourcefile @lang_class.sourcefile end
sourcefile_digest()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 108 def sourcefile_digest @lang_class.sourcefile_digest end
subject()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 144 def subject @lang_class.subject end
subtitle()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 117 def subtitle @lang_class.subtitle end
suggested_links()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 252 def suggested_links @lang_class.suggested_links end
title()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 114 def title @lang_class.title end
topic_register()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 225 def topic_register @lang_class.topic_register end
translator()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 126 def translator @lang_class.translator end
type()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 153 def type @lang_class.type end
word_count()
click to toggle source
# File lib/sisu/prog_text_translation.rb, line 231 def word_count @lang_class.word_count end