Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ moment this is supported for Go compilers from version 1.7.

## Download/Install

The easiest way to install is to run `go get -u golang.org/x/text`. You can
also manually git clone the repository to `$GOPATH/src/golang.org/x/text`.
The easiest way to install is to run `go get -u github.com/liquid-dev/text`. You can
also manually git clone the repository to `$GOPATH/src/github.com/liquid-dev/text`.

## Contribute
To submit changes to this repository, see http://golang.org/doc/contribute.html.

To generate the tables in this repository (except for the encoding tables),
run go generate from this directory. By default tables are generated for the
Unicode version in core and the CLDR version defined in
golang.org/x/text/unicode/cldr.
github.com/liquid-dev/text/unicode/cldr.

Running go generate will as a side effect create a DATA subdirectory in this
directory, which holds all files that are used as a source for generating the
Expand All @@ -55,7 +55,7 @@ TODO:
To generate the tables in this repository (except for the encoding
tables), run `go generate` from this directory. By default tables are
generated for the Unicode version in core and the CLDR version defined in
golang.org/x/text/unicode/cldr.
github.com/liquid-dev/text/unicode/cldr.

Running go generate will as a side effect create a DATA subdirectory in this
directory which holds all files that are used as a source for generating the
Expand Down
8 changes: 4 additions & 4 deletions cases/cases.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
//go:generate go run gen.go gen_trieval.go

// Package cases provides general and language-specific case mappers.
package cases // import "golang.org/x/text/cases"
package cases // import "github.com/liquid-dev/text/cases"

import (
"golang.org/x/text/language"
"golang.org/x/text/transform"
"github.com/liquid-dev/text/language"
"github.com/liquid-dev/text/transform"
)

