Class: SiSU_Translate::English
- Inherits:
-
Object
- Object
- SiSU_Translate::English
show all
- Defined in:
- lib/sisu/prog_text_translation.rb
Direct Known Subclasses
Bulgarian, Croatian, Czech, Danish, Dutch, Estonian, Greek, Hungarian, Icelandic, Norwegian, Polish, Portuguese, Romanian, Russian, Slovakian, Swedish, Turkish, Ukranian
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
#abstract ⇒ Object
371
372
373
|
# File 'lib/sisu/prog_text_translation.rb', line 371
def abstract 'Abstract'
end
|
#author ⇒ Object
341
342
343
|
# File 'lib/sisu/prog_text_translation.rb', line 341
def author
'Author'
end
|
#cls_dewey ⇒ Object
428
429
430
|
# File 'lib/sisu/prog_text_translation.rb', line 428
def cls_dewey
'Classify Dewey'
end
|
#cls_gutenberg ⇒ Object
434
435
436
|
# File 'lib/sisu/prog_text_translation.rb', line 434
def cls_gutenberg
'Classify Project Gutenberg'
end
|
#cls_isbn ⇒ Object
437
438
439
|
# File 'lib/sisu/prog_text_translation.rb', line 437
def cls_isbn
'Classify ISBN'
end
|
#cls_loc ⇒ Object
425
426
427
|
# File 'lib/sisu/prog_text_translation.rb', line 425
def cls_loc
'Classify Library of Congress'
end
|
#cls_oclc ⇒ Object
431
432
433
|
# File 'lib/sisu/prog_text_translation.rb', line 431
def cls_oclc
'Classify OCLC number'
end
|
422
423
424
|
# File 'lib/sisu/prog_text_translation.rb', line 422
def
'Comments'
end
|
#contents ⇒ Object
362
363
364
|
# File 'lib/sisu/prog_text_translation.rb', line 362
def contents
'Contents'
end
|
#contributor ⇒ Object
344
345
346
|
# File 'lib/sisu/prog_text_translation.rb', line 344
def contributor 'Contributor'
end
|
#coverage ⇒ Object
416
417
418
|
# File 'lib/sisu/prog_text_translation.rb', line 416
def coverage 'Coverage'
end
|
#date ⇒ Object
380
381
382
|
# File 'lib/sisu/prog_text_translation.rb', line 380
def date 'Date'
end
|
#date_available ⇒ Object
389
390
391
|
# File 'lib/sisu/prog_text_translation.rb', line 389
def date_available 'Date available'
end
|
#date_created ⇒ Object
383
384
385
|
# File 'lib/sisu/prog_text_translation.rb', line 383
def date_created 'Date created'
end
|
#date_issued ⇒ Object
386
387
388
|
# File 'lib/sisu/prog_text_translation.rb', line 386
def date_issued 'Date issued'
end
|
#date_modified ⇒ Object
392
393
394
|
# File 'lib/sisu/prog_text_translation.rb', line 392
def date_modified 'Date modified'
end
|
#date_valid ⇒ Object
395
396
397
|
# File 'lib/sisu/prog_text_translation.rb', line 395
def date_valid 'Date valid'
end
|
#description ⇒ Object
368
369
370
|
# File 'lib/sisu/prog_text_translation.rb', line 368
def description 'Description'
end
|
#digest_md5 ⇒ Object
458
459
460
|
# File 'lib/sisu/prog_text_translation.rb', line 458
def digest_md5
'Sourcefile Digest (md5)'
end
|
#digest_sha256 ⇒ Object
461
462
463
|
# File 'lib/sisu/prog_text_translation.rb', line 461
def digest_sha256
'Sourcefile Digest (sha256)'
end
|
#digitized_by ⇒ Object
359
360
361
|
# File 'lib/sisu/prog_text_translation.rb', line 359
def digitized_by
'Digitized by'
end
|
#file_size ⇒ Object
326
327
328
|
# File 'lib/sisu/prog_text_translation.rb', line 326
def file_size
'file size'
end
|
#filename ⇒ Object
317
318
319
|
# File 'lib/sisu/prog_text_translation.rb', line 317
def filename
'filename'
end
|
#filetype_description ⇒ Object
320
321
322
|
# File 'lib/sisu/prog_text_translation.rb', line 320
def filetype_description
'filetype description'
end
|
404
405
406
|
# File 'lib/sisu/prog_text_translation.rb', line 404
def format 'Format'
end
|
#full_title ⇒ Object
329
330
331
|
# File 'lib/sisu/prog_text_translation.rb', line 329
def full_title 'Title'
end
|
#identifier ⇒ Object
407
408
409
|
# File 'lib/sisu/prog_text_translation.rb', line 407
def identifier 'Identifier'
end
|
#illustrator ⇒ Object
350
351
352
|
# File 'lib/sisu/prog_text_translation.rb', line 350
def illustrator
'Illustrator'
end
|
#keywords ⇒ Object
419
420
421
|
# File 'lib/sisu/prog_text_translation.rb', line 419
def keywords
'Keywords'
end
|
#language ⇒ Object
398
399
400
|
# File 'lib/sisu/prog_text_translation.rb', line 398
def language 'Language'
end
|
#language_list_translated ⇒ Object
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' 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' 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_original ⇒ Object
401
402
403
|
# File 'lib/sisu/prog_text_translation.rb', line 401
def language_original
'Original Language'
end
|
#language_version_list ⇒ Object
482
483
484
|
# File 'lib/sisu/prog_text_translation.rb', line 482
def language_version_list
'Document Language Versions, manifests'
end
|
#last_generated ⇒ Object
470
471
472
|
# File 'lib/sisu/prog_text_translation.rb', line 470
def last_generated
'Document (ao) last generated'
end
|
#manifest_description ⇒ Object
485
486
487
|
# File 'lib/sisu/prog_text_translation.rb', line 485
def manifest_description
'SiSU manifest of document filetypes and metadata'
end
|
491
492
493
|
# File 'lib/sisu/prog_text_translation.rb', line 491
def manifest_description_metadata
'Document Metadata'
end
|
#manifest_description_output ⇒ Object
488
489
490
|
# File 'lib/sisu/prog_text_translation.rb', line 488
def manifest_description_output
'Available document filetypes'
end
|
323
324
325
|
# File 'lib/sisu/prog_text_translation.rb', line 323
def metadata
'metadata'
end
|
#prefix_a ⇒ Object
440
441
442
|
# File 'lib/sisu/prog_text_translation.rb', line 440
def prefix_a
'Prefix (a)'
end
|
#prefix_b ⇒ Object
443
444
445
|
# File 'lib/sisu/prog_text_translation.rb', line 443
def prefix_b
'Prefix (b)'
end
|
#prepared_by ⇒ Object
356
357
358
|
# File 'lib/sisu/prog_text_translation.rb', line 356
def prepared_by
'Prepared by'
end
|
#publisher ⇒ Object
353
354
355
|
# File 'lib/sisu/prog_text_translation.rb', line 353
def publisher 'Publisher'
end
|
#relation ⇒ Object
413
414
415
|
# File 'lib/sisu/prog_text_translation.rb', line 413
def relation 'Relation'
end
|
#rights ⇒ Object
377
378
379
|
# File 'lib/sisu/prog_text_translation.rb', line 377
def rights 'Rights'
end
|
#ruby_version ⇒ Object
476
477
478
|
# File 'lib/sisu/prog_text_translation.rb', line 476
def ruby_version
'Ruby version'
end
|
#sc_date ⇒ Object
467
468
469
|
# File 'lib/sisu/prog_text_translation.rb', line 467
def sc_date
'Document (RCS/CVS) number'
end
|
#sc_number ⇒ Object
464
465
466
|
# File 'lib/sisu/prog_text_translation.rb', line 464
def sc_number
'Document (RCS/CVS) number'
end
|
#sisu_version ⇒ Object
473
474
475
|
# File 'lib/sisu/prog_text_translation.rb', line 473
def sisu_version
'Generated by'
end
|
#source ⇒ Object
410
411
412
|
# File 'lib/sisu/prog_text_translation.rb', line 410
def source 'Source'
end
|
#sourcefile ⇒ Object
449
450
451
|
# File 'lib/sisu/prog_text_translation.rb', line 449
def sourcefile
'Sourcefile'
end
|
#sourcefile_digest ⇒ Object
455
456
457
|
# File 'lib/sisu/prog_text_translation.rb', line 455
def sourcefile_digest
'Sourcefile Digest'
end
|
#subject ⇒ Object
365
366
367
|
# File 'lib/sisu/prog_text_translation.rb', line 365
def subject 'Subject'
end
|
#subtitle ⇒ Object
335
336
337
|
# File 'lib/sisu/prog_text_translation.rb', line 335
def subtitle
'Subtitle'
end
|
#suggested_links ⇒ Object
479
480
481
|
# File 'lib/sisu/prog_text_translation.rb', line 479
def suggested_links
'metadata suggested links'
end
|
#title ⇒ Object
332
333
334
|
# File 'lib/sisu/prog_text_translation.rb', line 332
def title
'Title'
end
|
#topic_register ⇒ Object
446
447
448
|
# File 'lib/sisu/prog_text_translation.rb', line 446
def topic_register
'Topics Registered'
end
|
#translator ⇒ Object
347
348
349
|
# File 'lib/sisu/prog_text_translation.rb', line 347
def translator
'Translator'
end
|
#type ⇒ Object
374
375
376
|
# File 'lib/sisu/prog_text_translation.rb', line 374
def type 'Type'
end
|
#word_count ⇒ Object
452
453
454
|
# File 'lib/sisu/prog_text_translation.rb', line 452
def word_count
'Word Count approximate'
end
|