Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages