Class: SiSU_Translate::English

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/prog_text_translation.rb

Instance Method Summary collapse

Constructor Details

#initialize(md, doc_lang, trans_str) ⇒ English

Returns a new instance of English.



314
315
316
# File 'lib/sisu/prog_text_translation.rb', line 314

def initialize(md,doc_lang,trans_str)
  @md,@doc_lang,@trans_str=md,doc_lang,trans_str
end

Instance Method Details

#abstractObject

dc



371
372
373
# File 'lib/sisu/prog_text_translation.rb', line 371

def abstract #dc
  'Abstract'
end

#authorObject

dc



341
342
343
# File 'lib/sisu/prog_text_translation.rb', line 341

def author
  'Author'
end

#cls_deweyObject



428
429
430
# File 'lib/sisu/prog_text_translation.rb', line 428

def cls_dewey
  'Classify Dewey'
end

#cls_gutenbergObject



434
435
436
# File 'lib/sisu/prog_text_translation.rb', line 434

def cls_gutenberg
  'Classify Project Gutenberg'
end

#cls_isbnObject



437
438
439
# File 'lib/sisu/prog_text_translation.rb', line 437

def cls_isbn
  'Classify ISBN'
end

#cls_locObject



425
426
427
# File 'lib/sisu/prog_text_translation.rb', line 425

def cls_loc
  'Classify Library of Congress'
end

#cls_oclcObject



431
432
433
# File 'lib/sisu/prog_text_translation.rb', line 431

def cls_oclc
  'Classify OCLC number'
end

#commentsObject



422
423
424
# File 'lib/sisu/prog_text_translation.rb', line 422

def comments
  'Comments'
end

#contentsObject



362
363
364
# File 'lib/sisu/prog_text_translation.rb', line 362

def contents
  'Contents'
end

#contributorObject

dc



344
345
346
# File 'lib/sisu/prog_text_translation.rb', line 344

def contributor #dc
  'Contributor'
end

#coverageObject

dc



416
417
418
# File 'lib/sisu/prog_text_translation.rb', line 416

def coverage #dc
  'Coverage'
end

#dateObject

dc



380
381
382
# File 'lib/sisu/prog_text_translation.rb', line 380

def date #dc
  'Date'
end

#date_availableObject

dc



389
390
391
# File 'lib/sisu/prog_text_translation.rb', line 389

def date_available #dc
  'Date available'
end

#date_createdObject

dc



383
384
385
# File 'lib/sisu/prog_text_translation.rb', line 383

def date_created #dc
  'Date created'
end

#date_issuedObject

dc



386
387
388
# File 'lib/sisu/prog_text_translation.rb', line 386

def date_issued #dc
  'Date issued'
end

#date_modifiedObject

dc



392
393
394
# File 'lib/sisu/prog_text_translation.rb', line 392

def date_modified #dc
  'Date modified'
end

#date_validObject

dc



395
396
397
# File 'lib/sisu/prog_text_translation.rb', line 395

def date_valid #dc
  'Date valid'
end

#descriptionObject

dc (watch)



368
369
370
# File 'lib/sisu/prog_text_translation.rb', line 368

def description #dc (watch)
  'Description'
end

#digest_md5Object



458
459
460
# File 'lib/sisu/prog_text_translation.rb', line 458

def digest_md5
  'Sourcefile Digest (md5)'
end

#digest_sha256Object



461
462
463
# File 'lib/sisu/prog_text_translation.rb', line 461

def digest_sha256
  'Sourcefile Digest (sha256)'
end

#digitized_byObject



359
360
361
# File 'lib/sisu/prog_text_translation.rb', line 359

def digitized_by
  'Digitized by'
end

#file_sizeObject



326
327
328
# File 'lib/sisu/prog_text_translation.rb', line 326

def file_size
  'file size'
end

#filenameObject



317
318
319
# File 'lib/sisu/prog_text_translation.rb', line 317

def filename
  'filename'
end

#filetype_descriptionObject



320
321
322
# File 'lib/sisu/prog_text_translation.rb', line 320

def filetype_description
  'filetype description'
end

#formatObject

dc



404
405
406
# File 'lib/sisu/prog_text_translation.rb', line 404

def format #dc
  'Format'
end

#full_titleObject

dc



329
330
331
# File 'lib/sisu/prog_text_translation.rb', line 329

def full_title #dc
  'Title'
end

#identifierObject

dc



407
408
409
# File 'lib/sisu/prog_text_translation.rb', line 407

def identifier #dc
  'Identifier'
end

#illustratorObject



350
351
352
# File 'lib/sisu/prog_text_translation.rb', line 350

def illustrator
  'Illustrator'
end

#keywordsObject



419
420
421
# File 'lib/sisu/prog_text_translation.rb', line 419

def keywords
  'Keywords'
end

#languageObject

dc



398
399
400
# File 'lib/sisu/prog_text_translation.rb', line 398

def language #dc
  'Language'
end

#language_list_translatedObject



494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
# File 'lib/sisu/prog_text_translation.rb', line 494

