Skip to content

mehran-prs/gopersian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoPersian

A Go Lang package for dealing with Persian text shaping.
You can use this package to print shaped persian/arabic texts on images and pdf files.

Note: Inspired by goarabic but more simple and clear for persian/arabic languages and supports bidi text reordering 😍

Installation

go get github.com/mehran-prs/gopersian

Usage

package main

import (
	"fmt"
	"github.com/mehran-prs/gopersian"
)

func main() {
	fmt.Println("سلام")
	fmt.Println(gopersian.Shape("سلام"))
	fmt.Println(gopersian.Reorder(gopersian.Shape("سلام")))
	fmt.Println(gopersian.Bidi("سلام خوبی؟")) // shape and reorder.
}

Documentation

You can see docs on gopkgdoc.

Contributing

Contributions are greatly appreciated. Please fork this repository, make your changes, and open a pull request.

License

MIT License.

About

Text shaping for Persian/Arabic languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published