Documentation ¶
Overview ¶
Package bidih implements Unicode bidirectional algorithm (TR9) also known as BIDI. For more information see http://unicode.org/reports/tr9 . Currently this package under development and is not ready for production use!!!
Index ¶
- Constants
- func Parse(str string, paragraphEmbeddingLevel EmbeddingLevel) []rune
- func ParseParagraph(runes []rune, paragraphLevel EmbeddingLevel, lineBreaker LineBreaker)
- func ParseParagraphExtended(runes []rune, paragraphLevel EmbeddingLevel, lineBreaker LineBreaker) (order []int)
- type EmbeddingLevel
- type LineBreaker
- type Text
Constants ¶
View Source
const MaxDepth = 125
Maximum explicit embedding level.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(str string, paragraphEmbeddingLevel EmbeddingLevel) []rune
func ParseParagraph ¶
func ParseParagraph(runes []rune, paragraphLevel EmbeddingLevel, lineBreaker LineBreaker)
func ParseParagraphExtended ¶
func ParseParagraphExtended(runes []rune, paragraphLevel EmbeddingLevel, lineBreaker LineBreaker) (order []int)
Types ¶
type EmbeddingLevel ¶
type EmbeddingLevel uint8
const ( LeftToRightParagraph EmbeddingLevel = 0 RightToLeftParagraph EmbeddingLevel = 1 MaxEmbeddingLevel EmbeddingLevel = 125 AutoParagraphDirection EmbeddingLevel = mathh.MaxUint8 )
type LineBreaker ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.