Class: Placename_romanized_record

Inherits:
GEDCOMBase show all
Defined in:
lib/gedcom/placename_romanized_record.rb

Overview

GEDCOM 5.5.1 Draft adds as subordinate to PLAC

+1 ROMN <PLACE_ROMANIZED_VARIATION> +2 TYPE <PHONETIC_TYPE>

==PLACE_ROMANIZED_VARIATION:= Size=1:120 ROMANIZED_TYPE [<user defined> | pinyin | romaji | wadegiles ] Size=5:30 The romanized variation of the place name is written in the same form prescribed for the place name used in the superior <PLACE_NAME> context. The method used to romanize the name is indicated by the line_value of the subordinate <ROMANIZED_TYPE>, for example if romaji was used to provide a reading of a place name written in kanji, then the <ROMANIZED_TYPE> subordinate to the ROMN tag would indicate romaji.

I allow a NOTE record too, to cope with user defined tags

Instance Attribute Summary collapse

Attributes inherited from GEDCOMBase

#restriction

Instance Method Summary collapse

Methods inherited from GEDCOMBase

#changed, #changed?, #created?, #find, #locked?, no_tabs, #private?, #save, tabs, #to_db, #to_gedcom, #to_s, #to_s_ordered, #to_s_r, #token_to_s, #xref_check

Constructor Details

#initialize(*a) ⇒ Placename_romanized_record

Returns a new instance of Placename_romanized_record.



22
23
24
25
26
27
28
29
# File 'lib/gedcom/placename_romanized_record.rb', line 22

def initialize(*a)
  super(*a)
  @this_level = [ [:print, "ROMN", :romanized_name] ]
   @sub_level = [
                     [:print, "TYPE", :romanized_type],
                     [:walk, nil,    :note_citation_record],
                 ] 
end

Instance Attribute Details

#note_citation_recordObject

Returns the value of attribute note_citation_record.



19
20
21
# File 'lib/gedcom/placename_romanized_record.rb', line 19

def note_citation_record
  @note_citation_record
end

#romanized_nameObject

Returns the value of attribute romanized_name.



18
19
20
# File 'lib/gedcom/placename_romanized_record.rb', line 18

def romanized_name
  @romanized_name
end

#romanized_typeObject

Returns the value of attribute romanized_type.



18
19
20
# File 'lib/gedcom/placename_romanized_record.rb', line 18

def romanized_type
  @romanized_type
end