A ring-wing extremist who was caught with a bomb-making kit after the death of a woman has been jailed for 12 years.

Police searched 35-year-old Peter Morgan's flat on Taylor Place, Edinburgh, after a woman collapsed at the property.

Officers found a glass bottle studded with lead shot and nail gun rounds, along with explosive powder, fuses, screws and steel tacks.

An army bomb disposal expert told the High Court in Edinburgh that a "quite effective, viable" improvised explosive device could have been made from the items discovered.

The court heard that emergency services originally attended at the block of flats where he lived on July 2 last year after a young woman collapsed and was found to have no pulse.

A resident said that she previously saw the woman at Morgan's flat and police decided to force entry because of concern for others.

No one was in the flat at the time but officers noted drugs paraphernalia such as needles and scales and the premises were secured.

At the High Court in Edinburgh, Lord Boyd of Duncansby said: "These charges threaten the safety of the public, our values as a democracy and strike at the dignity and respect which all members of our community are entitled to expect whatever their race or religion."

The judge told him: "You assert your right to freedom of speech.

"However, abhorrent some may find your view, you are entitled to hold them.

"What you are not entitled to do is to act on these views for the purpose of committing or preparing an act of terrorism."

Lord Boyd added: "Of most concern is that you not only possessed the ingredients for the making of an improvised explosive device but you had begun to assemble it."

The judge said it was clear that the jury at Morgan's earlier trial had rejected his claim during his evidence that he only planned to blow up a frozen turkey and film it for Youtube.

During the search of Morgan's home, officers also found a Nazi swastika flag, far-right literature and a German World War II dagger.

Police also discovered he downloaded an international application form to become a "loyal white knight of the Klu Klux Klan".

Morgan had also acquired copies of an Al Qaeda terrorism manual, an IRA volunteers handbook on guerrilla warfare, works on turning guns into fully automatic weapons and guides on improvised explosives and interrogation techniques.

Jurors heard he was "quite proud" that he was part of the Scottish Defence League and travelled with others from the far-right group to a white pride rally in Manchester in 2015.

He was photographed attending the march with his hood up carrying a Scottish Saltire flag and holding a "white pride worldwide" poster.

He later claimed to detectives that he was "more of a left-leaning person" and had voted for the SNP.

Morgan, a prisoner of HMP Edinburgh, was convicted of charges under the Terrorism Act.

His offending took place between April 2012 and July 2017.