I believe the 'foksail' of which you write is actually the 'fo'castle' which is a shortened pronunciation of 'forecastle'. It is at the front, or fore, part of a ship raised above the main weather deck.
I believe the HMS Indefatible of which you write is the HMS Indefatigable in which...