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.



312
313
314
# File 'lib/sisu/prog_text_translation.rb', line 312

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

Instance Method Details

#abstractObject

dc



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

def abstract #dc
  'Abstract'
end

#authorObject

dc



339
340
341
# File 'lib/sisu/prog_text_translation.rb', line 339

def author
  'Author'
end

#cls_deweyObject



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

def cls_dewey
  'Classify Dewey'
end

#cls_gutenbergObject



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

def cls_gutenberg
  'Classify Project Gutenberg'
end

#cls_isbnObject



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

def cls_isbn
  'Classify ISBN'
end

#cls_locObject



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

def cls_loc
  'Classify Library of Congress'
end

#cls_oclcObject



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

def cls_oclc
  'Classify OCLC number'
end

#commentsObject



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

def comments
  'Comments'
end

#contentsObject



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

def contents
  'Contents'
end

#contributorObject

dc



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

def contributor #dc
  'Contributor'
end

#coverageObject

dc



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

def coverage #dc
  'Coverage'
end

#dateObject

dc



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

def date #dc
  'Date'
end

#date_availableObject

dc



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

def date_available #dc
  'Date available'
end

#date_createdObject

dc



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

def date_created #dc
  'Date created'
end

#date_issuedObject

dc



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

def date_issued #dc
  'Date issued'
end

#date_modifiedObject

dc



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

def date_modified #dc
  'Date modified'
end

#date_validObject

dc



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

def date_valid #dc
  'Date valid'
end

#descriptionObject

dc (watch)



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

def description #dc (watch)
  'Description'
end

#digest_md5Object



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

def digest_md5
  'Sourcefile Digest (md5)'
end

#digest_sha256Object



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

def digest_sha256
  'Sourcefile Digest (sha256)'
end

#digitized_byObject



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

def digitized_by
  'Digitized by'
end

#file_sizeObject



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

def file_size
  'file size'
end

#filenameObject



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

def filename
  'filename'
end

#filetype_descriptionObject



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

def filetype_description
  'filetype description'
end

#formatObject

dc



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

def format #dc
  'Format'
end

#full_titleObject

dc



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

def full_title #dc
  'Title'
end

#identifierObject

dc



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

def identifier #dc
  'Identifier'
end

#illustratorObject



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

def illustrator
  'Illustrator'
end

#keywordsObject



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

def keywords
  'Keywords'
end

#languageObject

dc



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

def language #dc
  'Language'
end

#language_list_translatedObject



492
493
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
# File 'lib/sisu/prog_text_translation.rb', line 492

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



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

def language_original
  'Original Language'
end

#language_version_listObject



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

def language_version_list
  'Document Language Versions, manifests'
end

#last_generatedObject



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

def last_generated
  'Document (ao) last generated'
end

#manifest_descriptionObject



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

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

#manifest_description_metadataObject



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

def 
  'Document Metadata'
end

#manifest_description_outputObject



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

def manifest_description_output
  'Available document filetypes'
end

#metadataObject



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

def 
  'metadata'
end

#prefix_aObject



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

def prefix_a
  'Prefix (a)'
end

#prefix_bObject



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

def prefix_b
  'Prefix (b)'
end

#prepared_byObject



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

def prepared_by
  'Prepared by'
end

#publisherObject

dc



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

def publisher #dc
  'Publisher'
end

#relationObject

dc



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

def relation #dc
  'Relation'
end

#rightsObject

dc



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

def rights #dc
  'Rights'
end

#ruby_versionObject



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

def ruby_version
  'Ruby version'
end

#sc_dateObject



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

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

#sc_numberObject



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

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

#sisu_versionObject



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

def sisu_version
  'Generated by'
end

#sourceObject

dc



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

def source #dc
  'Source'
end

#sourcefileObject



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

def sourcefile
  'Sourcefile'
end

#sourcefile_digestObject



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

def sourcefile_digest
  'Sourcefile Digest'
end

#subjectObject

dc



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

def subject #dc
  'Subject'
end

#subtitleObject



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

def subtitle
  'Subtitle'
end


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

def suggested_links
  'metadata suggested links'
end

#titleObject



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

def title
  'Title'
end

#topic_registerObject



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

def topic_register
  'Topics Registered'
end

#translatorObject



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

def translator
  'Translator'
end

#typeObject

dc



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

def type #dc
  'Type'
end

#word_countObject



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

def word_count
  'Word Count approximate'
end