Arcana Coelestia # 4917
4917. 'As she was giving birth' means acknowledgement on the part of internal truth. This is clear from the meaning of 'giving birth' as acknowledging in faith and action, dealt with in 3905, 3915, 3919; and from the representation of Tamar, to whom 'she' refers here, as the internal aspect of the representative Church, and from this as internal truth.
Arcana Coelestia # 1145
1145. That 'these are the generations of the sons of Noah' means derivative matters of doctrine and derivative forms of worship in the Ancient Church, which in general is Noah, is clear from the meaning of 'generations', dealt with already. In the external or literal sense, generations involve one being begotten from another, as is well known; but in the internal sense everything has regard to things that are celestial and spiritual, that is, to what are matters of charity and of faith. Thus 'generations' here means things of the Church, and therefore matters of doctrine, as will be better evident from what follows.