Class: Placename_phonetic_record
- Inherits:
-
GEDCOMBase
- Object
- GEDCOMBase
- Placename_phonetic_record
- Defined in:
- lib/gedcom/placename_phonetic_record.rb
Overview
GEDCOM 5.5.1 Draft adds as subordinate to PLAC
+1 FONE <PLACE_PHONETIC_VARIATION> +2 TYPE <PHONETIC_TYPE>
==PLACE_PHONETIC_VARIATION:= Size=1:120 PHONETIC_TYPE [<user defined> | hangul | kana] Size=5:30 The phonetic variation of the place name is written in the same form as was the place name used in the superior <PLACE_NAME> primitive, but phonetically written using the method indicated by the subordinate <PHONETIC_TYPE> value, for example if hiragana was used to provide a reading of a a name written in kanji, then the <PHONETIC_TYPE> value would indicate kana.
I allow a NOTE record too, to cope with user defined tags
Instance Attribute Summary collapse
-
#note_citation_record ⇒ Object
Returns the value of attribute note_citation_record.
-
#phonetic_name ⇒ Object
Returns the value of attribute phonetic_name.
-
#phonetic_type ⇒ Object
Returns the value of attribute phonetic_type.
Attributes inherited from GEDCOMBase
Instance Method Summary collapse
-
#initialize(*a) ⇒ Placename_phonetic_record
constructor
A new instance of Placename_phonetic_record.
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_phonetic_record
Returns a new instance of Placename_phonetic_record.
22 23 24 25 26 27 28 29 |
# File 'lib/gedcom/placename_phonetic_record.rb', line 22 def initialize(*a) super(*a) @this_level = [ [:print, "FONE", :phonetic_name] ] @sub_level = [ [:print, "TYPE", :phonetic_type], [:walk, nil, :note_citation_record], ] end |
Instance Attribute Details
#note_citation_record ⇒ Object
Returns the value of attribute note_citation_record.
19 20 21 |
# File 'lib/gedcom/placename_phonetic_record.rb', line 19 def note_citation_record @note_citation_record end |
#phonetic_name ⇒ Object
Returns the value of attribute phonetic_name.
18 19 20 |
# File 'lib/gedcom/placename_phonetic_record.rb', line 18 def phonetic_name @phonetic_name end |
#phonetic_type ⇒ Object
Returns the value of attribute phonetic_type.
18 19 20 |
# File 'lib/gedcom/placename_phonetic_record.rb', line 18 def phonetic_type @phonetic_type end |