// References:
Expand Down Expand Up @@ -88,7 +88,7 @@ func Title(t language.Tag, opts ...Option) Caser {
//
// Case folding does not normalize the input and may not preserve a normal form.
// Use the collate or search package for more convenient and linguistically
// sound comparisons. Use golang.org/x/text/secure/precis for string comparisons
// sound comparisons. Use github.com/liquid-dev/text/secure/precis for string comparisons
// where security aspects are a concern.
func Fold(opts ...Option) Caser {
return Caser{makeFold(getOpts(opts...))}
Expand Down
2 changes: 1 addition & 1 deletion cases/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package cases

import "golang.org/x/text/transform"
import "github.com/liquid-dev/text/transform"

// A context is used for iterating over source bytes, fetching case info and
// writing to a destination buffer.
Expand Down
10 changes: 5 additions & 5 deletions cases/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"testing"
"unicode"

"golang.org/x/text/internal/testtext"
"golang.org/x/text/language"
"golang.org/x/text/transform"
"golang.org/x/text/unicode/norm"
"golang.org/x/text/unicode/rangetable"
"github.com/liquid-dev/text/internal/testtext"
"github.com/liquid-dev/text/language"
"github.com/liquid-dev/text/transform"
"github.com/liquid-dev/text/unicode/norm"
"github.com/liquid-dev/text/unicode/rangetable"
)

// The following definitions are taken directly from Chapter 3 of The Unicode
Expand Down
4 changes: 2 additions & 2 deletions cases/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package cases_test
import (
"fmt"

"golang.org/x/text/cases"
"golang.org/x/text/language"
"github.com/liquid-dev/text/cases"
"github.com/liquid-dev/text/language"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion cases/fold.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package cases

import "golang.org/x/text/transform"
import "github.com/liquid-dev/text/transform"

type caseFolder struct{ transform.NopResetter }

Expand Down
2 changes: 1 addition & 1 deletion cases/fold_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package cases
import (
"testing"

"golang.org/x/text/internal/testtext"
"github.com/liquid-dev/text/internal/testtext"
)

var foldTestCases = []string{
Expand Down
8 changes: 4 additions & 4 deletions cases/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
"strings"
"unicode"

"golang.org/x/text/internal/gen"
"golang.org/x/text/internal/triegen"
"golang.org/x/text/internal/ucd"
"golang.org/x/text/unicode/norm"
"github.com/liquid-dev/text/internal/gen"
"github.com/liquid-dev/text/internal/triegen"
"github.com/liquid-dev/text/internal/ucd"
"github.com/liquid-dev/text/unicode/norm"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cases/icu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"strings"
"testing"

"golang.org/x/text/internal/testtext"
"golang.org/x/text/language"
"golang.org/x/text/unicode/norm"
"github.com/liquid-dev/text/internal/testtext"
"github.com/liquid-dev/text/language"
"github.com/liquid-dev/text/unicode/norm"
)

func TestICUConformance(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions cases/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"unicode"
"unicode/utf8"

"golang.org/x/text/internal"
"golang.org/x/text/language"
"golang.org/x/text/transform"
"golang.org/x/text/unicode/norm"
"github.com/liquid-dev/text/internal"
"github.com/liquid-dev/text/language"
"github.com/liquid-dev/text/transform"
"github.com/liquid-dev/text/unicode/norm"
)

// A mapFunc takes a context set to the current rune and writes the mapped
Expand Down
8 changes: 4 additions & 4 deletions cases/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"testing"
"unicode/utf8"

"golang.org/x/text/internal/testtext"
"golang.org/x/text/language"
"golang.org/x/text/transform"
"golang.org/x/text/unicode/norm"
"github.com/liquid-dev/text/internal/testtext"
"github.com/liquid-dev/text/language"
"github.com/liquid-dev/text/transform"
"github.com/liquid-dev/text/unicode/norm"
)

type testCase struct {
Expand Down
2 changes: 1 addition & 1 deletion cases/tables10.0.0.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cases/tables10.0.0_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cases/tables11.0.0.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cases/tables11.0.0_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cases/tables12.0.0.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cases/tables12.0.0_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cases/tables9.0.0.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cases/tables9.0.0_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cases/trieval.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions cmd/gotext/examples/extract/catalog.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions cmd/gotext/examples/extract/locales/de/messages.gotext.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"key": "Hello world!\n",
"message": "Hello world!",
"translation": "Hallo Welt!",
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:27:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:27:10"
},
{
"id": "Hello {City}!",
Expand All @@ -23,7 +23,7 @@
"expr": "city"
}
],
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:31:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:31:10"
},
{
"id": "Hello {Town}!",
Expand All @@ -41,7 +41,7 @@
"comment": "Town"
}
],
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:35:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:35:10"
},
{
"id": "{Person} is visiting {Place}!",
Expand All @@ -68,7 +68,7 @@
"comment": "Place the person is visiting."
}
],
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:40:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:40:10"
},
{
"id": "{Person} is visiting {Place}!",
Expand Down Expand Up @@ -103,7 +103,7 @@
"expr": "pp.extra"
}
],
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:55:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:55:10"
},
{
"id": "{N} more files remaining!",
Expand All @@ -120,7 +120,7 @@
"expr": "n"
}
],
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:67:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:67:10"
},
{
"id": "Use the following code for your discount: {ReferralCode}",
Expand All @@ -131,13 +131,13 @@
{
"id": "ReferralCode",
"string": "%[1]d",
"type": "golang.org/x/text/cmd/gotext/examples/extract.referralCode",
"type": "github.com/liquid-dev/text/cmd/gotext/examples/extract.referralCode",
"underlyingType": "int",
"argNum": 1,
"expr": "c"
}
],
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:73:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:73:10"
},
{
"id": [ "msgOutOfOrder", "{Device} is out of order!" ],
Expand All @@ -155,7 +155,7 @@
"expr": "device"
}
],
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:81:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:81:10"
},
{
"id": "{Miles} miles traveled ({Miles_1})",
Expand All @@ -180,7 +180,7 @@
"expr": "miles"
}
],
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:85:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:85:10"
}
]
}
4 changes: 2 additions & 2 deletions cmd/gotext/examples/extract/locales/de/out.gotext.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{
"id": "ReferralCode",
"string": "%[1]d",
"type": "golang.org/x/text/cmd/gotext/examples/extract.referralCode",
"type": "github.com/liquid-dev/text/cmd/gotext/examples/extract.referralCode",
"underlyingType": "int",
"argNum": 1,
"expr": "c"
Expand Down Expand Up @@ -134,4 +134,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"key": "Hello world!\n",
"message": "Hello world!",
"translation": "Hello world!",
"position": "golang.org/x/text/cmd/gotext/examples/extract/main.go:27:10"
"position": "github.com/liquid-dev/text/cmd/gotext/examples/extract/main.go:27:10"
},
{
"id": "Hello {City}!",
Expand Down
4 changes: 2 additions & 2 deletions cmd/gotext/examples/extract/locales/en-US/out.gotext.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
{
"id": "ReferralCode",
"string": "%[1]d",
"type": "golang.org/x/text/cmd/gotext/examples/extract.referralCode",
"type": "github.com/liquid-dev/text/cmd/gotext/examples/extract.referralCode",
"underlyingType": "int",
"argNum": 1,
"expr": "c"
Expand Down Expand Up @@ -151,4 +151,4 @@
]
}
]
}
}
Loading