def language_list_translated
  case @trans_str
  when /American/i       then 'American English'                    # tag depreciated, see iso 639-2
  when /English/i        then 'English'
  when /French/i         then 'French'
  when /German/i         then 'German'
  when /Italian/i        then 'Italian'
  when /Spanish/i        then 'Spanish'
  when /Portuguese Brazil|Brazilian(?: Portuguese)?/i
                              'Brazilian Portuguese'                # tag depreciated, see iso 639-2
  when /Portuguese/i     then 'Portuguese'
  when /Swedish/i        then 'Swedish'
  when /Danish/i         then 'Danish'
  when /Finnish/i        then 'Finnish'
  when /Norwegian/i      then 'Norwegian'
  when /Icelandic/i      then 'Icelandic'
  when /Dutch/i          then 'Dutch'
  when /Estonian/i       then 'Estonian'
  when /Hungarian/i      then 'Hungarian'
  when /Polish/i         then 'Polish'
  when /Romanian/i       then 'Romanian'
  when /Russian/i        then 'Russian'
  when /Greek/i          then 'Greek'
  when /Ukranian/i       then 'Ukranian'
  when /Turkish/i        then 'Turkish'
  when /Slovenian/i      then 'Slovenian'
  when /Croatian/i       then 'Croatian'
  when /Slovak(?:ian)?/i then 'Slovakian'
  when /Czech/i          then 'Czech'
  when /Bulgarian/i      then 'Bulgarian'
  else @trans_str
  end
end

#language_originalObject



401
402
403
# File 'lib/sisu/prog_text_translation.rb', line 401

def language_original
  'Original Language'
end

#language_version_listObject



482
483
484
# File 'lib/sisu/prog_text_translation.rb', line 482

def language_version_list
  'Document Language Versions, manifests'
end

#last_generatedObject



470
471
472
# File 'lib/sisu/prog_text_translation.rb', line 470

def last_generated
  'Document (ao) last generated'
end

#manifest_descriptionObject



485
486
487
# File 'lib/sisu/prog_text_translation.rb', line 485

def manifest_description
  'SiSU manifest of document filetypes and metadata'
end

#manifest_description_metadataObject



491
492
493
# File 'lib/sisu/prog_text_translation.rb', line 491

def 
  'Document Metadata'
end

#manifest_description_outputObject



488
489
490
# File 'lib/sisu/prog_text_translation.rb', line 488

def manifest_description_output
  'Available document filetypes'
end

#metadataObject



323
324
325
# File 'lib/sisu/prog_text_translation.rb', line 323

def 
  'metadata'
end

#prefix_aObject



440
441
442
# File 'lib/sisu/prog_text_translation.rb', line 440

def prefix_a
  'Prefix (a)'
end

#prefix_bObject



443
444
445
# File 'lib/sisu/prog_text_translation.rb', line 443

def prefix_b
  'Prefix (b)'
end

#prepared_byObject



356
357
358
# File 'lib/sisu/prog_text_translation.rb', line 356

def prepared_by
  'Prepared by'
end

#publisherObject

dc



353
354
355
# File 'lib/sisu/prog_text_translation.rb', line 353

def publisher #dc
  'Publisher'
end

#relationObject

dc



413
414
415
# File 'lib/sisu/prog_text_translation.rb', line 413

def relation #dc
  'Relation'
end

#rightsObject

dc



377
378
379
# File 'lib/sisu/prog_text_translation.rb', line 377

def rights #dc
  'Rights'
end

#ruby_versionObject



476
477
478
# File 'lib/sisu/prog_text_translation.rb', line 476

def ruby_version
  'Ruby version'
end

#sc_dateObject



467
468
469
# File 'lib/sisu/prog_text_translation.rb', line 467

def sc_date
  'Document (RCS/CVS) number'
end

#sc_numberObject



464
465
466
# File 'lib/sisu/prog_text_translation.rb', line 464

def sc_number
  'Document (RCS/CVS) number'
end

#sisu_versionObject



473
474
475
# File 'lib/sisu/prog_text_translation.rb', line 473

def sisu_version
  'Generated by'
end

#sourceObject

dc



410
411
412
# File 'lib/sisu/prog_text_translation.rb', line 410

def source #dc
  'Source'
end

#sourcefileObject



449
450
451
# File 'lib/sisu/prog_text_translation.rb', line 449

def sourcefile
  'Sourcefile'
end

#sourcefile_digestObject



455
456
457
# File 'lib/sisu/prog_text_translation.rb', line 455

def sourcefile_digest
  'Sourcefile Digest'
end

#subjectObject

dc



365
366
367
# File 'lib/sisu/prog_text_translation.rb', line 365

def subject #dc
  'Subject'
end

#subtitleObject



335
336
337
# File 'lib/sisu/prog_text_translation.rb', line 335

def subtitle
  'Subtitle'
end


479
480
481
# File 'lib/sisu/prog_text_translation.rb', line 479

def suggested_links
  'metadata suggested links'
end

#titleObject



332
333
334
# File 'lib/sisu/prog_text_translation.rb', line 332

def title
  'Title'
end

#topic_registerObject



446
447
448
# File 'lib/sisu/prog_text_translation.rb', line 446

def topic_register
  'Topics Registered'
end

#translatorObject



347
348
349
# File 'lib/sisu/prog_text_translation.rb', line 347

def translator
  'Translator'
end

#typeObject

dc



374
375
376
# File 'lib/sisu/prog_text_translation.rb', line 374

def type #dc
  'Type'
end

#word_countObject



452
453
454
# File 'lib/sisu/prog_text_translation.rb', line 452

def word_count
  'Word Count approximate'
end