quran

package module
v0.0.0-...-f6b3835 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 6 Imported by: 0

README

go-quran-tree

Quran exloration in go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aya

type Aya struct {
	Index int    `xml:"index,attr,str"`
	Text  string `xml:"text,attr"`
}

func (*Aya) RemoveTashkeels

func (a *Aya) RemoveTashkeels() string

func (*Aya) Tokens

func (a *Aya) Tokens() []Token

type Character

type Character struct {
	Letter    rune
	Tashkeels []rune
}

type Quran

type Quran struct {
	XMLName xml.Name `xml:"quran"`
	Suras   []Sura   `xml:"sura"`
}

Quran represents the whole scripture

type Sura

type Sura struct {
	Index int    `xml:"index,attr,str"`
	Name  string `xml:"name,attr"`
	Ayas  []Aya  `xml:"aya"`
}

type Token

type Token struct {
	Text string
}

func (*Token) Characters

func (t *Token) Characters() []Character

func (*Token) Dump

func (t *Token) Dump() string

func (*Token) RemoveTashkeels

func (t *Token) RemoveTashkeels() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL