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